|
Unravel Engine C++ 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 |
| float unravel::light::ambient_intensity = 0.0f |
| bool unravel::light::casts_shadows {true} |
| math::color unravel::light::color = {1.0f, 1.0f, 1.0f, 1.0f} |
| directional unravel::light::directional_data |
| struct unravel::light::directional_shadowmap_params unravel::light::directional_shadow_params |
| float unravel::light::intensity = 2.5f |
| point unravel::light::point_data |
| struct unravel::light::point_shadowmap_params unravel::light::point_shadow_params |
| struct unravel::light::shadowmap_params unravel::light::shadow_params |
| spot unravel::light::spot_data |
| struct unravel::light::spot_shadowmap_params unravel::light::spot_shadow_params |
| light_type unravel::light::type = light_type::directional |