Packageaway3d.materials.methods
Classpublic class LightMapMethod
InheritanceLightMapMethod Inheritance EffectMethodBase Inheritance ShadingMethodBase Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  blendMode : String
LightMapMethod
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
  texture : Texture2DBase
LightMapMethod
Protected Properties
 PropertyDefined By
 Inherited_passes : Vector.<MaterialPassBase>
ShadingMethodBase
 Inherited_sharedRegisters : ShaderRegisterData
ShadingMethodBase
Public Methods
 MethodDefined By
  
LightMapMethod(texture:Texture2DBase, blendMode:String = multiply, useSecondaryUV:Boolean = false)
LightMapMethod
 Inherited
Copies the state from a ShadingMethodBase object into the current object.
ShadingMethodBase
 Inherited
dispose():void
Cleans up any resources used by the current object.
ShadingMethodBase
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]
LightMapMethod
  MULTIPLY : String = multiply
[static]
LightMapMethod
Property Detail
blendModeproperty
blendMode:String


Implementation
    public function get blendMode():String
    public function set blendMode(value:String):void
textureproperty 
texture:Texture2DBase


Implementation
    public function get texture():Texture2DBase
    public function set texture(value:Texture2DBase):void
Constructor Detail
LightMapMethod()Constructor
public function LightMapMethod(texture:Texture2DBase, blendMode:String = multiply, useSecondaryUV:Boolean = false)



Parameters
texture:Texture2DBase
 
blendMode:String (default = multiply)
 
useSecondaryUV:Boolean (default = false)
Method Detail
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

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