blender/intern
Weizhen Huang 2ab020cc3c Cycles: enable normal transformation of lights in Vector Transform node
This is added so that some texture pipeline with point light and spot
light could work as before. Some people use the Normal socket from
Texture Coordinate node for texturing light, however the Normal there is
actually the incoming light direction and should be corrected. Using the
Parametric socket from Geometry node + normal transform from world to
object with Vector Transform node delivers the same result as using the
Normal socket from Texture Coordinate node.

Currently for lights only normal transformation works, because only
there we fetch light transform properly. This is a confusing behaviour,
but testing if it's a lamp in all relevant functions could have bad
impact on the performance. A more proper solution would be to change
lights to real objects, which is planned for the future.

![Geometry_Vector_Transform](attachments/fe38895e-85b3-4e7a-873f-12068237f790)

Pull Request: https://projects.blender.org/blender/blender/pulls/108666
2023-06-06 19:07:43 +02:00
..
atomic Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
audaspace CMake: fix AUDASPACE disabling WITH_PYTHON for Blender 2022-05-20 11:18:49 +10:00
clog Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
cycles Cycles: enable normal transformation of lights in Vector Transform node 2023-06-06 19:07:43 +02:00
dualcon Cleanup: consistent doxygen comment blocks 2023-05-27 15:10:58 +10:00
eigen Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
ffmpeg Cleanup: Deprecation warning in the FFmpeg 2023-05-31 16:41:47 +02:00
ghost Merge branch 'blender-v3.6-release' 2023-06-06 09:49:06 +10:00
guardedalloc Cleanup: remove redundant struct qualifier 2023-06-04 19:27:38 +10:00
iksolver Fix set but unused variable in IK solver 2023-04-19 10:02:09 +02:00
itasc Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
libc_compat Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
libmv Libmv: Remove FreeBSD sincos() workaround 2023-05-30 13:55:27 +02:00
locale Cleanup: move comments wrapped with MultiLine control statements 2023-05-02 09:54:48 +10:00
mantaflow BLI_path: add a size argument to BLI_path_frame 2023-05-02 17:19:48 +10:00
memutil BLI: Replace some macros with inlined functions for C++ 2023-05-23 09:21:45 +02:00
mikktspace Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
opencolorio Refactor: Convert ImBuf to C++ 2023-05-02 11:32:27 +02:00
opensubdiv Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
openvdb Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
quadriflow Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
renderdoc_dynload Cleanup: sort file, uppercase booleans, add missing headers 2023-05-17 13:13:10 +10:00
rigidbody Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine") 2023-05-02 09:37:49 +10:00
sky Cleanup: use C-style code comments, format 2023-03-03 16:29:22 +11:00
utfconv Remove "All Rights Reserved" from Blender Foundation copyright code 2023-03-30 10:51:59 +02:00
wayland_dynload GHOST/Wayland: improve workaround for libdecor setting the window state 2022-11-16 12:31:29 +11:00
CMakeLists.txt Cleanup: sort file, uppercase booleans, add missing headers 2023-05-17 13:13:10 +10:00