1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-15 13:55:11 -05:00

Fix texture bumpmapping on some GPUs

This commit is contained in:
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); float specular = pow(clamp(dot(R, lVec), 0.0, 1.0),1.0);
vec4 vSpecular = 0.2*specular * diffuse; color += vec3(0.2*specular*diffuse);
color += vSpecular;
col = vec4(color.r, color.g, color.b, alpha); 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); float specular = pow(clamp(dot(R, lVec), 0.0, 1.0),1.0);
vec4 vSpecular = 0.2*specular * diffuse; color += vec3(0.2*specular*diffuse);
color += vSpecular;
col = vec4(color.r, color.g, color.b, alpha); col = vec4(color.r, color.g, color.b, alpha);