Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CAreaLight Class Reference

This object holds the parameters for area lights. More...

#include <Lighting/CAreaLight.h>

Inheritance diagram for Skylicht::CAreaLight:
Skylicht::CLight Skylicht::CComponentSystem Skylicht::IActivatorObject

Public Member Functions

virtual void initComponent ()
virtual void updateComponent ()
virtual void endUpdate ()
virtual CObjectSerializablecreateSerializable ()
virtual void loadSerializable (CObjectSerializable *object)
virtual void setRenderLightType (ERenderLightType type)
void setSize (float x, float y)
float getSizeX ()
float getSizeY ()
bool needRenderShadowDepth ()
void beginRenderShadowDepth ()
void endRenderShadowDepth ()
core::vector3df getPosition ()
const core::matrix4 & getWorldTransform ()
const core::aabbox3df & getWorldBounds ()
Public Member Functions inherited from Skylicht::CLight
const SColorf & getColor ()
void setColor (const SColorf &c)
float getAttenuation ()
float getRadius ()
core::aabbox3df getBBBox ()
ERenderLightType getRenderLightType ()
int getLightTypeId ()
void setBounce (u32 b)
u32 getBounce ()
void setRadius (float r)
void setSpotAngle (float angle)
float getSplotCutoff ()
void setSpotInnerAngle (float angle)
float getSpotInnerCutof ()
void setSpotExponent (float e)
float getSpotExponent ()
core::vector3df & getDirection ()
bool isCastShadow ()
void setShadow (bool shadow)
bool isDynamicShadow ()
void setDynamicShadow (bool shadow)
void setIntensity (float f)
float getIntensity ()
u32 getLightLayers ()
void setLightLayers (u32 layers)
bool isAffectingDefaultObjects ()
void setLightPriority (u32 priority)
u32 getLightPriority ()
void validate ()
ITexture * getShadowTexture ()
void setShadowTexture (ITexture *tex)
void setShadowMatrices (float *m)
float * getShadowMatrices ()
Public Member Functions inherited from Skylicht::CComponentSystem
const char * getName ()
virtual void reset ()
virtual void startComponent ()
virtual void onEnable (bool b)
virtual void onUpdateCullingLayer (u32 mask)
void setEnable (bool b)
bool isEnable ()
CGameObject * getGameObject ()
void setEnableSerializable (bool b)
bool isSerializable ()
void addLinkComponent (CComponentSystem *comp)
void removeAllLink ()
Public Member Functions inherited from Skylicht::IActivatorObject
virtual ~IActivatorObject ()
 Virtual destructor for polymorphic activator objects.

Protected Attributes

float m_sizeX
float m_sizeY
bool m_needRenderShadowDepth
core::aabbox3df m_worldBounds
Protected Attributes inherited from Skylicht::CLight
SColorf m_color
 Diffuse color emitted by the light.
float m_attenuation
 Attenuation factors (constant, linear, quadratic).
float m_radius
 Radius of light. Everything within this radius will be lighted.
float m_spotCutoff
 The angle of the spot's outer cone. Ignored for other lights.
float m_spotInnerCutoff
float m_spotExponent
core::vector3df m_direction
 Direction of the light.
bool m_castShadow
 Does the light cast shadows?
bool m_dynamicShadow
 Does this shadow alway updates.
float m_intensity
 Intensity of light.
u32 m_bakeBounce
 Number bounce of light on bake lighting.
ERenderLightType m_renderType
 Light type.
u32 m_lightLayers
 The layers where the light will shine on.
u32 m_lightPriority
 Priority order of lights selected for shaders.
bool m_needValidate
CLightCullingDatam_cullingData
ITexture * m_shadowTex
float * m_shadowMatrices
Protected Attributes inherited from Skylicht::CComponentSystem
CGameObject * m_gameObject
bool m_enable
bool m_serializable
std::vector< CComponentSystem * > m_linkComponent

Additional Inherited Members

Public Types inherited from Skylicht::CLight
enum  ERenderLightType { Realtime = 0 , Baked , Mixed }
enum  ELightType { DirectionalLight = 0 , PointLight , SpotLight , AreaLight }
Static Public Member Functions inherited from Skylicht::CComponentSystem
static int useComponent (CComponentSystem *used)
Protected Member Functions inherited from Skylicht::CComponentSystem
void setOwner (CGameObject *obj)

Detailed Description

This object holds the parameters for area lights.

See also
CShaderLighting

Member Function Documentation

◆ createSerializable()

virtual CObjectSerializable * Skylicht::CAreaLight::createSerializable ( )
virtual

Reimplemented from Skylicht::CLight.

◆ endUpdate()

virtual void Skylicht::CAreaLight::endUpdate ( )
virtual

Reimplemented from Skylicht::CComponentSystem.

◆ initComponent()

virtual void Skylicht::CAreaLight::initComponent ( )
virtual

◆ loadSerializable()

virtual void Skylicht::CAreaLight::loadSerializable ( CObjectSerializable * object)
virtual

Reimplemented from Skylicht::CLight.

◆ setRenderLightType()

virtual void Skylicht::CAreaLight::setRenderLightType ( ERenderLightType type)
inlinevirtual

Reimplemented from Skylicht::CLight.

◆ updateComponent()

virtual void Skylicht::CAreaLight::updateComponent ( )
virtual

The documentation for this class was generated from the following file: