diff options
author | HampusM <hampus@hampusmat.com> | 2023-11-23 20:23:01 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-11-23 20:23:01 +0100 |
commit | 694b898fabfddea6fc738346bcd3f5a404af3c97 (patch) | |
tree | 33d8835067fe0854f3a3b7538c826a1b0a87fa68 | |
parent | 5b64c39b93b83a1b40e083ab448f4059bcbeea57 (diff) |
chore(engine): add include guard to light.glsl
-rw-r--r-- | engine/light.glsl | 4 |
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 |