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

@:value({ fadeRatio : .1 })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.

Variables

Methods

dispose():Void

@inheritDoc

Inherited Variables

Defined by ShadowMapMethodBase

alpha:Float

read onlyassetType:String

epsilon:Float

Defined by ShadingMethodBase

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by ShadingMethodBase

copyFrom(method:ShadingMethodBase):Void

Copies the state from a ShadingMethodBase object into the current object.

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void