Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-07-06 11:18:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-06 11:18:52 +0300
commitde777ad9e69320500bf05d97a7d6d60ba4fd0a93 (patch)
treea1141843a3e1df137bbc6490641bedf12a12a8fa /intern/cycles/render/light.cpp
parent6d38d824377c55aaaed7e8283e81a7128bf6f728 (diff)
parent1daa20ad9f6f0c433a4e0a97a74e5beb9ea4e2c7 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'intern/cycles/render/light.cpp')
-rw-r--r--intern/cycles/render/light.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp
index 94072d7da09..49cfae4888b 100644
--- a/intern/cycles/render/light.cpp
+++ b/intern/cycles/render/light.cpp
@@ -763,7 +763,7 @@ void LightManager::device_update_points(Device *,
}
float invarea = (area != 0.0f)? 1.0f/area: 1.0f;
float3 dir = light->dir;
-
+
dir = safe_normalize(dir);
if(light->use_mis && area != 0.0f)
@@ -792,7 +792,7 @@ void LightManager::device_update_points(Device *,
float spot_angle = cosf(light->spot_angle*0.5f);
float spot_smooth = (1.0f - spot_angle)*light->spot_smooth;
float3 dir = light->dir;
-
+
dir = safe_normalize(dir);
if(light->use_mis && radius > 0.0f)
@@ -1034,4 +1034,3 @@ void LightManager::device_update_ies(DeviceScene *dscene)
}
CCL_NAMESPACE_END
-