forked from bit/DotRecastNetSim
update _viewMatrix in DebugDraw
This commit is contained in:
parent
01d7740e81
commit
5ac225a712
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue