Blender Git Loki

Git Commits -> Revision a5ed075

Revision a5ed075 by Kévin Dietrich (master)
June 28, 2021, 17:09 (GMT)
Fix T87194: custom attributes not accessible with Cycles Volume

Custom properties defined on objects are not accessible from the
attribute node when rendering a volume in Cycles. This is because
this case is not handled.

To handle it, added a primitive type for volumes in the kernel,
which is then used in the initialization of ShaderData and to
check whether an attribute lookup is for a volume.

`volume_attribute_float4` is also now checking the attribute
element type to dispatch to the right lookup function.

Reviewed By: #cycles, brecht

Maniphest Tasks: T87194

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

Commit Details:

Full Hash: a5ed075110031792212a7f6b8a171242a3f428e8
Parent Commit: afb1755
Lines Changed: +23, -11

4 Modified Paths:

/intern/cycles/kernel/geom/geom_primitive.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_volume.h (+16, -8) (Diff)
/intern/cycles/kernel/kernel_shader.h (+1, -0) (Diff)
/intern/cycles/kernel/kernel_types.h (+5, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021