Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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