SPIRV-Cross/shaders-msl/vert/interface-block-block-composites.frag
Hans-Kristian Arntzen 5345756cab MSL: Support composites inside I/O blocks
I had to refactor the existing add_interface_block as it was
getting extremely large. Now it's all split up into different readable
functions.
2019-01-09 09:33:10 +01:00

18 lines
293 B
GLSL

#version 450
layout(location = 0) in mat3 vMatrix;
layout(location = 4) in Vert
{
mat3 wMatrix;
vec4 wTmp;
float arr[4];
};
layout(location = 0) out vec4 FragColor;
void main()
{
FragColor = wMatrix[0].xxyy + wTmp + vMatrix[1].yyzz;
for (int i = 0; i < 4; i++)
FragColor += arr[i];
}