Function setShaderData

Synopsis

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

void setShaderData(const ShaderVar &var) const

Description

Set the camera into a shader var

Source

Lines 259-263 in Source/Falcor/Scene/Camera/Camera.cpp. Line 231 in Source/Falcor/Scene/Camera/Camera.h.

void Camera::setShaderData(const ShaderVar& var) const
{
    calculateCameraParameters();
    var["data"].setBlob(mData);
}





Add Discussion as Guest

Log in to DocsForge