Packageaway3d.materials.methods
Classpublic class NearShadowMapMethod
InheritanceNearShadowMapMethod Inheritance SimpleShadowMapMethodBase Inheritance ShadowMapMethodBase Inheritance ShadingMethodBase Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  alpha : Number
[override]
NearShadowMapMethod
 InheritedcastingLight : LightBase
[read-only]
ShadowMapMethodBase
  epsilon : Number
[override]
NearShadowMapMethod
  fadeRatio : Number
NearShadowMapMethod
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
Protected Properties
 PropertyDefined By
 Inherited_alpha : Number = 1
ShadowMapMethodBase
 Inherited_castingLight : LightBase
ShadowMapMethodBase
 Inherited_depthMapCoordReg : ShaderRegisterElement
SimpleShadowMapMethodBase
 Inherited_epsilon : Number = .002
ShadowMapMethodBase
 Inherited_passes : Vector.<MaterialPassBase>
ShadingMethodBase
 Inherited_shadowMapper : ShadowMapperBase
ShadowMapMethodBase
 Inherited_sharedRegisters : ShaderRegisterData
ShadingMethodBase
 Inherited_usePoint : Boolean
SimpleShadowMapMethodBase
Public Methods
 MethodDefined By
  
NearShadowMapMethod(baseMethod:SimpleShadowMapMethodBase, fadeRatio:Number = .1)
NearShadowMapMethod
 Inherited
Copies the state from a ShadingMethodBase object into the current object.
ShadingMethodBase
  
dispose():void
[override]
NearShadowMapMethod
Protected Methods
 MethodDefined By
 Inherited
SimpleShadowMapMethodBase
 Inherited
SimpleShadowMapMethodBase
 Inherited
SimpleShadowMapMethodBase
 Inherited
SimpleShadowMapMethodBase
 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
Property Detail
alphaproperty
alpha:Number[override]


Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
epsilonproperty 
epsilon:Number[override]


Implementation
    public function get epsilon():Number
    public function set epsilon(value:Number):void
fadeRatioproperty 
fadeRatio:Number


Implementation
    public function get fadeRatio():Number
    public function set fadeRatio(value:Number):void
sharedRegistersproperty 
sharedRegisters:ShaderRegisterData[override]


Implementation
    arcane function get sharedRegisters():ShaderRegisterData
    arcane function set sharedRegisters(value:ShaderRegisterData):void
Constructor Detail
NearShadowMapMethod()Constructor
public function NearShadowMapMethod(baseMethod:SimpleShadowMapMethodBase, fadeRatio:Number = .1)



Parameters
baseMethod:SimpleShadowMapMethodBase
 
fadeRatio:Number (default = .1)
Method Detail
activate()method
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void

Parameters

vo:MethodVO
 
stage3DProxy:Stage3DProxy

cleanCompilationData()method 
override arcane function cleanCompilationData():void

deactivate()method 
override arcane function deactivate(vo:MethodVO, stage3DProxy:Stage3DProxy):void

Parameters

vo:MethodVO
 
stage3DProxy:Stage3DProxy

dispose()method 
override public function dispose():void

getFragmentCode()method 
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String

Parameters

vo:MethodVO
 
regCache:ShaderRegisterCache
 
targetReg:ShaderRegisterElement

Returns
String
getVertexCode()method 
override arcane function getVertexCode(vo:MethodVO, regCache:ShaderRegisterCache):String

Parameters

vo:MethodVO
 
regCache:ShaderRegisterCache

Returns
String
initConstants()method 
override arcane function initConstants(vo:MethodVO):void

Parameters

vo:MethodVO

initVO()method 
override arcane function initVO(vo:MethodVO):void

Parameters

vo:MethodVO

reset()method 
override arcane function reset():void

setRenderState()method 
override arcane function setRenderState(vo:MethodVO, renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D):void

Parameters

vo:MethodVO
 
renderable:IRenderable
 
stage3DProxy:Stage3DProxy
 
camera:Camera3D