diff options
Diffstat (limited to 'src/quick/scenegraph/shaders_ng/flatcolor.vert')
-rw-r--r-- | src/quick/scenegraph/shaders_ng/flatcolor.vert | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/quick/scenegraph/shaders_ng/flatcolor.vert b/src/quick/scenegraph/shaders_ng/flatcolor.vert new file mode 100644 index 0000000000..b5dfd32197 --- /dev/null +++ b/src/quick/scenegraph/shaders_ng/flatcolor.vert @@ -0,0 +1,15 @@ +#version 440 + +layout(location = 0) in vec4 vertexCoord; + +layout(std140, binding = 0) uniform buf { + mat4 matrix; + vec4 color; +} ubuf; + +out gl_PerVertex { vec4 gl_Position; }; + +void main() +{ + gl_Position = ubuf.matrix * vertexCoord; +} |