UNPKG

@giro3d/giro3d

Version:

A JS/WebGL framework for 3D geospatial data visualization

25 lines (24 loc) 1.41 kB
/* * Copyright (c) 2015-2018, IGN France. * Copyright (c) 2018-2026, Giro3D team. * SPDX-License-Identifier: MIT */ import Panel from './Panel'; class RenderingInspector extends Panel { /** * @param parentGui - The parent GUI. * @param instance - The instance. */ constructor(parentGui, instance) { super(parentGui, instance, 'Visual parameters'); this.addController(instance.renderingOptions, 'enableMSAA').name('MSAA').onChange(() => this.notify()); this.addController(instance.renderingOptions, 'enableEDL').name('EDL').onChange(() => this.notify()); this.addController(instance.renderingOptions, 'EDLRadius', 0, 2).name('EDL Radius').onChange(() => this.notify()); this.addController(instance.renderingOptions, 'EDLStrength', 0, 2).name('EDL Strength').onChange(() => this.notify()); this.addController(instance.renderingOptions, 'enableInpainting').name('Inpainting').onChange(() => this.notify()); this.addController(instance.renderingOptions, 'inpaintingSteps', 1, 6).name('Inpainting steps').onChange(() => this.notify()); this.addController(instance.renderingOptions, 'inpaintingDepthContribution', 0.01, 1).name('Inpainting depth contrib.').onChange(() => this.notify()); this.addController(instance.renderingOptions, 'enablePointCloudOcclusion').name('Point cloud occlusion').onChange(() => this.notify()); } } export default RenderingInspector;