protected override void Update() { if (loadedModel) { loadedModel = false; ShowModelData(mdlName); camera.TargetOffSet = mdl.Origin; } if (MdlViewerCommon.Common.Updated) { mdl.SetBaseTransform(MdlViewerCommon.Common.ModelTransform.Matrix); MdlViewerCommon.Common.Updated = false; shaders.PositionX = MdlViewerCommon.Common.ModelTransform.Position.X; shaders.PositionY = MdlViewerCommon.Common.ModelTransform.Position.Y; shaders.PositionZ = MdlViewerCommon.Common.ModelTransform.Position.Z; shaders.RotationX = MdlViewerCommon.Common.ModelTransform.Rotation.X; shaders.RotationY = MdlViewerCommon.Common.ModelTransform.Rotation.Y; shaders.RotationZ = MdlViewerCommon.Common.ModelTransform.Rotation.Z; shaders.Scale = MdlViewerCommon.Common.ModelTransform.Size.X; } UpdateCamera(); base.Update(); }