UNPKG

@threepipe/webgi-plugins

Version:

WebGi - Realistic Rendering Plugins for ThreePipe.

44 lines 2.13 kB
import { BaseGroundPlugin, IGeometry, IMaterial, IScene, ISceneEventMap, Mesh2, ThreeViewer, UiObjectConfig } from 'threepipe'; import { Reflector2 } from '../../utils/Reflector2'; import { Event, PlaneGeometry } from 'three'; import { ShadowMapBaker } from '../../utils/ShadowMapBaker'; export declare class AdvancedGroundPlugin extends BaseGroundPlugin { static readonly PluginType: string; get shadowBaker(): ShadowMapBaker | undefined; bakedShadows: boolean; groundReflection: boolean; physicalReflections: boolean; autoFrustumSize: boolean; private _refresh3; private _shadowBaker?; /** * autoBakeShadows - when true, shadows are baked automatically on scene update(whenever any object in the scene changes), set it to `false` to trigger baking manually with {@see bakeShadows()} */ autoBakeShadows: boolean; /** * bake shadows manually, to be used with {@see autoBakeShadows} set to false */ bakeShadows(): void; constructor(); protected _createMesh(mesh?: Mesh2<IGeometry & PlaneGeometry, IMaterial>): Reflector2<IGeometry<import('three').NormalBufferAttributes, import('threepipe').BufferGeometryEventMap> & PlaneGeometry>; _mesh: Reflector2<IGeometry & PlaneGeometry>; onAdded(viewer: ThreeViewer): void; protected _postFrame(): void; protected _preRender(): void; onRemove(viewer: ThreeViewer): void; protected _removeMaterial(): void; protected _onSceneUpdate(event: ISceneEventMap['addSceneObject' | 'sceneUpdate'] & Event<'addSceneObject' | 'sceneUpdate', IScene>): void; autoResetShadows: () => void; refresh(): void; protected _refreshTransform(): boolean; fromJSON(data: any, meta?: any): this | null; protected _refreshMaterial(): false | undefined; uiConfig: UiObjectConfig; protected _extraUiConfig(): (UiObjectConfig | (() => UiObjectConfig | UiObjectConfig[]))[]; planarReflections: boolean; } /** * @deprecated - use {@link AdvancedGroundPlugin} instead */ export declare const GroundPlugin: typeof AdvancedGroundPlugin; //# sourceMappingURL=AdvancedGroundPlugin.d.ts.map