Packageaway3d.materials.methods
Classpublic class SoftShadowMapMethod
InheritanceSoftShadowMapMethod Inheritance SimpleShadowMapMethodBase Inheritance ShadowMapMethodBase Inheritance ShadingMethodBase Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
 Inheritedalpha : Number
ShadowMapMethodBase
 InheritedcastingLight : LightBase
[read-only]
ShadowMapMethodBase
 Inheritedepsilon : Number
ShadowMapMethodBase
  numSamples : int
SoftShadowMapMethod
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
  range : Number
SoftShadowMapMethod
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
  
SoftShadowMapMethod(castingLight:DirectionalLight, numSamples:int = 5)
Creates a new BasicDiffuseMethod object.
SoftShadowMapMethod
 Inherited
Copies the state from a ShadingMethodBase object into the current object.
ShadingMethodBase
 Inherited
dispose():void
Cleans up any resources used by the current object.
ShadingMethodBase
Protected Methods
 MethodDefined By
  
[override]
SoftShadowMapMethod
 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
numSamplesproperty
numSamples:int


Implementation
    public function get numSamples():int
    public function set numSamples(value:int):void
rangeproperty 
range:Number


Implementation
    public function get range():Number
    public function set range(value:Number):void
Constructor Detail
SoftShadowMapMethod()Constructor
public function SoftShadowMapMethod(castingLight:DirectionalLight, numSamples:int = 5)

Creates a new BasicDiffuseMethod object.

Parameters
castingLight:DirectionalLight
 
numSamples:int (default = 5)
Method Detail
activate()method
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void

Parameters

vo:MethodVO
 
stage3DProxy:Stage3DProxy

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

Parameters

vo:MethodVO
 
stage3DProxy:Stage3DProxy

getCascadeFragmentCode()method 
override arcane function getCascadeFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, decodeRegister:ShaderRegisterElement, depthTexture:ShaderRegisterElement, depthProjection:ShaderRegisterElement, targetRegister:ShaderRegisterElement):String

Parameters

vo:MethodVO
 
regCache:ShaderRegisterCache
 
decodeRegister:ShaderRegisterElement
 
depthTexture:ShaderRegisterElement
 
depthProjection:ShaderRegisterElement
 
targetRegister:ShaderRegisterElement

Returns
String
getPlanarFragmentCode()method 
override protected function getPlanarFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String

Parameters

vo:MethodVO
 
regCache:ShaderRegisterCache
 
targetReg:ShaderRegisterElement

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

Parameters

vo:MethodVO