Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

RenderSettings.fogDensity

Switch to Manual
public static var fogDensity: float;

Description

The density of the exponential fog.

Fog density is used by Exponential and ExponentialSquared modes.

	/// Set for density
	RenderSettings.fogDensity = 0.1;
	// And enable fog
	RenderSettings.fog = true;

See Also: RenderSettings.fogMode.