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

#include <Light.hpp>

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

Classes

struct  ShadowMap
 

Public Types

using light_t = DirectionalLight
 
- Public Types inherited from RavEngine::Queryable< Light, IDebugRenderable >
typedef std::array< ctti_t, ntypes > arraytype
 
- Public Types inherited from RavEngine::QueryableDelta< QueryableDelta< Light, ShadowLightBase >, DirectionalLight >
typedef std::array< ctti_t, ntypes > arraytype
 

Public Member Functions

void DebugDraw (RavEngine::DebugDrawer &, const Transform &) const override
 
- Public Member Functions inherited from RavEngine::ShadowLightBase
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 Attributes

struct RavEngine::DirectionalLight::ShadowMap shadowData
 
Array< float, MAX_CASCADES > shadowCascades {0.1, 0.2, 0.3, 1}
 
uint8_t numCascades = shadowCascades.size()
 
- 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
 
- Public Attributes inherited from RavEngine::QueryableDelta< QueryableDelta< Light, ShadowLightBase >, DirectionalLight >
constexpr qb_qt_def
 

Additional Inherited Members

- Static Public Member Functions inherited from RavEngine::Queryable< Light, IDebugRenderable >
static constexpr const arraytype & GetQueryTypes ()
 
- Static Public Member Functions inherited from RavEngine::QueryableDelta< QueryableDelta< Light, ShadowLightBase >, DirectionalLight >
static constexpr const arraytype & GetQueryTypes ()
 
- Static Public Attributes inherited from RavEngine::Queryable< Light, IDebugRenderable >
static constexpr std::size_t ntypes
 
- Static Public Attributes inherited from RavEngine::QueryableDelta< QueryableDelta< Light, ShadowLightBase >, DirectionalLight >
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

A light that affects the entire scene by sending parallel rays. This is useful for modelling the sun.

Member Function Documentation

◆ DebugDraw()

void DirectionalLight::DebugDraw ( RavEngine::DebugDrawer &  dbg,
const Transform &  transform 
) const
overridevirtual

Draw a wireframe shape representing the boundary of this object

Parameters
colorthe hex color to use to draw, in format 0xRRGGBBAA

Implements RavEngine::IDebugRenderable.


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