Unravel Engine C++ Reference
|
Class that contains sky light data. More...
#include <light_component.h>
Public Types | |
enum class | sky_mode { standard , perez , skybox } |
Enumeration for sky modes. More... | |
![]() | |
using | base |
Public Member Functions | |
auto | get_mode () const noexcept -> const sky_mode & |
Gets the current sky mode. | |
void | set_mode (const sky_mode &mode) |
Sets the sky mode. | |
auto | get_turbidity () const noexcept -> float |
Gets the current turbidity value. | |
void | set_turbidity (float turbidity) |
Sets the turbidity value. | |
auto | get_cubemap () const noexcept -> const asset_handle< gfx::texture > & |
void | set_cubemap (const asset_handle< gfx::texture > &cubemap) |
![]() | |
void | touch () |
Marks the component as 'touched'. | |
Additional Inherited Members | |
![]() | |
bool | eto {} |
Disable empty type optimizations. | |
![]() | |
static constexpr bool | in_place_delete |
Indicates if the component can be deleted in place. | |
Class that contains sky light data.
Definition at line 82 of file light_component.h.
|
strong |
Enumeration for sky modes.
Enumerator | |
---|---|
standard | Standard sky mode. |
perez | Perez sky mode. |
skybox | Skybox. |
Definition at line 89 of file light_component.h.
|
inlinenoexcept |
Definition at line 123 of file light_component.h.
|
noexcept |
Gets the current sky mode.
Definition at line 135 of file light_component.cpp.
|
noexcept |
Gets the current turbidity value.
Definition at line 144 of file light_component.cpp.
|
inline |
Definition at line 127 of file light_component.h.
void unravel::skylight_component::set_mode | ( | const sky_mode & | mode | ) |
Sets the sky mode.
[in] | mode | The sky mode to set. |
Definition at line 139 of file light_component.cpp.
void unravel::skylight_component::set_turbidity | ( | float | turbidity | ) |
Sets the turbidity value.
[in] | turbidity | The turbidity value to set, in the range 1.9f-10.0f. |
Definition at line 149 of file light_component.cpp.