---
title: "How to Create God Rays Effect"
canonical: "https://documentation.chaos.com/space/VC4D/116853686/How%20to%20Create%20God%20Rays%20Effect"
format: markdown
---
<span style="color: #000000">This tutorial shows how to create God Rays effect in V-Ray using the Environment Fog feature.</span>

Want to follow along but don’t have a license?


> Macro (ui-button)



<span style="color: #000000"> </span>

## **Step-by-step Guide**

---

To create God rays effect in V-Ray for Cinema4D, follow the steps below.

> Macro (ui-text-box)
> 
> The example scene can be downloaded from [here](https://drive.google.com/file/d/1By60XKFwPYhrSMyueGri9dQmTiYPMXpq/view?usp=sharing).


1. Create a camera, e.g., V-Ray Physical Cam.
2. Create a light, e.g., V-Ray Sun.
3. Add EnvironmentFog effect from: **V-Ray** > **Volumetrics **> **Environment Fog**.
  

![image](media://d61a93f2-fc94-4a1b-a30e-b632a05f7da1)


At this point, Environment Fog should be visible in the rendered image. To achieve a more convincing effect, adjust the Fog Color, Fog Distance, and Fog Height parameters accordingly. 

> Macro (ui-text-box)
> 
> Fog Distance and Fog Height parameters operate in Scene Units. For easier setup, it is recommended to know the size/scale of the scene.

  
4. The Fog Color parameter determines the color of the fog. 

<span style="color: #000000"> </span>

5. The Fog Distance parameter controls the fog density. Larger values make it more transparent, whereas smaller values make it more dense.

<span style="color: #000000"> </span>

<span style="color: #000000"> </span>

6. The Fog Height parameter determines the height of the fog.

<span style="color: #000000"> </span>

<span style="color: #000000"> </span>

> Macro (ui-text-box)
> 
> For a more realistic effect, set the Fog Height to be higher than the position of the camera and, if the scene allows it, to cover any visible parts of the scene.