23 lines
403 B
GLSL
23 lines
403 B
GLSL
#version 100
|
|
|
|
struct Buffer
|
|
{
|
|
mat4 MVPRowMajor;
|
|
mat4 MVPColMajor;
|
|
mat4 M;
|
|
};
|
|
|
|
uniform Buffer _13;
|
|
|
|
attribute vec4 Position;
|
|
|
|
void main()
|
|
{
|
|
vec4 c0 = _13.M * (Position * _13.MVPRowMajor);
|
|
vec4 c1 = _13.M * (_13.MVPColMajor * Position);
|
|
vec4 c2 = _13.M * (_13.MVPRowMajor * Position);
|
|
vec4 c3 = _13.M * (Position * _13.MVPColMajor);
|
|
gl_Position = ((c0 + c1) + c2) + c3;
|
|
}
|
|
|