소스 검색

Docs: Clean up.

Mugen87 4 년 전
부모
커밋
f1389133e5

+ 1 - 2
docs/examples/en/math/MeshSurfaceSampler.html

@@ -24,14 +24,13 @@
 		const sampleMesh = new THREE.InstancedMesh( sampleGeometry, sampleMaterial, 100 );
 		const sampleMesh = new THREE.InstancedMesh( sampleGeometry, sampleMaterial, 100 );
 
 
 		const _position = new THREE.Vector3();
 		const _position = new THREE.Vector3();
-		const _normal = new THREE.Vector3();
 		const _matrix = new THREE.Matrix4();
 		const _matrix = new THREE.Matrix4();
 
 
 		// Sample randomly from the surface, creating an instance of the sample
 		// Sample randomly from the surface, creating an instance of the sample
 		// geometry at each sample point.
 		// geometry at each sample point.
 		for ( let i = 0; i < 100; i ++ ) {
 		for ( let i = 0; i < 100; i ++ ) {
 
 
-			sampler.sample( _position, _normal );
+			sampler.sample( _position );
 
 
 			_matrix.makeTranslation( _position.x, _position.y, _position.z );
 			_matrix.makeTranslation( _position.x, _position.y, _position.z );
 
 

+ 8 - 0
docs/examples/en/postprocessing/EffectComposer.html

@@ -108,6 +108,14 @@
 			Used by [name] to determine when a pass should be rendered to screen.
 			Used by [name] to determine when a pass should be rendered to screen.
 		</p>
 		</p>
 
 
+		<h3>[method:void removePass]( [param:Pass pass] )</h3>
+
+		<p>
+			pass -- The pass to remove from the pass chain.<br /><br />
+
+			Removes the given pass from the pass chain.
+		</p>
+
 		<h3>[method:void render]( [param:Float deltaTime] )</h3>
 		<h3>[method:void render]( [param:Float deltaTime] )</h3>
 
 
 		<p>
 		<p>

+ 1 - 2
docs/examples/zh/math/MeshSurfaceSampler.html

@@ -24,14 +24,13 @@
 		const sampleMesh = new THREE.InstancedMesh( sampleGeometry, sampleMaterial, 100 );
 		const sampleMesh = new THREE.InstancedMesh( sampleGeometry, sampleMaterial, 100 );
 
 
 		const _position = new THREE.Vector3();
 		const _position = new THREE.Vector3();
-		const _normal = new THREE.Vector3();
 		const _matrix = new THREE.Matrix4();
 		const _matrix = new THREE.Matrix4();
 
 
 		// Sample randomly from the surface, creating an instance of the sample
 		// Sample randomly from the surface, creating an instance of the sample
 		// geometry at each sample point.
 		// geometry at each sample point.
 		for ( let i = 0; i < 100; i ++ ) {
 		for ( let i = 0; i < 100; i ++ ) {
 
 
-			sampler.sample( _position, _normal );
+			sampler.sample( _position );
 
 
 			_matrix.makeTranslation( _position.x, _position.y, _position.z );
 			_matrix.makeTranslation( _position.x, _position.y, _position.z );
 
 

+ 8 - 0
docs/examples/zh/postprocessing/EffectComposer.html

@@ -107,6 +107,14 @@
 			由[name]所使用,来决定哪一个过程应当被渲染到屏幕上。
 			由[name]所使用,来决定哪一个过程应当被渲染到屏幕上。
 		</p>
 		</p>
 
 
+		<h3>[method:void removePass]( [param:Pass pass] )</h3>
+
+		<p>
+			pass -- The pass to remove from the pass chain.<br /><br />
+
+			Removes the given pass from the pass chain.
+		</p>
+
 		<h3>[method:void render]( [param:Float deltaTime] )</h3>
 		<h3>[method:void render]( [param:Float deltaTime] )</h3>
 
 
 		<p>
 		<p>