added texture. looks like copying the one from the compute output isn't going to totally work out of the box

This commit is contained in:
2019-07-16 22:33:05 -07:00
parent 5751965ce3
commit 937b4fc8ca
5 changed files with 361 additions and 39 deletions

View File

@@ -0,0 +1,7 @@
#version 450
layout(location = 0) in vec2 tex_coords;
layout(location = 0) out vec4 f_color;
layout(set = 0, binding = 0) uniform sampler2D tex;
void main() {
f_color = texture(tex, tex_coords);
}

View File

@@ -0,0 +1,7 @@
#version 450
layout(location = 0) in vec2 position;
layout(location = 0) out vec2 tex_coords;
void main() {
gl_Position = vec4(position, 0.0, 1.0);
tex_coords = position;
}