13 void Serialize(Json::Value& node,
bool load)
override;
16 glm::vec3
color = glm::vec3(1.0f, 1.0f, 1.0f);
Component describing a spot light.
Definition: SpotLight.hpp:8
float distance
Distance.
Definition: SpotLight.hpp:28
float coneAngle
Angle of the cone (in degrees).
Definition: SpotLight.hpp:25
glm::vec3 color
Color.
Definition: SpotLight.hpp:16
float intensity
Intensity.
Definition: SpotLight.hpp:22
void Serialize(Json::Value &node, bool load) override
Save or load component values to/from JSON.
Definition: SpotLight.cpp:9
SpotLight()
Create new spot light.
Definition: SpotLight.cpp:7
float attenuation
Attenuation.
Definition: SpotLight.hpp:19
Component which all components inherit.
Definition: SuperComponent.hpp:9
Definition: BoxShapeEditor.hpp:5