Corona Ray Switch Shader - C4D
In addition to the below content, see: Corona Ray Switch Shader at Chaos Docs
The Corona Ray Switch shader is analogous to the Corona Ray Switcher material. It lets you assign different shaders or solid colors for different ray types (GI, reflection, refraction, direct visibility).
Examples
Example A
(Objects)
For this example, a Corona Physical material has been applied to the statue. The following shaders are in use inside the Corona Ray Switch Shader: a Magenta solid color was used for the Global Illumination, a Checkerboard shader was used for Reflections, an Orange solid color was used for Refractions, and a Light gray solid color was used for the Direct visibility:
Simple material without the Corona Ray Switch Shader:

Material using the Corona Ray Switch Shader:

Material Setup:


Example B
(Interior scene)
In this case, the walls and ceiling are monochromatic and slightly reflective; the floor is highly reflective and saturated. We want to get rid of excessive color bleeding and noisy reflective caustics on the walls:

In this case, the walls and ceiling are monochromatic and slightly reflective; the floor is highly reflective and saturated. We want to get rid of excessive color bleeding and noisy reflective caustics on the walls:

![]() |
![]() |
Floor material setup | Wall and ceiling material setup |
We will use a Corona Ray Switch Shader to reduce the color bleed for the floor material's Baselayer texture. Then, we will use a darkened color for the Global Illumination input slot of the Corona Ray Switch and the previous floor color for the rest of the input slots.
Result:

Material setup:

Now let's do the same for the Reflect override input slot from the Corona Ray Switch Shader to dim the floor's colorful reflections in the walls:
Result:

Now let's do the same for the Reflect override input slot from the Corona Ray Switch Shader to dim the floor's colorful reflections in the walls:
Result:

Material setup:

Additionally, we can repeat the process for the material applied to the walls.

Additionally, we can repeat the process for the material applied to the walls.
Before and After comparison:
The end result, after the same amount of passes, is less noisy and renders slightly faster while preserving the direct visual appearance of materials. It is not physically correct, though.
![]() |
Original image. |
![]() |
The applied materials are using the Corona Ray Switch Shader. |
See also: