mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Fix highp issue in lens shader on gles2
This commit is contained in:
@@ -1,6 +1,14 @@
|
|||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
[vertex]
|
[vertex]
|
||||||
|
|
||||||
|
#ifdef USE_GLES_OVER_GL
|
||||||
|
#define mediump
|
||||||
|
#define highp
|
||||||
|
#else
|
||||||
|
precision highp float;
|
||||||
|
precision highp int;
|
||||||
|
#endif
|
||||||
|
|
||||||
attribute highp vec2 vertex; // attrib:0
|
attribute highp vec2 vertex; // attrib:0
|
||||||
/* clang-format on */
|
/* clang-format on */
|
||||||
|
|
||||||
@@ -20,6 +28,14 @@ void main() {
|
|||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
[fragment]
|
[fragment]
|
||||||
|
|
||||||
|
#ifdef USE_GLES_OVER_GL
|
||||||
|
#define mediump
|
||||||
|
#define highp
|
||||||
|
#else
|
||||||
|
precision mediump float;
|
||||||
|
precision highp int;
|
||||||
|
#endif
|
||||||
|
|
||||||
uniform sampler2D source; //texunit:0
|
uniform sampler2D source; //texunit:0
|
||||||
/* clang-format on */
|
/* clang-format on */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user