Function setProjectionMatrix

Synopsis

#include <Source/Falcor/Scene/Camera/Camera.h>

void setProjectionMatrix(const glm::mat4 &proj)

Description

Set the persistent projection matrix and sets camera to use the persistent matrix instead of calculating the matrix from its other settings.

Source

Lines 218-223 in Source/Falcor/Scene/Camera/Camera.cpp. Line 212 in Source/Falcor/Scene/Camera/Camera.h.

void Camera::setProjectionMatrix(const glm::mat4& proj)
{
    mDirty = true;
    mPersistentProjMat = proj;
    togglePersistentProjectionMatrix(true);
}





Add Discussion as Guest

Log in to DocsForge