diff options
author | rodri <rgl@antares-labs.eu> | 2024-08-17 12:43:58 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-08-17 12:43:58 +0000 |
commit | 5ddb9dfd5dcb7a15b03a5f338aeed5dd8953d902 (patch) | |
tree | a42afa871b860581c029eb3fe7e6dd67fd216dbf /shadeop.c | |
parent | 56e8e3de24e7fea36f165b653a8efc8c38145d4c (diff) | |
download | libgraphics-5ddb9dfd5dcb7a15b03a5f338aeed5dd8953d902.tar.gz libgraphics-5ddb9dfd5dcb7a15b03a5f338aeed5dd8953d902.tar.bz2 libgraphics-5ddb9dfd5dcb7a15b03a5f338aeed5dd8953d902.zip |
correct the light types constants.
Diffstat (limited to 'shadeop.c')
-rw-r--r-- | shadeop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |