NYXGFX/examples/assets/shaders/simple.frag

26 lines
428 B
GLSL
Raw Normal View History

2026-08-12 02:11:57 +01:00
#version 450
2026-08-12 14:52:27 +01:00
//
// IO
//
layout(location = 0) in vec2 in_UV;
layout(location = 0) out vec4 out_color;
//
// UNIFORMS
//
2026-08-12 02:11:57 +01:00
layout(binding = 0) uniform UnlitMaterial {
vec4 albedo;
} material;
2026-08-12 14:52:27 +01:00
layout(binding = 1) uniform sampler2D albedo_texture;
2026-08-12 02:11:57 +01:00
2026-08-12 14:52:27 +01:00
/// ----------------------------------------------------
/// ----------------------------------------------------
2026-08-12 02:11:57 +01:00
void main() {
2026-08-12 14:52:27 +01:00
out_color = texture(albedo_texture, in_UV);
2026-08-12 02:11:57 +01:00
}