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

14 lines
291 B
GLSL

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