mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-13 23:26:19 +00:00
Change CTransform4f to inherit from CMatrix4f
This commit is contained in:
@@ -124,7 +124,7 @@ void CSceneNode::SetInheritance(bool InheritPos, bool InheritRot, bool InheritSc
|
||||
|
||||
void CSceneNode::LoadModelMatrix()
|
||||
{
|
||||
CGraphics::sMVPBlock.ModelMatrix = Transform().ToMatrix4f();
|
||||
CGraphics::sMVPBlock.ModelMatrix = Transform();
|
||||
CGraphics::UpdateMVPBlock();
|
||||
}
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ void CScriptNode::DrawSelection()
|
||||
CTransform4f Transform;
|
||||
Transform.Rotate(AbsoluteRotation());
|
||||
Transform.Translate(AbsolutePosition());
|
||||
CGraphics::sMVPBlock.ModelMatrix = Transform.ToMatrix4f();
|
||||
CGraphics::sMVPBlock.ModelMatrix = Transform;
|
||||
CGraphics::UpdateMVPBlock();
|
||||
|
||||
CGraphics::sPixelBlock.TintColor = CColor::skWhite;
|
||||
|
||||
Reference in New Issue
Block a user