SPIRV-Cross/shaders/frag/sample-parameter.frag
2017-07-24 10:07:31 +02:00

12 lines
248 B
GLSL

#version 310 es
#extension GL_OES_sample_variables : require
precision mediump float;
layout(location = 0) out vec2 FragColor;
void main()
{
FragColor = gl_SamplePosition + vec2(gl_SampleMaskIn[0]) + float(gl_SampleID);
gl_SampleMask[0] = 1;
}