Blender Git Loki

Git Commits -> Revision be5c987

Revision be5c987 by Sergey Sharybin (cycles-x)
May 4, 2021, 13:13 (GMT)
Cycles: Refactor shadow catcher ray visibility

Allow to "filter" shadow catcher objects by any of the visibility
(diffuse, glossy, and so on) to allow complete separation of objects
in the scene.

Implemented as a bitmask shift magic: shadow catcher objects have their
visibility "duplicated" as a shift left by 16. The ray visibility for
tracing will use either low or high visibility bits depending on whether
shadow catcher object was hit or not.

Currently no functional changes, just committing separately to make it
easier to bisect possible unintended functional changes.

Initial idea implementation from Brecht, adopted to the shadow catcher
code by self.

Differential Revision: https://developer.blender.org/D11158

Commit Details:

Full Hash: be5c9872671ef12c9c1295a5481d6f0682350230
Parent Commit: 385c40b
Lines Changed: +126, -83

5 Modified Paths:

/intern/cycles/kernel/integrator/integrator_intersect_shadow.h (+15, -5) (Diff)
/intern/cycles/kernel/kernel_path_state.h (+10, -16) (Diff)
/intern/cycles/kernel/kernel_types.h (+70, -35) (Diff)
/intern/cycles/render/object.cpp (+1, -8) (Diff)
/intern/cycles/render/osl.cpp (+30, -19) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021