Packageaway3d.materials.methods
Classpublic class EnvMapAmbientMethod
InheritanceEnvMapAmbientMethod Inheritance BasicAmbientMethod Inheritance ShadingMethodBase Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher

EnvMapDiffuseMethod provides a diffuse shading method that uses a diffuse irradiance environment map to approximate global lighting rather than lights.



Public Properties
 PropertyDefined By
 Inheritedambient : Number
The strength of the ambient reflection of the surface.
BasicAmbientMethod
 InheritedambientColor : uint
The colour of the ambient reflection of the surface.
BasicAmbientMethod
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
  envMap : CubeTextureBase
The cube environment map to use for the diffuse lighting.
EnvMapAmbientMethod
 Inheritedname : String
NamedAssetBase
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
 Inheritedtexture : Texture2DBase
The bitmapData to use to define the diffuse reflection color per texel.
BasicAmbientMethod
Protected Properties
 PropertyDefined By
 Inherited_ambientInputRegister : ShaderRegisterElement
BasicAmbientMethod
 Inherited_passes : Vector.<MaterialPassBase>
ShadingMethodBase
 Inherited_sharedRegisters : ShaderRegisterData
ShadingMethodBase
 Inherited_useTexture : Boolean
BasicAmbientMethod
Public Methods
 MethodDefined By
  
Creates a new EnvMapDiffuseMethod object.
EnvMapAmbientMethod
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
 Inherited
[override] Copies the state from a BasicAmbientMethod object into the current object.
BasicAmbientMethod
  
dispose():void
[override] Cleans up any resources used by the current object.
EnvMapAmbientMethod
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
Protected Methods
 MethodDefined By
 Inherited
getTex2DSampleCode(vo:MethodVO, targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, texture:TextureProxyBase, uvReg:ShaderRegisterElement = null, forceWrap:String = null):String
A helper method that generates standard code for sampling from a texture using the normal uv coordinates.
ShadingMethodBase
 Inherited
ShadingMethodBase
 Inherited
Marks the shader program as invalid, so it will be recompiled before the next render.
ShadingMethodBase
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
envMapproperty
envMap:CubeTextureBase

The cube environment map to use for the diffuse lighting.


Implementation
    public function get envMap():CubeTextureBase
    public function set envMap(value:CubeTextureBase):void
Constructor Detail
EnvMapAmbientMethod()Constructor
public function EnvMapAmbientMethod(envMap:CubeTextureBase)

Creates a new EnvMapDiffuseMethod object.

Parameters
envMap:CubeTextureBase — The cube environment map to use for the diffuse lighting.
Method Detail
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

Returns
String
initVO()method 
override arcane function initVO(vo:MethodVO):void

Parameters

vo:MethodVO