MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / SetFar

Method SetFar

ZEngine/src/PerspectiveCameraController.cpp:50–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 return m_camera_far;
49 }
50 void PerspectiveCameraController::SetFar(float value) {
51 m_camera_far = value;
52 UpdateProjectionMatrix();
53 }
54
55 void PerspectiveCameraController::UpdateProjectionMatrix() {
56 m_perspective_camera->SetProjectionMatrix(glm::perspective(m_camera_fov, m_aspect_ratio, m_camera_near, m_camera_far));

Callers 1

RenderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected