This commit is contained in:
Dave Griffiths 2009-10-21 19:11:30 +01:00
parent 472aa339dc
commit 7c1b038205

View file

@ -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-gl_FrontMaterial.diffuse.r)*0.2f,
(1-gl_FrontMaterial.diffuse.g)*0.2f,
(1-gl_FrontMaterial.diffuse.b)*0.2f,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),
gl_FrontMaterial.diffuse,
smoothstep(-5.0,5.0,P.y));