Class: CameraDynamicSkyComponent

THING.CameraDynamicSkyComponent()

DynamicSky The dynamic sky.

Constructor

new CameraDynamicSkyComponent()

Source:

Extends

Members

active :Boolean

Active or deactive component.
Type:
  • Boolean
Overrides:
Source:

app :THING.App

Get application.
Type:
Overrides:
Source:

cloudsTexture :ImageTextureResource

Set clouds texture of sky.
Type:
  • ImageTextureResource
Source:

enable :Boolean

Get/Set enable of sky.
Type:
  • Boolean
Source:

envMap :CubeTextureResource

Get the texture of sky.
Type:
  • CubeTextureResource
Source:

exposure :Number

Set/Get exposure of sky.
Type:
  • Number
Default Value:
  • 0.8
Source:

hemisphereLight :HemisphereLight

Get hemisphere light.
Type:
  • HemisphereLight
Source:

lightExposure :Number

Set/Get light exposure of sky.
Type:
  • Number
Default Value:
  • 1.0
Source:

map :CubeTextureResource

Set map of sky.
Type:
  • CubeTextureResource
Source:

moonLight :DirectionalLight

Get moon light.
Type:
  • DirectionalLight
Source:

moonTexture :ImageTextureResource

Set moon texture of sky.
Type:
  • ImageTextureResource
Source:

object :THING.BaseObject

Get object.
Type:
Overrides:
Source:

onActiveChange :OnActiveChangeComponentCallback

When active change callback function.
Type:
Overrides:
Source:

onAfterAdd :OnAfterAddComponentCallback

After add.
Type:
Overrides:
Source:

onAfterAddChild :OnAddChildComponentCallback

When after add child callback function.
Type:
Overrides:
Source:

onAfterRemove :OnAfterRemoveComponentCallback

After remove.
Type:
Overrides:
Source:

onAfterRemoveChild :OnRemoveChildComponentCallback

When after remove child callback function.
Type:
Overrides:
Source:

onBeforeAdd :OnBeforeAddComponentCallback

Before add.
Type:
Overrides:
Source:

onBeforeAddChild :OnAddChildComponentCallback

When before add child callback function.
Type:
Overrides:
Source:

onBeforeRemove :OnBeforeRemoveComponentCallback

Before remove.
Type:
Overrides:
Source:

onBeforeRemoveChild :OnRemoveChildComponentCallback

When before remove child callback function.
Type:
Overrides:
Source:

onCopy :OnCopyComponentCallback

When copy callback function.
Type:
Overrides:
Source:

onExport :OnExportComponentCallback

When export data.
Type:
Overrides:
Source:

onImport :OnImportComponentCallback

When import data.
Type:
Overrides:
Source:

onInit :OnInitComponentCallback

When initialize callback function.
Type:
Overrides:
Source:

onLoadResource :OnLoadResourceComponentCallback

When load resource callback function.
Type:
Overrides:
Source:

onParentChange :OnParentChangeComponentCallback

When change parent callback function.
Type:
Overrides:
Source:

onRefresh :OnRefreshComponentCallback

When refresh callback function.
Type:
Overrides:
Source:

onResize :OnResizeComponentCallback

When resize callback function.
Type:
Overrides:
Source:

onUnloadResource :OnUnloadResourceComponentCallback

When unload resource callback function.
Type:
Overrides:
Source:

onUpdate :OnUpdateComponentCallback

When update callback function.
Type:
Overrides:
Source:

onVisibleChange :OnVisibleChangeComponentCallback

When visible change callback function.
Type:
Overrides:
Source:

starsData :String|Float32Array

Set stars data of sky.
Type:
  • String | Float32Array
Source:

sunEquatorOffset :Number

Set/Get sun equator offset.
Type:
  • Number
Default Value:
  • -40
Source:

textureSize :Array.<Number>

Set/Get size of texture.
Type:
  • Array.<Number>
Default Value:
  • - [1024,1024]
Source:

timeline :Number

Set/Get timeline.
Type:
  • Number
Default Value:
  • 13
Source:

Methods

(async) init()

Get/Set enable of sky.
Source:

onAdd(object)

When add component.
Parameters:
Name Type Description
object THING.BaseObject The object.
Overrides:
Source:

onRemove()

When remove component.
Overrides:
Source: