diff options
author | shfil <filip.gawin@zoho.com> | 2020-04-20 19:50:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 19:50:12 +0200 |
commit | 7794cca429163429e9a4b216d717002ae1034040 (patch) | |
tree | 10f23f0a163b2a7b3011b5570eb9af93010a25a1 /src/render/PointLights.cpp | |
parent | updated librw again (diff) | |
parent | Try to build with mingw (diff) | |
download | re3-7794cca429163429e9a4b216d717002ae1034040.tar re3-7794cca429163429e9a4b216d717002ae1034040.tar.gz re3-7794cca429163429e9a4b216d717002ae1034040.tar.bz2 re3-7794cca429163429e9a4b216d717002ae1034040.tar.lz re3-7794cca429163429e9a4b216d717002ae1034040.tar.xz re3-7794cca429163429e9a4b216d717002ae1034040.tar.zst re3-7794cca429163429e9a4b216d717002ae1034040.zip |
Diffstat (limited to 'src/render/PointLights.cpp')
-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 55be40b2..b92e7e83 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) |