Function setPatternGenerator

Synopsis

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

void setPatternGenerator(const CPUSampleGenerator::SharedPtr &pGenerator, const float2 &scale=float2(1))

Description

Set a pattern generator. If a generator is set, then a jitter will be set every frame based on the generator

Source

Lines 265-273 in Source/Falcor/Scene/Camera/Camera.cpp. Line 174 in Source/Falcor/Scene/Camera/Camera.h.

void Camera::setPatternGenerator(const CPUSampleGenerator::SharedPtr& pGenerator, const float2& scale)
{
    mJitterPattern.pGenerator = pGenerator;
    mJitterPattern.scale = scale;
    if (!pGenerator)
    {
        setJitterInternal(0, 0);
    }
}





Add Discussion as Guest

Log in