Don't use gl_Color for skin.

This commit is contained in:
Andrzej Kapolka 2014-09-12 17:36:58 -07:00
parent 72f38900bb
commit 42c8701b26
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ void main(void) {
normal = normalize(gl_ModelViewMatrix * normal);
// pass along the vertex color
gl_FrontColor = vec4(gl_Color.rgb, 0.0);
gl_FrontColor = vec4(1.0, 1.0, 1.0, 0.0);
// and the texture coordinates
gl_TexCoord[0] = gl_MultiTexCoord0;

View file

@ -43,7 +43,7 @@ void main(void) {
interpolatedTangent = gl_ModelViewMatrix * interpolatedTangent;
// pass along the vertex color
gl_FrontColor = vec4(gl_Color.rgb, 0.0);
gl_FrontColor = vec4(1.0, 1.0, 1.0, 0.0);
// and the texture coordinates
gl_TexCoord[0] = gl_MultiTexCoord0;