| Package | away3d.materials.methods |
| Class | public class SoftShadowMapMethod |
| Inheritance | SoftShadowMapMethod SimpleShadowMapMethodBase ShadowMapMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
![]() | alpha : Number | ShadowMapMethodBase | |
![]() | assetFullPath : Array [read-only] | NamedAssetBase | |
![]() | assetNamespace : String [read-only] | NamedAssetBase | |
![]() | assetType : String [read-only] | ShadowMapMethodBase | |
![]() | castingLight : LightBase [read-only] | ShadowMapMethodBase | |
![]() | epsilon : Number | ShadowMapMethodBase | |
![]() | name : String | NamedAssetBase | |
| numSamples : int | SoftShadowMapMethod | ||
![]() | originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | |
![]() | passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | |
| range : Number | SoftShadowMapMethod | ||
| Method | Defined By | ||
|---|---|---|---|
SoftShadowMapMethod(castingLight:DirectionalLight, numSamples:int = 5)
Creates a new BasicDiffuseMethod object. | SoftShadowMapMethod | ||
![]() | assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | |
![]() | copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object. | ShadingMethodBase | |
![]() | dispose():void
Cleans up any resources used by the current object. | ShadingMethodBase | |
![]() | resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | |
| Method | Defined By | ||
|---|---|---|---|
getPlanarFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String [override]
| SoftShadowMapMethod | ||
![]() | SimpleShadowMapMethodBase | ||
![]() | getPointFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String | SimpleShadowMapMethodBase | |
![]() | SimpleShadowMapMethodBase | ||
![]() | 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 | |
![]() | getTexCubeSampleCode(vo:MethodVO, targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, texture:TextureProxyBase, uvReg:ShaderRegisterElement):String | ShadingMethodBase | |
![]() | invalidateShaderProgram():void
Marks the shader program as invalid, so it will be recompiled before the next render. | ShadingMethodBase | |
| numSamples | property |
numSamples:int public function get numSamples():int public function set numSamples(value:int):void| range | property |
range:Number public function get range():Number public function set range(value:Number):void| SoftShadowMapMethod | () | Constructor |
public function SoftShadowMapMethod(castingLight:DirectionalLight, numSamples:int = 5)Creates a new BasicDiffuseMethod object.
ParameterscastingLight:DirectionalLight | |
numSamples:int (default = 5) |
| activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):voidParameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
| activateForCascade | () | method |
override arcane function activateForCascade(vo:MethodVO, stage3DProxy:Stage3DProxy):voidParameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
| getCascadeFragmentCode | () | method |
override arcane function getCascadeFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, decodeRegister:ShaderRegisterElement, depthTexture:ShaderRegisterElement, depthProjection:ShaderRegisterElement, targetRegister:ShaderRegisterElement):StringParameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
decodeRegister:ShaderRegisterElement | |
depthTexture:ShaderRegisterElement | |
depthProjection:ShaderRegisterElement | |
targetRegister:ShaderRegisterElement |
String |
| getPlanarFragmentCode | () | method |
override protected function getPlanarFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
| initConstants | () | method |