diff --git a/client/shaders/bumpmaps_liquids/opengl_fragment.glsl b/client/shaders/bumpmaps_liquids/opengl_fragment.glsl index ea618384..bf6bbf04 100644 --- a/client/shaders/bumpmaps_liquids/opengl_fragment.glsl +++ b/client/shaders/bumpmaps_liquids/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); diff --git a/client/shaders/bumpmaps_solids/opengl_fragment.glsl b/client/shaders/bumpmaps_solids/opengl_fragment.glsl index 6203592f..c72e8cbc 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);