Fix precision propagation around shifts

Fixes #2541
This commit is contained in:
Greg Fischer
2021-02-26 11:34:51 -07:00
parent 51d672b8a8
commit c176085909
3 changed files with 51 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
#version 310 es
#extension GL_OES_sample_variables : enable
precision mediump float;
in lowp float lowfin;
in mediump float mediumfin;
@@ -59,4 +60,5 @@ void main()
mediumfout *= s.b;
mediumfout = ((mediumfin * mediumfin > 4.2) ? 2.0 * mediumfout : 3.0 * mediumfout);
mediumfout = ((gl_SampleMaskIn[0] >> uniform_medium > 0) ? 2.0 * mediumfout : 3.0 * mediumfout);
}