|
@@ -26,6 +26,7 @@
|
|
|
|
|
|
import * as THREE from 'three';
|
|
|
import { texture, equirectUV } from 'three/nodes';
|
|
|
+ import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
|
|
|
|
|
|
import WebGPU from 'three/addons/capabilities/WebGPU.js';
|
|
|
import WebGL from 'three/addons/capabilities/WebGL.js';
|
|
@@ -92,6 +93,19 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
+ const gui = new GUI();
|
|
|
+
|
|
|
+ const params = {
|
|
|
+ intensity: 1.0,
|
|
|
+ };
|
|
|
+ gui.add( params, 'intensity', 0, 1 ).onChange( function ( value ) {
|
|
|
+
|
|
|
+ scene.backgroundIntensity = value;
|
|
|
+ render();
|
|
|
+
|
|
|
+ } );
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
</body>
|