Package | away3d.materials.methods |
Class | public class DitheredShadowMapMethod |
Inheritance | DitheredShadowMapMethod SimpleShadowMapMethodBase ShadowMapMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alpha : Number | ShadowMapMethodBase | ||
castingLight : LightBase [read-only] | ShadowMapMethodBase | ||
epsilon : Number | ShadowMapMethodBase | ||
numSamples : int | DitheredShadowMapMethod | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
range : Number | DitheredShadowMapMethod |
Method | Defined By | ||
---|---|---|---|
DitheredShadowMapMethod(castingLight:DirectionalLight, numSamples:int = 4)
Creates a new DitheredShadowMapMethod object. | DitheredShadowMapMethod | ||
copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object. | ShadingMethodBase | ||
dispose():void [override] | DitheredShadowMapMethod |
Method | Defined By | ||
---|---|---|---|
getPlanarFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String [override]
| DitheredShadowMapMethod | ||
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
DitheredShadowMapMethod | () | Constructor |
public function DitheredShadowMapMethod(castingLight:DirectionalLight, numSamples:int = 4)
Creates a new DitheredShadowMapMethod object.
ParameterscastingLight:DirectionalLight — The light casting the shadows
| |
numSamples:int (default = 4 ) — The amount of samples to take for dithering. Minimum 1, maximum 8.
|
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 |
dispose | () | method |
override public function dispose():void
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 |
String |
getPlanarFragmentCode | () | method |
override protected function getPlanarFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
initConstants | () | method |
initVO | () | method |