Toast Engine
Loading...
Searching...
No Matches
directional_light.hpp
Go to the documentation of this file.
1
8
9#pragma once
10#include "light.hpp"
11
12#include <toast/export.hpp>
13
14namespace toast {
15class [[ToastNode, Icon("DirectionalLight")]] TOAST_API DirectionalLight : public Light {
16public:
17 DirectionalLight() { setLightType(LightType::directional); }
18
19 ~DirectionalLight() override = default;
20
21private:
22};
23}
void setLightType(LightType type)
Tags the concrete light kind; called once from each subclass's own constructor body.
Definition light.hpp:70
Base light node; registers with the renderer so it can be collected into the per-frame light list.