We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e005de commit 8fb8e23Copy full SHA for 8fb8e23
1 file changed
src/point.vs
@@ -1,5 +1,5 @@
1
const VERTEX_SHADER = `
2
-precision mediump float;
+precision highp float;
3
4
uniform sampler2D colorTex;
5
uniform float colorTexRes;
@@ -47,7 +47,7 @@ void main() {
47
eps = 0.5 / colorTexRes;
48
float colorLinearIndex = colorIndex + globalState;
49
// Need to add cEps here to avoid floating point issue that can lead to
50
- // dramatic changes in which color is loaded as floor(3/2.9) = 1 but
+ // dramatic changes in which color is loaded as floor(3/2.9999) = 1 but
51
// floor(3/3.0001) = 0!
52
float colorRowIndex = floor((colorLinearIndex + eps) / colorTexRes);
53
0 commit comments