Class: GlobalIlluminationComponent
全局光照组件。 使用全局光照能够实现更加逼真的光照。 全局光照系统能够对光照在表面反射或折射到其它表面(间接光照)的方式进行建模,而非限定光照只能从光源照射到某个表面。
Hierarchy
↳
GlobalIlluminationComponent
Properties
Accessors
Methods
Constructors
Properties
object3D
• object3D: Object3D
= null
此组件附加到的Object3D对象。
Inherited from
Defined in
src/engine/components/ComponentBase.ts:14
serializeTag
• Optional
serializeTag: SerializeTag
Inherited from
Defined in
src/engine/components/ComponentBase.ts:30
probes
• probes: Probe
[]
Defined in
src/engine/components/rendererComponents/GlobalIlluminationComponent.ts:25
volume
• volume: IrradianceVolumeData
Defined in
src/engine/components/rendererComponents/GlobalIlluminationComponent.ts:26
Accessors
transform
• get
transform(): Transform
附加到此 Object3D对象 的 Transform组件。
Returns
Inherited from
ComponentBase.transform
Defined in
src/engine/components/ComponentBase.ts:39
enable
• get
enable(): boolean
启用/禁用 组件。启用的组件可更新,禁用的组件不可更新。
Returns
boolean
Inherited from
ComponentBase.enable
Defined in
src/engine/components/ComponentBase.ts:62
• set
enable(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
ComponentBase.enable
Defined in
src/engine/components/ComponentBase.ts:43
Methods
onVisible
▸ onVisible(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
Defined in
src/engine/components/ComponentBase.ts:66
cloneTo
▸ cloneTo(obj
): void
创建新的组件,复制当前组件的属性,并添加到目标对象上。
Parameters
Name | Type | Description |
---|---|---|
obj | Object3D | 源对象 |
Returns
void
Inherited from
Defined in
src/engine/components/ComponentBase.ts:114
destroy
▸ destroy(): void
移除组件时候调用
Returns
void
Inherited from
Defined in
src/engine/components/ComponentBase.ts:119
onUpdate
▸ onUpdate(call
): void
添加更新函数。会在每帧更新时执行。
Parameters
Name | Type | Description |
---|---|---|
call | Function | 回调函数 |
Returns
void
Inherited from
Defined in
src/engine/components/ComponentBase.ts:135
onLateUpdate
▸ onLateUpdate(call
): void
添加延迟更新函数。
Parameters
Name | Type | Description |
---|---|---|
call | Function | 回调函数 |
Returns
void
Inherited from
Defined in
src/engine/components/ComponentBase.ts:148
onBeforeUpdate
▸ onBeforeUpdate(call
): void
添加帧更新前执行的函数。
Parameters
Name | Type | Description |
---|---|---|
call | Function | 回调函数 |
Returns
void
Inherited from
Defined in
src/engine/components/ComponentBase.ts:161
debug
▸ debug(): void
Returns
void
Defined in
src/engine/components/rendererComponents/GlobalIlluminationComponent.ts:114
serialization
▸ serialization(assets
): SerializeComponentBase
Parameters
Name | Type |
---|---|
assets | ISerializeAssetsCollect |
Returns
Overrides
Defined in
src/engine/components/rendererComponents/GlobalIlluminationComponent.ts:200
unSerialization
▸ unSerialization(componentData
, data
): void
Parameters
Name | Type |
---|---|
componentData | SerializeComponentBase |
data | UnSerializeData |
Returns
void
Overrides
Defined in
src/engine/components/rendererComponents/GlobalIlluminationComponent.ts:208
Constructors
constructor
• new GlobalIlluminationComponent()
Overrides
Defined in
src/engine/components/rendererComponents/GlobalIlluminationComponent.ts:56