From 1272ee455e7aeed3f6acb0b8a8366af5ad6aec99 Mon Sep 17 00:00:00 2001 From: Lukas Stockner Date: Sat, 29 Oct 2016 18:54:42 +0200 Subject: Cycles: Implement texture coordinates for Point, Spot and Area Lamps When using the Normal output of the Texture Coordinate node on Point and Spot lamps, the coordinates now depend on the rotation of the lamp. On Area lamps, the Parametric output of the Geometry node now returns UV coordinates on the area lamp. Credit for the Area lamp part goes to Stefan Werner (from D1995). --- intern/cycles/blender/blender_object.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/cycles/blender') diff --git a/intern/cycles/blender/blender_object.cpp b/intern/cycles/blender/blender_object.cpp index f7f77dfb4cb..0d961c5bf88 100644 --- a/intern/cycles/blender/blender_object.cpp +++ b/intern/cycles/blender/blender_object.cpp @@ -153,6 +153,7 @@ void BlenderSync::sync_light(BL::Object& b_parent, /* location and (inverted!) direction */ light->co = transform_get_column(&tfm, 3); light->dir = -transform_get_column(&tfm, 2); + light->tfm = tfm; /* shader */ vector used_shaders; -- cgit v1.2.3