Fix texture bumpmapping on some GPUs

master
Zeg9 2013-08-02 12:32:21 +02:00 committed by PilzAdam
parent 0b0919e81c
commit 44eb01695a
2 changed files with 2 additions and 4 deletions

View File

@ -26,8 +26,7 @@ void main (void)
float specular = pow(clamp(dot(R, lVec), 0.0, 1.0),1.0);
vec4 vSpecular = 0.2*specular * diffuse;
color += vSpecular;
color += vec3(0.2*specular*diffuse);
col = vec4(color.r, color.g, color.b, alpha);

View File

@ -26,8 +26,7 @@ void main (void)
float specular = pow(clamp(dot(R, lVec), 0.0, 1.0),1.0);
vec4 vSpecular = 0.2*specular * diffuse;
color += vSpecular;
color += vec3(0.2*specular*diffuse);
col = vec4(color.r, color.g, color.b, alpha);