1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Set model matrix to fix some transform issues

This commit is contained in:
KillzXGaming 2019-04-05 19:52:59 -04:00
parent 7bea95b199
commit f8a754058a
7 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -60,6 +60,7 @@ namespace Switch_Toolbox.Library.Rendering
GL.DepthFunc(DepthFunction.Lequal);
control.CurrentShader = solidColorShaderProgram;
control.UpdateModelMatrix(Matrix4.Identity);
solidColorShaderProgram.EnableVertexAttributes();

View File

@ -87,6 +87,7 @@ namespace Switch_Toolbox.Library.Rendering
// GL.Disable(EnableCap.CullFace);
control.CurrentShader = gridShaderProgram;
control.UpdateModelMatrix(Matrix4.Identity);
Matrix4 previewScale = Utils.TransformValues(Vector3.Zero, Vector3.Zero, Runtime.previewScale);

View File

@ -102,6 +102,7 @@ namespace Switch_Toolbox.Library.Rendering
GL.Disable(EnableCap.DepthTest);
control.CurrentShader = solidColorShaderProgram;
control.UpdateModelMatrix(Matrix4.Identity);
Matrix4 previewScale = Utils.TransformValues(Vector3.Zero, Vector3.Zero, Runtime.previewScale);