third_party/spirv-cross/reference/shaders/flatten/matrix-conversion.flatten.frag
raw| 1 | #version 310 es |
| 2 | precision mediump float; |
| 3 | precision highp int; |
| 4 | |
| 5 | uniform vec4 UBO[4]; |
| 6 | layout(location = 0) out vec3 FragColor; |
| 7 | layout(location = 0) flat in vec3 vNormal; |
| 8 | |
| 9 | void main() |
| 10 | { |
| 11 | mat4 _19 = mat4(UBO[0], UBO[1], UBO[2], UBO[3]); |
| 12 | FragColor = mat3(_19[0].xyz, _19[1].xyz, _19[2].xyz) * vNormal; |
| 13 | } |
| 14 |