UNPKG

@luma.gl/engine

Version:

3D Engine Components for luma.gl

22 lines 743 B
// luma.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import { SphereGeometry } from "../geometries/sphere-geometry.js"; import { BaseLightModel, buildPointLightInstanceData } from "./light-model-utils.js"; const POINT_LIGHT_GEOMETRY = new SphereGeometry({ nlat: 8, nlong: 12, radius: 1 }); export class PointLightModel extends BaseLightModel { constructor(device, props) { super(device, props, { anchorMode: 'centered', buildInstanceData: buildPointLightInstanceData, geometry: POINT_LIGHT_GEOMETRY, idPrefix: 'point-light-model', sizePropNames: ['pointLightRadius'] }); } } //# sourceMappingURL=point-light-model.js.map