SPIRV-Cross/shaders-hlsl/frag/sample-mask-in.frag

12 lines
156 B
GLSL
Raw Normal View History

2020-07-23 17:09:43 +00:00
#version 450
layout(location = 0) out vec4 FragColor;
void main()
{
if ((gl_SampleMaskIn[0] & (1 << gl_SampleID)) != 0)
{
FragColor = vec4(1.0);
}
}