SPIRV-Cross/reference/shaders/flatten/matrix-conversion.flatten.frag
Hans-Kristian Arntzen af75ef005f Update glslang and SPIRV-Tools.
A lot of changes in spirv-opt output.
Some new invalid SPIR-V was found but most of them were not significant
for SPIRV-Cross, so just marked them as invalid.
2018-09-27 11:10:22 +02:00

15 lines
307 B
GLSL

#version 310 es
precision mediump float;
precision highp int;
uniform vec4 UBO[4];
layout(location = 0) out vec3 FragColor;
layout(location = 0) flat in vec3 vNormal;
void main()
{
mat4 _19 = mat4(UBO[0], UBO[1], UBO[2], UBO[3]);
FragColor = mat3(_19[0].xyz, _19[1].xyz, _19[2].xyz) * vNormal;
}