diff --git a/examples/jsm/modifiers/CurveModifier.js b/examples/jsm/modifiers/CurveModifier.js index 67b9a71b5af53e..82d283042874b3 100644 --- a/examples/jsm/modifiers/CurveModifier.js +++ b/examples/jsm/modifiers/CurveModifier.js @@ -139,10 +139,10 @@ export function modifyShader( material, uniforms, numberOfCurves = 1 ) { // chunk import moved in front of modified shader below .replace( '#include ', '' ) - // vec3 transformedNormal declaration overriden below + // vec3 transformedNormal declaration overridden below .replace( '#include ', '' ) - // vec3 transformed declaration overriden below + // vec3 transformed declaration overridden below .replace( '#include ', '' ) // shader override @@ -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 { diff --git a/examples/jsm/modifiers/CurveModifierGPU.js b/examples/jsm/modifiers/CurveModifierGPU.js index f7d89ad3dafc2e..233d96d92973fe 100644 --- a/examples/jsm/modifiers/CurveModifierGPU.js +++ b/examples/jsm/modifiers/CurveModifierGPU.js @@ -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 { diff --git a/examples/jsm/tsl/display/GTAONode.js b/examples/jsm/tsl/display/GTAONode.js index 425b844c0f4ad7..c47a3f1bf9d544 100644 --- a/examples/jsm/tsl/display/GTAONode.js +++ b/examples/jsm/tsl/display/GTAONode.js @@ -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} diff --git a/examples/jsm/tsl/display/SSAAPassNode.js b/examples/jsm/tsl/display/SSAAPassNode.js index 74222df2818c36..0414589ca5e074 100644 --- a/examples/jsm/tsl/display/SSAAPassNode.js +++ b/examples/jsm/tsl/display/SSAAPassNode.js @@ -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 @@ -81,7 +81,7 @@ class SSAAPassNode extends PassNode { /** * A uniform node representing the sample weight. * - * @type {UnifornNode} + * @type {UniformNode} * @default 1 */ this.sampleWeight = uniform( 1 ); diff --git a/examples/jsm/tsl/display/StereoCompositePassNode.js b/examples/jsm/tsl/display/StereoCompositePassNode.js index 329649a87ac09c..532d679cd513c3 100644 --- a/examples/jsm/tsl/display/StereoCompositePassNode.js +++ b/examples/jsm/tsl/display/StereoCompositePassNode.js @@ -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. * diff --git a/examples/jsm/webxr/XREstimatedLight.js b/examples/jsm/webxr/XREstimatedLight.js index 85c7b9b690c854..4b2b1977f84e9b 100644 --- a/examples/jsm/webxr/XREstimatedLight.js +++ b/examples/jsm/webxr/XREstimatedLight.js @@ -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 ) { diff --git a/src/nodes/accessors/MaterialNode.js b/src/nodes/accessors/MaterialNode.js index 4f0c75dd94498d..1523e0aa064ad8 100644 --- a/src/nodes/accessors/MaterialNode.js +++ b/src/nodes/accessors/MaterialNode.js @@ -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 diff --git a/src/nodes/accessors/ReferenceBaseNode.js b/src/nodes/accessors/ReferenceBaseNode.js index c8bb6f82ec038b..9aab82749a91ca 100644 --- a/src/nodes/accessors/ReferenceBaseNode.js +++ b/src/nodes/accessors/ReferenceBaseNode.js @@ -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. diff --git a/src/nodes/accessors/StorageBufferNode.js b/src/nodes/accessors/StorageBufferNode.js index 36c832d12b030d..a64203e9e18528 100644 --- a/src/nodes/accessors/StorageBufferNode.js +++ b/src/nodes/accessors/StorageBufferNode.js @@ -74,7 +74,7 @@ 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' @@ -82,7 +82,7 @@ class StorageBufferNode extends BufferNode { this.access = NodeAccess.READ_WRITE; /** - * Whether the node is atmoic or not. + * Whether the node is atomic or not. * * @type {Boolean} * @default false @@ -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. @@ -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. */ diff --git a/src/nodes/gpgpu/ComputeBuiltinNode.js b/src/nodes/gpgpu/ComputeBuiltinNode.js index 7116a2f025eead..dcb984b2f394eb 100644 --- a/src/nodes/gpgpu/ComputeBuiltinNode.js +++ b/src/nodes/gpgpu/ComputeBuiltinNode.js @@ -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. diff --git a/src/nodes/gpgpu/ComputeNode.js b/src/nodes/gpgpu/ComputeNode.js index 457029b9c8bffb..eb3695786bdf52 100644 --- a/src/nodes/gpgpu/ComputeNode.js +++ b/src/nodes/gpgpu/ComputeNode.js @@ -94,7 +94,7 @@ class ComputeNode extends Node { } /** - * Executes the `dispose` event for this noode. + * Executes the `dispose` event for this node. */ dispose() { diff --git a/test/unit/src/core/BufferAttribute.tests.js b/test/unit/src/core/BufferAttribute.tests.js index 4dac2e2bcca116..95251d5e149954 100644 --- a/test/unit/src/core/BufferAttribute.tests.js +++ b/test/unit/src/core/BufferAttribute.tests.js @@ -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' ); } );