From 8ca838069943d0de559cfb40762dbc9d4ad0b790 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 1 Dec 2021 20:52:31 +0100 Subject: Cleanup: compiler warning --- intern/cycles/kernel/light/light.h | 1 - 1 file changed, 1 deletion(-) (limited to 'intern/cycles/kernel/light') 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); -- cgit v1.2.3