Set model matrix to fix some transform issues
This commit is contained in:
parent
7bea95b199
commit
f8a754058a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -60,6 +60,7 @@ namespace Switch_Toolbox.Library.Rendering
|
||||
GL.DepthFunc(DepthFunction.Lequal);
|
||||
|
||||
control.CurrentShader = solidColorShaderProgram;
|
||||
control.UpdateModelMatrix(Matrix4.Identity);
|
||||
|
||||
solidColorShaderProgram.EnableVertexAttributes();
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user