-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpotLight.h
31 lines (26 loc) · 926 Bytes
/
SpotLight.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include "PointLight.h"
class SpotLight :public PointLight
{
public:
SpotLight();
SpotLight(
glm::vec4 AmbientLightParams,
GLfloat DiffuseIntensity,
GLuint sMapWidth,
GLuint sMapHeight,
glm::vec3 LightPositionParams,
glm::vec3 EquationCoeffs,
GLfloat nPlane,
GLfloat fPlane,
glm::vec3 DirectionParams,
GLfloat CutoffValue);
void UseLight(GLuint AmbientColorLocation, GLuint AmbientIntensityLocation, GLuint DiffuseIntensityUniformLocation, GLuint LightPositionUniformLocation, GLuint CoeffAUniformLocation, GLuint CoeffBUniformLocation, GLuint CoeffCUniformLocation, GLuint DirectionUniformLocation, GLuint CutoffUniformLocation,GLuint LightStatus); //GLuint LightStatus
void SetLocationAndDirection(glm::vec3 Poisiton, glm::vec3 lDirection);
void SetLightStatus(bool LightStatus);
private:
glm::vec3 SpotLightDirection;
float Cutoff;
float ProcessedCutoff;
bool IsLightOn;
};