SPIRV-Cross/shaders-msl/frag/read-cull-clip-distance-in-function.frag
Hans-Kristian Arntzen 682a227f4b MSL: Make builtin argument type declaration context sensitive.
Sometimes we'll need array template, sometimes not 🤷.
2021-04-19 12:10:49 +02:00

21 lines
292 B
GLSL

#version 450
layout(location = 0) out vec4 FragColor;
in float gl_CullDistance[2];
in float gl_ClipDistance[2];
vec4 read_in_func()
{
return vec4(
gl_CullDistance[0],
gl_CullDistance[1],
gl_ClipDistance[0],
gl_ClipDistance[1]);
}
void main()
{
FragColor = read_in_func();
}