adjusted fxaa shader start

This commit is contained in:
j3oss
2021-07-19 13:51:39 +02:00
parent 94c07145a6
commit 6405830263
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -1,8 +1,13 @@
#version 450
layout(set = 0, binding = 0) uniform sampler2D ppIN;
layout (location = 0) in vec2 outUV;
layout(location = 0) out vec4 outColor;
void main()
{
//outColor = vec4(1.0);
vec3 color = texture(ppIN, outUV).rgb;
outColor = vec4(color, 1.0);
}
+2 -2
View File
@@ -4,6 +4,6 @@ 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);
outUV = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
gl_Position = vec4(outUV * 2.0f - 1.0f, 0.0f, 1.0f);
}