FogMethod provides a method to add distance-based fog to a material.

Constructor

@:value({ fogColor : 0x808080 })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.

Variables

Inherited Variables

Defined by EffectMethodBase

read onlyassetType:String

Defined by ShadingMethodBase

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by ShadingMethodBase

copyFrom(method:ShadingMethodBase):Void

Copies the state from a ShadingMethodBase object into the current object.

dispose():Void

Cleans up any resources used by the current object.

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void