---
title: "Environment Fog"
canonical: "https://documentation.chaos.com/space/VC4D/116854376/Environment%20Fog"
format: markdown
---
This page provides information about the Environment fog in V-Ray for Cinema 4D.


## **Overview**

---

V-Ray Environment Fog is an atmospheric effect that allows the simulation of participating media like fog, atmospheric dust, and so forth. 3D texture maps can determine volumetric properties. The atmospheric effect can also be confined to geometry.

Environment Fog** **can use either of two algorithms to calculate volumetric lighting. The first algorithm is a simple exponential sampling scheme, which is used when no texture maps are specified. In this mode, Environment Fog takes several random points inside the volume and calculates the volumetric lighting at those points. The second algorithm is a raymarching scheme, used when any volume properties are mapped with a texture. In that case, Environment Fog traverses the fog volume in small steps, calculates the volume properties at each step, and computes the volume lighting accordingly.



## **How to Set Up**

---


### Fog Container

---


## **Options**

---


> Macro (anchor)



---

### Example: Phase Function

<span style="color: #272727">This example uses back lighting and the </span><span style="color: #272727">**Scatter GI **</span><span style="color: #272727">is turned on with 1 bounce. As you can see, negative values scatter the light backward and positive values scatter the light forward.</span>

![image](media://588509e9-5434-4e44-a16d-f615b69973a3)

**Phase Function** = 0.5

![image](media://10a3a626-60c0-4bb7-937d-dff080a61634)

**Phase Function **= 0.75

### Global Illumination

---

### **Ray Filter**

---

## **Lights**

---




## **Raymarching**

---


## **Fade Out**

---