UNPKG

three-stdlib

Version:

stand-alone library of threejs examples

27 lines (24 loc) 590 B
import { Box3Helper, BufferGeometry, Group, LineBasicMaterial, LineSegments, Mesh, MeshBasicMaterial, PlaneGeometry, } from 'three' import { CSM } from './CSM' export class CSMHelper<TCSM extends CSM = CSM> extends Group { constructor(csm: TCSM) csm: TCSM displayFrustum: boolean displayPlanes: boolean displayShadowBounds: boolean frustumLines: LineSegments<BufferGeometry, LineBasicMaterial> cascadeLines: Box3Helper[] cascadePlanes: Array<Mesh<PlaneGeometry, MeshBasicMaterial>> shadowLines: Box3Helper[] updateVisibility(): void update(): void }