a3fe9756d2
MSL does not support this, so we have to emulate it by passing it around as a varying between stages. We use a special "user(clipN)" attribute for this rather than locN which is used for user varyings.
11 lines
171 B
GLSL
11 lines
171 B
GLSL
#version 450
|
|
|
|
in float gl_ClipDistance[2];
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
void main()
|
|
{
|
|
FragColor = vec4(1.0 - gl_ClipDistance[0] - gl_ClipDistance[1]);
|
|
}
|