UNPKG

@giro3d/giro3d

Version:

A JS/WebGL framework for 3D geospatial data visualization

26 lines (22 loc) 725 B
import type GUI from 'lil-gui'; import type Instance from '../core/Instance'; import type Glow from '../entities/Glow'; import EntityInspector from './EntityInspector'; export default class GlowInspector extends EntityInspector<Glow> { sunLongitude = 0; sunLatitude = 0; constructor(parentGui: GUI, instance: Instance, glow: Glow) { super(parentGui, instance, glow, { boundingBoxColor: false, boundingBoxes: false, opacity: true, visibility: true, }); this.addColorController(glow, 'color') .name('Color') .onChange(v => { glow.color = v; this.notify(glow); }); } }