diff --git a/plant-eyes/shaders/rocks.frag.glsl b/plant-eyes/shaders/rocks.frag.glsl index 5168286..c8224c7 100644 --- a/plant-eyes/shaders/rocks.frag.glsl +++ b/plant-eyes/shaders/rocks.frag.glsl @@ -20,9 +20,9 @@ void main() //vec4 MidColour=gl_FrontMaterial.diffuse; //if(P.y<0) MidColour=vec4(1,1,1,1); - vec4 MidColour=mix(vec4((1.0-gl_FrontMaterial.diffuse.r)*0.2f, - (1.0-gl_FrontMaterial.diffuse.g)*0.2f, - (1.0-gl_FrontMaterial.diffuse.b)*0.2f,1), + vec4 MidColour=mix(vec4((1.0-gl_FrontMaterial.diffuse.r)*0.2, + (1.0-gl_FrontMaterial.diffuse.g)*0.2, + (1.0-gl_FrontMaterial.diffuse.b)*0.2,1), gl_FrontMaterial.diffuse, smoothstep(-5.0,5.0,P.y));