Only define `precision highp sampler2D` in OpenGL ES.

Closes #309.
This commit is contained in:
Patrick Walton 2020-05-08 16:59:01 -07:00
parent 1a37b7f819
commit 2ad02b0b78
68 changed files with 249 additions and 45 deletions

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform sampler2D uSrc;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
in ivec2 aPosition;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec4 uColor;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec4 uRect;
uniform vec2 uFramebufferSize;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec4 uColor;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec2 uFramebufferSize;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform sampler2D uTexture;
uniform vec4 uColor;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec2 uFramebufferSize;
uniform vec2 uTextureSize;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec4 uGroundColor;
uniform vec4 uGridlineColor;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform mat4 uTransform;
uniform int uGridlineCount;

View File

@ -15,7 +15,10 @@
#extension GL_GOOGLE_include_directive : enable
precision highp float;
precision highp sampler2D;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec2 uFramebufferSize;
uniform vec2 uTileSize;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform mat4 uOldTransform;
uniform sampler2D uTexture;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform mat4 uNewTransform;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
out vec4 oFragColor;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
in vec3 aPosition;

View File

@ -36,7 +36,10 @@
#extension GL_GOOGLE_include_directive : enable
precision highp float;
precision highp sampler2D;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform mat4 uTransform;
uniform vec2 uTileSize;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform sampler2D uSrc;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
in ivec2 aTileOffset;
in ivec2 aDestTileOrigin;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec2 uFramebufferSize;
uniform sampler2D uSrc;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform mat4 uTransform;
uniform vec2 uTileSize;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform sampler2D uSrc;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
in ivec2 aPosition;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec4 uColor;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec4 uRect;
uniform vec2 uFramebufferSize;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec4 uColor;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec2 uFramebufferSize;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform sampler2D uTexture;
uniform vec4 uColor;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec2 uFramebufferSize;
uniform vec2 uTextureSize;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec4 uGroundColor;
uniform vec4 uGridlineColor;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform mat4 uTransform;
uniform int uGridlineCount;

View File

@ -15,7 +15,10 @@
#extension GL_GOOGLE_include_directive : enable
precision highp float;
precision highp sampler2D;

View File

@ -15,7 +15,10 @@
#extension GL_GOOGLE_include_directive : enable
precision highp float;
precision highp sampler2D;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec2 uFramebufferSize;
uniform vec2 uTileSize;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform mat4 uOldTransform;
uniform sampler2D uTexture;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform mat4 uNewTransform;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
out vec4 oFragColor;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
in vec3 aPosition;

View File

@ -36,7 +36,10 @@
#extension GL_GOOGLE_include_directive : enable
precision highp float;
precision highp sampler2D;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform mat4 uTransform;
uniform vec2 uTileSize;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform sampler2D uSrc;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
in ivec2 aTileOffset;
in ivec2 aDestTileOrigin;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform vec2 uFramebufferSize;
uniform sampler2D uSrc;

View File

@ -13,7 +13,10 @@
precision highp float;
precision highp sampler2D;
uniform mat4 uTransform;
uniform vec2 uTileSize;

View File

@ -11,7 +11,10 @@
// except according to those terms.
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
uniform sampler2D uSrc;

View File

@ -11,7 +11,10 @@
// except according to those terms.
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
in ivec2 aPosition;

View File

@ -11,7 +11,10 @@
// except according to those terms.
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
uniform vec4 uColor;

View File

@ -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;

View File

@ -11,7 +11,10 @@
// except according to those terms.
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
uniform vec4 uColor;

View File

@ -11,7 +11,10 @@
// except according to those terms.
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
uniform vec2 uFramebufferSize;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -13,7 +13,10 @@
#extension GL_GOOGLE_include_directive : enable
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
#include "fill.inc.glsl"

View File

@ -13,7 +13,10 @@
#extension GL_GOOGLE_include_directive : enable
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
#include "fill.inc.glsl"

View File

@ -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;

View File

@ -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;

View File

@ -11,7 +11,10 @@
// except according to those terms.
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
uniform mat4 uNewTransform;

View File

@ -11,7 +11,10 @@
// except according to those terms.
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
out vec4 oFragColor;

View File

@ -11,7 +11,10 @@
// except according to those terms.
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
in vec3 aPosition;

View File

@ -34,7 +34,10 @@
#extension GL_GOOGLE_include_directive : enable
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
#define EPSILON 0.00001

View File

@ -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;

View File

@ -11,7 +11,10 @@
// except according to those terms.
precision highp float;
#ifdef GL_ES
precision highp sampler2D;
#endif
uniform sampler2D uSrc;

View File

@ -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;

View File

@ -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;

View File

@ -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;