Package | away3d.materials.methods |
Class | public class DitheredShadowMapMethod |
Inheritance | DitheredShadowMapMethod ShadowMapMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alpha : Number | ShadowMapMethodBase | ||
castingLight : LightBase [read-only] | ShadowMapMethodBase | ||
epsilon : Number | ShadowMapMethodBase | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
range : Number | DitheredShadowMapMethod | ||
viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase |
Method | Defined By | ||
---|---|---|---|
DitheredShadowMapMethod(castingLight:DirectionalLight, highRes:Boolean = false)
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 | ||
ShadowMapMethodBase | |||
getPointFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String | ShadowMapMethodBase | ||
ShadowMapMethodBase | |||
getTexSampleCode(vo:MethodVO, targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, 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 | ||
invalidateShaderProgram():void
Marks the shader program as invalid, so it will be recompiled before the next render. | ShadingMethodBase |
range | property |
range:Number
public function get range():Number
public function set range(value:Number):void
DitheredShadowMapMethod | () | Constructor |
public function DitheredShadowMapMethod(castingLight:DirectionalLight, highRes:Boolean = false)
Creates a new DitheredShadowMapMethod object.
ParameterscastingLight:DirectionalLight | |
highRes:Boolean (default = false )
|
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
dispose | () | method |
override public function dispose():void
getPlanarFragmentCode | () | method |
override protected function getPlanarFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
initConstants | () | method |