Function AnalyticAreaLight

Synopsis

#include <Source/Falcor/Scene/Lights/Light.h>

AnalyticAreaLight(const std::string &name, LightType type)

Description

No description yet.

Source

Lines 365-375 in Source/Falcor/Scene/Lights/Light.cpp. Line 315 in Source/Falcor/Scene/Lights/Light.h.

AnalyticAreaLight::AnalyticAreaLight(const std::string& name, LightType type)
    : Light(name, type)
{
    mData.tangent = float3(1, 0, 0);
    mData.bitangent = float3(0, 1, 0);
    mData.surfaceArea = 4.0f;
    mScaling = float3(1, 1, 1);
    update();
    mPrevData = mData;
}





Add Discussion as Guest

Log in