Ray cube

 

Background shader which produces correct results with reflections and refractions by allowing different backgrounds to be specified for rays that reach the background directly or via reflection or refraction. This allows the reflected or refracted background to differ from the directly visible background.

Primary shader: Shader to be used for primary rays which do not intersect any geometry.

o Default: None.
o Range: All background shader.

Secondary shader: Shader to be used for reflection and refraction rays which do not intersect any further geometry (i.e., reach the background).

o Default: None.
o Range: All background shader.

Reflected shader: If set, this overrides the "secondary shader" for reflected rays only.

o Default: None.
o Range: All background shader.

Refracted shader: If set, this overrides the "secondary shader" for refracted rays only.

o Default: None.
o Range: All background shader.