Files
rust-engine/shaders/triangle.frag
2019-08-02 23:50:37 +02:00

11 lines
204 B
GLSL

#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);
}