GLSL 100 doesn't do automatic type conversions.. (int to float)

This commit is contained in:
Edward Rudd 2013-12-31 16:26:49 -05:00
parent 4a817f45e5
commit a3c9f53335
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ void main()
/* Apply bush alpha by mathematical if */
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;
}