NYXGFX/examples/assets/shaders/simple.frag
2026-08-12 14:52:27 +01:00

25 lines
428 B
GLSL

#version 450
//
// IO
//
layout(location = 0) in vec2 in_UV;
layout(location = 0) out vec4 out_color;
//
// UNIFORMS
//
layout(binding = 0) uniform UnlitMaterial {
vec4 albedo;
} material;
layout(binding = 1) uniform sampler2D albedo_texture;
/// ----------------------------------------------------
/// ----------------------------------------------------
void main() {
out_color = texture(albedo_texture, in_UV);
}