Function setViewMatrix

Synopsis

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

void setViewMatrix(const glm::mat4 &view)

Description

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

Source

Lines 225-230 in Source/Falcor/Scene/Camera/Camera.cpp. Line 216 in Source/Falcor/Scene/Camera/Camera.h.

void Camera::setViewMatrix(const glm::mat4& view)
{
    mDirty = true;
    mPersistentViewMat = view;
    togglePersistentViewMatrix(true);
}





Add Discussion as Guest

Log in to DocsForge