Blender Git Loki
Git Commits -> Revision 2e17c3f
Revision 2e17c3f by Erik Englesson (gsoc-2018-many-light-sampling, soc-2020-production-ready-light-tree, soc-2020-production-ready-light-tree-2) June 1, 2018, 14:12 (GMT) |
Added simple construction and sampling code for light BVH The light BVH is created on the host out of all emissive triangles and all lights in the scene. The nodes of the light BVH is then copied to the device where it is used when sampling lights. When a light is asked for it traverses the light BVH randomly to find a single light. This is still very much in development. |
Commit Details:
Full Hash: 2e17c3f3a10bb2f6a62b1e8d5d236c437f7ae4e8
Parent Commit: e558b1a
Lines Changed: +769, -4
2 Added Paths:
/intern/cycles/render/light_tree.cpp (+214, -0) (View)
/intern/cycles/render/light_tree.h (+154, -0) (View)
/intern/cycles/render/light_tree.h (+154, -0) (View)
8 Modified Paths:
/CMakeLists.txt (+2, -1) (Diff)
/intern/cycles/kernel/kernel_light.h (+85, -2) (Diff)
/intern/cycles/kernel/kernel_textures.h (+1, -0) (Diff)
/intern/cycles/render/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/render/light.cpp (+306, -1) (Diff)
/intern/cycles/render/light.h (+4, -0) (Diff)
/intern/cycles/render/scene.cpp (+1, -0) (Diff)
/intern/cycles/render/scene.h (+1, -0) (Diff)
/intern/cycles/kernel/kernel_light.h (+85, -2) (Diff)
/intern/cycles/kernel/kernel_textures.h (+1, -0) (Diff)
/intern/cycles/render/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/render/light.cpp (+306, -1) (Diff)
/intern/cycles/render/light.h (+4, -0) (Diff)
/intern/cycles/render/scene.cpp (+1, -0) (Diff)
/intern/cycles/render/scene.h (+1, -0) (Diff)