Files
Lucina3DS/externals/glslang/Test/spv.depthUnchanged.frag
2025-02-06 22:24:29 +08:00

9 lines
190 B
GLSL

#version 430
layout(location = 0) out vec4 outColor;
layout(depth_unchanged) out float gl_FragDepth;
void main() {
outColor = vec4(1.0, 0.0, 0.0, 1.0);
gl_FragDepth = gl_FragCoord.y;
}