4#ifndef _SCENEPIC_PARAMETERS_H_
5#define _SCENEPIC_PARAMETERS_H_
65 Color m_ambient_light_color;
66 Color m_directional_light_color;
67 Vector m_directional_light_dir;
Class for representing color values.
Definition: color.h:19
Representation of a JSON value according to the specification at https://www.json....
Definition: json_value.h:30
Parameters of the shaders.
Definition: shading.h:15
static const Shading None()
A Shading value indication "no shading".
const Color & directional_light_color() const
bool is_none() const
Whether this is a "no shading" instance.
Shading(const Color &bg_color=Color(0, 0, 0), const Color &ambient_light_color=Color(0.7f, 0.7f, 0.7f), const Color &directional_light_color=Color(0.3f, 0.3f, 0.3f), const Vector &directional_light_dir=Vector(2, 1, 2))
Constructor.
Shading(const Color4 &bg_color, const Color &ambient_light_color, const Color &directional_light_color, const Vector &directional_light_dir)
Constructor.
const Vector & directional_light_dir() const
std::string to_string() const
Return a JSON string representing the object.
const Color4 & bg_color() const
JsonValue to_json() const
Convert this object into ScenePic json.
const Color & ambient_light_color() const
Definition: audio_track.h:14