This commit is contained in:
Dave Griffiths 2009-10-21 19:12:32 +01:00
parent 7c1b038205
commit 69e89cb46f

View file

@ -20,9 +20,9 @@ void main()
//vec4 MidColour=gl_FrontMaterial.diffuse; //vec4 MidColour=gl_FrontMaterial.diffuse;
//if(P.y<0) MidColour=vec4(1,1,1,1); //if(P.y<0) MidColour=vec4(1,1,1,1);
vec4 MidColour=mix(vec4((1.0-gl_FrontMaterial.diffuse.r)*0.2f, vec4 MidColour=mix(vec4((1.0-gl_FrontMaterial.diffuse.r)*0.2,
(1.0-gl_FrontMaterial.diffuse.g)*0.2f, (1.0-gl_FrontMaterial.diffuse.g)*0.2,
(1.0-gl_FrontMaterial.diffuse.b)*0.2f,1), (1.0-gl_FrontMaterial.diffuse.b)*0.2,1),
gl_FrontMaterial.diffuse, gl_FrontMaterial.diffuse,
smoothstep(-5.0,5.0,P.y)); smoothstep(-5.0,5.0,P.y));