Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fix floating-point suffix unsupported prior to GLSL ES 3.00 (#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and keianhzo committed Oct 21, 2019
1 parent da8da80 commit a4d7968
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/cpp/shaders/clear_color.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ varying vec4 v_color;
varying vec2 v_uv;

void main() {
vec4 color = vec4(1.0f, 1.0f, 1.0f, 1.0f);
if ((v_uv.x < 0.0f) || (v_uv.x > 1.0f)) {
color.a = 0.0f;
vec4 color = vec4(1.0, 1.0, 1.0, 1.0);
if ((v_uv.x < 0.0) || (v_uv.x > 1.0)) {
color.a = 0.0;
}
gl_FragColor = color * v_color;
}
Expand Down

0 comments on commit a4d7968

Please sign in to comment.