Просмотр исходного кода

remove dead code (#31734)

Co-authored-by: Samuel Rigaud <rigaud@gmail.com>
Samuel Rigaud 6 месяцев назад
Родитель
Сommit
e10134d536

+ 0 - 1
examples/webgl_postprocessing_fxaa.html

@@ -48,7 +48,6 @@
 
 			import { EffectComposer } from 'three/addons/postprocessing/EffectComposer.js';
 			import { RenderPass } from 'three/addons/postprocessing/RenderPass.js';
-			import { ShaderPass } from 'three/addons/postprocessing/ShaderPass.js';
 			import { OutputPass } from 'three/addons/postprocessing/OutputPass.js';
 			import { FXAAPass } from 'three/addons/postprocessing/FXAAPass.js';
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 2 - 2
examples/webgl_tonemapping.html

@@ -149,7 +149,7 @@
 					.name( 'type' )
 					.onChange( function () {
 
-						updateGUI( toneMappingFolder );
+						updateGUI();
 
 						renderer.toneMapping = toneMappingOptions[ params.toneMapping ];
 
@@ -181,7 +181,7 @@
 
 					} );
 
-				updateGUI( toneMappingFolder );
+				updateGUI();
 
 				gui.open();
 

+ 0 - 2
examples/webgpu_camera.html

@@ -30,7 +30,6 @@
 		<script type="module">
 
 			import * as THREE from 'three/webgpu';
-			import { color } from 'three/tsl';
 
 			let SCREEN_WIDTH = window.innerWidth;
 			let SCREEN_HEIGHT = window.innerHeight;
@@ -41,7 +40,6 @@
 			let cameraRig, activeCamera, activeHelper;
 			let cameraPerspective, cameraOrtho;
 			let cameraPerspectiveHelper, cameraOrthoHelper;
-			let backgroundNode;
 			const frustumSize = 600;
 
 			init();

+ 6 - 6
examples/webgpu_compute_particles.html

@@ -38,7 +38,7 @@
 		<script type="module">
 
 			import * as THREE from 'three/webgpu';
-			import { Fn, If, uniform, float, uv, vec2, vec3, hash, shapeCircle,
+			import { Fn, If, uniform, float, uv, vec3, hash, shapeCircle,
 				instancedArray, instanceIndex } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
@@ -81,7 +81,7 @@
 				const colors = instancedArray( particleCount, 'vec3' );
 
 				// compute
-				
+
 				const separation = 0.2;
 				const amount = Math.sqrt( particleCount );
 				const offset = float( amount / 2 );
@@ -90,10 +90,10 @@
 
 					const position = positions.element( instanceIndex );
 					const color = colors.element( instanceIndex );
-					
+
 					const x = instanceIndex.mod( amount );
 					const z = instanceIndex.div( amount );
-					
+
 					position.x = offset.sub( x ).mul( separation );
 					position.z = offset.sub( z ).mul( separation );
 
@@ -197,7 +197,7 @@
 				//
 
 				function onMove( event ) {
-					
+
 					if ( isOrbitControlsActive ) return;
 
 					pointer.set( ( event.clientX / window.innerWidth ) * 2 - 1, - ( event.clientY / window.innerHeight ) * 2 + 1 );
@@ -233,7 +233,7 @@
 				controls.maxDistance = 200;
 				controls.target.set( 0, -8, 0 );
 				controls.update();
-				
+
 				controls.addEventListener( 'start', () => { isOrbitControlsActive = true; } );
 				controls.addEventListener( 'end', () => { isOrbitControlsActive = false; } );
 

+ 2 - 2
examples/webgpu_reflection.html

@@ -29,7 +29,7 @@
 
 			import * as THREE from 'three/webgpu';
 
-			import { abs, blendOverlay, color, float, Fn, instancedBufferAttribute, materialColor, max, normalWorldGeometry, pass, positionGeometry, positionLocal, pow2, reflector, screenUV, sin, sub, texture, time, uniform, uv, vec2, vec3 } from 'three/tsl';
+			import { abs, blendOverlay, color, float, Fn, instancedBufferAttribute, max, normalWorldGeometry, pass, positionGeometry, positionLocal, pow2, reflector, screenUV, sin, sub, texture, time, uniform, uv, vec2, vec3 } from 'three/tsl';
 			import { gaussianBlur } from 'three/addons/tsl/display/GaussianBlurNode.js';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
@@ -317,7 +317,7 @@
 				const instanceNormal = instancedBufferAttribute( attributeNormal );
 				const instanceColor = instancedBufferAttribute( attributeColor );
 				const instanceData = instancedBufferAttribute( attributeData );
-			
+
 				material.positionNode = Fn( () => {
 
 					const instanceSize = instanceData.x;

+ 2 - 2
examples/webgpu_tonemapping.html

@@ -131,7 +131,7 @@
 					.name( 'type' )
 					.onChange( function () {
 
-						updateGUI( toneMappingFolder );
+						updateGUI();
 
 						renderer.toneMapping = toneMappingOptions[ params.toneMapping ];
 
@@ -163,7 +163,7 @@
 
 					} );
 
-				updateGUI( toneMappingFolder );
+				updateGUI();
 
 				gui.open();
 

+ 2 - 2
examples/webxr_xr_haptics.html

@@ -153,7 +153,7 @@
 
 				const oscillator = listener.context.createOscillator();
 				oscillator.type = 'sine';
-				oscillator.start()
+				oscillator.start();
 
 				const audio = new THREE.PositionalAudio( listener );
 				audio.setNodeSource( oscillator );
@@ -172,7 +172,7 @@
 
 				const audio = this.userData.audio;
 				audio.source.stop();
-				
+
 				this.remove( audio );
 
 			}

粤ICP备19079148号