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:
authorBrecht Van Lommel <brecht@blender.org>2021-12-01 22:52:31 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-12-01 22:52:31 +0300
commit8ca838069943d0de559cfb40762dbc9d4ad0b790 (patch)
treee694b5447a2008cfc7a8eeadad4bd8cb59837de4
parentcb334428b012294a4503a34e1e2eca5c84d516bd (diff)
Cleanup: compiler warning
-rw-r--r--intern/cycles/kernel/light/light.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/intern/cycles/kernel/light/light.h b/intern/cycles/kernel/light/light.h
index f47e8fbcf82..6e445f862db 100644
--- a/intern/cycles/kernel/light/light.h
+++ b/intern/cycles/kernel/light/light.h
@@ -434,7 +434,6 @@ ccl_device bool light_sample_from_intersection(KernelGlobals kg,
ls->pdf = invarea;
/* spot light attenuation */
- float3 dir = make_float3(klight->spot.dir[0], klight->spot.dir[1], klight->spot.dir[2]);
ls->eval_fac *= spot_light_attenuation(
ls->Ng, klight->spot.spot_angle, klight->spot.spot_smooth, -ls->D);