Skip to content

Commit

Permalink
Will high precision floats make lines render on top?
Browse files Browse the repository at this point in the history
  • Loading branch information
davepagurek committed Nov 9, 2024
1 parent 5b12d51 commit c1347c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/webgl/shaders/line.frag
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
precision mediump int;
precision highp int;
precision highp float;

uniform vec4 uMaterialColor;
uniform int uStrokeCap;
Expand Down
3 changes: 2 additions & 1 deletion src/webgl/shaders/line.vert
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

#define PROCESSING_LINE_SHADER

precision mediump int;
precision highp int;
precision highp float;

uniform mat4 uModelViewMatrix;
uniform mat4 uProjectionMatrix;
Expand Down

0 comments on commit c1347c4

Please sign in to comment.