- Home /
Question by
Jozi-Satler · Oct 04, 2021 at 06:19 PM ·
shadershadersvertexvertex color
Vertex Color Shader Non Linear Blending
Hello, brief question. So I have a simple vertex colored shader, which shows colors of vertices that I set in the script using mesh.colors. Shader:
SubShader{
Pass {
Material {
Shininess[_Shininess]
Specular[_SpecColor]
Emission[_Emission]
}
ColorMaterial AmbientAndDiffuse
Lighting On
SeparateSpecular On
SetTexture[_MainTex] {
Combine texture * primary, texture * primary
}
SetTexture[_MainTex] {
constantColor[_Color]
Combine previous * constant DOUBLE, previous * constant
}
}
}
Fallback " VertexLit", 1
}
Which results in something like this:
This is fine, but I would need it to be non linear, with fixed colors. More like this:
Is this somehow possible? Thank you in advance for any answers!
image1.png
(19.0 kB)
image2.png
(17.6 kB)
Comment