Files
rust-engine/shaders/triangle.frag
2019-08-19 22:26:41 +02:00

12 lines
250 B
GLSL

#version 450
#extension GL_ARB_separate_shader_objects : enable
layout(binding = 1) uniform sampler2D tex;
layout(location = 0) in vec2 tex_coords;
layout(location = 0) out vec4 out_color;
void main() {
out_color = texture(tex, tex_coords);
}