Package | away3d.materials.methods |
Class | public class FogMethod |
Inheritance | FogMethod EffectMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only]
The type of the asset. | EffectMethodBase | ||
fogColor : uint
The colour of the fog. | FogMethod | ||
id : String | NamedAssetBase | ||
maxDistance : Number
The distance at which the fog is densest. | FogMethod | ||
minDistance : Number
The distance from which the fog starts appearing. | FogMethod | ||
name : String | NamedAssetBase | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase |
Method | Defined By | ||
---|---|---|---|
FogMethod(minDistance:Number, maxDistance:Number, fogColor:uint = 0x808080)
Creates a new FogMethod object. | FogMethod | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object. | ShadingMethodBase | ||
dispose():void
Cleans up any resources used by the current object. | ShadingMethodBase | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
fogColor | property |
fogColor:uint
The colour of the fog.
public function get fogColor():uint
public function set fogColor(value:uint):void
maxDistance | property |
maxDistance:Number
The distance at which the fog is densest.
public function get maxDistance():Number
public function set maxDistance(value:Number):void
minDistance | property |
minDistance:Number
The distance from which the fog starts appearing.
public function get minDistance():Number
public function set minDistance(value:Number):void
FogMethod | () | Constructor |
public function FogMethod(minDistance:Number, maxDistance:Number, fogColor:uint = 0x808080)
Creates a new FogMethod object.
ParametersminDistance:Number — The distance from which the fog starts appearing.
| |
maxDistance:Number — The distance at which the fog is densest.
| |
fogColor:uint (default = 0x808080 ) — The colour of the fog.
|
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
initConstants | () | method |
override arcane function initConstants(vo:MethodVO):void
Initializes unchanging shader constants using the data from a MethodVO.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|
initVO | () | method |
override arcane function initVO(vo:MethodVO):void
Initializes the properties for a MethodVO, including register and texture indices.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|