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