void PerspectiveCamera::initialize(float a_viewportWidth, float a_viewportHeight, float a_horizontalFov, float a_near, float a_far, EProjection a_projection)
{
	m_projection = a_projection;
	m_near = a_near;
	m_far = a_far;
	m_viewportWidth = a_viewportWidth;
	m_viewportHeight = a_viewportHeight;
	setHorizontalFieldOfView(a_horizontalFov);
	updateMatrices();
}
Beispiel #2
0
PerspectiveCamera::PerspectiveCamera(glm::vec3 position, glm::vec3 direction, float viewportWidth, float viewportHeight, float horizontalFov, float near, float far)
	: Camera(position, direction, viewportWidth, viewportHeight, near, far)
{
	setHorizontalFieldOfView(horizontalFov);
}