Hymn to Beauty
C++ 3D Engine
DirectionalLight.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "SuperComponent.hpp"
4#include <glm/glm.hpp>
5
6namespace Component {
9 public:
12
13 void Serialize(Json::Value& node, bool load) override;
14
16 glm::vec3 color = glm::vec3(1.0f, 1.0f, 1.0f);
17
19 float ambientCoefficient = 0.0f;
20};
21} // namespace Component
Component describing a directional light source (like the sun).
Definition: DirectionalLight.hpp:8
float ambientCoefficient
Ambient coefficient.
Definition: DirectionalLight.hpp:19
glm::vec3 color
Color.
Definition: DirectionalLight.hpp:16
DirectionalLight()
Create new directional light.
Definition: DirectionalLight.cpp:7
void Serialize(Json::Value &node, bool load) override
Save or load component values to/from JSON.
Definition: DirectionalLight.cpp:9
Component which all components inherit.
Definition: SuperComponent.hpp:9
Definition: BoxShapeEditor.hpp:5