Skip to content

Commit

Permalink
[all] Fixes some shaders precision for mobile
Browse files Browse the repository at this point in the history
Fixes #1410 and #1411.

This commit switches from mediump to highp precision, for shaders that
were bugged on mobile (NodeCircleProgram, NodeImageProgram, and
EdgeCurveProgram).
  • Loading branch information
jacomyal committed Mar 22, 2024
1 parent c34233b commit 90fac08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/edge-curve/src/shader-frag.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// language=GLSL
const SHADER_SOURCE = /*glsl*/ `
precision mediump float;
precision highp float;
varying vec4 v_color;
varying float v_thickness;
Expand Down
2 changes: 1 addition & 1 deletion packages/node-image/src/shader-frag.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// language=GLSL
const SHADER_SOURCE = /*glsl*/ `
precision mediump float;
precision highp float;
varying vec4 v_color;
varying vec2 v_diffVector;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// language=GLSL
const SHADER_SOURCE = /*glsl*/ `
precision mediump float;
precision highp float;
varying vec4 v_color;
varying vec2 v_diffVector;
Expand Down

0 comments on commit 90fac08

Please sign in to comment.