View source
class FogMethod
package away3d.materials.methods
extends EffectMethodBase › ShadingMethodBase › NamedAssetBase
Available on all platforms
FogMethod provides a method to add distance-based fog to a material.
Constructor
new(minDistance:Float, maxDistance:Float, fogColor:Int = 0x808080)
Creates a new FogMethod object.
Parameters:
minDistance | The distance from which the fog starts appearing. |
|---|---|
maxDistance | The distance at which the fog is densest. |
fogColor | The colour of the fog. |