2#ifndef LIBSBX_SCENES_COMPONENTS_DIRECTIONAL_LIGHT_HPP_
3#define LIBSBX_SCENES_COMPONENTS_DIRECTIONAL_LIGHT_HPP_
5#include <libsbx/math/vector3.hpp>
15 : _direction{direction},
20 [[nodiscard]]
auto direction()
const noexcept ->
const math::vector3& {
28 auto set_direction(
const math::vector3& direction)
noexcept ->
void {
29 _direction = math::vector3::normalized(direction);
32 [[nodiscard]]
auto color()
const noexcept ->
const math::color& {
36 [[nodiscard]]
auto color()
noexcept ->
math::color& {
Definition: vector3.hpp:23
RGBA color value type.
Definition: color.hpp:48
Definition: directional_light.hpp:10
RGBA color representation and utilities.