glsl fix
This commit is contained in:
parent
7c1b038205
commit
69e89cb46f
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue