Creates a new ShadowNearMethod object.
The shadow map sampling method used to sample individual cascades (fe: ShadowHardMethod, ShadowSoftMethod)
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.
adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class
A unique id for the asset, used to identify assets in an associative array
The original name used for this asset in the resource (e.g. file) in which
it was found. This may not be the same as name
, which may
have changed due to of a name conflict.
The base diffuse method on which this method's shading is based.
The base diffuse method on which this method's shading is based.
The light casting the shadows.
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.
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.
Add an event listener
Copies the state from a ShadingMethodBase object into the current object.
Dispatch an event
check if an object has an event listener assigned to it
Marks the shader program as invalid, so it will be recompiled before the next render.
Remove an event listener
Generated using TypeDoc
ShadowNearMethod 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.
away.lights.NearDirectionalShadowMapper