Function setJitter

Synopsis

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

void setJitter(float jitterX, float jitterY)

Description

Set the camera's jitter.

Parameters:

[ in ] jitterX - Subpixel offset along X axis divided by screen width (positive value shifts the image right).

[ in ] jitterY - Subpixel offset along Y axis divided by screen height (positive value shifts the image up).

Source

Lines 275-283 in Source/Falcor/Scene/Camera/Camera.cpp. Line 184 in Source/Falcor/Scene/Camera/Camera.h.

void Camera::setJitter(float jitterX, float jitterY)
{
    if (mJitterPattern.pGenerator)
    {
        logWarning("Camera::setJitter() called when a pattern-generator object was attached to the camera. Detaching the pattern-generator");
        mJitterPattern.pGenerator = nullptr;
    }
    setJitterInternal(jitterX, jitterY);
}





Add Discussion as Guest

Log in to DocsForge