@speckle/viewer
Version:
A 3d viewer for Speckle, based on threejs.
23 lines (22 loc) • 1.05 kB
TypeScript
import { Material, OrthographicCamera, PerspectiveCamera, Scene, WebGLRenderer } from 'three';
import { PassOptions } from './GPass.js';
import SpeckleViewportMaterial from '../../materials/SpeckleViewportMaterial.js';
import { Asset } from '../../../IViewer.js';
import { GeometryPass } from './GeometryPass.js';
export interface ViewportPassOptions extends PassOptions {
minIntensity?: number;
matcapTexture?: Asset | null;
opacity?: number;
}
export declare const DefaultViewportPassOptions: Required<ViewportPassOptions>;
export declare class ViewportPass extends GeometryPass {
protected viewportMaterial: SpeckleViewportMaterial;
protected pendingTexture: boolean;
_options: Required<ViewportPassOptions>;
get displayName(): string;
get overrideBatchMaterial(): Material;
set options(value: ViewportPassOptions);
constructor();
protected setMatcapTexture(asset: Asset | null): void;
render(renderer: WebGLRenderer, camera: PerspectiveCamera | OrthographicCamera | null, scene?: Scene): boolean;
}