I think I’ve come across this earlier but i cant find the post / source again. What I’m looking for a is modulate2x vertex color shader. As to gain both over-brightening and shadows from as single vertex color channel.
Help please
I think I’ve come across this earlier but i cant find the post / source again. What I’m looking for a is modulate2x vertex color shader. As to gain both over-brightening and shadows from as single vertex color channel.
Help please
You want that with actual in-game lights? Or all the lighting is already baked, and there should be no real-time lighting?
If all lighting is already baked, then something like this shader would be good (that’s a stripped down version of BakedVertexColorLighting, with 2x modulation added):
Shader "Baked Vertex Lighting/Modulate 2X" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" { }
}
SubShader {
Pass {
BindChannels {
Bind "Vertex", vertex
Bind "TexCoord", texcoord
Bind "Color", color
}
SetTexture [_MainTex] { Combine primary * texture DOUBLE }
}
}
}
It does nothing fancy, just binds in vertex colors, and does a modulate2x (in D3D terms) of texture and vertex color.
Cheers, works great
Hi~This is surface Shader~
How can I implement modulate2x in Vertex and Fragment Shader by " + " , " - " ," * " ," / ".
Is this just simple " *2 " with final color to return??