Options
Menu

Class ShadowMapperBase

Hierarchy

  • AssetBase

Implements

  • IAsset
  • IAssetAdapter

Index

Constructors

constructor

  • Parameters

    • Optional name: string

    Returns ShadowMapperBase

Properties

_adapter

_adapter: IAssetAdapter

Protected _depthMap

_depthMap: TextureBase

Protected _depthMapSize

_depthMapSize: number

Protected _explicitDepthMap

_explicitDepthMap: boolean

_iShadowsInvalid

_iShadowsInvalid: boolean

Protected _light

_light: LightBase

adaptee

adaptee: AssetBase

adapter

adapter: IAssetAdapter

adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class

assetFullPath

assetFullPath: Array<string>

assetNamespace

assetNamespace: string

assetType

assetType: string

id

id: number

A unique id for the asset, used to identify assets in an associative array

name

name: string

originalName

originalName: string

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.

Static DEFAULT_NAMESPACE

DEFAULT_NAMESPACE: string

Static ID_COUNT

ID_COUNT: number

Accessors

autoUpdateShadows

  • get (): boolean
  • set (value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

depthMap

  • get (): TextureBase
  • Returns TextureBase

depthMapSize

  • get (): number
  • set (value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

light

  • Returns LightBase

  • Parameters

    Returns void

Methods

Protected _createDepthTexture

  • _createDepthTexture(): TextureBase
  • Returns TextureBase

Protected _drawDepthMap

  • _drawDepthMap(view: IView, target: TextureBase, renderer: IRenderer): void
  • Parameters

    Returns void

Protected _setDepthMapSize

  • _setDepthMapSize(value: any): void
  • Parameters

    • value: any

    Returns void

Protected _updateDepthProjection

  • _updateDepthProjection(projection: ProjectionBase): void
  • Parameters

    • projection: ProjectionBase

    Returns void

addEventListener

  • addEventListener(type: string, listener: function): void
  • Add an event listener

    method

    addEventListener

    Parameters

    • type: string
    • listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns void

assetPathEquals

  • assetPathEquals(name: string, ns: string): boolean
  • Parameters

    • name: string
    • ns: string

    Returns boolean

clear

  • clear(): void
  • Returns void

dispatchEvent

  • dispatchEvent(event: EventBase): void
  • Dispatch an event

    method

    dispatchEvent

    Parameters

    • event: EventBase

    Returns void

dispose

  • dispose(): void
  • Returns void

hasEventListener

  • hasEventListener(type: string, listener?: function): boolean
  • check if an object has an event listener assigned to it

    method

    hasListener

    Parameters

    • type: string
    • Optional listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns boolean

iRenderDepthMap

  • Parameters

    Returns void

iSetDepthMap

  • iSetDepthMap(depthMap: TextureBase): void
  • Parameters

    • depthMap: TextureBase

    Returns void

invalidate

  • invalidate(): void
  • Returns void

isAsset

  • isAsset(assetClass: IAssetClass): boolean
  • Parameters

    • assetClass: IAssetClass

    Returns boolean

removeEventListener

  • removeEventListener(type: string, listener: function): void
  • Remove an event listener

    method

    removeEventListener

    Parameters

    • type: string
    • listener: function
        • (event: EventBase): void
        • Parameters

          • event: EventBase

          Returns void

    Returns void

resetAssetPath

  • resetAssetPath(name: string, ns?: string, overrideOriginal?: boolean): void
  • Parameters

    • name: string
    • Optional ns: string
    • Optional overrideOriginal: boolean

    Returns void

updateFullPath

  • updateFullPath(): void
  • Returns void

updateShadows

  • updateShadows(): void
  • Returns void

Generated using TypeDoc