SPIRV-Cross/shaders-msl/frag/cull-distance-varying.frag
2021-04-19 12:10:49 +02:00

11 lines
171 B
GLSL

#version 450
in float gl_CullDistance[2];
layout(location = 0) out vec4 FragColor;
void main()
{
FragColor = vec4(1.0 - gl_CullDistance[0] - gl_CullDistance[1]);
}