summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics.h6
-rw-r--r--shadeop.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/graphics.h b/graphics.h
index 1360210..35d4d0c 100644
--- a/graphics.h
+++ b/graphics.h
@@ -17,9 +17,9 @@ enum {
PTriangle,
/* light types */
- LIGHT_POINT = 0,
- LIGHT_DIRECTIONAL,
- LIGHT_SPOT,
+ LightPoint = 0,
+ LightDirectional,
+ LightSpot,
/* texture formats */
RAWTexture = 0, /* unmanaged */
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);