Packageaway3d.materials.methods
Classpublic class LightMapDiffuseMethod
InheritanceLightMapDiffuseMethod Inheritance CompositeDiffuseMethod Inheritance BasicDiffuseMethod Inheritance LightingMethodBase Inheritance ShadingMethodBase Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
 InheritedalphaThreshold : Number
[override]
CompositeDiffuseMethod
  blendMode : String
LightMapDiffuseMethod
 InheriteddiffuseAlpha : Number
[override] The alpha component of the diffuse reflection.
CompositeDiffuseMethod
 InheriteddiffuseColor : uint
[override] The color of the diffuse reflection when not using a texture.
CompositeDiffuseMethod
  lightMapTexture : Texture2DBase
LightMapDiffuseMethod
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
 Inheritedtexture : Texture2DBase
[override] The bitmapData to use to define the diffuse reflection color per texel.
CompositeDiffuseMethod
 Inherited_totalLightColorReg : ShaderRegisterElement
BasicDiffuseMethod
Protected Properties
 PropertyDefined By
 Inherited_alphaThreshold : Number = 0
BasicDiffuseMethod
 Inherited_baseDiffuseMethod : BasicDiffuseMethod
CompositeDiffuseMethod
 Inherited_diffuseInputRegister : ShaderRegisterElement
BasicDiffuseMethod
 Inherited_isFirstLight : Boolean
BasicDiffuseMethod
 Inherited_passes : Vector.<MaterialPassBase>
ShadingMethodBase
 Inherited_shadowRegister : ShaderRegisterElement
BasicDiffuseMethod
 Inherited_sharedRegisters : ShaderRegisterData
ShadingMethodBase
 Inherited_useTexture : Boolean
BasicDiffuseMethod
Public Methods
 MethodDefined By
  
LightMapDiffuseMethod(lightMap:Texture2DBase, blendMode:String = multiply, useSecondaryUV:Boolean = false, baseMethod:BasicDiffuseMethod = null)
LightMapDiffuseMethod
 Inherited
[override] Copies the state from a BasicDiffuseMethod object into the current object.
BasicDiffuseMethod
 Inherited
dispose():void
[override] Cleans up any resources used by the current object.
CompositeDiffuseMethod
 Inherited
generateMip(stage3DProxy:Stage3DProxy):void
BasicDiffuseMethod
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
  ADD : String = add
[static]
LightMapDiffuseMethod
  MULTIPLY : String = multiply
[static]
LightMapDiffuseMethod
Property Detail
blendModeproperty
blendMode:String


Implementation
    public function get blendMode():String
    public function set blendMode(value:String):void
lightMapTextureproperty 
lightMapTexture:Texture2DBase


Implementation
    public function get lightMapTexture():Texture2DBase
    public function set lightMapTexture(value:Texture2DBase):void
Constructor Detail
LightMapDiffuseMethod()Constructor
public function LightMapDiffuseMethod(lightMap:Texture2DBase, blendMode:String = multiply, useSecondaryUV:Boolean = false, baseMethod:BasicDiffuseMethod = null)



Parameters
lightMap:Texture2DBase
 
blendMode:String (default = multiply)
 
useSecondaryUV:Boolean (default = false)
 
baseMethod:BasicDiffuseMethod (default = null)
Method Detail
activate()method
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void

Parameters

vo:MethodVO
 
stage3DProxy:Stage3DProxy

getFragmentPostLightingCode()method 
override arcane function getFragmentPostLightingCode(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

Constant Detail
ADDConstant
public static const ADD:String = add

MULTIPLYConstant 
public static const MULTIPLY:String = multiply