Skip to content

Commit

Permalink
The Multi Pipeline now uses highp float precision by default, inste…
Browse files Browse the repository at this point in the history
…ad of `mediump`. This fixes issues with strange blue 'spots' appearing under WebGL on some Android devices. Fix #5751 #5659 #5655
  • Loading branch information
photonstorm committed Sep 28, 2021
1 parent 725a869 commit b968e46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/renderer/webgl/shaders/Multi-frag.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = [
'#define SHADER_NAME PHASER_MULTI_FS',
'',
'precision mediump float;',
'precision highp float;',
'',
'uniform sampler2D uMainSampler[%count%];',
'',
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/shaders/Multi-vert.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = [
'#define SHADER_NAME PHASER_MULTI_VS',
'',
'precision mediump float;',
'precision highp float;',
'',
'uniform mat4 uProjectionMatrix;',
'',
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/shaders/src/Multi.frag
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define SHADER_NAME PHASER_MULTI_FS

precision mediump float;
precision highp float;

uniform sampler2D uMainSampler[%count%];

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/webgl/shaders/src/Multi.vert
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define SHADER_NAME PHASER_MULTI_VS

precision mediump float;
precision highp float;

uniform mat4 uProjectionMatrix;

Expand Down

0 comments on commit b968e46

Please sign in to comment.