diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2019-08-27 20:50:59 +0200 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2019-08-27 22:29:23 +0200 |
commit | 01ac2929cd723b579454788ffbe9579d1863d240 (patch) | |
tree | 84f9f7df642f09a32adb1fa779ffeeb15fa2c206 /src/render/PointLights.cpp | |
parent | More more more audio (diff) | |
download | re3-01ac2929cd723b579454788ffbe9579d1863d240.tar re3-01ac2929cd723b579454788ffbe9579d1863d240.tar.gz re3-01ac2929cd723b579454788ffbe9579d1863d240.tar.bz2 re3-01ac2929cd723b579454788ffbe9579d1863d240.tar.lz re3-01ac2929cd723b579454788ffbe9579d1863d240.tar.xz re3-01ac2929cd723b579454788ffbe9579d1863d240.tar.zst re3-01ac2929cd723b579454788ffbe9579d1863d240.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/PointLights.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/PointLights.cpp b/src/render/PointLights.cpp index 8e942ce6..a015ec54 100644 --- a/src/render/PointLights.cpp +++ b/src/render/PointLights.cpp @@ -98,7 +98,7 @@ CPointLights::GenerateLightsAffectingObject(CVector *objCoors) if(aLights[i].type == LIGHT_DIRECTIONAL){ float dot = -DotProduct(dir, aLights[i].dir); - intensity *= Max((dot-0.5f)*2.0f, 0.0f); + intensity *= max((dot-0.5f)*2.0f, 0.0f); } if(intensity > 0.0f) |