GLSL 100 doesn't do automatic type conversions.. (int to float)
This commit is contained in:
parent
4a817f45e5
commit
a3c9f53335
|
@ -33,7 +33,7 @@ void main()
|
||||||
|
|
||||||
/* Apply bush alpha by mathematical if */
|
/* Apply bush alpha by mathematical if */
|
||||||
float underBush = float(v_texCoord.y < bushDepth);
|
float underBush = float(v_texCoord.y < bushDepth);
|
||||||
frag.a *= clamp(bushOpacity + underBush, 0, 1);
|
frag.a *= clamp(bushOpacity + underBush, 0.0, 1.0);
|
||||||
|
|
||||||
gl_FragColor = frag;
|
gl_FragColor = frag;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue