Package | away3d.materials.methods |
Class | public class TripleFilteredShadowMapMethod |
Inheritance | TripleFilteredShadowMapMethod SimpleShadowMapMethodBase ShadowMapMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Method | Defined By | ||
---|---|---|---|
TripleFilteredShadowMapMethod(castingLight:DirectionalLight)
Creates a new BasicDiffuseMethod object. | TripleFilteredShadowMapMethod | ||
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]
Gets the fragment code for shadow mapping with a planar shadow map. | TripleFilteredShadowMapMethod | ||
Gets the vertex code for shadow mapping with a planar shadow map (fe: directional lights). | SimpleShadowMapMethodBase | ||
getPointFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Gets the fragment code for shadow mapping with a point light. | SimpleShadowMapMethodBase | ||
Gets the vertex code for shadow mapping with a point light. | 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
A helper method that generates standard code for sampling from a cube texture. | ShadingMethodBase | ||
invalidateShaderProgram():void
Marks the shader program as invalid, so it will be recompiled before the next render. | ShadingMethodBase |
TripleFilteredShadowMapMethod | () | Constructor |
public function TripleFilteredShadowMapMethod(castingLight:DirectionalLight)
Creates a new BasicDiffuseMethod object.
ParameterscastingLight:DirectionalLight — The light casting the shadow
|
getPlanarFragmentCode | () | method |
override protected function getPlanarFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Gets the fragment code for shadow mapping with a planar shadow map.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
| |
regCache:ShaderRegisterCache — The register cache used during the compilation.
| |
targetReg:ShaderRegisterElement — The register to contain the shadow coverage
|
String — |
initConstants | () | method |