21 lines
498 B
C++
21 lines
498 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
#include "../inc/glm/common.hpp"
|
|
#include "../scene/DirectionalLight.h"
|
|
#include "../scene/PointLight.h"
|
|
#include "Util/Path.h"
|
|
|
|
struct LightState
|
|
{
|
|
enum LightType { Point, Directional };
|
|
glm::vec3 lightProps;
|
|
LightType lightType;
|
|
bool active;
|
|
};
|
|
|
|
struct LightStateInterpolator {
|
|
LightState operator()(const LightState& before, const LightState& after, const double& time);
|
|
};
|
|
|
|
typedef Path<LightState, LightStateInterpolator> LightPath; |