| 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] | EffectMethodBase | |
| fogColor : uint | FogMethod | ||
| maxDistance : Number | FogMethod | ||
| minDistance : Number | 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) | 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 public function get fogColor():uint public function set fogColor(value:uint):void| maxDistance | property |
maxDistance:Number public function get maxDistance():Number public function set maxDistance(value:Number):void| minDistance | property |
minDistance:Number public function get minDistance():Number public function set minDistance(value:Number):void| FogMethod | () | Constructor |
public function FogMethod(minDistance:Number, maxDistance:Number, fogColor:uint = 0x808080)minDistance:Number | |
maxDistance:Number | |
fogColor:uint (default = 0x808080) |
| activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):voidParameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
| getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):StringParameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
| initConstants | () | method |
| initVO | () | method |