Skip to content

Commit

Permalink
fix(2d): opt shader precision (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
singlecoder authored Oct 15, 2021
1 parent e8cc0e1 commit 3b4a242
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions packages/core/src/shaderlib/extra/sprite-mask.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
precision mediump float;
precision mediump int;

uniform sampler2D u_maskTexture;
uniform float u_maskAlphaCutoff;
varying vec2 v_uv;
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/shaderlib/extra/sprite-mask.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
precision highp float;

uniform mat4 u_VPMat;

attribute vec3 POSITION;
Expand Down
3 changes: 0 additions & 3 deletions packages/core/src/shaderlib/extra/sprite.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
precision mediump float;
precision mediump int;

#ifdef USE_CUSTOM_TEXTURE
uniform sampler2D u_cusTomTexture;
#else
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/shaderlib/extra/sprite.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
precision highp float;

#ifdef USE_MODEL_MATRIX
uniform mat4 u_MVPMat;
#else
Expand Down

0 comments on commit 3b4a242

Please sign in to comment.