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

Struct representing a light. More...

#include <light.h>

Classes

struct  contact_shadow_params
 Struct representing contact shadow parameters. Screen-space ray-marched shadows that add fine detail at object contact points where shadow maps lack resolution. More...
 
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 = math::color(255, 244, 214, 255)
 The color of the light.
 
float intensity = 5.0f
 The 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
 
struct unravel::light::contact_shadow_params contact_shadow
 

Detailed Description

Struct representing a light.

Definition at line 86 of file light.h.

Member Data Documentation

◆ casts_shadows

bool unravel::light::casts_shadows {true}

Whether the light casts shadows.

Definition at line 212 of file light.h.

◆ color

math::color unravel::light::color = math::color(255, 244, 214, 255)

The color of the light.

Definition at line 207 of file light.h.

◆ contact_shadow

struct unravel::light::contact_shadow_params unravel::light::contact_shadow

◆ 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 = 5.0f

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: