summaryrefslogtreecommitdiff
path: root/engine/light.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'engine/light.glsl')
-rw-r--r--engine/light.glsl4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/light.glsl b/engine/light.glsl
index 0ceac16..90539a1 100644
--- a/engine/light.glsl
+++ b/engine/light.glsl
@@ -1,5 +1,8 @@
#version 330 core
+#ifndef LIGHT_GLSL
+#define LIGHT_GLSL
+
struct Material {
vec3 ambient;
vec3 diffuse;
@@ -47,3 +50,4 @@ vec3 calc_specular_light(
return light.specular * (spec * material.specular);
}
+#endif