SPIRV-Cross/shaders-hlsl/frag/sample-mask-in.frag
2020-07-27 14:14:26 +02:00

12 lines
156 B
GLSL

#version 450
layout(location = 0) out vec4 FragColor;
void main()
{
if ((gl_SampleMaskIn[0] & (1 << gl_SampleID)) != 0)
{
FragColor = vec4(1.0);
}
}