From 5ddb9dfd5dcb7a15b03a5f338aeed5dd8953d902 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 17 Aug 2024 12:43:58 +0000 Subject: correct the light types constants. --- shadeop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shadeop.c') diff --git a/shadeop.c b/shadeop.c index 4b74256..c31309e 100644 --- a/shadeop.c +++ b/shadeop.c @@ -38,7 +38,7 @@ getlightcolor(LightSource *l, Point3 dir) double cθs, cθu, cθp, t; /* see “Spotlights”, Real-Time Rendering 4th ed. § 5.2.2 */ - if(l->type == LIGHT_SPOT){ + if(l->type == LightSpot){ cθs = dotvec3(mulpt3(dir, -1), l->dir); cθu = cos(l->θu); cθp = cos(l->θp); -- cgit v1.2.3