fix: correct matrix order
This commit is contained in:
parent
26600b8688
commit
f752fa0c80
|
@ -13,7 +13,7 @@ out vec3 FragPos;
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
vec4 pos = vec4(aPos, 1.0);
|
vec4 pos = vec4(aPos, 1.0);
|
||||||
mat4x4 mvp = _Projection * _Model * _View;
|
mat4x4 mvp = _Projection * _View * _Model;
|
||||||
|
|
||||||
gl_Position = mvp * pos;
|
gl_Position = mvp * pos;
|
||||||
FragPos = vec3(_Model * pos);
|
FragPos = vec3(_Model * pos);
|
||||||
|
|
Loading…
Reference in New Issue