From 694b898fabfddea6fc738346bcd3f5a404af3c97 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 23 Nov 2023 20:23:01 +0100 Subject: chore(engine): add include guard to light.glsl --- engine/light.glsl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engine') 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 -- cgit v1.2.3-18-g5258