Commit a56383ff authored by Eskil Abrahamsen-Blomfeldt's avatar Eskil Abrahamsen-Blomfeldt
Browse files

Fix shader on OpenGL

Varying name has to match.
parent a8e56382
......@@ -50,7 +50,7 @@
#version 440
layout(location = 0) in vec2 textureCoord;
layout(location = 0) in vec2 qt_TexCoord0;
layout(location = 0) out vec4 fragColor;
layout(std140, binding = 0) uniform buf {
......@@ -66,7 +66,7 @@ void main(void)
vec3 sum = vec3(0.0, 0.0, 0.0);
for (int x = -radius; x <= radius; ++x) {
for (int y = -radius; y <= radius; ++y) {
vec2 c = textureCoord + vec2(x, y) * pixelStep;
vec2 c = qt_TexCoord0 + vec2(x, y) * pixelStep;
sum += texture(src, c).rgb;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment