Skip to content

Class: SphereReflection

Sky Box Renderer Component

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

new SphereReflection(): SphereReflection

Returns

SphereReflection

Inherited from

Reflection.constructor

Properties

object3D

object3D: Object3D = null

owner object3D

Inherited from

Reflection.object3D

Defined in

src/components/ComponentBase.ts:17


isDestroyed

Optional isDestroyed: boolean

Inherited from

Reflection.isDestroyed

Defined in

src/components/ComponentBase.ts:38


gid

gid: number = 0

Inherited from

Reflection.gid

Defined in

src/components/renderer/Reflection.ts:19


needUpdate

needUpdate: boolean = true

Inherited from

Reflection.needUpdate

Defined in

src/components/renderer/Reflection.ts:20


autoUpdate

autoUpdate: boolean = false

Inherited from

Reflection.autoUpdate

Defined in

src/components/renderer/Reflection.ts:21


radius

radius: number = 500

Inherited from

Reflection.radius

Defined in

src/components/renderer/Reflection.ts:22


instanceCount

instanceCount: number = 0

Inherited from

Reflection.instanceCount

Defined in

src/components/renderer/RenderNode.ts:35


lodLevel

lodLevel: number = 0

Inherited from

Reflection.lodLevel

Defined in

src/components/renderer/RenderNode.ts:36


alwaysRender

alwaysRender: boolean = false

Inherited from

Reflection.alwaysRender

Defined in

src/components/renderer/RenderNode.ts:37


instanceID

instanceID: string

Inherited from

Reflection.instanceID

Defined in

src/components/renderer/RenderNode.ts:38


drawType

drawType: number = 0

Inherited from

Reflection.drawType

Defined in

src/components/renderer/RenderNode.ts:39


isRenderOrderChange

Optional isRenderOrderChange: boolean

Inherited from

Reflection.isRenderOrderChange

Defined in

src/components/renderer/RenderNode.ts:55


needSortOnCameraZ

Optional needSortOnCameraZ: boolean

Inherited from

Reflection.needSortOnCameraZ

Defined in

src/components/renderer/RenderNode.ts:56


isRecievePostEffectUI

Optional isRecievePostEffectUI: boolean

Inherited from

Reflection.isRecievePostEffectUI

Defined in

src/components/renderer/RenderNode.ts:57

Accessors

eventDispatcher

get eventDispatcher(): CEventDispatcher

Returns

CEventDispatcher

Inherited from

Reflection.eventDispatcher

Defined in

src/components/ComponentBase.ts:23

set eventDispatcher(value): void

Parameters

NameType
valueCEventDispatcher

Returns

void

Inherited from

Reflection.eventDispatcher

Defined in

src/components/ComponentBase.ts:28


isStart

get isStart(): boolean

Returns

boolean

Inherited from

Reflection.isStart

Defined in

src/components/ComponentBase.ts:40


transform

get transform(): Transform

Return the Transform component attached to the Object3D.

Returns

Transform

Inherited from

Reflection.transform

Defined in

src/components/ComponentBase.ts:47


enable

get enable(): boolean

Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.

Returns

boolean

Inherited from

Reflection.enable

Defined in

src/components/ComponentBase.ts:68

set enable(value): void

Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.

Parameters

NameType
valueboolean

Returns

void

Inherited from

Reflection.enable

Defined in

src/components/ComponentBase.ts:54


renderLayer

get renderLayer(): RenderLayer

Returns

RenderLayer

Inherited from

Reflection.renderLayer

Defined in

src/components/renderer/RenderNode.ts:110

set renderLayer(value): void

Parameters

NameType
valueRenderLayer

Returns

void

Inherited from

Reflection.renderLayer

Defined in

src/components/renderer/RenderNode.ts:114


geometry

get geometry(): GeometryBase

Returns

GeometryBase

Inherited from

Reflection.geometry

Defined in

src/components/renderer/RenderNode.ts:122

set geometry(value): void

Parameters

NameType
valueGeometryBase

Returns

void

Inherited from

Reflection.geometry

Defined in

src/components/renderer/RenderNode.ts:126


rendererMask

get rendererMask(): number

Returns

number

Inherited from

Reflection.rendererMask

Defined in

src/components/renderer/RenderNode.ts:152

set rendererMask(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

Reflection.rendererMask

Defined in

src/components/renderer/RenderNode.ts:156


renderOrder

get renderOrder(): number

Returns

number

Inherited from

Reflection.renderOrder

Defined in

src/components/renderer/RenderNode.ts:160

set renderOrder(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

Reflection.renderOrder

Defined in

src/components/renderer/RenderNode.ts:164


materials

get materials(): Material[]

Returns

Material[]

Inherited from

Reflection.materials

Defined in

src/components/renderer/RenderNode.ts:173

set materials(value): void

Parameters

NameType
valueMaterial[]

Returns

void

Inherited from

Reflection.materials

Defined in

src/components/renderer/RenderNode.ts:177


castShadow

get castShadow(): boolean

Returns

boolean

Inherited from

Reflection.castShadow

Defined in

src/components/renderer/RenderNode.ts:345

set castShadow(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

Reflection.castShadow

Defined in

src/components/renderer/RenderNode.ts:349


castGI

get castGI(): boolean

Returns

boolean

Inherited from

Reflection.castGI

Defined in

src/components/renderer/RenderNode.ts:354

set castGI(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

Reflection.castGI

Defined in

src/components/renderer/RenderNode.ts:358


castReflection

get castReflection(): boolean

Returns

boolean

Inherited from

Reflection.castReflection

Defined in

src/components/renderer/RenderNode.ts:362

set castReflection(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

Reflection.castReflection

Defined in

src/components/renderer/RenderNode.ts:366

Methods

start

start(): void

Returns

void

Inherited from

Reflection.start

Defined in

src/components/ComponentBase.ts:113


stop

stop(): void

Returns

void

Inherited from

Reflection.stop

Defined in

src/components/ComponentBase.ts:114


onUpdate

onUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

Reflection.onUpdate

Defined in

src/components/ComponentBase.ts:117


onLateUpdate

onLateUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

Reflection.onLateUpdate

Defined in

src/components/ComponentBase.ts:118


onBeforeUpdate

onBeforeUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

Reflection.onBeforeUpdate

Defined in

src/components/ComponentBase.ts:119


onCompute

onCompute(view?, command?): any

Parameters

NameType
view?View3D
command?GPUCommandEncoder

Returns

any

Inherited from

Reflection.onCompute

Defined in

src/components/ComponentBase.ts:120


onGraphic

onGraphic(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

Reflection.onGraphic

Defined in

src/components/ComponentBase.ts:121


onParentChange

onParentChange(lastParent?, currentParent?): any

Parameters

NameType
lastParent?Object3D
currentParent?Object3D

Returns

any

Inherited from

Reflection.onParentChange

Defined in

src/components/ComponentBase.ts:122


onAddChild

onAddChild(child): any

Parameters

NameType
childObject3D

Returns

any

Inherited from

Reflection.onAddChild

Defined in

src/components/ComponentBase.ts:123


onRemoveChild

onRemoveChild(child): any

Parameters

NameType
childObject3D

Returns

any

Inherited from

Reflection.onRemoveChild

Defined in

src/components/ComponentBase.ts:124


cloneTo

cloneTo(obj): void

clone component data to target object3D

Parameters

NameTypeDescription
objObject3Dtarget object3D

Returns

void

Inherited from

Reflection.cloneTo

Defined in

src/components/ComponentBase.ts:131


attachSceneOctree

attachSceneOctree(octree): void

Parameters

NameType
octreeOctree

Returns

void

Inherited from

Reflection.attachSceneOctree

Defined in

src/components/renderer/RenderNode.ts:78


detachSceneOctree

detachSceneOctree(): void

Returns

void

Inherited from

Reflection.detachSceneOctree

Defined in

src/components/renderer/RenderNode.ts:83


copyComponent

copyComponent(from): this

Parameters

NameType
fromthis

Returns

this

Inherited from

Reflection.copyComponent

Defined in

src/components/renderer/RenderNode.ts:95


addMask

addMask(mask): void

Parameters

NameType
maskRendererMask

Returns

void

Inherited from

Reflection.addMask

Defined in

src/components/renderer/RenderNode.ts:140


removeMask

removeMask(mask): void

Parameters

NameType
maskRendererMask

Returns

void

Inherited from

Reflection.removeMask

Defined in

src/components/renderer/RenderNode.ts:144


hasMask

hasMask(mask): boolean

Parameters

NameType
maskRendererMask

Returns

boolean

Inherited from

Reflection.hasMask

Defined in

src/components/renderer/RenderNode.ts:148


addRendererMask

addRendererMask(tag): void

Parameters

NameType
tagRendererMask

Returns

void

Inherited from

Reflection.addRendererMask

Defined in

src/components/renderer/RenderNode.ts:228


removeRendererMask

removeRendererMask(tag): void

Parameters

NameType
tagRendererMask

Returns

void

Inherited from

Reflection.removeRendererMask

Defined in

src/components/renderer/RenderNode.ts:232


selfCloneMaterials

selfCloneMaterials(key): this

Parameters

NameType
keystring

Returns

this

Inherited from

Reflection.selfCloneMaterials

Defined in

src/components/renderer/RenderNode.ts:252


renderPass

renderPass(view, passType, renderContext): void

Parameters

NameType
viewView3D
passTypePassType
renderContextRenderContext

Returns

void

Inherited from

Reflection.renderPass

Defined in

src/components/renderer/RenderNode.ts:370


recordRenderPass2

recordRenderPass2(view, passType, rendererPassState, clusterLightingBuffer, encoder, useBundle?): void

Parameters

NameTypeDefault value
viewView3Dundefined
passTypePassTypeundefined
rendererPassStateRendererPassStateundefined
clusterLightingBufferClusterLightingBufferundefined
encoderGPURenderPassEncoderundefined
useBundlebooleanfalse

Returns

void

Inherited from

Reflection.recordRenderPass2

Defined in

src/components/renderer/RenderNode.ts:486


preInit

preInit(_rendererType): boolean

Parameters

NameType
_rendererTypePassType

Returns

boolean

Inherited from

Reflection.preInit

Defined in

src/components/renderer/RenderNode.ts:519


nodeUpdate

nodeUpdate(view, passType, renderPassState, clusterLightingBuffer?): void

Parameters

NameType
viewView3D
passTypePassType
renderPassStateRendererPassState
clusterLightingBuffer?ClusterLightingBuffer

Returns

void

Inherited from

Reflection.nodeUpdate

Defined in

src/components/renderer/RenderNode.ts:523


beforeDestroy

beforeDestroy(force?): void

Parameters

NameType
force?boolean

Returns

void

Inherited from

Reflection.beforeDestroy

Defined in

src/components/renderer/RenderNode.ts:609


destroy

destroy(force?): void

Parameters

NameType
force?boolean

Returns

void

Inherited from

Reflection.destroy

Defined in

src/components/renderer/RenderNode.ts:625


init

init(): void

Returns

void

Overrides

Reflection.init

Defined in

src/components/renderer/SphereReflection.ts:25


debug

debug(index, scale?): void

Parameters

NameTypeDefault value
indexnumberundefined
scalenumber1

Returns

void

Defined in

src/components/renderer/SphereReflection.ts:35


onEnable

onEnable(): void

Returns

void

Overrides

Reflection.onEnable

Defined in

src/components/renderer/SphereReflection.ts:55


onDisable

onDisable(): void

Returns

void

Overrides

Reflection.onDisable

Defined in

src/components/renderer/SphereReflection.ts:59


renderPass2

renderPass2(view, passType, rendererPassState, clusterLightingBuffer, encoder, useBundle?): void

Parameters

NameTypeDefault value
viewView3Dundefined
passTypePassTypeundefined
rendererPassStateRendererPassStateundefined
clusterLightingBufferClusterLightingBufferundefined
encoderGPURenderPassEncoderundefined
useBundlebooleanfalse

Returns

void

Overrides

Reflection.renderPass2

Defined in

src/components/renderer/SphereReflection.ts:63