UNPKG

708 BTypeScriptView Raw
1import { Camera } from "../../cameras/Camera.js";
2import { Material } from "../../materials/Material.js";
3import { Plane } from "../../math/Plane.js";
4import { WebGLProperties } from "./WebGLProperties.js";
5
6export class WebGLClipping {
7 constructor(properties: WebGLProperties);
8
9 uniform: { value: any; needsUpdate: boolean };
10
11 /**
12 * @default 0
13 */
14 numPlanes: number;
15
16 /**
17 * @default 0
18 */
19 numIntersection: number;
20
21 init(planes: any[], enableLocalClipping: boolean): boolean;
22 beginShadows(): void;
23 endShadows(): void;
24 setGlobalState(planes: Plane[], camera: Camera): void;
25 setState(material: Material, camera: Camera, useCache: boolean): void;
26}