Welcome to mirror list, hosted at ThFree Co, Russian Federation.

matrix-conversion.flatten.frag « flatten « shaders « opt « reference - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee79bf5b8a1b30ce3737bb47d8496b749c66322e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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;
}