Merge pull request #328 from pcwalton/precision-highp
Only define `precision highp sampler2D` in OpenGL ES.
This commit is contained in:
commit
aa1279d692
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform sampler2D uSrc;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
in ivec2 aPosition;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec4 uColor;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec4 uRect;
|
||||
uniform vec2 uFramebufferSize;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec4 uColor;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform sampler2D uTexture;
|
||||
uniform vec4 uColor;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
uniform vec2 uTextureSize;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec4 uGroundColor;
|
||||
uniform vec4 uGridlineColor;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform mat4 uTransform;
|
||||
uniform int uGridlineCount;
|
||||
|
|
|
@ -15,7 +15,10 @@
|
|||
#extension GL_GOOGLE_include_directive : enable
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
uniform vec2 uTileSize;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform mat4 uOldTransform;
|
||||
uniform sampler2D uTexture;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform mat4 uNewTransform;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
out vec4 oFragColor;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
in vec3 aPosition;
|
||||
|
||||
|
|
|
@ -36,7 +36,10 @@
|
|||
#extension GL_GOOGLE_include_directive : enable
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform mat4 uTransform;
|
||||
uniform vec2 uTileSize;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform sampler2D uSrc;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
in ivec2 aTileOffset;
|
||||
in ivec2 aDestTileOrigin;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
uniform sampler2D uSrc;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform mat4 uTransform;
|
||||
uniform vec2 uTileSize;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform sampler2D uSrc;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
in ivec2 aPosition;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec4 uColor;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec4 uRect;
|
||||
uniform vec2 uFramebufferSize;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec4 uColor;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform sampler2D uTexture;
|
||||
uniform vec4 uColor;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
uniform vec2 uTextureSize;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec4 uGroundColor;
|
||||
uniform vec4 uGridlineColor;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform mat4 uTransform;
|
||||
uniform int uGridlineCount;
|
||||
|
|
|
@ -15,7 +15,10 @@
|
|||
#extension GL_GOOGLE_include_directive : enable
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -15,7 +15,10 @@
|
|||
#extension GL_GOOGLE_include_directive : enable
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
uniform vec2 uTileSize;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform mat4 uOldTransform;
|
||||
uniform sampler2D uTexture;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform mat4 uNewTransform;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
out vec4 oFragColor;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
in vec3 aPosition;
|
||||
|
||||
|
|
|
@ -36,7 +36,10 @@
|
|||
#extension GL_GOOGLE_include_directive : enable
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform mat4 uTransform;
|
||||
uniform vec2 uTileSize;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform sampler2D uSrc;
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
in ivec2 aTileOffset;
|
||||
in ivec2 aDestTileOrigin;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
uniform sampler2D uSrc;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
|
||||
|
||||
precision highp float;
|
||||
precision highp sampler2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
uniform mat4 uTransform;
|
||||
uniform vec2 uTileSize;
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform sampler2D uSrc;
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
in ivec2 aPosition;
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform vec4 uColor;
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform vec4 uRect;
|
||||
uniform vec2 uFramebufferSize;
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform vec4 uColor;
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform sampler2D uTexture;
|
||||
uniform vec4 uColor;
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
uniform vec2 uTextureSize;
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform vec4 uGroundColor;
|
||||
uniform vec4 uGridlineColor;
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform mat4 uTransform;
|
||||
uniform int uGridlineCount;
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
#extension GL_GOOGLE_include_directive : enable
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
#include "fill.inc.glsl"
|
||||
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
#extension GL_GOOGLE_include_directive : enable
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
#include "fill.inc.glsl"
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
uniform vec2 uTileSize;
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform mat4 uOldTransform;
|
||||
uniform sampler2D uTexture;
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform mat4 uNewTransform;
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
out vec4 oFragColor;
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
in vec3 aPosition;
|
||||
|
||||
|
|
|
@ -34,7 +34,10 @@
|
|||
#extension GL_GOOGLE_include_directive : enable
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
#define EPSILON 0.00001
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform mat4 uTransform;
|
||||
uniform vec2 uTileSize;
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform sampler2D uSrc;
|
||||
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
in ivec2 aTileOffset;
|
||||
in ivec2 aDestTileOrigin;
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform vec2 uFramebufferSize;
|
||||
uniform sampler2D uSrc;
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
// except according to those terms.
|
||||
|
||||
precision highp float;
|
||||
|
||||
#ifdef GL_ES
|
||||
precision highp sampler2D;
|
||||
#endif
|
||||
|
||||
uniform mat4 uTransform;
|
||||
uniform vec2 uTileSize;
|
||||
|
|
Loading…
Reference in New Issue