Skip to content

Commit

Permalink
Merge pull request #20891 from Mugen87/dev2
Browse files Browse the repository at this point in the history
Docs: Clean up.
  • Loading branch information
mrdoob committed Dec 16, 2020
2 parents 916b026 + f138913 commit 21f230d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docs/examples/en/math/MeshSurfaceSampler.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ <h2>Code Example</h2>
const sampleMesh = new THREE.InstancedMesh( sampleGeometry, sampleMaterial, 100 );

const _position = new THREE.Vector3();
const _normal = new THREE.Vector3();
const _matrix = new THREE.Matrix4();

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

sampler.sample( _position, _normal );
sampler.sample( _position );

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

Expand Down
8 changes: 8 additions & 0 deletions docs/examples/en/postprocessing/EffectComposer.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ <h3>[method:Boolean isLastEnabledPass]( [param:Integer passIndex] )</h3>
Used by [name] to determine when a pass should be rendered to screen.
</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>

<p>
Expand Down
3 changes: 1 addition & 2 deletions docs/examples/zh/math/MeshSurfaceSampler.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ <h2>代码示例</h2>
const sampleMesh = new THREE.InstancedMesh( sampleGeometry, sampleMaterial, 100 );

const _position = new THREE.Vector3();
const _normal = new THREE.Vector3();
const _matrix = new THREE.Matrix4();

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

sampler.sample( _position, _normal );
sampler.sample( _position );

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

Expand Down
8 changes: 8 additions & 0 deletions docs/examples/zh/postprocessing/EffectComposer.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ <h3>[method:Boolean isLastEnabledPass]( [param:Integer passIndex] )</h3>
由[name]所使用,来决定哪一个过程应当被渲染到屏幕上。
</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>

<p>
Expand Down

0 comments on commit 21f230d

Please sign in to comment.