Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

RenderSettings.fogColor

static var fogColor: Color;
static Color fogColor;
static fogColor as Color

Description

The color of the fog.

	// Set the fog color to be blue
	RenderSettings.fogColor = Color.blue;
	// And enable fog
	RenderSettings.fog = true;