Remove warnings
This commit is contained in:
parent
ecd154b951
commit
6e99283904
2 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ varying vec4 constantColor;
|
|||
varying vec3 vViewVec;
|
||||
varying vec3 reflVec;
|
||||
|
||||
varying vec3 Diffuse;
|
||||
varying vec4 Diffuse;
|
||||
varying vec3 lightDir, halfVector;
|
||||
varying float alpha, fogCoord;
|
||||
|
||||
|
@ -35,7 +35,7 @@ void main (void)
|
|||
|
||||
//calculate the specular light
|
||||
if (NdotL > 0.0) {
|
||||
color += vec4(Diffuse, 1.0) * NdotL;
|
||||
color += Diffuse * NdotL;
|
||||
halfV = normalize(halfVector);
|
||||
NdotHV = max(dot(n, halfV), 0.0);
|
||||
if (gl_FrontMaterial.shininess > 0.0)
|
||||
|
|
|
@ -5,7 +5,7 @@ varying vec4 constantColor;
|
|||
varying vec3 vViewVec;
|
||||
varying vec3 reflVec;
|
||||
|
||||
varying vec3 Diffuse;
|
||||
varying vec4 Diffuse;
|
||||
varying vec3 normal, lightDir, halfVector;
|
||||
varying float alpha, fogCoord;
|
||||
|
||||
|
@ -47,7 +47,7 @@ void main(void)
|
|||
|
||||
// calculate the reflection vector
|
||||
vec4 reflect_eye = vec4(reflect(vertVec, VNormal), 0.0);
|
||||
reflVec = normalize(gl_ModelViewMatrixInverse * reflect_eye);
|
||||
reflVec = normalize(gl_ModelViewMatrixInverse * reflect_eye).xyz;
|
||||
|
||||
gl_FrontColor = gl_Color;
|
||||
constantColor = gl_FrontMaterial.emission
|
||||
|
|
Loading…
Add table
Reference in a new issue