update _viewMatrix in DebugDraw

This commit is contained in:
ikpil 2023-09-14 23:10:06 +09:00
parent 01d7740e81
commit 5ac225a712
1 changed files with 1 additions and 0 deletions

View File

@ -648,6 +648,7 @@ public class DebugDraw
t.M42 = -cameraPos.y; t.M42 = -cameraPos.y;
t.M43 = -cameraPos.z; t.M43 = -cameraPos.z;
var mul = RcMatrix4x4f.Mul(r, t); var mul = RcMatrix4x4f.Mul(r, t);
mul.CopyTo(_viewMatrix);
GetOpenGlDraw().ViewMatrix(ref mul); GetOpenGlDraw().ViewMatrix(ref mul);
UpdateFrustum(); UpdateFrustum();
return mul; return mul;