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:
parent
0b0919e81c
commit
44eb01695a
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user