SPIRV-Cross/shaders/flatten/matrix-conversion.flatten.frag
2018-07-06 10:57:23 +02:00

15 lines
229 B
GLSL

#version 310 es
precision mediump float;
layout(location = 0) out vec3 FragColor;
layout(location = 0) flat in vec3 vNormal;
layout(binding = 0, std140) uniform UBO
{
mat4 m;
};
void main()
{
FragColor = mat3(m) * vNormal;
}