Quantcast
Channel: Answers for "Changing the vertex color by script"
Browsing all 4 articles
Browse latest View live

Answer by whydoidoit

The shader you posted does not read a vertex colour or pass a colour from the vertex to the fragment... struct vertexInput { half4 vertex : POSITION; half3 normal : NORMAL; half4 texcoord : TEXCOORD0;...

View Article



Answer by highpockets

OK, OK, after a bit of research I found my solution in the documentation: http://unity3d.com/support/documentation/Components/SL-VertexProgramInputs.html I was failed to pass the color input value in...

View Article

Answer by whydoidoit

The shader you posted does not read a vertex colour or pass a colour from the vertex to the fragment... struct vertexInput { half4 vertex : POSITION; half3 normal : NORMAL; half4 texcoord : TEXCOORD0;...

View Article

Answer by highpockets

OK, OK, after a bit of research I found my solution in the documentation: http://unity3d.com/support/documentation/Components/SL-VertexProgramInputs.html I was failed to pass the color input value in...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images