diff options
Diffstat (limited to 'src/effects/shaders/+glslcore/recursiveblur.vert')
-rw-r--r-- | src/effects/shaders/+glslcore/recursiveblur.vert | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/effects/shaders/+glslcore/recursiveblur.vert b/src/effects/shaders/+glslcore/recursiveblur.vert new file mode 100644 index 0000000..3dc3a0b --- /dev/null +++ b/src/effects/shaders/+glslcore/recursiveblur.vert @@ -0,0 +1,15 @@ +#version 150 core +in vec4 qt_Vertex; +in vec2 qt_MultiTexCoord0; +uniform mat4 qt_Matrix; +uniform float expandX; +uniform float expandY; +out vec2 qt_TexCoord0; + +void main() { + vec2 texCoord = qt_MultiTexCoord0; + texCoord.s = (texCoord.s - expandX) / (1.0 - 2.0 * expandX); + texCoord.t = (texCoord.t - expandY) / (1.0 - 2.0 * expandY); + qt_TexCoord0 = texCoord; + gl_Position = qt_Matrix * qt_Vertex; +} |