Packageaway3d.lights.shadowmaps
Classpublic class ShadowMapperBase
InheritanceShadowMapperBase Inheritance Object
Subclasses CubeMapShadowMapper, DirectionalShadowMapper



Public Properties
 PropertyDefined By
  depthMap : TextureProxyBase
[read-only]
ShadowMapperBase
  depthMapSize : uint
ShadowMapperBase
  light : LightBase
ShadowMapperBase
Protected Properties
 PropertyDefined By
  _casterCollector : ShadowCasterCollector
ShadowMapperBase
  _depthMapSize : uint = 2048
ShadowMapperBase
  _light : LightBase
ShadowMapperBase
Public Methods
 MethodDefined By
  
ShadowMapperBase
  
dispose():void
ShadowMapperBase
Protected Methods
 MethodDefined By
  
ShadowMapperBase
  
drawDepthMap(target:TextureBase, scene:Scene3D, renderer:DepthRenderer):void
ShadowMapperBase
  
ShadowMapperBase
Property Detail
_casterCollectorproperty
protected var _casterCollector:ShadowCasterCollector

_depthMapSizeproperty 
protected var _depthMapSize:uint = 2048

_lightproperty 
protected var _light:LightBase

depthMapproperty 
depthMap:TextureProxyBase  [read-only]


Implementation
    public function get depthMap():TextureProxyBase
depthMapSizeproperty 
depthMapSize:uint


Implementation
    public function get depthMapSize():uint
    public function set depthMapSize(value:uint):void
lightproperty 
light:LightBase


Implementation
    public function get light():LightBase
    public function set light(value:LightBase):void
Constructor Detail
ShadowMapperBase()Constructor
public function ShadowMapperBase()



Method Detail
createDepthTexture()method
protected function createDepthTexture():TextureProxyBase

Returns
TextureProxyBase
dispose()method 
public function dispose():void

drawDepthMap()method 
protected function drawDepthMap(target:TextureBase, scene:Scene3D, renderer:DepthRenderer):void

Parameters

target:TextureBase
 
scene:Scene3D
 
renderer:DepthRenderer

renderDepthMap()method 
arcane function renderDepthMap(stage3DProxy:Stage3DProxy, entityCollector:EntityCollector, renderer:DepthRenderer):void

Renders the depth map for this light.

Parameters

stage3DProxy:Stage3DProxy — The EntityCollector that contains the original scene data.
 
entityCollector:EntityCollector — The DepthRenderer to render the depth map.
 
renderer:DepthRenderer

setDepthMap()method 
arcane function setDepthMap(depthMap:TextureProxyBase):void

This is used by renderers that can support depth maps to be shared across instances

Parameters

depthMap:TextureProxyBase

updateDepthProjection()method 
protected function updateDepthProjection(viewCamera:Camera3D):void

Parameters

viewCamera:Camera3D