#include <pointlightcomponent.h>
Public Attributes | |
float | mAttenuation = 0.1f |
Property: 'Attenuation' The rate at which light intensity is lost over distance from the origin. More... | |
glm::vec2 | mClippingPlanes = { 1.0f, 1000.0f } |
Property: 'ClippingPlanes' The near and far shadow clipping distance of this light. More... | |
uint | mShadowMapSize = 512 |
Property: 'ShadowMapSize' The horizontal and vertical dimension of the shadow map for this light. More... | |
![]() | |
bool | mEnabled = true |
Property: 'Enabled' Whether the light is enabled. More... | |
bool | mCastShadows = false |
Property: 'CastShadows' Enables shadows and creates shadow map resources for this light. More... | |
RGBColorFloat | mColor = {1.0f, 1.0f, 1.0f} |
Property: 'Color' The light color. More... | |
float | mIntensity = 1.0f |
Property: 'Intensity' The light intensity. More... | |
float | mShadowStrength = 1.0f |
Property: 'ShadowStrength' The amount of light the shadow consumes. More... | |
float | mShadowSpread = 2.0f |
Property: 'ShadowSpread' The spread radius of the shadow samples. More... | |
Locator | mLocator |
Property: 'Locator' Locator settings. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
virtual void | getDependentComponents (std::vector< rtti::TypeInfo > &components) const override |
![]() | |
virtual const rtti::TypeInfo | getInstanceType () const =0 |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Point light component for NAP RenderAdvanced's light system.
Omnidirectional light that emits from its origin. Therefore, ignores the direction
uniform. The Render Advanced service creates and manages a nap::CubeDepthRenderTarget
and nap::DepthRenderTextureCube
for rendering this light's shadow maps.
float mAttenuation = 0.1f |
Property: 'Attenuation' The rate at which light intensity is lost over distance from the origin.
glm::vec2 mClippingPlanes = { 1.0f, 1000.0f } |
Property: 'ClippingPlanes' The near and far shadow clipping distance of this light.
uint mShadowMapSize = 512 |
Property: 'ShadowMapSize' The horizontal and vertical dimension of the shadow map for this light.