From bc0958cc863083b4082161bf12456fdf28ab1c77 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 31 Jan 2026 02:51:16 +0000 Subject: Rename shader source in keeping with glsl expectations Swaps name/type of generated files to match class names and source files. --- gfx/gl/shaders/lighting.frag | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 gfx/gl/shaders/lighting.frag (limited to 'gfx/gl/shaders/lighting.frag') diff --git a/gfx/gl/shaders/lighting.frag b/gfx/gl/shaders/lighting.frag new file mode 100644 index 0000000..b5c6c8b --- /dev/null +++ b/gfx/gl/shaders/lighting.frag @@ -0,0 +1,17 @@ +#version 460 core + +out vec3 FragColor; + +in vec2 TexCoords; + +layout(binding = 2) uniform sampler2D gAlbedoSpec; +layout(binding = 3) uniform sampler2D gIllumination; + +void +main() +{ + const vec3 Albedo = texture(gAlbedoSpec, TexCoords).rgb; + const vec3 Illumination = texture(gIllumination, TexCoords).rgb; + + FragColor = Albedo * Illumination; +} -- cgit v1.2.3