Created
December 6, 2019 04:35
-
-
Save LoadDragon0000000000/422010fb6a935d94d9ce06c6cebbb79e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 視点位置を確定 | |
g_position = ::Effekseer::Vector3D(0.0f, 0.50f, 15.0f); | |
MessageBox(NULL, "g_poscamera", "DEBUG", MB_OK); | |
// 投影行列を設定 | |
g_renderer->SetProjectionMatrix( | |
::Effekseer::Matrix44().PerspectiveFovLH(90.0f / 180.0f * 3.14f, (float)1920 / (float)1080, 1.0f, 100.0f)); | |
MessageBox(NULL, "g_perspective", "DEBUG", MB_OK); | |
// カメラ行列を設定 | |
g_renderer->SetCameraMatrix( | |
::Effekseer::Matrix44().LookAtRH(g_position, ::Effekseer::Vector3D(0.0f, 0.50f, 0.0f), ::Effekseer::Vector3D(0.0f, 1.0f, 0.0f))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment