From c1347c46a786299466e1beab3344da3919975bf7 Mon Sep 17 00:00:00 2001 From: Dave Pagurek Date: Sat, 9 Nov 2024 10:12:28 -0500 Subject: [PATCH] Will high precision floats make lines render on top? --- src/webgl/shaders/line.frag | 3 ++- src/webgl/shaders/line.vert | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/webgl/shaders/line.frag b/src/webgl/shaders/line.frag index f4b5a5c40b..a0ca059040 100644 --- a/src/webgl/shaders/line.frag +++ b/src/webgl/shaders/line.frag @@ -1,4 +1,5 @@ -precision mediump int; +precision highp int; +precision highp float; uniform vec4 uMaterialColor; uniform int uStrokeCap; diff --git a/src/webgl/shaders/line.vert b/src/webgl/shaders/line.vert index 6758cfa54a..0b387392e8 100644 --- a/src/webgl/shaders/line.vert +++ b/src/webgl/shaders/line.vert @@ -18,7 +18,8 @@ #define PROCESSING_LINE_SHADER -precision mediump int; +precision highp int; +precision highp float; uniform mat4 uModelViewMatrix; uniform mat4 uProjectionMatrix;