Skip to content

Commit 036e03e

Browse files
s-rigaudSamuel Rigaud
andauthored
Doc: fix typos (#30013)
Co-authored-by: Samuel Rigaud <[email protected]>
1 parent 09add0e commit 036e03e

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

src/nodes/code/ScriptableValueNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ScriptableValueNode extends Node {
2020
this._cache = null;
2121

2222
this.inputType = null;
23-
this.outpuType = null;
23+
this.outputType = null;
2424

2525
this.events = new EventDispatcher();
2626

src/nodes/core/AssignNode.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ class AssignNode extends TempNode {
4343
}
4444

4545
/**
46-
* Whether this node is used more than once in contextx of other nodes. This method
46+
* Whether this node is used more than once in context of other nodes. This method
4747
* is overwritten since it always returns `false` (assigns are unique).
4848
*
49-
* @return {Boolean} A flag that inidiactes if there is more than one dependency to other nodes. Always `false`.
49+
* @return {Boolean} A flag that indicates if there is more than one dependency to other nodes. Always `false`.
5050
*/
5151
hasDependencies() {
5252

@@ -61,11 +61,11 @@ class AssignNode extends TempNode {
6161
}
6262

6363
/**
64-
* Whehter a split is required when assigning source to target. This can happen when the component length of
64+
* Whether a split is required when assigning source to target. This can happen when the component length of
6565
* target and source data type does not match.
6666
*
6767
* @param {NodeBuilder} builder - The current node builder.
68-
* @return {Boolean} Whehter a split is required when assigning source to target.
68+
* @return {Boolean} Whether a split is required when assigning source to target.
6969
*/
7070
needsSplitAssign( builder ) {
7171

src/nodes/core/InputNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class InputNode extends Node {
6666
* Returns the input type of the node which is by default the node type. Derived modules
6767
* might overwrite this method and use a fixed type or compute one analytically.
6868
*
69-
* A typical example for differnt input and node types are textures. The input type of a
69+
* A typical example for different input and node types are textures. The input type of a
7070
* normal RGBA texture is `texture` whereas its node type is `vec4`.
7171
*
7272
* @param {NodeBuilder} builder - The current node builder.

src/nodes/core/Node.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class Node extends EventDispatcher {
231231

232232
/**
233233
* By default this method returns the value of the {@link Node#global} flag. This method
234-
* can be overwritten in dervied classes if an analytical way is required to determine the
234+
* can be overwritten in derived classes if an analytical way is required to determine the
235235
* global status.
236236
*
237237
* @param {NodeBuilder} builder - The current node builder.
@@ -295,7 +295,7 @@ class Node extends EventDispatcher {
295295
/**
296296
* Returns the cache key for this node.
297297
*
298-
* @param {Boolean} [force=false] - When set to `true`, a recompuatation of the cache key is forced.
298+
* @param {Boolean} [force=false] - When set to `true`, a recomputation of the cache key is forced.
299299
* @return {Number} The cache key of the node.
300300
*/
301301
getCacheKey( force = false ) {
@@ -410,7 +410,7 @@ class Node extends EventDispatcher {
410410

411411
/**
412412
* This method is used during the build process of a node and ensures
413-
* equal nodes are not built multiple times but just once. For exmaple if
413+
* equal nodes are not built multiple times but just once. For example if
414414
* `attribute( 'uv' )` is used multiple times by the user, the build
415415
* process makes sure to process just the first node.
416416
*
@@ -646,7 +646,7 @@ class Node extends EventDispatcher {
646646
/**
647647
* Returns the child nodes as a JSON object.
648648
*
649-
* @return {Object} The serialiezed child objects as JSON.
649+
* @return {Object} The serialized child objects as JSON.
650650
*/
651651
getSerializeChildren() {
652652

@@ -694,7 +694,7 @@ class Node extends EventDispatcher {
694694
}
695695

696696
/**
697-
* Deerializes the node from the given JSON.
697+
* Deserializes the node from the given JSON.
698698
*
699699
* @param {Object} json - The JSON object.
700700
*/
@@ -747,7 +747,7 @@ class Node extends EventDispatcher {
747747
}
748748

749749
/**
750-
* Seralizes the node into the three.js JSON Object/Scene format.
750+
* Serializes the node into the three.js JSON Object/Scene format.
751751
*
752752
* @param {Object?} meta - An optional JSON object that already holds serialized data from other scene objects.
753753
* @return {Object} The serialized node.

src/nodes/core/NodeAttribute.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class NodeAttribute {
1111
*
1212
* @param {String} name - The name of the attribute.
1313
* @param {String} type - The type of the attribute.
14-
* @param {Node?} node - An optinal reference to the node.
14+
* @param {Node?} node - An optional reference to the node.
1515
*/
1616
constructor( name, type, node = null ) {
1717

@@ -39,7 +39,7 @@ class NodeAttribute {
3939
this.type = type;
4040

4141
/**
42-
* An optinal reference to the node.
42+
* An optional reference to the node.
4343
*
4444
* @type {Node?}
4545
* @default null

src/nodes/core/NodeFrame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class NodeFrame {
9393
/**
9494
* A reference to the current 3D object.
9595
*
96-
* @type {Obbject3D?}
96+
* @type {Object3D?}
9797
* @default null
9898
*/
9999
this.object = null;

src/nodes/core/TempNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class TempNode extends Node {
3939
/**
4040
* Whether this node is used more than once in context of other nodes.
4141
*
42-
* @return {Boolean} A flag that inidiactes if there is more than one dependency to other nodes.
42+
* @return {Boolean} A flag that indicates if there is more than one dependency to other nodes.
4343
*/
4444
hasDependencies( builder ) {
4545

src/nodes/functions/PhysicalLightingModel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const getVolumeTransmissionRay = /*@__PURE__*/ Fn( ( [ n, v, thickness, ior, mod
3131
// Direction of refracted light.
3232
const refractionVector = vec3( refract( v.negate(), normalize( n ), div( 1.0, ior ) ) );
3333

34-
// Compute rotation-independant scaling of the model matrix.
34+
// Compute rotation-independent scaling of the model matrix.
3535
const modelScale = vec3(
3636
length( modelMatrix[ 0 ].xyz ),
3737
length( modelMatrix[ 1 ].xyz ),
@@ -311,7 +311,7 @@ const evalIridescence = /*@__PURE__*/ Fn( ( { outsideIOR, eta2, cosTheta1, thinF
311311
// Sheen
312312
//
313313

314-
// This is a curve-fit approxmation to the "Charlie sheen" BRDF integrated over the hemisphere from
314+
// This is a curve-fit approximation to the "Charlie sheen" BRDF integrated over the hemisphere from
315315
// Estevez and Kulla 2017, "Production Friendly Microfacet Sheen BRDF". The analysis can be found
316316
// in the Sheen section of https://drive.google.com/file/d/1T0D1VSyR4AllqIJTQAraEIzjlb5h4FKH/view?usp=sharing
317317
const IBLSheenBRDF = /*@__PURE__*/ Fn( ( { normal, viewDir, roughness } ) => {
@@ -432,7 +432,7 @@ class PhysicalLightingModel extends LightingModel {
432432
}
433433

434434
// Fdez-Agüera's "Multiple-Scattering Microfacet Model for Real-Time Image Based Lighting"
435-
// Approximates multiscattering in order to preserve energy.
435+
// Approximates multi-scattering in order to preserve energy.
436436
// http://www.jcgt.org/published/0008/01/03/
437437

438438
computeMultiscattering( singleScatter, multiScatter, specularF90 ) {

src/nodes/lighting/LightsNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class LightsNode extends Node {
106106

107107
if ( previousLightNodes !== null ) {
108108

109-
lightNode = getLightNodeById( light.id, previousLightNodes ); // resuse existing light node
109+
lightNode = getLightNodeById( light.id, previousLightNodes ); // reuse existing light node
110110

111111
}
112112

src/nodes/tsl/TSLBase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
export * from './TSLCore.js'; // float(), vec2(), vec3(), vec4(), mat3(), mat4(), Fn(), If(), element(), nodeObject(), nodeProxy(), ...
55
export * from '../core/UniformNode.js'; // uniform()
6-
export * from '../core/PropertyNode.js'; // property() <-> TODO: Seperate Material Properties in other file
6+
export * from '../core/PropertyNode.js'; // property() <-> TODO: Separate Material Properties in other file
77
export * from '../core/AssignNode.js'; // .assign()
88
export * from '../code/FunctionCallNode.js'; // .call()
99
export * from '../math/OperatorNode.js'; // .add(), .sub(), ...

0 commit comments

Comments
 (0)