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



Public Properties
 PropertyDefined By
  autoUpdateShadows : Boolean
ShadowMapperBase
  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
  
ShadowMapperBase
Protected Methods
 MethodDefined By
  
ShadowMapperBase
  
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

_shadowsInvalidproperty 
arcane var _shadowsInvalid:Boolean

autoUpdateShadowsproperty 
autoUpdateShadows:Boolean


Implementation
    public function get autoUpdateShadows():Boolean
    public function set autoUpdateShadows(value:Boolean):void
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
createCasterCollector()method
protected function createCasterCollector():ShadowCasterCollector

Returns
ShadowCasterCollector
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

updateShadows()method 
public function updateShadows():void