quakeforge/libs/video/renderer/vulkan/shader/light_debug.frag
Bill Currie b113e8a46c [vulkan] Add debug lines for light splats
Disabled, but all that's needed is to uncomment the debug pipeline in
the compose subpass.
2023-06-28 11:47:26 +09:00

11 lines
245 B
GLSL

#version 450
#extension GL_GOOGLE_include_directive : enable
layout (location = 0) flat in uint light_index;
layout (location = 0) out vec4 frag_color;
void
main (void)
{
frag_color = gl_FrontFacing ? vec4 (1, 0, 1, 1) : vec4 (0, 1, 1, 1);
}