View source
class NearShadowMapMethod
package away3d.materials.methods
extends SimpleShadowMapMethodBase › ShadowMapMethodBase › ShadingMethodBase › NamedAssetBase
Available on all platforms
NearShadowMapMethod provides a shadow map method that restricts the shadowed area near the camera to optimize shadow map usage. This method needs to be used in conjunction with a NearDirectionalShadowMapper.
See also:
away3d.lights.shadowmaps.NearDirectionalShadowMapper
Constructor
new(baseMethod:SimpleShadowMapMethodBase, fadeRatio:Float = .1)
Creates a new NearShadowMapMethod object.
Parameters:
baseMethod | The shadow map sampling method used to sample individual cascades (fe: HardShadowMapMethod, SoftShadowMapMethod) |
|---|---|
fadeRatio | The amount of shadow fading to the outer shadow area. A value of 1 would mean the shadows start fading from the camera's near plane. |