---
title: "Corona Rayswitch Map"
canonical: "https://documentation.chaos.com/space/CRMAX/124759111/Corona+Rayswitch+Map"
format: markdown
---
This page provides information on the Corona Rayswitch Map. 


## **Overview**

---

The Corona Rayswitch Map is analogous to the Corona Rayswitch Material. It lets you assign different maps or colors to different ray types (GI, reflection, refraction, direct visibility). <span style="color: #1c1c1c">You can use it, for example, to create a texture which is blue when seen directly, orange in reflections, and green in refraction.</span>

![image](media://bcf37c53-8b45-45a0-919b-47d6f71c9be8)


## **Properties**

---

**Global illumination** – Specifies the color or texture used for global illumination rays (light reflected off this Rayswitch map).

**Reflect** – Specifies the color or texture used for reflections (the appearance of this Rayswitch map when it is reflected in other objects).

**Refract** – Specifies the color or texture used for refraction (the appearance of this Rayswitch map when it is refracted in other objects).

**Direct visibility** – Specifies the color or texture used for direct visibility (the appearance of this Rayswitch map to the camera).

![image](media://39c63c88-fe14-4259-a627-4e8f63864a70)


## **Examples**

---


### **General Example**

<span style="color: #1c1c1c"> </span>

<span style="color: #1c1c1c">A ring object using the Corona Rayswitch Map which makes it show a blue checker texture when seen directly, an orange checker texture in reflections, and a green checker texture in refraction. The result is similar to when a Corona Rayswitch Material is used, however in this case we are operating on the texture level rather than the material level.</span>


![image](media://bcf37c53-8b45-45a0-919b-47d6f71c9be8)

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> ![image](media://79a5c5f6-7631-4620-bfa3-717482a9205b)


---


### **Practical Example**

<span style="color: #1c1c1c"> </span>Lowering GI Contribution of a Material in an Interior Scene


<span style="color: #1c1c1c"> An interior scene. Original rendering without the Rayswitch map. The walls are white and the overall orange hue comes from the highly saturated floor, which reflects sunlight.</span>

<span style="color: #1c1c1c">The GI contribution of the floor is lowered thanks to the Corona Rayswitch Map. It is plugged into the floor base color and its GI color is set to dark brown.</span>

![image](media://f11f145e-66d0-4f34-aa8a-55b00f01b8a7)

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> ![image](media://48ee9cf5-051e-49e2-a808-b9892a6c40b0)

![image](media://56996efb-f924-49cd-9c89-287b81cff7b1)

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> ![image](media://08645f39-5721-4679-b627-cc506c91168c)


---


<span style="color: #1c1c1c">We can also reduce the visibility of the sunlight reflection in the wall by making the Reflect color darker.</span>



![image](media://1accce0e-5ea1-4635-b128-ec45ca2885d1)

> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> ![image](media://7f6af6bc-e627-4640-8be7-a48bf1fe0110)


This comparison shows how the Rayswitch map can be used to change a material's contribution to indirect lighting (**Global illumination** slot) and its visibility in reflections (**Reflect** slot) without the need to adjust any render settings or the camera exposure.

![image](media://f11f145e-66d0-4f34-aa8a-55b00f01b8a7)

Original material

![image](media://1accce0e-5ea1-4635-b128-ec45ca2885d1)

Darker GI and reflections


> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> ![image](media://7f6af6bc-e627-4640-8be7-a48bf1fe0110)