Back to Content

Fog Rendering


CopperCube supports fog rendering, which looks especially nice when used in combination with terrain:




To enable fog rendering, just click the checkbox in the property window, when the root node of your scene is selected:




You can adjust the color of the fog freely. The density setting influences how far away the fog starts, and how far you can see through it. CopperCube uses exponential fog using the formula fog = exp2(-FogDensity * zDepth * 1.442695); // where 1.442695 = 1 / log(2)

Technical limitations

There are a few technical limitations for fog rendering: