Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::light Struct Reference

Struct representing a light. More...

#include <light.h>

Classes

struct  directional
 Struct representing directional light specific properties. More...
 
struct  directional_shadowmap_params
 
struct  point
 Struct representing point light specific properties. More...
 
struct  point_shadowmap_params
 
struct  shadowmap_params
 Struct representing common shadow map parameters. More...
 
struct  spot
 Struct representing spot light specific properties. More...
 
struct  spot_shadowmap_params
 

Public Attributes

light_type type = light_type::directional
 The type of the light.
 
spot spot_data
 Data specific to spot lights.
 
point point_data
 Data specific to point lights.
 
directional directional_data
 Data specific to directional lights.
 
math::color color = {1.0f, 1.0f, 1.0f, 1.0f}
 The color of the light.
 
float intensity = 2.5f
 The intensity of the light.
 
float ambient_intensity = 0.0f
 The ambient intensity of the light.
 
bool casts_shadows {true}
 Whether the light casts shadows.
 
struct unravel::light::shadowmap_params shadow_params
 
struct unravel::light::directional_shadowmap_params directional_shadow_params
 
struct unravel::light::point_shadowmap_params point_shadow_params
 
struct unravel::light::spot_shadowmap_params spot_shadow_params
 

Detailed Description

Struct representing a light.

Definition at line 86 of file light.h.

Member Data Documentation

◆ ambient_intensity

float unravel::light::ambient_intensity = 0.0f

The ambient intensity of the light.

Definition at line 212 of file light.h.

◆ casts_shadows

bool unravel::light::casts_shadows {true}

Whether the light casts shadows.

Definition at line 215 of file light.h.

◆ color

math::color unravel::light::color = {1.0f, 1.0f, 1.0f, 1.0f}

The color of the light.

Definition at line 207 of file light.h.

◆ directional_data

directional unravel::light::directional_data

Data specific to directional lights.

Definition at line 205 of file light.h.

◆ directional_shadow_params

struct unravel::light::directional_shadowmap_params unravel::light::directional_shadow_params

◆ intensity

float unravel::light::intensity = 2.5f

The intensity of the light.

Definition at line 209 of file light.h.

◆ point_data

point unravel::light::point_data

Data specific to point lights.

Definition at line 203 of file light.h.

◆ point_shadow_params

struct unravel::light::point_shadowmap_params unravel::light::point_shadow_params

◆ shadow_params

struct unravel::light::shadowmap_params unravel::light::shadow_params

◆ spot_data

spot unravel::light::spot_data

Data specific to spot lights.

Definition at line 201 of file light.h.

◆ spot_shadow_params

struct unravel::light::spot_shadowmap_params unravel::light::spot_shadow_params

◆ type

light_type unravel::light::type = light_type::directional

The type of the light.

Definition at line 89 of file light.h.


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