zenyx-engine/shaders/shader.frag

11 lines
345 B
GLSL
Raw Permalink Normal View History

2025-04-16 01:24:10 +00:00
#version 450
layout(location = 0) in vec2 tex_coords;
layout(set = 1, binding = 0) uniform texture2D t_diffuse;
layout(set = 1, binding = 1) uniform sampler s_diffuse;
2025-04-16 01:24:10 +00:00
layout(location = 0) out vec4 out_color;
// layout(group = 0, binding = 0) out texture2D;
2025-04-16 01:24:10 +00:00
void main() {
out_color = texture(sampler2D(t_diffuse, s_diffuse), tex_coords);
2025-04-16 01:24:10 +00:00
}