Packageaway3d.materials.methods
Classpublic class TerrainDiffuseMethod
InheritanceTerrainDiffuseMethod Inheritance BasicDiffuseMethod Inheritance LightingMethodBase Inheritance ShadingMethodBase

Public Properties
 PropertyDefined by
  alphaThreshold : Number
[write-only]
TerrainDiffuseMethod
 InheritedbitmapData : BitmapData
The bitmapData to use to define the diffuse reflection color per texel.
BasicDiffuseMethod
 InheriteddiffuseAlpha : Number
The alpha component of the diffuse reflection.
BasicDiffuseMethod
 InheriteddiffuseColor : uint
The color of the diffuse reflection when not using a texture.
BasicDiffuseMethod
 Inheritedpasses : Vector
Any passes required that render to a texture used by this method.
ShadingMethodBase
 InheritedshadowRegister : ShaderRegisterElement
BasicDiffuseMethod
 Inherited_totalLightColorReg : ShaderRegisterElement
BasicDiffuseMethod
 InheritedviewDirVaryingReg : ShaderRegisterElement
ShadingMethodBase
Protected Properties
 PropertyDefined by
 Inherited_diffuseInputIndex : int
BasicDiffuseMethod
 Inherited_diffuseInputRegister : ShaderRegisterElement
BasicDiffuseMethod
 Inherited_globalPosVertexReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_mipmap : Boolean = true
ShadingMethodBase
 Inherited_needsGlobalPos : Boolean
ShadingMethodBase
 Inherited_needsNormals : Boolean
ShadingMethodBase
 Inherited_needsProjection : Boolean
ShadingMethodBase
 Inherited_needsUV : Boolean
ShadingMethodBase
 Inherited_needsView : Boolean
ShadingMethodBase
 Inherited_normalFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_numLights : int
ShadingMethodBase
 Inherited_passes : Vector
ShadingMethodBase
 Inherited_projectionReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_repeat : Boolean
ShadingMethodBase
 Inherited_shadowRegister : ShaderRegisterElement
BasicDiffuseMethod
 Inherited_smooth : Boolean = true
ShadingMethodBase
 Inherited_useTexture : Boolean
BasicDiffuseMethod
 Inherited_uvFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_viewDirFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_viewDirVaryingReg : ShaderRegisterElement
ShadingMethodBase
Public Methods
 MethodDefined by
  
TerrainDiffuseMethod
 Inherited
Copies the state from a BasicDiffuseMethod object into the current object.
BasicDiffuseMethod
  
dispose(deep:Boolean):void
TerrainDiffuseMethod
 Inherited
Marks the texture for update next on the next render.
BasicDiffuseMethod
  
TerrainDiffuseMethod
  
setSplattingLayer(index:uint, texture:BitmapData, alpha:BitmapData, tile:Number = 50):void
TerrainDiffuseMethod
Protected Methods
 MethodDefined by
  
TerrainDiffuseMethod
 Inherited
A helper method that generates standard code for sampling from a texture using the normal uv coordinates.
ShadingMethodBase
 Inherited
Marks the shader program as invalid, so it will be recompiled before the next render.
ShadingMethodBase
Property detail
alphaThresholdproperty
alphaThreshold:Number  [write-only]Implementation
    public function set alphaThreshold(value:Number):void
Constructor detail
TerrainDiffuseMethod()constructor
public function TerrainDiffuseMethod() Init Parameters
Method detail
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

Returns
String
getSplatSampleCode()method 
protected function getSplatSampleCode(targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, uvReg:ShaderRegisterElement = null):String Parameters
targetReg:ShaderRegisterElement
 
inputReg:ShaderRegisterElement
 
uvReg:ShaderRegisterElement (default = null)

Returns
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)
Wiki link
Click to go to the wiki page for 'away3d.materials.methods.TerrainDiffuseMethod'

Code examples

Comments