[Graphics] SimpleMath 실습
·
게임개발/Graphics
Matrix를 이용하여 실시간 위치 변경 영상 // Game.hprivate: /* Constant Buffer */ TransformData _transformData; ComPtr _constantBuffer; /* SRT */ Vec3 _localPosition = { 0.f, 0.f, 0.f }; Vec3 _localRotation = { 0.f, 0.f, 0.f }; Vec3 _localScale = { 1.f, 1.f, 1.f };// Game.cppvoid Game::Update(){ _localPosition.x += 0.001f; // Create SRT Matrix scaleMatrix = Matrix::CreateScale(_localScale / 3); Matrix rotatio..