Package | away3d.materials.methods |
Class | public class LightMapDiffuseMethod |
Inheritance | LightMapDiffuseMethod CompositeDiffuseMethod BasicDiffuseMethod LightingMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alphaThreshold : Number [override] | CompositeDiffuseMethod | ||
blendMode : String | LightMapDiffuseMethod | ||
diffuseAlpha : Number [override]
The alpha component of the diffuse reflection. | CompositeDiffuseMethod | ||
diffuseColor : uint [override]
The color of the diffuse reflection when not using a texture. | CompositeDiffuseMethod | ||
lightMapTexture : Texture2DBase | LightMapDiffuseMethod | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
texture : Texture2DBase [override]
The bitmapData to use to define the diffuse reflection color per texel. | CompositeDiffuseMethod | ||
_totalLightColorReg : ShaderRegisterElement | BasicDiffuseMethod |
Method | Defined By | ||
---|---|---|---|
LightMapDiffuseMethod(lightMap:Texture2DBase, blendMode:String = multiply, useSecondaryUV:Boolean = false, baseMethod:BasicDiffuseMethod = null) | LightMapDiffuseMethod | ||
copyFrom(method:ShadingMethodBase):void [override]
Copies the state from a BasicDiffuseMethod object into the current object. | BasicDiffuseMethod | ||
dispose():void [override]
Cleans up any resources used by the current object. | CompositeDiffuseMethod | ||
generateMip(stage3DProxy:Stage3DProxy):void | BasicDiffuseMethod |
Constant | Defined By | ||
---|---|---|---|
ADD : String = add [static] | LightMapDiffuseMethod | ||
MULTIPLY : String = multiply [static] | LightMapDiffuseMethod |
blendMode | property |
blendMode:String
public function get blendMode():String
public function set blendMode(value:String):void
lightMapTexture | property |
lightMapTexture:Texture2DBase
public function get lightMapTexture():Texture2DBase
public function set lightMapTexture(value:Texture2DBase):void
LightMapDiffuseMethod | () | Constructor |
public function LightMapDiffuseMethod(lightMap:Texture2DBase, blendMode:String = multiply, useSecondaryUV:Boolean = false, baseMethod:BasicDiffuseMethod = null)
lightMap:Texture2DBase | |
blendMode:String (default = multiply )
| |
useSecondaryUV:Boolean (default = false )
| |
baseMethod:BasicDiffuseMethod (default = null )
|
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 |
String |
initVO | () | method |
ADD | Constant |
public static const ADD:String = add
MULTIPLY | Constant |
public static const MULTIPLY:String = multiply