diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/static_blend.frag | 2 | ||||
-rw-r--r-- | src/static_blit.frag | 2 | ||||
-rw-r--r-- | src/static_fill.frag | 2 | ||||
-rw-r--r-- | src/static_gltex.frag | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/static_blend.frag b/src/static_blend.frag index 5ac9ac4..669558d 100644 --- a/src/static_blend.frag +++ b/src/static_blend.frag @@ -29,6 +29,8 @@ * A basic fragment shader which applies a 2D texture. */ +precision mediump float; + uniform sampler2D texture; uniform vec3 fgcolor; uniform vec3 bgcolor; diff --git a/src/static_blit.frag b/src/static_blit.frag index 7f0de9b..8b36d9e 100644 --- a/src/static_blit.frag +++ b/src/static_blit.frag @@ -29,6 +29,8 @@ * A basic fragment shader which applies a 2D texture. */ +precision mediump float; + uniform sampler2D texture; varying vec2 texpos; diff --git a/src/static_fill.frag b/src/static_fill.frag index 00f08ee..9241ce0 100644 --- a/src/static_fill.frag +++ b/src/static_fill.frag @@ -29,6 +29,8 @@ * A basic fragment shader which applies a color directly. */ +precision mediump float; + varying vec4 col; void main() diff --git a/src/static_gltex.frag b/src/static_gltex.frag index 49b8948..7804011 100644 --- a/src/static_gltex.frag +++ b/src/static_gltex.frag @@ -30,6 +30,8 @@ * background colors. */ +precision mediump float; + uniform sampler2D atlas; uniform float advance_htex; uniform float advance_vtex; |