32 lines
527 B
C++
32 lines
527 B
C++
#pragma once
|
|
|
|
#include "glm/vec3.hpp"
|
|
#include "glm/vec4.hpp"
|
|
|
|
class Light
|
|
{
|
|
public:
|
|
enum LightType
|
|
{
|
|
BASE,
|
|
SPOT
|
|
};
|
|
Light();
|
|
Light(glm::vec3 intensity, glm::vec4 location);
|
|
Light(glm::vec3 intensity, glm::vec4 location,
|
|
float spot_cutoff, float spot_inner_cutoff,
|
|
float spot_exponent, glm::vec4 lookAt);
|
|
~Light();
|
|
|
|
bool activated = true;
|
|
LightType type;
|
|
glm::vec3 intensity;
|
|
glm::vec4 location;
|
|
float spot_cutoff;
|
|
float spot_inner_cutoff;
|
|
float spot_exponent;
|
|
glm::vec4 lookAt;
|
|
glm::vec3 direction;
|
|
};
|
|
|