ubo working

This commit is contained in:
2019-08-18 23:28:17 +02:00
parent 1deb7c7e47
commit af7be04615
3 changed files with 9 additions and 8 deletions

View File

@@ -5,8 +5,8 @@ layout(location = 0) in vec2 tex_coords;
layout(location = 0) out vec4 out_color;
layout(binding = 1) uniform sampler2D tex;
//layout(binding = 1) uniform sampler2D tex;
void main() {
out_color = texture(tex, tex_coords);
out_color = vec4(1.0, 0.0, 0.0, 1.0);// texture(tex, tex_coords);
}