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