Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
@@ -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
@@ -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 {
@@ -157,7 +157,7 @@ export function modifyShader( material, uniforms, numberOfCurves ) {
@@ -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>}
@@ -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<float>}
+ * @type {UniformNode<float>}
* @default 1
this.sampleWeight = uniform( 1 );
@@ -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.
@@ -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 ) {
@@ -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
@@ -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.
@@ -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.
* @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.
@@ -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.
@@ -94,7 +94,7 @@ class ComputeNode extends Node {
- * Executes the `dispose` event for this noode.
+ * Executes the `dispose` event for this node.
dispose() {
@@ -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' );
} );