Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save LoadDragon0000000000/422010fb6a935d94d9ce06c6cebbb79e to your computer and use it in GitHub Desktop.
Save LoadDragon0000000000/422010fb6a935d94d9ce06c6cebbb79e to your computer and use it in GitHub Desktop.
// 視点位置を確定
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