22 lines
390 B
C++
22 lines
390 B
C++
#ifndef Components_PointLight_h__
|
|
#define Components_PointLight_h__
|
|
|
|
#include "Component.h"
|
|
#include "Color.h"
|
|
|
|
namespace Components
|
|
{
|
|
|
|
struct PointLight : Component
|
|
{
|
|
float Intensity;
|
|
float MaxRange;
|
|
glm::vec3 Specular;
|
|
glm::vec3 Diffuse;
|
|
float constantAttenuation, linearAttenuation, quadraticAttenuation;
|
|
float spotExponent;
|
|
Color color;
|
|
};
|
|
|
|
}
|
|
#endif // !Components_PointLight_h__
|