UNPKG

@luma.gl/engine

Version:

3D Engine Components for luma.gl

23 lines 747 B
// luma.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import { ConeGeometry } from "../geometries/cone-geometry.js"; import { BaseLightModel, buildSpotLightInstanceData } from "./light-model-utils.js"; const SPOT_LIGHT_GEOMETRY = new ConeGeometry({ cap: true, nradial: 16, nvertical: 1, radius: 1 }); export class SpotLightModel extends BaseLightModel { constructor(device, props) { super(device, props, { anchorMode: 'apex', buildInstanceData: buildSpotLightInstanceData, geometry: SPOT_LIGHT_GEOMETRY, idPrefix: 'spot-light-model', sizePropNames: ['spotLightLength'] }); } } //# sourceMappingURL=spot-light-model.js.map