Class ContactShadowGroundPlugin

Base Class for Sync Viewer Plugins

Hierarchy (View Summary)

Constructors

Properties

_dirty: boolean = false
_material?: PhysicalMaterial
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<
    | "dispose"
    | "*"
    | "update"
    | "preRender"
    | "postRender"
    | "preFrame"
    | "postFrame"
    | "addPlugin"
    | "removePlugin"
    | "renderEnabled"
    | "renderDisabled",
    (e: IViewerEvent) => void,
> = {}
autoAdjustTransform: boolean = true
blurAmount: number = 1
constructor: typeof AViewerPluginSync & typeof AViewerPlugin
contactShadows: boolean = true
enableRefreshTransform: boolean = true

Extra flag for plugins to disable transform refresh like when animating or dragging

limitCameraAboveGround: boolean = false

If true, the camera will be limited to not go below the ground. note: this will only work when OrbitControls3 or three.js OrbitControls are being used.

renderToDepth: boolean = true
shadowCamera: OrthographicCamera = ...
shadowHeight: number = 5
shadowScale: number = 1
size: number = 8
tonemapGround: boolean = true

If false, the ground will not be tonemapped in post processing. note: this will only work when GBufferPlugin is being used. Also needs renderToDepth to be true.

uiConfig?: UiObjectConfig = undefined
useModelBounds: boolean = false
visible: boolean = true
yOffset: number = 0
OldPluginType: string = 'Ground'
PluginType: "ContactShadowGroundPlugin" = 'ContactShadowGroundPlugin'

Accessors

Methods