diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders/flatten/matrix-conversion.flatten.frag')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders/flatten/matrix-conversion.flatten.frag | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders/flatten/matrix-conversion.flatten.frag b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders/flatten/matrix-conversion.flatten.frag new file mode 100644 index 00000000000..ee79bf5b8a1 --- /dev/null +++ b/3rdparty/bgfx/3rdparty/spirv-cross/reference/shaders/flatten/matrix-conversion.flatten.frag @@ -0,0 +1,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; +} + |