diff options
Diffstat (limited to 'tests/manual/nodetypes_ng/wobble.vert')
-rw-r--r-- | tests/manual/nodetypes_ng/wobble.vert | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/manual/nodetypes_ng/wobble.vert b/tests/manual/nodetypes_ng/wobble.vert new file mode 100644 index 0000000000..a49b2d9a9f --- /dev/null +++ b/tests/manual/nodetypes_ng/wobble.vert @@ -0,0 +1,22 @@ +#version 440 + +layout(location = 0) in vec4 qt_Vertex; +layout(location = 1) in vec2 qt_MultiTexCoord0; + +layout(location = 0) out vec2 qt_TexCoord0; + +layout(std140, binding = 0) uniform buf { + mat4 qt_Matrix; + float qt_Opacity; + float amplitude; + float frequency; + float time; +} ubuf; + +out gl_PerVertex { vec4 gl_Position; }; + +void main() +{ + qt_TexCoord0 = qt_MultiTexCoord0; + gl_Position = ubuf.qt_Matrix * qt_Vertex; +} |