shader vertex, lightning, without texture
Hey everyone. I have a problem with removeing texture from this shader
Shader "Vertex Color Lit" {
Properties{
_MainTex("Base (RGB)", 2D) = "white" {}
}
SubShader{
Pass{
Lighting On
ColorMaterial AmbientAndDiffuse
SetTexture[_MainTex]{
combine texture * primary DOUBLE
}
}
}
}
I need shader that uses only lights and vertex colors, without texture. I will be grateful for any help or advice how to do that.
Answer by hexagonius · Feb 16, 2017 at 10:35 PM
https://docs.unity3d.com/Manual/SL-SurfaceShaderExamples.html
the first shader example does what you want. add a color property instead of the hardcore white and that's it
Your answer
Follow this Question
Related Questions
how to get spot-/point-/..lights working with vertex displacement shader? 0 Answers
Turn off vertex normals for surface shader using normal map. 0 Answers
Light Flickering on every object except the terrain. 1 Answer
Need some assistance with spot/point lighting for GPU based particles 0 Answers
Inside of a shader how can I convert a world direction relevant to a vertex's local position 1 Answer