added deferred and mrt shaders

This commit is contained in:
J3oss
2021-07-03 22:23:06 +02:00
parent 2cfcb0b4a9
commit 81e3e9ef0a
4 changed files with 215 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#version 450
layout (location = 0) out vec2 outUV;
void main()
{
outUV = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
gl_Position = vec4(outUV * 2.0f - 1.0f, 0.0f, 1.0f);
}