trace_set set to green for shader and plane object (inclusive: disabled).

A scene file can be downloaded here.

Trace Set Passthrough

Trace Set

Trace Set Inclusive



Below is a shading network for a floor material that segregates shadow and specular rays into two different trace sets:

The sphere objects are then tagged to be part of the shadows or specular or both trace sets: