diff options
author | Zeg9 <dazeg9@gmail.com> | 2013-08-02 12:32:21 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-08-04 21:49:48 +0200 |
commit | 44eb01695a1e8f4322ca2f8553c98c5d5523c93e (patch) | |
tree | 6e40bc7a5e1862ecf491a7ce0fb2ecf9b7ddb684 /client/shaders/bumpmaps_solids | |
parent | 0b0919e81c3365c2564a17f06d75a5fa314cf786 (diff) | |
download | minetest-44eb01695a1e8f4322ca2f8553c98c5d5523c93e.tar.gz minetest-44eb01695a1e8f4322ca2f8553c98c5d5523c93e.tar.bz2 minetest-44eb01695a1e8f4322ca2f8553c98c5d5523c93e.zip |
Fix texture bumpmapping on some GPUs
Diffstat (limited to 'client/shaders/bumpmaps_solids')
-rw-r--r-- | client/shaders/bumpmaps_solids/opengl_fragment.glsl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/shaders/bumpmaps_solids/opengl_fragment.glsl b/client/shaders/bumpmaps_solids/opengl_fragment.glsl index 6203592f7..c72e8cbce 100644 --- a/client/shaders/bumpmaps_solids/opengl_fragment.glsl +++ b/client/shaders/bumpmaps_solids/opengl_fragment.glsl @@ -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);
|