Function create

Synopsis

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

static SharedPtr create(LightType type)

Description

Creates an analytic area light.

Parameters:

[ in ] type - The type of analytic area light (rectangular, sphere, disc etc). See LightData.slang

Source

Lines 356-360 in Source/Falcor/Scene/Lights/Light.cpp. Line 253 in Source/Falcor/Scene/Lights/Light.h.

AnalyticAreaLight::SharedPtr AnalyticAreaLight::create(LightType type)
{
    AnalyticAreaLight* pLight = new AnalyticAreaLight(type);
    return SharedPtr(pLight);
}





Add Discussion as Guest

Log in to DocsForge