Skip to content

Commit 21f230d

Browse files
authored
Merge pull request #20891 from Mugen87/dev2
Docs: Clean up.
2 parents 916b026 + f138913 commit 21f230d

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

docs/examples/en/math/MeshSurfaceSampler.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@ <h2>Code Example</h2>
2424
const sampleMesh = new THREE.InstancedMesh( sampleGeometry, sampleMaterial, 100 );
2525

2626
const _position = new THREE.Vector3();
27-
const _normal = new THREE.Vector3();
2827
const _matrix = new THREE.Matrix4();
2928

3029
// Sample randomly from the surface, creating an instance of the sample
3130
// geometry at each sample point.
3231
for ( let i = 0; i < 100; i ++ ) {
3332

34-
sampler.sample( _position, _normal );
33+
sampler.sample( _position );
3534

3635
_matrix.makeTranslation( _position.x, _position.y, _position.z );
3736

docs/examples/en/postprocessing/EffectComposer.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ <h3>[method:Boolean isLastEnabledPass]( [param:Integer passIndex] )</h3>
108108
Used by [name] to determine when a pass should be rendered to screen.
109109
</p>
110110

111+
<h3>[method:void removePass]( [param:Pass pass] )</h3>
112+
113+
<p>
114+
pass -- The pass to remove from the pass chain.<br /><br />
115+
116+
Removes the given pass from the pass chain.
117+
</p>
118+
111119
<h3>[method:void render]( [param:Float deltaTime] )</h3>
112120

113121
<p>

docs/examples/zh/math/MeshSurfaceSampler.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@ <h2>代码示例</h2>
2424
const sampleMesh = new THREE.InstancedMesh( sampleGeometry, sampleMaterial, 100 );
2525

2626
const _position = new THREE.Vector3();
27-
const _normal = new THREE.Vector3();
2827
const _matrix = new THREE.Matrix4();
2928

3029
// Sample randomly from the surface, creating an instance of the sample
3130
// geometry at each sample point.
3231
for ( let i = 0; i < 100; i ++ ) {
3332

34-
sampler.sample( _position, _normal );
33+
sampler.sample( _position );
3534

3635
_matrix.makeTranslation( _position.x, _position.y, _position.z );
3736

docs/examples/zh/postprocessing/EffectComposer.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ <h3>[method:Boolean isLastEnabledPass]( [param:Integer passIndex] )</h3>
107107
由[name]所使用,来决定哪一个过程应当被渲染到屏幕上。
108108
</p>
109109

110+
<h3>[method:void removePass]( [param:Pass pass] )</h3>
111+
112+
<p>
113+
pass -- The pass to remove from the pass chain.<br /><br />
114+
115+
Removes the given pass from the pass chain.
116+
</p>
117+
110118
<h3>[method:void render]( [param:Float deltaTime] )</h3>
111119

112120
<p>

0 commit comments

Comments
 (0)