Package | away3d.materials.methods |
Class | public class HardShadowMapMethod |
Inheritance | HardShadowMapMethod SimpleShadowMapMethodBase ShadowMapMethodBase ShadingMethodBase flash.events.EventDispatcher |
Method | Defined By | ||
---|---|---|---|
HardShadowMapMethod(castingLight:LightBase)
Creates a new HardShadowMapMethod object. | HardShadowMapMethod | ||
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 |
Method | Defined By | ||
---|---|---|---|
getPlanarFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String [override]
| HardShadowMapMethod | ||
SimpleShadowMapMethodBase | |||
getPointFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String [override] | HardShadowMapMethod | ||
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 |
HardShadowMapMethod | () | Constructor |
public function HardShadowMapMethod(castingLight:LightBase)
Creates a new HardShadowMapMethod object.
ParameterscastingLight:LightBase |
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 |
String |
getPlanarFragmentCode | () | method |
override protected function getPlanarFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
getPointFragmentCode | () | method |
override protected function getPointFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |