RavEngine
Loading...
Searching...
No Matches
RavEngine::ShadowLightBase Struct Reference

#include <Light.hpp>

Inheritance diagram for RavEngine::ShadowLightBase:
[legend]
Collaboration diagram for RavEngine::ShadowLightBase:
[legend]

Public Member Functions

bool CastsShadows () const
 
void SetCastsShadows (bool casts)
 
constexpr void SetShadowLayers (renderlayer_t layers)
 
constexpr auto GetShadowLayers () const
 
- Public Member Functions inherited from RavEngine::Light
constexpr void SetColorRGBA (const decltype(color)&inColor)
 
constexpr const decltype(color) & GetColorRGBA () const
 
constexpr void SetIntensity (decltype(Intensity) inIntensity)
 
constexpr decltype(Intensity) GetIntensity () const
 
constexpr bool isInvalidated () const
 
constexpr void clearInvalidate ()
 
constexpr void SetIlluminationLayers (renderlayer_t layers)
 
constexpr auto GetIlluminationLayers ()
 
- Public Member Functions inherited from RavEngine::IDebugRenderable
virtual void DebugDraw (RavEngine::DebugDrawer &dbg, const Transform &transform) const =0
 

Additional Inherited Members

- Public Types inherited from RavEngine::Queryable< Light, IDebugRenderable >
typedef std::array< ctti_t, ntypes > arraytype
 
- Static Public Member Functions inherited from RavEngine::Queryable< Light, IDebugRenderable >
static constexpr const arraytype & GetQueryTypes ()
 
- Public Attributes inherited from RavEngine::Queryable< Light, IDebugRenderable >
constexpr q_qt_def
 
- Public Attributes inherited from RavEngine::IDebugRenderable
bool debugEnabled = false
 
color_t debug_color = 0xFFFFFFFF
 
- Static Public Attributes inherited from RavEngine::Queryable< Light, IDebugRenderable >
static constexpr std::size_t ntypes
 
- Protected Member Functions inherited from RavEngine::Light
constexpr void invalidate ()
 
- Protected Attributes inherited from RavEngine::Light
bool tickInvalidated = true
 

Detailed Description

Represents a light that can cast shadows. Lights can be constrained to shadow specific objects with layers. By default, lights will cast shadows from objects on any layer.

Member Function Documentation

◆ SetShadowLayers()

constexpr void RavEngine::ShadowLightBase::SetShadowLayers ( renderlayer_t  layers)
inlineconstexpr

Set the layers that this light will shadow. If a bit is unset, that layer is not shadowed.

Parameters
layersshadow bitmask

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