SPIRV-Cross/shaders-msl/frag/binary-unpack-pack-arguments.frag
Hans-Kristian Arntzen 192a882df3 Also unpack regular unary/binary operations on MSL.
Apparently MSL gets confused when you have packed_float3 op float3 ...
2018-06-11 16:23:09 +02:00

16 lines
213 B
GLSL

#version 450
layout(location = 0) out vec3 FragColor;
layout(binding = 0, std140) uniform UBO
{
vec3 color;
float v;
};
layout(location = 0) in vec3 vIn;
void main()
{
FragColor = cross(vIn, color - vIn);
}