VolViz
A volume visualization tool
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Light.h
Go to the documentation of this file.
1 #ifndef VolViz_Light_h
2 #define VolViz_Light_h
3 
4 #include "Types.h"
5 
6 namespace VolViz {
7 
9 class Light {
10 public:
12  Color color{Color::Ones()};
16  PositionH position{PositionH::Zero()};
17 
19  float ambientFactor = 0.f;
20 };
21 
22 } // namespace VolViz
23 
24 #endif // VolViz_Light_h
Eigen::Vector3f Color
Normalized RGB color.
Definition: Types.h:40
float ambientFactor
Factor that specifies how the light contributes to the ambient lighting.
Definition: Light.h:19
GLuint color
Definition: glad.h:2834
PositionH position
Definition: Light.h:16
Directional light.
Definition: Light.h:9
Eigen::Vector4f PositionH
Position in homogenous coordinates.
Definition: Types.h:23