2024-01-02 20:54:56 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "glm.hpp"
|
|
|
|
|
|
|
|
namespace Core
|
|
|
|
{
|
2024-01-30 21:13:23 +01:00
|
|
|
glm::mat4 createPerspectiveMatrix(float zNear, float zFar, float frustumScale);
|
2024-01-02 20:54:56 +01:00
|
|
|
|
|
|
|
// position - pozycja kamery
|
|
|
|
// forward - wektor "do przodu" kamery (jednostkowy)
|
|
|
|
// up - wektor "w gore" kamery (jednostkowy)
|
|
|
|
// up i forward musza byc ortogonalne!
|
|
|
|
glm::mat4 createViewMatrix(glm::vec3 position, glm::vec3 forward, glm::vec3 up);
|
|
|
|
}
|