#include <directionallightcomponent.h>
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
float | mIntensity = 1.0f |
RGBColorFloat | mColor = { 1.0f, 1.0f, 1.0f } |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
![]() | |
void | registerUniformLightProperty (const std::string &memberName) |
SpawnedEntityInstance | spawnShadowCamera (const nap::Entity &entity, nap::utility::ErrorState &error) |
![]() | |
LightComponent * | mResource = nullptr |
TransformComponentInstance * | mTransform = nullptr |
RenderAdvancedService * | mService = nullptr |
SpawnedEntityInstance | mSpawnedCamera |
bool | mIsEnabled = true |
bool | mIsShadowEnabled = false |
float | mShadowStrength = 1.0f |
uint | mShadowMapSize = 512 |
Directional light component instance for NAP RenderAdvanced's light system.
Unidirectional light that emits from its origin to a specified direction. The Render Advanced service creates and manages a nap::DepthRenderTarget
and nap::DepthRenderTexture2D
for rendering this light's shadow maps.
DirectionalLightComponentInstance | ( | EntityInstance & | entity, |
Component & | resource | ||
) |
|
overridevirtual |
Implements LightComponentInstance.
|
overridevirtual |
Implements LightComponentInstance.
|
overridevirtual |
Initialize LightComponentInstance based on the LightComponent resource
errorState | should hold the error message when initialization fails |
Reimplemented from LightComponentInstance.