Package | away3d.materials.methods |
Class | public class TerrainDiffuseMethod |
Inheritance | TerrainDiffuseMethod BasicDiffuseMethod LightingMethodBase ShadingMethodBase |
Property | Defined by | ||
---|---|---|---|
alphaThreshold : Number [write-only]
| TerrainDiffuseMethod | ||
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 | BasicDiffuseMethod | ||
_totalLightColorReg : ShaderRegisterElement | BasicDiffuseMethod | ||
viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase |
Method | Defined by | ||
---|---|---|---|
TerrainDiffuseMethod | |||
Copies the state from a BasicDiffuseMethod object into the current object.
| BasicDiffuseMethod | ||
dispose(deep:Boolean):void
| TerrainDiffuseMethod | ||
invalidateBitmapData():void
Marks the texture for update next on the next render.
| BasicDiffuseMethod | ||
normalizeSplats():void
| TerrainDiffuseMethod | ||
setSplattingLayer(index:uint, texture:BitmapData, alpha:BitmapData, tile:Number = 50):void
| TerrainDiffuseMethod |
Method | Defined by | ||
---|---|---|---|
getSplatSampleCode(targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, uvReg:ShaderRegisterElement = null):String
| TerrainDiffuseMethod | ||
getTexSampleCode(targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, uvReg:ShaderRegisterElement = null):String
A helper method that generates standard code for sampling from a texture using the normal uv coordinates.
| ShadingMethodBase | ||
invalidateShaderProgram():void
Marks the shader program as invalid, so it will be recompiled before the next render.
| ShadingMethodBase |
alphaThreshold | property |
alphaThreshold:Number
[write-only]Implementation
public function set alphaThreshold(value:Number):void
TerrainDiffuseMethod | () | constructor |
public function TerrainDiffuseMethod()
Init Parameters
activate | () | method |
arcane override function activate(context:Context3D, contextIndex:uint):void
Parameters
context:Context3D |
|
contextIndex:uint |
deactivate | () | method |
arcane override function deactivate(context:Context3D):void
Parameters
context:Context3D |
dispose | () | method |
public override function dispose(deep:Boolean):void
Parameters
deep:Boolean |
getFragmentPostLightingCode | () | method |
arcane override function getFragmentPostLightingCode(regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
regCache:ShaderRegisterCache |
|
targetReg:ShaderRegisterElement |
String |
getSplatSampleCode | () | method |
protected function getSplatSampleCode(targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, uvReg:ShaderRegisterElement = null):String
Parameters
targetReg:ShaderRegisterElement |
|
inputReg:ShaderRegisterElement |
|
uvReg:ShaderRegisterElement (default = null )
|
String |
normalizeSplats | () | method |
public function normalizeSplats():void
setSplattingLayer | () | method |
public function setSplattingLayer(index:uint, texture:BitmapData, alpha:BitmapData, tile:Number = 50):void
Parameters
index:uint |
|
texture:BitmapData |
|
alpha:BitmapData |
|
tile:Number (default = 50 )
|