Class

Shader

Output

Closure

 

synopsis

It is possible to tag objects to be part of one or many trace sets. The trace_set shader tags specific rays with an inclusive or exclusive trace set. Both geometry and rays can be tagged with trace sets:

  • A piece of geometry can have none or any number of trace set tags.
  • A ray can optionally have one trace set tag, and it can be exclusive or inclusive.

 

The way those two tags interact makes it possible to control visibility for specific rays:

 

  • A ray with no trace set will hit all geometry.
  • A ray tagged with an inclusive trace set will only hit geometry which has that trace set tag.
  • A ray tagged with an exclusive trace set will only see geometry that does NOT have that trace set tag.
 


passthrough

The shader that gets called after setting the label.

 

trace_set

The string label defining the set of objects to be traced or avoided. Objects are labeled using the Arnold Parameters Tag property.

 

inclusive

If on, the tracing works in inclusive mode, else in exclusive, as described above.