Package | away3d.materials.methods |
Class | public class EnvMapAmbientMethod |
Inheritance | EnvMapAmbientMethod BasicAmbientMethod ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
ambient : Number
The strength of the ambient reflection of the surface. | BasicAmbientMethod | ||
ambientColor : uint
The colour of the ambient reflection of the surface. | BasicAmbientMethod | ||
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
envMap : CubeTextureBase
The cube environment map to use for the diffuse lighting. | EnvMapAmbientMethod | ||
id : String | NamedAssetBase | ||
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 | ||
texture : Texture2DBase
The bitmapData to use to define the diffuse reflection color per texel. | BasicAmbientMethod |
Method | Defined By | ||
---|---|---|---|
EnvMapAmbientMethod(envMap:CubeTextureBase)
Creates a new EnvMapDiffuseMethod object. | EnvMapAmbientMethod | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
copyFrom(method:ShadingMethodBase):void [override]
Copies the state from a ShadingMethodBase object into the current object. | BasicAmbientMethod | ||
dispose():void [override]
Cleans up any resources used by the current object. | EnvMapAmbientMethod | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
envMap | property |
envMap:CubeTextureBase
The cube environment map to use for the diffuse lighting.
public function get envMap():CubeTextureBase
public function set envMap(value:CubeTextureBase):void
EnvMapAmbientMethod | () | Constructor |
public function EnvMapAmbientMethod(envMap:CubeTextureBase)
Creates a new EnvMapDiffuseMethod object.
ParametersenvMap:CubeTextureBase — The cube environment map to use for the diffuse lighting.
|
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
dispose | () | method |
override public function dispose():void
Cleans up any resources used by the current object.
getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
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.
|