Skip to content

Commit 1e61693

Browse files
s-rigaudSamuel Rigaud
and
Samuel Rigaud
authored
Typos (#30843)
* Typos * fix alpha --------- Co-authored-by: Samuel Rigaud <[email protected]>
1 parent 998ee48 commit 1e61693

17 files changed

+85
-85
lines changed

examples/jsm/postprocessing/EffectComposer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class EffectComposer {
119119
this.copyPass.material.blending = NoBlending;
120120

121121
/**
122-
* The intenral clock for managing time data.
122+
* The internal clock for managing time data.
123123
*
124124
* @private
125125
* @type {Clock}

examples/jsm/postprocessing/GTAOPass.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ class GTAOPass extends Pass {
366366
}
367367

368368
/**
369-
* Updates the GTAO material from the given paramter object.
369+
* Updates the GTAO material from the given parameter object.
370370
*
371371
* @param {Object} parameters - The GTAO material parameters.
372372
*/
@@ -420,7 +420,7 @@ class GTAOPass extends Pass {
420420
}
421421

422422
/**
423-
* Updates the Denoise material from the given paramter object.
423+
* Updates the Denoise material from the given parameter object.
424424
*
425425
* @param {Object} parameters - The denoise parameters.
426426
*/

examples/jsm/postprocessing/GlitchPass.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class GlitchPass extends Pass {
5050
} );
5151

5252
/**
53-
* Whether to noticeably increase the effect instensity or not.
53+
* Whether to noticeably increase the effect intensity or not.
5454
*
5555
* @type {boolean}
5656
* @default false

examples/jsm/postprocessing/RenderTransitionPass.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class RenderTransitionPass extends Pass {
8282
* Sets the transition factor. Must be in the range `[0,1]`.
8383
* This value determines to what degree both scenes are mixed.
8484
*
85-
* @param {boolenumberan} value - The transition factor.
85+
* @param {boolean|number} value - The transition factor.
8686
*/
8787
setTransition( value ) {
8888

@@ -116,7 +116,7 @@ class RenderTransitionPass extends Pass {
116116
* Sets the texture threshold. This value defined how strong the texture effects
117117
* the transition. Must be in the range `[0,1]` (0 means full effect, 1 means no effect).
118118
*
119-
* @param {boolenumberan} value - The threshold value.
119+
* @param {boolean|number} value - The threshold value.
120120
*/
121121
setTextureThreshold( value ) {
122122

examples/jsm/postprocessing/SAOPass.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class SAOPass extends Pass {
8282
this._oldClearAlpha = 1;
8383

8484
/**
85-
* The SAO paramter.
85+
* The SAO parameter.
8686
*
8787
* @type {Object}
8888
*/

examples/jsm/postprocessing/SMAAPass.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/jsm/postprocessing/SSRPass.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class SSRPass extends Pass {
100100
this.groundReflector = groundReflector;
101101

102102
/**
103-
* The opactiy.
103+
* The opacity.
104104
*
105105
* @type {number}
106106
* @default 0.5
@@ -221,7 +221,7 @@ class SSRPass extends Pass {
221221
this._distanceAttenuation = SSRShader.defines.DISTANCE_ATTENUATION;
222222

223223
/**
224-
* Whether to use distance attenutation or not.
224+
* Whether to use distance attenuation or not.
225225
*
226226
* @name SSRPass#distanceAttenuation
227227
* @type {boolean}

examples/jsm/shaders/VolumeShader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ const VolumeRenderShader1 = {
263263
// note: could allow multiple lights
264264
for (int i=0; i<1; i++)
265265
{
266-
// Get light direction (make sure to prevent zero devision)
266+
// Get light direction (make sure to prevent zero division)
267267
vec3 L = normalize(view_ray); //lightDirs[i];
268268
float lightEnabled = float( length(L) > 0.0 );
269269
L = normalize(L + (1.0 - lightEnabled));

examples/jsm/tsl/display/AnamorphicNode.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class AnamorphicNode extends TempNode {
2222
* Constructs a new anamorphic node.
2323
*
2424
* @param {TextureNode} textureNode - The texture node that represents the input of the effect.
25-
* @param {Node<float>} tresholdNode - The threshold is one option to control the intensity and size of the effect.
25+
* @param {Node<float>} thresholdNode - The threshold is one option to control the intensity and size of the effect.
2626
* @param {Node<float>} scaleNode - Defines the vertical scale of the flares.
2727
* @param {number} samples - More samples result in larger flares and a more expensive runtime behavior.
2828
*/
29-
constructor( textureNode, tresholdNode, scaleNode, samples ) {
29+
constructor( textureNode, thresholdNode, scaleNode, samples ) {
3030

3131
super( 'vec4' );
3232

@@ -42,7 +42,7 @@ class AnamorphicNode extends TempNode {
4242
*
4343
* @type {Node<float>}
4444
*/
45-
this.tresholdNode = tresholdNode;
45+
this.thresholdNode = thresholdNode;
4646

4747
/**
4848
* Defines the vertical scale of the flares.
@@ -202,7 +202,7 @@ class AnamorphicNode extends TempNode {
202202

203203
const uv = vec2( uvNode.x.add( this._invSize.x.mul( i ).mul( this.scaleNode ) ), uvNode.y );
204204
const color = sampleTexture( uv );
205-
const pass = threshold( color, this.tresholdNode ).mul( softness );
205+
const pass = threshold( color, this.thresholdNode ).mul( softness );
206206

207207
total.addAssign( pass );
208208

examples/webgl_animation_walk.html

+14-14
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,17 @@
211211
object.material.roughness = 0.2;
212212
object.material.color.set( 1, 1, 1 );
213213
object.material.metalnessMap = object.material.map;
214-
214+
215215
} else {
216216

217217
object.material.metalness = 1;
218218
object.material.roughness = 0;
219219
object.material.transparent = true;
220220
object.material.opacity = 0.8;
221221
object.material.color.set( 1, 1, 1 );
222-
222+
223223
}
224-
224+
225225
}
226226

227227
} );
@@ -253,7 +253,7 @@
253253
actions[ m ].enabled = true;
254254
actions[ m ].setEffectiveTimeScale( 1 );
255255
if ( m !== 'Idle' ) actions[ m ].setEffectiveWeight( 0 );
256-
256+
257257
}
258258

259259
actions.Idle.play();
@@ -272,7 +272,7 @@
272272
const ease = controls.ease;
273273
const rotate = controls.rotate;
274274
const position = controls.position;
275-
const azimut = orbitControls.getAzimuthalAngle();
275+
const azimuth = orbitControls.getAzimuthalAngle();
276276

277277
const active = key[ 0 ] === 0 && key[ 1 ] === 0 ? false : true;
278278
const play = active ? ( key[ 2 ] ? 'Run' : 'Walk' ) : 'Idle';
@@ -293,7 +293,7 @@
293293
current.weight = 1.0;
294294
current.stopFading();
295295
old.stopFading();
296-
// sycro if not idle
296+
// synchro if not idle
297297
if ( play !== 'Idle' ) current.time = old.time * ( current.getClip().duration / old.getClip().duration );
298298
old._scheduleFading( fade, old.getEffectiveWeight(), 0 );
299299
current._scheduleFading( fade, current.getEffectiveWeight(), 1 );
@@ -320,11 +320,11 @@
320320
ease.set( key[ 1 ], 0, key[ 0 ] ).multiplyScalar( velocity * delta );
321321

322322
// calculate camera direction
323-
const angle = unwrapRad( Math.atan2( ease.x, ease.z ) + azimut );
323+
const angle = unwrapRad( Math.atan2( ease.x, ease.z ) + azimuth );
324324
rotate.setFromAxisAngle( up, angle );
325325

326326
// apply camera angle on ease
327-
controls.ease.applyAxisAngle( up, azimut );
327+
controls.ease.applyAxisAngle( up, azimuth );
328328

329329
position.add( ease );
330330
camera.position.add( ease );
@@ -335,7 +335,7 @@
335335
orbitControls.target.copy( position ).add( { x: 0, y: 1, z: 0 } );
336336
followGroup.position.copy( position );
337337

338-
// decale floor at infinie
338+
// Move the floor without any limit
339339
const dx = ( position.x - floor.position.x );
340340
const dz = ( position.z - floor.position.z );
341341
if ( Math.abs( dx ) > controls.floorDecale ) floor.position.x += dx;
@@ -344,15 +344,15 @@
344344
}
345345

346346
if ( mixer ) mixer.update( delta );
347-
347+
348348
orbitControls.update();
349349

350350
}
351351

352352
function unwrapRad( r ) {
353353

354354
return Math.atan2( Math.sin( r ), Math.cos( r ) );
355-
355+
356356
}
357357

358358
function createPanel() {
@@ -364,7 +364,7 @@
364364
skeleton.visible = b;
365365

366366
} );
367-
367+
368368
panel.add( settings, 'fixe_transition' );
369369

370370
}
@@ -387,7 +387,7 @@
387387
case 'ArrowLeft': case 'KeyA': case 'KeyQ': key[ 1 ] = - 1; break;
388388
case 'ArrowRight': case 'KeyD': key[ 1 ] = 1; break;
389389
case 'ShiftLeft' : case 'ShiftRight' : key[ 2 ] = 1; break;
390-
390+
391391
}
392392

393393
}
@@ -402,7 +402,7 @@
402402
case 'ArrowLeft': case 'KeyA': case 'KeyQ': key[ 1 ] = key[ 1 ] < 0 ? 0 : key[ 1 ]; break;
403403
case 'ArrowRight': case 'KeyD': key[ 1 ] = key[ 1 ] > 0 ? 0 : key[ 1 ]; break;
404404
case 'ShiftLeft' : case 'ShiftRight' : key[ 2 ] = 0; break;
405-
405+
406406
}
407407

408408
}

examples/webgl_gpgpu_water.html

+17-17
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
vec2 normal = vec2(
102102
( texture2D( levelTexture, point1 + vec2( - cellSize.x, 0 ) ).x - texture2D( levelTexture, point1 + vec2( cellSize.x, 0 ) ).x ) * WIDTH / BOUNDS,
103103
( texture2D( levelTexture, point1 + vec2( 0, - cellSize.y ) ).x - texture2D( levelTexture, point1 + vec2( 0, cellSize.y ) ).x ) * WIDTH / BOUNDS );
104-
104+
105105

106106
if ( gl_FragCoord.x < 1.5 ) {
107107

@@ -199,7 +199,7 @@
199199
};
200200

201201
init();
202-
202+
203203

204204
async function init() {
205205

@@ -239,7 +239,7 @@
239239
const rgbeLoader = new RGBELoader().setPath( './textures/equirectangular/' );
240240
const glbloader = new GLTFLoader().setPath( 'models/gltf/' );
241241
glbloader.setDRACOLoader( new DRACOLoader().setDecoderPath( 'jsm/libs/draco/gltf/' ) );
242-
242+
243243
const [ env, model ] = await Promise.all( [ rgbeLoader.loadAsync( 'blouberg_sunrise_2_1k.hdr' ), glbloader.loadAsync( 'duck.glb' ) ] );
244244
env.mapping = THREE.EquirectangularReflectionMapping;
245245
scene.environment = env;
@@ -268,7 +268,7 @@
268268
if ( ducks[ i ] ) ducks[ i ].visible = ducksEnabled;
269269

270270
}
271-
271+
272272
};
273273

274274
gui.add( effectController, 'mouseSize', 0.1, 1.0, 0.1 ).onChange( valuesChanger );
@@ -280,13 +280,13 @@
280280

281281
waterMesh.material.wireframe = v;
282282
poolBorder.material.wireframe = v;
283-
283+
284284
} );
285285
gui.add( effectController, 'shadow' ).onChange( addShadow );
286-
286+
287287
//const buttonSmooth = { smoothWater: function () {smoothWater();} };
288288
//gui.add( buttonSmooth, 'smoothWater' );
289-
289+
290290

291291
initWater();
292292

@@ -452,7 +452,7 @@
452452
} else {
453453

454454
if ( sun.shadow ) sun.shadow.dispose();
455-
455+
456456
}
457457

458458
// debug shadow
@@ -536,7 +536,7 @@
536536
sphere.userData.velocity.multiplyScalar( 0.998 );
537537
pos.add( sphere.userData.velocity );
538538

539-
539+
540540

541541
const decal = 0.001;
542542
const limit = BOUNDS_HALF - 0.2;
@@ -568,7 +568,7 @@
568568
// duck orientation test
569569

570570
const startNormal = new THREE.Vector3( pixels[ 1 ], 1, - pixels[ 2 ] ).normalize();
571-
571+
572572
const dir = startPos.sub( pos );
573573
dir.y = 0;
574574
dir.normalize();
@@ -605,7 +605,7 @@
605605

606606
mousedown = false;
607607
controls.enabled = true;
608-
608+
609609
}
610610

611611
function onPointerMove( event ) {
@@ -698,13 +698,13 @@
698698

699699
this.extra = {};
700700

701-
this.addParametre( 'heightmap', null );
702-
701+
this.addParameter( 'heightmap', null );
702+
703703
this.setValues( parameters );
704704

705705
}
706706

707-
addParametre( name, value ) {
707+
addParameter( name, value ) {
708708

709709
this.extra[ name ] = value;
710710
Object.defineProperty( this, name, {
@@ -713,18 +713,18 @@
713713

714714
this.extra[ name ] = v;
715715
if ( this.userData.shader ) this.userData.shader.uniforms[ name ].value = this.extra[ name ];
716-
716+
717717
}
718718
} );
719-
719+
720720
}
721721

722722
onBeforeCompile( shader ) {
723723

724724
for ( const name in this.extra ) {
725725

726726
shader.uniforms[ name ] = { value: this.extra[ name ] };
727-
727+
728728
}
729729

730730
shader.vertexShader = shader.vertexShader.replace( '#include <common>', shaderChange.common );

0 commit comments

Comments
 (0)