Package | away3d.materials.methods |
Class | public class BasicDiffuseMethod |
Inheritance | BasicDiffuseMethod LightingMethodBase ShadingMethodBase |
Subclasses | EnvMapDiffuseMethod, TerrainDiffuseMethod, WrapDiffuseMethod |
Property | Defined by | ||
---|---|---|---|
alphaThreshold : Number | BasicDiffuseMethod | ||
bitmapData : BitmapData
The bitmapData to use to define the diffuse reflection color per texel.
| BasicDiffuseMethod | ||
diffuseAlpha : Number
The alpha component of the diffuse reflection.
| BasicDiffuseMethod | ||
diffuseColor : uint
The color of the diffuse reflection when not using a texture.
| BasicDiffuseMethod | ||
passes : Vector
Any passes required that render to a texture used by this method.
| ShadingMethodBase | ||
shadowRegister : ShaderRegisterElement
[write-only]
| BasicDiffuseMethod | ||
_totalLightColorReg : ShaderRegisterElement | BasicDiffuseMethod | ||
viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase |
Property | Defined by | ||
---|---|---|---|
_diffuseInputIndex : int | BasicDiffuseMethod | ||
_diffuseInputRegister : ShaderRegisterElement | BasicDiffuseMethod | ||
_globalPosVertexReg : ShaderRegisterElement | ShadingMethodBase | ||
_mipmap : Boolean = true | ShadingMethodBase | ||
_needsGlobalPos : Boolean | ShadingMethodBase | ||
_needsNormals : Boolean | ShadingMethodBase | ||
_needsProjection : Boolean | ShadingMethodBase | ||
_needsUV : Boolean | ShadingMethodBase | ||
_needsView : Boolean | ShadingMethodBase | ||
_normalFragmentReg : ShaderRegisterElement | ShadingMethodBase | ||
_numLights : int | ShadingMethodBase | ||
_passes : Vector | ShadingMethodBase | ||
_projectionReg : ShaderRegisterElement | ShadingMethodBase | ||
_repeat : Boolean | ShadingMethodBase | ||
_shadowRegister : ShaderRegisterElement | BasicDiffuseMethod | ||
_smooth : Boolean = true | ShadingMethodBase | ||
_useTexture : Boolean | BasicDiffuseMethod | ||
_uvFragmentReg : ShaderRegisterElement | ShadingMethodBase | ||
_viewDirFragmentReg : ShaderRegisterElement | ShadingMethodBase | ||
_viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase |
Method | Defined by | ||
---|---|---|---|
Creates a new BasicDiffuseMethod object.
| BasicDiffuseMethod | ||
Copies the state from a BasicDiffuseMethod object into the current object.
| BasicDiffuseMethod | ||
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
| BasicDiffuseMethod | ||
invalidateBitmapData():void
Marks the texture for update next on the next render.
| BasicDiffuseMethod |
alphaThreshold | property |
alphaThreshold:Number
[read-write]Implementation
public function get alphaThreshold():Number
public function set alphaThreshold(value:Number):void
bitmapData | property |
bitmapData:BitmapData
[read-write]The bitmapData to use to define the diffuse reflection color per texel.
Implementation public function get bitmapData():BitmapData
public function set bitmapData(value:BitmapData):void
diffuseAlpha | property |
diffuseAlpha:Number
[read-write]The alpha component of the diffuse reflection.
Implementation public function get diffuseAlpha():Number
public function set diffuseAlpha(value:Number):void
diffuseColor | property |
diffuseColor:uint
[read-write]The color of the diffuse reflection when not using a texture.
Implementation public function get diffuseColor():uint
public function set diffuseColor(value:uint):void
_diffuseInputIndex | property |
protected var _diffuseInputIndex:int
_diffuseInputRegister | property |
protected var _diffuseInputRegister:ShaderRegisterElement
needsUV | property |
needsUV:Boolean
[read-only]Indicates whether the material requires uv coordinates.
Implementation arcane function get needsUV():Boolean
numLights | property |
numLights:int
[read-write]Implementation
arcane function get numLights():int
arcane function set numLights(value:int):void
_shadowRegister | property |
protected var _shadowRegister:ShaderRegisterElement
shadowRegister | property |
shadowRegister:ShaderRegisterElement
[write-only]Implementation
public function set shadowRegister(value:ShaderRegisterElement):void
_totalLightColorReg | property |
public var _totalLightColorReg:ShaderRegisterElement
_useTexture | property |
protected var _useTexture:Boolean
BasicDiffuseMethod | () | constructor |
public function BasicDiffuseMethod()
Init Parameters
activate | () | method |
arcane override function activate(context:Context3D, contextIndex:uint):void
Sets the render state for this method.
Parameterscontext:Context3D — The Context3D currently used for rendering.
|
|
contextIndex:uint |
copyFrom | () | method |
public override function copyFrom(method:ShadingMethodBase):void
Copies the state from a BasicDiffuseMethod object into the current object.
Parametersmethod:ShadingMethodBase |
deactivate | () | method |
arcane override function deactivate(context:Context3D):void
Parameters
context:Context3D |
dispose | () | method |
public override function dispose(deep:Boolean):void
Cleans up any resources used by the current object.
Parametersdeep:Boolean — Indicates whether other resources should be cleaned up, that could potentially be shared across different instances.
|
getFragmentAGALPreLightingCode | () | method |
arcane override function getFragmentAGALPreLightingCode(regCache:ShaderRegisterCache):String
Get the fragment shader code that will be needed before any per-light code is added.
ParametersregCache:ShaderRegisterCache — The register cache used during the compilation.
|
String |
getFragmentCodePerLight | () | method |
arcane override function getFragmentCodePerLight(lightIndex:int, lightDirReg:ShaderRegisterElement, lightColReg:ShaderRegisterElement, regCache:ShaderRegisterCache):String
Get the fragment shader code that will generate the code relevant to a single light.
ParameterslightIndex:int — The register cache used during the compilation.
|
|
lightDirReg:ShaderRegisterElement |
|
lightColReg:ShaderRegisterElement |
|
regCache:ShaderRegisterCache |
String |
getFragmentPostLightingCode | () | method |
arcane override function getFragmentPostLightingCode(regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Get the fragment shader code that should be added after all per-light code. Usually composits everything to the target register.
ParametersregCache:ShaderRegisterCache — The register cache used during the compilation.
|
|
targetReg:ShaderRegisterElement |
String |
invalidateBitmapData | () | method |
public function invalidateBitmapData():void
Marks the texture for update next on the next render.
reset | () | method |
arcane override function reset():void