Function getPower

Synopsis

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

float getPower() const override

Description

Get total light power (needed for light picking)

Source

Lines 375-378 in Source/Falcor/Scene/Lights/Light.cpp. Line 268 in Source/Falcor/Scene/Lights/Light.h.

float AnalyticAreaLight::getPower() const
{
    return luminance(mData.intensity) * (float)M_PI * mData.surfaceArea;
}





Add Discussion as Guest

Log in to DocsForge