mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Fix texture bumpmapping on some GPUs
This commit is contained in:
parent
0b0919e81c
commit
44eb01695a
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user