summaryrefslogtreecommitdiffstats
path: root/src/runtime/shaders/compositor_ms2.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/shaders/compositor_ms2.frag')
-rw-r--r--src/runtime/shaders/compositor_ms2.frag5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/runtime/shaders/compositor_ms2.frag b/src/runtime/shaders/compositor_ms2.frag
index 40b50d4..f920a7b 100644
--- a/src/runtime/shaders/compositor_ms2.frag
+++ b/src/runtime/shaders/compositor_ms2.frag
@@ -1,14 +1,15 @@
#version 310 es
+precision highp float;
in vec2 texCoord;
-uniform sampler2DMS tex;
+uniform highp sampler2DMS tex;
out vec4 fragColor;
void main()
{
- ivec2 tc = ivec2(floor(textureSize(tex) * texCoord));
+ ivec2 tc = ivec2(floor(vec2(textureSize(tex)) * texCoord));
vec4 c = texelFetch(tex, tc, 0) + texelFetch(tex, tc, 1);
c /= 2.0;
// This discard, while not necessarily ideal for some GPUs, is necessary to