mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
5af5222249
- https://github.com/KhronosGroup/SPIRV-Cross/commit/ 66a407285e36a0f772e3209cb86ded6e3d900f6a
21 lines
379 B
GLSL
21 lines
379 B
GLSL
#version 310 es
|
|
|
|
uniform Buffer
|
|
{
|
|
layout(row_major) mat4 MVPRowMajor;
|
|
layout(column_major) mat4 MVPColMajor;
|
|
mat4 M;
|
|
};
|
|
|
|
layout(location = 0) in vec4 Position;
|
|
|
|
void main()
|
|
{
|
|
vec4 c0 = M * (MVPRowMajor * Position);
|
|
vec4 c1 = M * (MVPColMajor * Position);
|
|
vec4 c2 = M * (Position * MVPRowMajor);
|
|
vec4 c3 = M * (Position * MVPColMajor);
|
|
gl_Position = c0 + c1 + c2 + c3;
|
|
}
|
|
|