Class: ContactShadowGroundPlugin<TMesh>
Plugins.ContactShadowGroundPlugin
Type parameters
Name | Type |
---|---|
TMesh | extends Mesh <BufferGeometry , MeshStandardMaterial > | Reflector2 = Mesh <BufferGeometry , MeshStandardMaterial > | Reflector2 |
Hierarchy
BaseGroundPlugin
<TMesh
>↳
ContactShadowGroundPlugin
Implements
Properties
PluginType
▪ Static
Readonly
PluginType: "ContactShadowGroundPlugin"
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:39
dependencies
• dependencies: Class
<IViewerPlugin
<IViewerApp
, boolean
>>[]
Implementation of
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:60
visible
• visible: boolean
= true
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:85
size
• size: number
= 8
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:88
yOffset
• yOffset: number
= 0
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:91
renderToDepth
• renderToDepth: boolean
= true
Inherited from
BaseGroundPlugin.renderToDepth
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:94
tonemapGround
• tonemapGround: boolean
= true
Inherited from
BaseGroundPlugin.tonemapGround
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:97
limitCameraAboveGround
• limitCameraAboveGround: boolean
= false
Inherited from
BaseGroundPlugin.limitCameraAboveGround
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:100
enableRefreshTransform
• enableRefreshTransform: boolean
= true
Extra flag for plugins to disable transform refresh like when animating or dragging
Inherited from
BaseGroundPlugin.enableRefreshTransform
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:204
useModelBounds
• useModelBounds: boolean
= false
Inherited from
BaseGroundPlugin.useModelBounds
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:244
contactShadows
• contactShadows: boolean
= true
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:42
blurAmount
• blurAmount: number
= 1
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:46
shadowScale
• shadowScale: number
= 1
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:49
shadowHeight
• shadowHeight: number
= 5
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:52
shadowCamera
• shadowCamera: OrthographicCamera
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:56
_dirty
• Protected
_dirty: boolean
= false
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:23
_viewer
• Protected
Optional
_viewer: ViewerApp
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:27
_geometry
• Protected
_geometry: BufferGeometry
<NormalBufferAttributes
, Event
, string
>
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:49
_material
• Protected
Optional
_material: MeshStandardMaterial2
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:52
_mesh
• Protected
Optional
_mesh: TMesh
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:55
_options
• Protected
_options: GroundOptions
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:56
_manager
• Protected
Optional
_manager: AssetManagerPlugin
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:57
_uiConfig
• Protected
Optional
_uiConfig: UiObjectConfig
<any
, string
>
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:361
Accessors
dirty
• get
dirty(): boolean
Returns
boolean
Implementation of
Inherited from
BaseGroundPlugin.dirty
Defined in
webgi/src/core/AViewerPlugin.ts:16
• set
dirty(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Implementation of
Inherited from
BaseGroundPlugin.dirty
Defined in
webgi/src/core/AViewerPlugin.ts:20
viewer
• get
viewer(): undefined
| TViewer
Returns
undefined
| TViewer
Inherited from
BaseGroundPlugin.viewer
Defined in
webgi/src/core/AViewerPlugin.ts:29
enabled
• get
enabled(): boolean
Returns
boolean
Inherited from
BaseGroundPlugin.enabled
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:30
• set
enabled(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
BaseGroundPlugin.enabled
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:34
material
• get
material(): undefined
| MeshStandardMaterial2
Returns
undefined
| MeshStandardMaterial2
Inherited from
BaseGroundPlugin.material
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:38
mesh
• get
mesh(): undefined
| IModel
<TMesh
>
Returns
undefined
| IModel
<TMesh
>
Inherited from
BaseGroundPlugin.mesh
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:42
autoAdjustTransform
• get
autoAdjustTransform(): boolean
Returns
boolean
Inherited from
BaseGroundPlugin.autoAdjustTransform
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:102
• set
autoAdjustTransform(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
BaseGroundPlugin.autoAdjustTransform
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:105
uiConfig
• get
uiConfig(): UiObjectConfig
<any
, string
>
Returns
UiObjectConfig
<any
, string
>
Implementation of
Inherited from
BaseGroundPlugin.uiConfig
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:369
Methods
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Implementation of
IViewerPlugin.toJSON
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:49
exportState
▸ exportState(): any
Returns
any
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:68
importState
▸ importState(state
): Promise
<void
>
Parameters
Name | Type |
---|---|
state | any |
Returns
Promise
<void
>
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:71
storeState
▸ storeState(prefix?
, storage?
, data?
): void
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
data? | any |
Returns
void
Implementation of
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:78
loadState
▸ loadState(prefix?
, storage?
): Promise
<void
>
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
Returns
Promise
<void
>
Implementation of
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:88
setGeometry
▸ setGeometry(g?
): void
Parameters
Name | Type |
---|---|
g? | BufferGeometry <NormalBufferAttributes , Event , string > |
Returns
void
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:113
refreshTransform
▸ refreshTransform(): void
Returns
void
Inherited from
BaseGroundPlugin.refreshTransform
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:206
setOptions
▸ setOptions(options
): void
Parameters
Name | Type |
---|---|
options | Partial <GroundOptions > |
Returns
void
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:340
fromJSON
▸ fromJSON(data
, meta?
): null
| ContactShadowGroundPlugin
<TMesh
>
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| ContactShadowGroundPlugin
<TMesh
>
Implementation of
IViewerPlugin.fromJSON
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:353
onAdded
▸ onAdded(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Implementation of
Overrides
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:69
onDispose
▸ onDispose(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Implementation of
Overrides
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:158
onRemove
▸ onRemove(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Implementation of
Overrides
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:162
refreshOptions
▸ refreshOptions(): void
Returns
void
Overrides
BaseGroundPlugin.refreshOptions
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:204
_storeKey
▸ Protected
_storeKey(prefix?
): string
Parameters
Name | Type |
---|---|
prefix? | string |
Returns
string
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:64
_createMesh
▸ Protected
_createMesh(): Mesh
<BufferGeometry
<NormalBufferAttributes
, Event
, string
>, Material
<Event
, string
> | Material
<Event
, string
>[]>
Returns
Mesh
<BufferGeometry
<NormalBufferAttributes
, Event
, string
>, Material
<Event
, string
> | Material
<Event
, string
>[]>
Inherited from
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:109
_onSceneUpdate
▸ Protected
_onSceneUpdate(event?
): void
Parameters
Name | Type |
---|---|
event? | IEvent <string > |
Returns
void
Inherited from
BaseGroundPlugin._onSceneUpdate
Defined in
webgi/src/plugins/BaseGroundPlugin.ts:195
_postFrame
▸ Protected
_postFrame(): void
Returns
void
Overrides
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:108
_preRender
▸ Protected
_preRender(): void
Returns
void
Overrides
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:114
_refreshTransform
▸ Protected
_refreshTransform(): void
Returns
void
Overrides
BaseGroundPlugin._refreshTransform
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:170
_removeMaterial
▸ Protected
_removeMaterial(): void
Returns
void
Overrides
BaseGroundPlugin._removeMaterial
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:197
_refreshMaterial
▸ Protected
_refreshMaterial(): boolean
Returns
boolean
Overrides
BaseGroundPlugin._refreshMaterial
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:210
_extraUiConfig
▸ Protected
_extraUiConfig(): (UiObjectConfig
<any
, string
> | () => UiObjectConfig
<any
, string
> | UiObjectConfig
<any
, string
>[])[]
Returns
(UiObjectConfig
<any
, string
> | () => UiObjectConfig
<any
, string
> | UiObjectConfig
<any
, string
>[])[]
Overrides
BaseGroundPlugin._extraUiConfig
Defined in
webgi/src/plugins/ContactShadowGroundPlugin.ts:232
Constructors
constructor
• new ContactShadowGroundPlugin<TMesh
>(options?
, showDebug?
)
Type parameters
Name | Type |
---|---|
TMesh | extends Mesh <BufferGeometry <NormalBufferAttributes , Event , string >, MeshStandardMaterial <Event , string >> | Reflector2 = Mesh <BufferGeometry <NormalBufferAttributes , Event , string >, MeshStandardMaterial <Event , string >> | Reflector2 |
Parameters
Name | Type | Default value |
---|---|---|
options | Partial <GroundOptions > | {} |
showDebug | boolean | false |