Skip to content

Commit 2d1695e

Browse files
authored
Nodes: Fix addNodeClass and addNodeMaterial in case of renaming classes (#26846)
1 parent 6a5d6de commit 2d1695e

File tree

118 files changed

+129
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+129
-127
lines changed

examples/jsm/nodes/accessors/BitangentNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ export const bitangentWorld = nodeImmutable( BitangentNode, BitangentNode.WORLD
8686
export const transformedBitangentView = normalize( transformedNormalView.cross( transformedTangentView ).mul( tangentGeometry.w ) );
8787
export const transformedBitangentWorld = normalize( transformedBitangentView.transformDirection( cameraViewMatrix ) );
8888

89-
addNodeClass( BitangentNode );
89+
addNodeClass( 'BitangentNode', BitangentNode );

examples/jsm/nodes/accessors/BufferAttributeNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ export const instancedDynamicBufferAttribute = ( array, type, stride, offset ) =
122122

123123
addNodeElement( 'toAttribute', ( bufferNode ) => bufferAttribute( bufferNode.value ) );
124124

125-
addNodeClass( BufferAttributeNode );
125+
addNodeClass( 'BufferAttributeNode', BufferAttributeNode );

examples/jsm/nodes/accessors/BufferNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ export default BufferNode;
2727

2828
export const buffer = ( value, type, count ) => nodeObject( new BufferNode( value, type, count ) );
2929

30-
addNodeClass( BufferNode );
30+
addNodeClass( 'BufferNode', BufferNode );

examples/jsm/nodes/accessors/CameraNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ export const cameraNormalMatrix = nodeImmutable( CameraNode, CameraNode.NORMAL_M
9595
export const cameraWorldMatrix = nodeImmutable( CameraNode, CameraNode.WORLD_MATRIX );
9696
export const cameraPosition = nodeImmutable( CameraNode, CameraNode.POSITION );
9797

98-
addNodeClass( CameraNode );
98+
addNodeClass( 'CameraNode', CameraNode );

examples/jsm/nodes/accessors/CubeTextureNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ export const cubeTexture = nodeProxy( CubeTextureNode );
115115

116116
addNodeElement( 'cubeTexture', cubeTexture );
117117

118-
addNodeClass( CubeTextureNode );
118+
addNodeClass( 'CubeTextureNode', CubeTextureNode );

examples/jsm/nodes/accessors/ExtendedMaterialNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ export default ExtendedMaterialNode;
7373
export const materialNormal = nodeImmutable( ExtendedMaterialNode, ExtendedMaterialNode.NORMAL );
7474
export const materialClearcoatNormal = nodeImmutable( ExtendedMaterialNode, ExtendedMaterialNode.CLEARCOAT_NORMAL );
7575

76-
addNodeClass( ExtendedMaterialNode );
76+
addNodeClass( 'ExtendedMaterialNode', ExtendedMaterialNode );

examples/jsm/nodes/accessors/InstanceNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ export default InstanceNode;
6868

6969
export const instance = nodeProxy( InstanceNode );
7070

71-
addNodeClass( InstanceNode );
71+
addNodeClass( 'InstanceNode', InstanceNode );

examples/jsm/nodes/accessors/LineMaterialNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export const materialLineDashSize = nodeImmutable( LineMaterialNode, LineMateria
2626
export const materialLineGapSize = nodeImmutable( LineMaterialNode, LineMaterialNode.GAP_SIZE );
2727
export const materialLineWidth = nodeImmutable( LineMaterialNode, LineMaterialNode.LINEWIDTH );
2828

29-
addNodeClass( LineMaterialNode );
29+
addNodeClass( 'LineMaterialNode', LineMaterialNode );

examples/jsm/nodes/accessors/MaterialNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,4 +274,4 @@ export const materialIridescence = nodeImmutable( MaterialNode, MaterialNode.IRI
274274
export const materialIridescenceIOR = nodeImmutable( MaterialNode, MaterialNode.IRIDESCENCE_IOR );
275275
export const materialIridescenceThickness = nodeImmutable( MaterialNode, MaterialNode.IRIDESCENCE_THICKNESS );
276276

277-
addNodeClass( MaterialNode );
277+
addNodeClass( 'MaterialNode', MaterialNode );

examples/jsm/nodes/accessors/MaterialReferenceNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ export default MaterialReferenceNode;
3939

4040
export const materialReference = ( name, type, material ) => nodeObject( new MaterialReferenceNode( name, type, material ) );
4141

42-
addNodeClass( MaterialReferenceNode );
42+
addNodeClass( 'MaterialReferenceNode', MaterialReferenceNode );

examples/jsm/nodes/accessors/ModelNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ export const modelPosition = nodeImmutable( ModelNode, ModelNode.POSITION );
3131
export const modelScale = nodeImmutable( ModelNode, ModelNode.SCALE );
3232
export const modelViewPosition = nodeImmutable( ModelNode, ModelNode.VIEW_POSITION );
3333

34-
addNodeClass( ModelNode );
34+
addNodeClass( 'ModelNode', ModelNode );

examples/jsm/nodes/accessors/ModelViewProjectionNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ export default ModelViewProjectionNode;
2727

2828
export const modelViewProjection = nodeProxy( ModelViewProjectionNode );
2929

30-
addNodeClass( ModelViewProjectionNode );
30+
addNodeClass( 'ModelViewProjectionNode', ModelViewProjectionNode );

examples/jsm/nodes/accessors/MorphNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ export default MorphNode;
6767

6868
export const morph = nodeProxy( MorphNode );
6969

70-
addNodeClass( MorphNode );
70+
addNodeClass( 'MorphNode', MorphNode );

examples/jsm/nodes/accessors/NormalNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ export const transformedNormalView = property( 'vec3', 'TransformedNormalView' )
9393
export const transformedNormalWorld = transformedNormalView.transformDirection( cameraViewMatrix ).normalize();
9494
export const transformedClearcoatNormalView = property( 'vec3', 'TransformedClearcoatNormalView' );
9595

96-
addNodeClass( NormalNode );
96+
addNodeClass( 'NormalNode', NormalNode );

examples/jsm/nodes/accessors/Object3DNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,4 @@ export const objectPosition = nodeProxy( Object3DNode, Object3DNode.POSITION );
147147
export const objectScale = nodeProxy( Object3DNode, Object3DNode.SCALE );
148148
export const objectViewPosition = nodeProxy( Object3DNode, Object3DNode.VIEW_POSITION );
149149

150-
addNodeClass( Object3DNode );
150+
addNodeClass( 'Object3DNode', Object3DNode );

examples/jsm/nodes/accessors/PointUVNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ export default PointUVNode;
2323

2424
export const pointUV = nodeImmutable( PointUVNode );
2525

26-
addNodeClass( PointUVNode );
26+
addNodeClass( 'PointUVNode', PointUVNode );

examples/jsm/nodes/accessors/PositionNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ export const positionWorldDirection = nodeImmutable( PositionNode, PositionNode.
101101
export const positionView = nodeImmutable( PositionNode, PositionNode.VIEW );
102102
export const positionViewDirection = nodeImmutable( PositionNode, PositionNode.VIEW_DIRECTION );
103103

104-
addNodeClass( PositionNode );
104+
addNodeClass( 'PositionNode', PositionNode );

examples/jsm/nodes/accessors/ReferenceNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ export default ReferenceNode;
7575

7676
export const reference = ( name, type, object ) => nodeObject( new ReferenceNode( name, type, object ) );
7777

78-
addNodeClass( ReferenceNode );
78+
addNodeClass( 'ReferenceNode', ReferenceNode );

examples/jsm/nodes/accessors/ReflectVectorNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ export default ReflectVectorNode;
3232

3333
export const reflectVector = nodeImmutable( ReflectVectorNode );
3434

35-
addNodeClass( ReflectVectorNode );
35+
addNodeClass( 'ReflectVectorNode', ReflectVectorNode );

examples/jsm/nodes/accessors/SceneNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ export default SceneNode;
4949
export const backgroundBlurriness = nodeImmutable( SceneNode, SceneNode.BACKGROUND_BLURRINESS );
5050
export const backgroundIntensity = nodeImmutable( SceneNode, SceneNode.BACKGROUND_INTENSITY );
5151

52-
addNodeClass( SceneNode );
52+
addNodeClass( 'SceneNode', SceneNode );

examples/jsm/nodes/accessors/SkinningNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ export default SkinningNode;
9090

9191
export const skinning = nodeProxy( SkinningNode );
9292

93-
addNodeClass( SkinningNode );
93+
addNodeClass( 'SkinningNode', SkinningNode );

examples/jsm/nodes/accessors/StorageBufferNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ export default StorageBufferNode;
2424

2525
export const storage = ( value, type, count ) => nodeObject( new StorageBufferNode( value, type, count ) );
2626

27-
addNodeClass( StorageBufferNode );
27+
addNodeClass( 'StorageBufferNode', StorageBufferNode );

examples/jsm/nodes/accessors/TangentNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ export const tangentWorld = nodeImmutable( TangentNode, TangentNode.WORLD );
100100
export const transformedTangentView = temp( tangentView, 'TransformedTangentView' );
101101
export const transformedTangentWorld = normalize( transformedTangentView.transformDirection( cameraViewMatrix ) );
102102

103-
addNodeClass( TangentNode );
103+
addNodeClass( 'TangentNode', TangentNode );

examples/jsm/nodes/accessors/TextureBicubicNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ export const textureBicubic = nodeProxy( TextureBicubicNode );
9191

9292
addNodeElement( 'bicubic', textureBicubic );
9393

94-
addNodeClass( TextureBicubicNode );
94+
addNodeClass( 'TextureBicubicNode', TextureBicubicNode );

examples/jsm/nodes/accessors/TextureNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,4 @@ export const sampler = ( aTexture ) => ( aTexture.isNode === true ? aTexture : t
278278
addNodeElement( 'texture', texture );
279279
//addNodeElement( 'textureLevel', textureLevel );
280280

281-
addNodeClass( TextureNode );
281+
addNodeClass( 'TextureNode', TextureNode );

examples/jsm/nodes/accessors/TextureSizeNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ export const textureSize = nodeProxy( TextureSizeNode );
3232

3333
addNodeElement( 'textureSize', textureSize );
3434

35-
addNodeClass( TextureSizeNode );
35+
addNodeClass( 'TextureSizeNode', TextureSizeNode );

examples/jsm/nodes/accessors/TextureStoreNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export default TextureStoreNode;
2626

2727
export const textureStore = nodeProxy( TextureStoreNode );
2828

29-
addNodeClass( TextureStoreNode );
29+
addNodeClass( 'TextureStoreNode', TextureStoreNode );

examples/jsm/nodes/accessors/UVNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ export default UVNode;
4444

4545
export const uv = ( ...params ) => nodeObject( new UVNode( ...params ) );
4646

47-
addNodeClass( UVNode );
47+
addNodeClass( 'UVNode', UVNode );

examples/jsm/nodes/accessors/UserDataNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export default UserDataNode;
2626

2727
export const userData = ( name, inputType, userData ) => nodeObject( new UserDataNode( name, inputType, userData ) );
2828

29-
addNodeClass( UserDataNode );
29+
addNodeClass( 'UserDataNode', UserDataNode );

examples/jsm/nodes/code/CodeNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ export const js = ( src, includes ) => code( src, includes, 'js' );
7575
export const wgsl = ( src, includes ) => code( src, includes, 'wgsl' );
7676
export const glsl = ( src, includes ) => code( src, includes, 'glsl' );
7777

78-
addNodeClass( CodeNode );
78+
addNodeClass( 'CodeNode', CodeNode );

examples/jsm/nodes/code/ExpressionNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ export default ExpressionNode;
3434

3535
export const expression = nodeProxy( ExpressionNode );
3636

37-
addNodeClass( ExpressionNode );
37+
addNodeClass( 'ExpressionNode', ExpressionNode );

examples/jsm/nodes/code/FunctionCallNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ export const call = ( func, ...params ) => {
9393

9494
addNodeElement( 'call', call );
9595

96-
addNodeClass( FunctionCallNode );
96+
addNodeClass( 'FunctionCallNode', FunctionCallNode );

examples/jsm/nodes/code/FunctionNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ export const func = ( code, includes ) => { // @deprecated, r154
135135

136136
};
137137

138-
addNodeClass( FunctionNode );
138+
addNodeClass( 'FunctionNode', FunctionNode );

examples/jsm/nodes/code/ScriptableNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,4 +485,4 @@ export const scriptable = nodeProxy( ScriptableNode );
485485

486486
addNodeElement( 'scriptable', scriptable );
487487

488-
addNodeClass( ScriptableNode );
488+
addNodeClass( 'ScriptableNode', ScriptableNode );

examples/jsm/nodes/code/ScriptableValueNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ export const scriptableValue = nodeProxy( ScriptableValueNode );
164164

165165
addNodeElement( 'scriptableValue', scriptableValue );
166166

167-
addNodeClass( ScriptableValueNode );
167+
addNodeClass( 'ScriptableValueNode', ScriptableValueNode );

examples/jsm/nodes/core/ArrayUniformNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ class ArrayUniformNode extends UniformNode {
2323

2424
export default ArrayUniformNode;
2525

26-
addNodeClass( ArrayUniformNode );
26+
addNodeClass( 'ArrayUniformNode', ArrayUniformNode );

examples/jsm/nodes/core/AttributeNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ export default AttributeNode;
9999

100100
export const attribute = ( name, nodeType ) => nodeObject( new AttributeNode( name, nodeType ) );
101101

102-
addNodeClass( AttributeNode );
102+
addNodeClass( 'AttributeNode', AttributeNode );

examples/jsm/nodes/core/BypassNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ export const bypass = nodeProxy( BypassNode );
4242

4343
addNodeElement( 'bypass', bypass );
4444

45-
addNodeClass( BypassNode );
45+
addNodeClass( 'BypassNode', BypassNode );

examples/jsm/nodes/core/CacheNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ export const cache = nodeProxy( CacheNode );
4343

4444
addNodeElement( 'cache', cache );
4545

46-
addNodeClass( CacheNode );
46+
addNodeClass( 'CacheNode', CacheNode );

examples/jsm/nodes/core/ConstNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ class ConstNode extends InputNode {
2929

3030
export default ConstNode;
3131

32-
addNodeClass( ConstNode );
32+
addNodeClass( 'ConstNode', ConstNode );

examples/jsm/nodes/core/ContextNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ export const label = ( node, name ) => context( node, { label: name } );
5858
addNodeElement( 'context', context );
5959
addNodeElement( 'label', label );
6060

61-
addNodeClass( ContextNode );
61+
addNodeClass( 'ContextNode', ContextNode );

examples/jsm/nodes/core/IndexNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ export default IndexNode;
6363
export const vertexIndex = nodeImmutable( IndexNode, IndexNode.VERTEX );
6464
export const instanceIndex = nodeImmutable( IndexNode, IndexNode.INSTANCE );
6565

66-
addNodeClass( IndexNode );
66+
addNodeClass( 'IndexNode', IndexNode );

examples/jsm/nodes/core/InputNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ class InputNode extends Node {
8080

8181
export default InputNode;
8282

83-
addNodeClass( InputNode );
83+
addNodeClass( 'InputNode', InputNode );

examples/jsm/nodes/core/Node.js

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

2929
get type() {
3030

31-
return this.constructor.name;
31+
return this.constructor.type;
3232

3333
}
3434

@@ -462,12 +462,13 @@ class Node extends EventDispatcher {
462462

463463
export default Node;
464464

465-
export function addNodeClass( nodeClass ) {
465+
export function addNodeClass( type, nodeClass ) {
466466

467-
if ( typeof nodeClass !== 'function' || ! nodeClass.name ) throw new Error( `Node class ${ nodeClass.name } is not a class` );
468-
if ( NodeClasses.has( nodeClass.name ) ) throw new Error( `Redefinition of node class ${ nodeClass.name }` );
467+
if ( typeof nodeClass !== 'function' || ! type ) throw new Error( `Node class ${ type } is not a class` );
468+
if ( NodeClasses.has( type ) ) throw new Error( `Redefinition of node class ${ type }` );
469469

470-
NodeClasses.set( nodeClass.name, nodeClass );
470+
NodeClasses.set( type, nodeClass );
471+
nodeClass.type = type;
471472

472473
}
473474

examples/jsm/nodes/core/OutputStructNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ export default OutputStructNode;
5959

6060
export const outputStruct = nodeProxy( OutputStructNode );
6161

62-
addNodeClass( OutputStructNode );
62+
addNodeClass( 'OutputStructNode', OutputStructNode );

examples/jsm/nodes/core/PropertyNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ export const output = nodeImmutable( PropertyNode, 'vec4', 'Output' );
6060
export const dashSize = nodeImmutable( PropertyNode, 'float', 'dashSize' );
6161
export const gapSize = nodeImmutable( PropertyNode, 'float', 'gapSize' );
6262

63-
addNodeClass( PropertyNode );
63+
addNodeClass( 'PropertyNode', PropertyNode );

examples/jsm/nodes/core/StackNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ export default StackNode;
9696

9797
export const stack = nodeProxy( StackNode );
9898

99-
addNodeClass( StackNode );
99+
addNodeClass( 'StackNode', StackNode );

examples/jsm/nodes/core/StructTypeNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ class StructTypeNode extends Node {
2121

2222
export default StructTypeNode;
2323

24-
addNodeClass( StructTypeNode );
24+
addNodeClass( 'StructTypeNode', StructTypeNode );

examples/jsm/nodes/core/TempNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ class TempNode extends Node {
5555

5656
export default TempNode;
5757

58-
addNodeClass( TempNode );
58+
addNodeClass( 'TempNode', TempNode );

examples/jsm/nodes/core/UniformNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ export const uniform = ( arg1, arg2 ) => {
6060

6161
};
6262

63-
addNodeClass( UniformNode );
63+
addNodeClass( 'UniformNode', UniformNode );

examples/jsm/nodes/core/VarNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ export const temp = nodeProxy( VarNode );
8484

8585
addNodeElement( 'temp', temp );
8686

87-
addNodeClass( VarNode );
87+
addNodeClass( 'VarNode', VarNode );

examples/jsm/nodes/core/VaryingNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ export const varying = nodeProxy( VaryingNode );
6666

6767
addNodeElement( 'varying', varying );
6868

69-
addNodeClass( VaryingNode );
69+
addNodeClass( 'VaryingNode', VaryingNode );

examples/jsm/nodes/display/BlendModeNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ addNodeElement( 'dodge', dodge );
9696
addNodeElement( 'overlay', overlay );
9797
addNodeElement( 'screen', screen );
9898

99-
addNodeClass( BlendModeNode );
99+
addNodeClass( 'BlendModeNode', BlendModeNode );

examples/jsm/nodes/display/BumpMapNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ export default BumpMapNode;
7474

7575
export const bumpMap = nodeProxy( BumpMapNode );
7676

77-
addNodeClass( BumpMapNode );
77+
addNodeClass( 'BumpMapNode', BumpMapNode );

examples/jsm/nodes/display/ColorAdjustmentNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ addNodeElement( 'saturation', saturation );
9797
addNodeElement( 'vibrance', vibrance );
9898
addNodeElement( 'hue', hue );
9999

100-
addNodeClass( ColorAdjustmentNode );
100+
addNodeClass( 'ColorAdjustmentNode', ColorAdjustmentNode );

examples/jsm/nodes/display/ColorSpaceNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ addNodeElement( 'sRGBToLinear', sRGBToLinear );
105105
addNodeElement( 'linearToColorSpace', linearToColorSpace );
106106
addNodeElement( 'colorSpaceToLinear', colorSpaceToLinear );
107107

108-
addNodeClass( ColorSpaceNode );
108+
addNodeClass( 'ColorSpaceNode', ColorSpaceNode );

examples/jsm/nodes/display/FrontFacingNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ export default FrontFacingNode;
2424
export const frontFacing = nodeImmutable( FrontFacingNode );
2525
export const faceDirection = float( frontFacing ).mul( 2.0 ).sub( 1.0 );
2626

27-
addNodeClass( FrontFacingNode );
27+
addNodeClass( 'FrontFacingNode', FrontFacingNode );

examples/jsm/nodes/display/NormalMapNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ export const normalMap = nodeProxy( NormalMapNode );
103103

104104
export const TBNViewMatrix = mat3( tangentView, bitangentView, normalView );
105105

106-
addNodeClass( NormalMapNode );
106+
addNodeClass( 'NormalMapNode', NormalMapNode );

examples/jsm/nodes/display/PosterizeNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ export const posterize = nodeProxy( PosterizeNode );
2929

3030
addNodeElement( 'posterize', posterize );
3131

32-
addNodeClass( PosterizeNode );
32+
addNodeClass( 'PosterizeNode', PosterizeNode );

examples/jsm/nodes/display/ToneMappingNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,4 @@ export default ToneMappingNode;
138138

139139
export const toneMapping = ( mapping, exposure, color ) => nodeObject( new ToneMappingNode( mapping, nodeObject( exposure ), nodeObject( color ) ) );
140140

141-
addNodeClass( ToneMappingNode );
141+
addNodeClass( 'ToneMappingNode', ToneMappingNode );

examples/jsm/nodes/display/ViewportDepthNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ export default ViewportDepthNode;
6666
export const depth = nodeImmutable( ViewportDepthNode, ViewportDepthNode.DEPTH );
6767
export const depthTexture = nodeProxy( ViewportDepthNode, ViewportDepthNode.DEPTH_TEXTURE );
6868

69-
addNodeClass( ViewportDepthNode );
69+
addNodeClass( 'ViewportDepthNode', ViewportDepthNode );

examples/jsm/nodes/display/ViewportDepthTextureNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ export const viewportDepthTexture = nodeProxy( ViewportDepthTextureNode );
3131

3232
addNodeElement( 'viewportDepthTexture', viewportDepthTexture );
3333

34-
addNodeClass( ViewportDepthTextureNode );
34+
addNodeClass( 'ViewportDepthTextureNode', ViewportDepthTextureNode );

examples/jsm/nodes/display/ViewportNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ export const viewportBottomLeft = nodeImmutable( ViewportNode, ViewportNode.BOTT
126126
export const viewportTopRight = nodeImmutable( ViewportNode, ViewportNode.TOP_RIGHT );
127127
export const viewportBottomRight = nodeImmutable( ViewportNode, ViewportNode.BOTTOM_RIGHT );
128128

129-
addNodeClass( ViewportNode );
129+
addNodeClass( 'ViewportNode', ViewportNode );

0 commit comments

Comments
 (0)