RenderTargetTexture

BaseTextureTextureTargetTexture

Description

class RenderTargetTexture extends Texture

Members

isCube : boolean

static REFRESHRATE_RENDER_ONCE : number

static REFRESHRATE_RENDER_ONEVERYFRAME : number

static REFRESHRATE_RENDER_ONEVERYTWOFRAMES : number

renderListPredicate : (AbstractMesh: AbstractMesh) => boolean

Use this predicate to dynamically define the list of mesh you want to render.

If set, the renderList property will be overwritten.

Parameters

Name Type Description
AbstractMesh AbstractMesh

renderList : Nullable<Array<AbstractMesh>>

Use this list to define the list of mesh you want to render.

renderParticles : boolean

renderSprites : boolean

coordinatesMode : number

activeCamera : Nullable<Camera>

customRenderFunction : (opaqueSubMeshes: SmartArray<SubMesh>, alphaTestSubMeshes: SmartArray<SubMesh>, transparentSubMeshes: SmartArray<SubMesh>, depthOnlySubMeshes: SmartArray<SubMesh>, beforeTransparents: () => void) => void

Parameters

Name Type Description
opaqueSubMeshes SmartArray<SubMesh>
alphaTestSubMeshes SmartArray<SubMesh>
transparentSubMeshes SmartArray<SubMesh>
depthOnlySubMeshes SmartArray<SubMesh>

useCameraPostProcesses : boolean

ignoreCameraViewport : boolean

onBeforeBindObservable : Observable<RenderTargetTexture>

An event triggered when the texture is unbind.

@type {BABYLON.Observable}

onAfterUnbindObservable : Observable<RenderTargetTexture>

An event triggered when the texture is unbind.

@type {BABYLON.Observable}

onAfterUnbind : () => void

onBeforeRenderObservable : Observable<number>

An event triggered before rendering the texture

@type {BABYLON.Observable}

onBeforeRender : (faceIndex: number) => void

Parameters

Name Type Description
faceIndex number

onAfterRenderObservable : Observable<number>

An event triggered after rendering the texture

@type {BABYLON.Observable}

onAfterRender : (faceIndex: number) => void

Parameters

Name Type Description
faceIndex number

onClearObservable : Observable<Engine>

An event triggered after the texture clear

@type {BABYLON.Observable}

onClear : (Engine: Engine) => void

Parameters

Name Type Description
Engine Engine

clearColor : Color4