implement billboard shader and add new example

This commit is contained in:
ohyzha
2024-07-18 14:48:50 +03:00
parent 5023fe64ce
commit cfb8b76801
14 changed files with 406 additions and 12 deletions

View File

@@ -32,8 +32,7 @@ namespace OpenVulkano
vec = Math::Utils::normalize(vec);
}
float timeScale = CURRENT_FRAME.frameTime; //TODO
float timeScale = 5 * CURRENT_FRAME.frameTime; //TODO
vec = vec * timeScale * 3.0f; // scale vector
if (input->GetButton(m_actionBoost))
{

View File

@@ -18,7 +18,7 @@ namespace OpenVulkano
class FreeCamCameraController final : public CameraController
{
float m_yaw = 0, m_pitch = 0, m_boostFactor = 2;
float m_yaw = 0, m_pitch = 0, m_boostFactor = 1.5;
Math::Vector3f_SIMD m_position = { 0, 0, 0 };
Input::InputAction* m_actionForward;