23 lines
337 B
GLSL
23 lines
337 B
GLSL
#ifndef LIB_LIGHT_STRUCT
|
|
#define LIB_LIGHT_STRUCT
|
|
|
|
struct DirectionalLight {
|
|
vec4 position;
|
|
vec4 diffuse;
|
|
vec4 ambient;
|
|
vec4 specular;
|
|
};
|
|
|
|
struct PointLight {
|
|
vec4 position;
|
|
vec4 diffuse;
|
|
vec4 ambient;
|
|
vec4 specular;
|
|
float constant;
|
|
float linear;
|
|
float quadratic;
|
|
float radius;
|
|
};
|
|
|
|
#endif
|