summaryrefslogtreecommitdiff
path: root/src/renderergl2/glsl/bokeh_vp.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderergl2/glsl/bokeh_vp.glsl')
-rw-r--r--src/renderergl2/glsl/bokeh_vp.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderergl2/glsl/bokeh_vp.glsl b/src/renderergl2/glsl/bokeh_vp.glsl
index 5ca41600..bdaa74af 100644
--- a/src/renderergl2/glsl/bokeh_vp.glsl
+++ b/src/renderergl2/glsl/bokeh_vp.glsl
@@ -1,4 +1,4 @@
-attribute vec4 attr_Position;
+attribute vec3 attr_Position;
attribute vec4 attr_TexCoord0;
uniform mat4 u_ModelViewProjectionMatrix;
@@ -8,6 +8,6 @@ varying vec2 var_TexCoords;
void main()
{
- gl_Position = u_ModelViewProjectionMatrix * attr_Position;
+ gl_Position = u_ModelViewProjectionMatrix * vec4(attr_Position, 1.0);
var_TexCoords = attr_TexCoord0.st;
}