UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

24 lines (23 loc) 788 B
import { Mesh, Object3D } from 'three'; import type { SpotLightContainer } from '../SpotLight'; export interface CoreSpotLightHelperParams { helperSize: number; } export interface UpdateSpotLightConeObjectOptions { distance: number; sizeMult: number; angle: number; } export declare class CoreSpotLightHelper { container: SpotLightContainer; object: Mesh; private _cone; private _lineMaterial; constructor(container: SpotLightContainer); createAndBuildObject(params: CoreSpotLightHelperParams): void; buildHelper(): void; update(params: CoreSpotLightHelperParams): void; private static _matrixScale; static transformObject(object: Object3D, options: UpdateSpotLightConeObjectOptions): void; private static _buildConeGeometry; }