Skip to content

Commit

Permalink
Typos (#30143)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Rigaud <[email protected]>
  • Loading branch information
s-rigaud and Samuel Rigaud authored Dec 17, 2024
1 parent 42795bf commit c31ff0f
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions examples/jsm/modifiers/CurveModifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ export function modifyShader( material, uniforms, numberOfCurves = 1 ) {
// chunk import moved in front of modified shader below
.replace( '#include <beginnormal_vertex>', '' )

// vec3 transformedNormal declaration overriden below
// vec3 transformedNormal declaration overridden below
.replace( '#include <defaultnormal_vertex>', '' )

// vec3 transformed declaration overriden below
// vec3 transformed declaration overridden below
.replace( '#include <begin_vertex>', '' )

// shader override
Expand Down Expand Up @@ -198,7 +198,7 @@ vec3 transformedNormal = normalMatrix * (basis * objectNormal);
}

/**
* A helper class for making meshes bend aroudn curves
* A helper class for making meshes bend around curves
*/
export class Flow {

Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/modifiers/CurveModifierGPU.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function modifyShader( material, uniforms, numberOfCurves ) {
}

/**
* A helper class for making meshes bend aroudn curves
* A helper class for making meshes bend around curves
*/
export class Flow {

Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/tsl/display/GTAONode.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class GTAONode extends TempNode {

/**
* The distance fall off value of the ambient occlusion.
* A lower value leads to a larget AO effect. The value
* A lower value leads to a larger AO effect. The value
* should lie in the range `[0,1]`.
*
* @type {UniformNode<float>}
Expand Down
4 changes: 2 additions & 2 deletions examples/jsm/tsl/display/SSAAPassNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class SSAAPassNode extends PassNode {
this.sampleLevel = 4;

/**
* Whether rounding erros should be mitigated or not.
* Whether rounding errors should be mitigated or not.
*
* @type {Boolean}
* @default true
Expand All @@ -81,7 +81,7 @@ class SSAAPassNode extends PassNode {
/**
* A uniform node representing the sample weight.
*
* @type {UnifornNode<float>}
* @type {UniformNode<float>}
* @default 1
*/
this.sampleWeight = uniform( 1 );
Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/tsl/display/StereoCompositePassNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let _rendererState;
/**
* A special (abstract) render pass node that renders the scene
* as a stereoscopic image. Unlike {@link StereoPassNode}, this
* node composits the image for the left and right eye
* node merges the image for the left and right eye
* into a single one. That is required for effects like
* anaglyph or parallax barrier.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/webxr/XREstimatedLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class SessionLightProbe {

onXRFrame( time, xrFrame ) {

// If either this obejct or the XREstimatedLight has been destroyed, stop
// If either this object or the XREstimatedLight has been destroyed, stop
// running the frame loop.
if ( ! this.xrLight ) {

Expand Down
2 changes: 1 addition & 1 deletion src/nodes/accessors/MaterialNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const _propertyCache = new Map();
/**
* This class should simplify the node access to material properties.
* It internal uses reference nodes to make sure changes to material
* properties are automatically reflected to prefdefined TSL objects
* properties are automatically reflected to predefined TSL objects
* like e.g. `materialColor`.
*
* @augments Node
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/accessors/ReferenceBaseNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ReferenceElementNode extends ArrayElementNode {
}

/**
* Base class for nodes which establishe a reference to a property of another object.
* Base class for nodes which establishes a reference to a property of another object.
* In this way, the value of the node is automatically linked to the value of
* referenced object. Reference nodes internally represent the linked value
* as a uniform.
Expand Down
8 changes: 4 additions & 4 deletions src/nodes/accessors/StorageBufferNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ class StorageBufferNode extends BufferNode {
this.isStorageBufferNode = true;

/**
* The acces type of the texture node.
* The access type of the texture node.
*
* @type {String}
* @default 'readWrite'
*/
this.access = NodeAccess.READ_WRITE;

/**
* Whether the node is atmoic or not.
* Whether the node is atomic or not.
*
* @type {Boolean}
* @default false
Expand Down Expand Up @@ -239,7 +239,7 @@ class StorageBufferNode extends BufferNode {
}

/**
* Defines whether the node is amotic or not.
* Defines whether the node is atomic or not.
*
* @param {Boolean} value - The atomic flag.
* @return {StorageBufferNode} A reference to this node.
Expand All @@ -253,7 +253,7 @@ class StorageBufferNode extends BufferNode {
}

/**
* Convenience method for making this node atmoic.
* Convenience method for making this node atomic.
*
* @return {StorageBufferNode} A reference to this node.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/gpgpu/ComputeBuiltinNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ComputeBuiltinNode extends Node {
}

/**
* This method is overwritten since the node type is simply dervied from `nodeType`..
* This method is overwritten since the node type is simply derived from `nodeType`..
*
* @param {NodeBuilder} builder - The current node builder.
* @return {String} The node type.
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/gpgpu/ComputeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class ComputeNode extends Node {
}

/**
* Executes the `dispose` event for this noode.
* Executes the `dispose` event for this node.
*/
dispose() {

Expand Down
6 changes: 3 additions & 3 deletions test/unit/src/core/BufferAttribute.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ export default QUnit.module( 'Core', () => {
const i = attr.array;
const i2 = attr2.array; // should be [4, 5, 6, 7, 8, 9, 1, 2, 3]

assert.ok( i2[ 0 ] === i[ 3 ] && i2[ 1 ] === i[ 4 ] && i2[ 2 ] === i[ 5 ], 'chunck copied to correct place' );
assert.ok( i2[ 3 ] === i[ 6 ] && i2[ 4 ] === i[ 7 ] && i2[ 5 ] === i[ 8 ], 'chunck copied to correct place' );
assert.ok( i2[ 6 ] === i[ 0 ] && i2[ 7 ] === i[ 1 ] && i2[ 8 ] === i[ 2 ], 'chunck copied to correct place' );
assert.ok( i2[ 0 ] === i[ 3 ] && i2[ 1 ] === i[ 4 ] && i2[ 2 ] === i[ 5 ], 'chunk copied to correct place' );
assert.ok( i2[ 3 ] === i[ 6 ] && i2[ 4 ] === i[ 7 ] && i2[ 5 ] === i[ 8 ], 'chunk copied to correct place' );
assert.ok( i2[ 6 ] === i[ 0 ] && i2[ 7 ] === i[ 1 ] && i2[ 8 ] === i[ 2 ], 'chunk copied to correct place' );

} );

Expand Down

0 comments on commit c31ff0f

Please sign in to comment.