SpatiumLib
Public Member Functions | Protected Attributes | List of all members
spatium::gfx3d::DirectionalLight Class Reference

Light source that emits light in one direction as parallel rays <> the position. More...

#include <DirectionalLight.h>

Inheritance diagram for spatium::gfx3d::DirectionalLight:
Inheritance graph
[legend]
Collaboration diagram for spatium::gfx3d::DirectionalLight:
Collaboration graph
[legend]

Public Member Functions

 DirectionalLight (double strength=10, std::array< unsigned char, 3 > color={255, 255, 255})
 Constrcutor. More...
 
- Public Member Functions inherited from spatium::gfx3d::Light
 Light (double strength=10, std::array< unsigned char, 3 > color={255, 255, 255})
 Constrcutor. More...
 

Protected Attributes

geom3d::Vector3 m_direction
 
- Protected Attributes inherited from spatium::gfx3d::Light
double m_strength
 
std::array< unsigned char, 3 > m_color
 

Detailed Description

Light source that emits light in one direction as parallel rays <> the position.

Constructor & Destructor Documentation

◆ DirectionalLight()

spatium::gfx3d::DirectionalLight::DirectionalLight ( double  strength = 10,
std::array< unsigned char, 3 >  color = {255, 255, 255} 
)
inline

Constrcutor.

Parameters
[in]directionDirection of the light
[in]strengthStrength
[in]colorColor (RGB)

Member Data Documentation

◆ m_direction

geom3d::Vector3 spatium::gfx3d::DirectionalLight::m_direction
protected
Todo:
Write to ostream

The documentation for this class was generated from the following file: