textures!!!
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
#version 450
|
||||
|
||||
layout(location = 0) in vec3 pos;
|
||||
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 = vec4(.3, (pos.y + 5.) / 10., .8, 1.0);
|
||||
f_color = texture(tex, tex_coords);
|
||||
}
|
||||
Reference in New Issue
Block a user