Skip to content

Commit

Permalink
Nodes: Fix addNodeClass and addNodeMaterial in case of renaming c…
Browse files Browse the repository at this point in the history
…lasses (mrdoob#26846)
  • Loading branch information
LeviPesin authored Sep 26, 2023
1 parent 6a5d6de commit 2d1695e
Show file tree
Hide file tree
Showing 118 changed files with 129 additions and 127 deletions.
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/BitangentNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ export const bitangentWorld = nodeImmutable( BitangentNode, BitangentNode.WORLD
export const transformedBitangentView = normalize( transformedNormalView.cross( transformedTangentView ).mul( tangentGeometry.w ) );
export const transformedBitangentWorld = normalize( transformedBitangentView.transformDirection( cameraViewMatrix ) );

addNodeClass( BitangentNode );
addNodeClass( 'BitangentNode', BitangentNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/BufferAttributeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ export const instancedDynamicBufferAttribute = ( array, type, stride, offset ) =

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

addNodeClass( BufferAttributeNode );
addNodeClass( 'BufferAttributeNode', BufferAttributeNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/BufferNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ export default BufferNode;

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

addNodeClass( BufferNode );
addNodeClass( 'BufferNode', BufferNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/CameraNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ export const cameraNormalMatrix = nodeImmutable( CameraNode, CameraNode.NORMAL_M
export const cameraWorldMatrix = nodeImmutable( CameraNode, CameraNode.WORLD_MATRIX );
export const cameraPosition = nodeImmutable( CameraNode, CameraNode.POSITION );

addNodeClass( CameraNode );
addNodeClass( 'CameraNode', CameraNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/CubeTextureNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ export const cubeTexture = nodeProxy( CubeTextureNode );

addNodeElement( 'cubeTexture', cubeTexture );

addNodeClass( CubeTextureNode );
addNodeClass( 'CubeTextureNode', CubeTextureNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/ExtendedMaterialNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ export default ExtendedMaterialNode;
export const materialNormal = nodeImmutable( ExtendedMaterialNode, ExtendedMaterialNode.NORMAL );
export const materialClearcoatNormal = nodeImmutable( ExtendedMaterialNode, ExtendedMaterialNode.CLEARCOAT_NORMAL );

addNodeClass( ExtendedMaterialNode );
addNodeClass( 'ExtendedMaterialNode', ExtendedMaterialNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/InstanceNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ export default InstanceNode;

export const instance = nodeProxy( InstanceNode );

addNodeClass( InstanceNode );
addNodeClass( 'InstanceNode', InstanceNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/LineMaterialNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ export const materialLineDashSize = nodeImmutable( LineMaterialNode, LineMateria
export const materialLineGapSize = nodeImmutable( LineMaterialNode, LineMaterialNode.GAP_SIZE );
export const materialLineWidth = nodeImmutable( LineMaterialNode, LineMaterialNode.LINEWIDTH );

addNodeClass( LineMaterialNode );
addNodeClass( 'LineMaterialNode', LineMaterialNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/MaterialNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,4 @@ export const materialIridescence = nodeImmutable( MaterialNode, MaterialNode.IRI
export const materialIridescenceIOR = nodeImmutable( MaterialNode, MaterialNode.IRIDESCENCE_IOR );
export const materialIridescenceThickness = nodeImmutable( MaterialNode, MaterialNode.IRIDESCENCE_THICKNESS );

addNodeClass( MaterialNode );
addNodeClass( 'MaterialNode', MaterialNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/MaterialReferenceNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ export default MaterialReferenceNode;

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

addNodeClass( MaterialReferenceNode );
addNodeClass( 'MaterialReferenceNode', MaterialReferenceNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/ModelNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ export const modelPosition = nodeImmutable( ModelNode, ModelNode.POSITION );
export const modelScale = nodeImmutable( ModelNode, ModelNode.SCALE );
export const modelViewPosition = nodeImmutable( ModelNode, ModelNode.VIEW_POSITION );

addNodeClass( ModelNode );
addNodeClass( 'ModelNode', ModelNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/ModelViewProjectionNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ export default ModelViewProjectionNode;

export const modelViewProjection = nodeProxy( ModelViewProjectionNode );

addNodeClass( ModelViewProjectionNode );
addNodeClass( 'ModelViewProjectionNode', ModelViewProjectionNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/MorphNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ export default MorphNode;

export const morph = nodeProxy( MorphNode );

addNodeClass( MorphNode );
addNodeClass( 'MorphNode', MorphNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/NormalNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ export const transformedNormalView = property( 'vec3', 'TransformedNormalView' )
export const transformedNormalWorld = transformedNormalView.transformDirection( cameraViewMatrix ).normalize();
export const transformedClearcoatNormalView = property( 'vec3', 'TransformedClearcoatNormalView' );

addNodeClass( NormalNode );
addNodeClass( 'NormalNode', NormalNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/Object3DNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ export const objectPosition = nodeProxy( Object3DNode, Object3DNode.POSITION );
export const objectScale = nodeProxy( Object3DNode, Object3DNode.SCALE );
export const objectViewPosition = nodeProxy( Object3DNode, Object3DNode.VIEW_POSITION );

addNodeClass( Object3DNode );
addNodeClass( 'Object3DNode', Object3DNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/PointUVNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ export default PointUVNode;

export const pointUV = nodeImmutable( PointUVNode );

addNodeClass( PointUVNode );
addNodeClass( 'PointUVNode', PointUVNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/PositionNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ export const positionWorldDirection = nodeImmutable( PositionNode, PositionNode.
export const positionView = nodeImmutable( PositionNode, PositionNode.VIEW );
export const positionViewDirection = nodeImmutable( PositionNode, PositionNode.VIEW_DIRECTION );

addNodeClass( PositionNode );
addNodeClass( 'PositionNode', PositionNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/ReferenceNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ export default ReferenceNode;

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

addNodeClass( ReferenceNode );
addNodeClass( 'ReferenceNode', ReferenceNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/ReflectVectorNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ export default ReflectVectorNode;

export const reflectVector = nodeImmutable( ReflectVectorNode );

addNodeClass( ReflectVectorNode );
addNodeClass( 'ReflectVectorNode', ReflectVectorNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/SceneNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ export default SceneNode;
export const backgroundBlurriness = nodeImmutable( SceneNode, SceneNode.BACKGROUND_BLURRINESS );
export const backgroundIntensity = nodeImmutable( SceneNode, SceneNode.BACKGROUND_INTENSITY );

addNodeClass( SceneNode );
addNodeClass( 'SceneNode', SceneNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/SkinningNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ export default SkinningNode;

export const skinning = nodeProxy( SkinningNode );

addNodeClass( SkinningNode );
addNodeClass( 'SkinningNode', SkinningNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/StorageBufferNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ export default StorageBufferNode;

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

addNodeClass( StorageBufferNode );
addNodeClass( 'StorageBufferNode', StorageBufferNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/TangentNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ export const tangentWorld = nodeImmutable( TangentNode, TangentNode.WORLD );
export const transformedTangentView = temp( tangentView, 'TransformedTangentView' );
export const transformedTangentWorld = normalize( transformedTangentView.transformDirection( cameraViewMatrix ) );

addNodeClass( TangentNode );
addNodeClass( 'TangentNode', TangentNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/TextureBicubicNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ export const textureBicubic = nodeProxy( TextureBicubicNode );

addNodeElement( 'bicubic', textureBicubic );

addNodeClass( TextureBicubicNode );
addNodeClass( 'TextureBicubicNode', TextureBicubicNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/TextureNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,4 @@ export const sampler = ( aTexture ) => ( aTexture.isNode === true ? aTexture : t
addNodeElement( 'texture', texture );
//addNodeElement( 'textureLevel', textureLevel );

addNodeClass( TextureNode );
addNodeClass( 'TextureNode', TextureNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/TextureSizeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ export const textureSize = nodeProxy( TextureSizeNode );

addNodeElement( 'textureSize', textureSize );

addNodeClass( TextureSizeNode );
addNodeClass( 'TextureSizeNode', TextureSizeNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/TextureStoreNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ export default TextureStoreNode;

export const textureStore = nodeProxy( TextureStoreNode );

addNodeClass( TextureStoreNode );
addNodeClass( 'TextureStoreNode', TextureStoreNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/UVNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ export default UVNode;

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

addNodeClass( UVNode );
addNodeClass( 'UVNode', UVNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/accessors/UserDataNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ export default UserDataNode;

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

addNodeClass( UserDataNode );
addNodeClass( 'UserDataNode', UserDataNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/code/CodeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ export const js = ( src, includes ) => code( src, includes, 'js' );
export const wgsl = ( src, includes ) => code( src, includes, 'wgsl' );
export const glsl = ( src, includes ) => code( src, includes, 'glsl' );

addNodeClass( CodeNode );
addNodeClass( 'CodeNode', CodeNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/code/ExpressionNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ export default ExpressionNode;

export const expression = nodeProxy( ExpressionNode );

addNodeClass( ExpressionNode );
addNodeClass( 'ExpressionNode', ExpressionNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/code/FunctionCallNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ export const call = ( func, ...params ) => {

addNodeElement( 'call', call );

addNodeClass( FunctionCallNode );
addNodeClass( 'FunctionCallNode', FunctionCallNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/code/FunctionNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ export const func = ( code, includes ) => { // @deprecated, r154

};

addNodeClass( FunctionNode );
addNodeClass( 'FunctionNode', FunctionNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/code/ScriptableNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,4 +485,4 @@ export const scriptable = nodeProxy( ScriptableNode );

addNodeElement( 'scriptable', scriptable );

addNodeClass( ScriptableNode );
addNodeClass( 'ScriptableNode', ScriptableNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/code/ScriptableValueNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ export const scriptableValue = nodeProxy( ScriptableValueNode );

addNodeElement( 'scriptableValue', scriptableValue );

addNodeClass( ScriptableValueNode );
addNodeClass( 'ScriptableValueNode', ScriptableValueNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/ArrayUniformNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ class ArrayUniformNode extends UniformNode {

export default ArrayUniformNode;

addNodeClass( ArrayUniformNode );
addNodeClass( 'ArrayUniformNode', ArrayUniformNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/AttributeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ export default AttributeNode;

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

addNodeClass( AttributeNode );
addNodeClass( 'AttributeNode', AttributeNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/BypassNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ export const bypass = nodeProxy( BypassNode );

addNodeElement( 'bypass', bypass );

addNodeClass( BypassNode );
addNodeClass( 'BypassNode', BypassNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/CacheNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ export const cache = nodeProxy( CacheNode );

addNodeElement( 'cache', cache );

addNodeClass( CacheNode );
addNodeClass( 'CacheNode', CacheNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/ConstNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ class ConstNode extends InputNode {

export default ConstNode;

addNodeClass( ConstNode );
addNodeClass( 'ConstNode', ConstNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/ContextNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ export const label = ( node, name ) => context( node, { label: name } );
addNodeElement( 'context', context );
addNodeElement( 'label', label );

addNodeClass( ContextNode );
addNodeClass( 'ContextNode', ContextNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/IndexNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ export default IndexNode;
export const vertexIndex = nodeImmutable( IndexNode, IndexNode.VERTEX );
export const instanceIndex = nodeImmutable( IndexNode, IndexNode.INSTANCE );

addNodeClass( IndexNode );
addNodeClass( 'IndexNode', IndexNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/InputNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ class InputNode extends Node {

export default InputNode;

addNodeClass( InputNode );
addNodeClass( 'InputNode', InputNode );
11 changes: 6 additions & 5 deletions examples/jsm/nodes/core/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Node extends EventDispatcher {

get type() {

return this.constructor.name;
return this.constructor.type;

}

Expand Down Expand Up @@ -462,12 +462,13 @@ class Node extends EventDispatcher {

export default Node;

export function addNodeClass( nodeClass ) {
export function addNodeClass( type, nodeClass ) {

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

NodeClasses.set( nodeClass.name, nodeClass );
NodeClasses.set( type, nodeClass );
nodeClass.type = type;

}

Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/OutputStructNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ export default OutputStructNode;

export const outputStruct = nodeProxy( OutputStructNode );

addNodeClass( OutputStructNode );
addNodeClass( 'OutputStructNode', OutputStructNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/PropertyNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ export const output = nodeImmutable( PropertyNode, 'vec4', 'Output' );
export const dashSize = nodeImmutable( PropertyNode, 'float', 'dashSize' );
export const gapSize = nodeImmutable( PropertyNode, 'float', 'gapSize' );

addNodeClass( PropertyNode );
addNodeClass( 'PropertyNode', PropertyNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/StackNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ export default StackNode;

export const stack = nodeProxy( StackNode );

addNodeClass( StackNode );
addNodeClass( 'StackNode', StackNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/StructTypeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class StructTypeNode extends Node {

export default StructTypeNode;

addNodeClass( StructTypeNode );
addNodeClass( 'StructTypeNode', StructTypeNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/TempNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ class TempNode extends Node {

export default TempNode;

addNodeClass( TempNode );
addNodeClass( 'TempNode', TempNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/UniformNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ export const uniform = ( arg1, arg2 ) => {

};

addNodeClass( UniformNode );
addNodeClass( 'UniformNode', UniformNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/VarNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ export const temp = nodeProxy( VarNode );

addNodeElement( 'temp', temp );

addNodeClass( VarNode );
addNodeClass( 'VarNode', VarNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/core/VaryingNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ export const varying = nodeProxy( VaryingNode );

addNodeElement( 'varying', varying );

addNodeClass( VaryingNode );
addNodeClass( 'VaryingNode', VaryingNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/display/BlendModeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ addNodeElement( 'dodge', dodge );
addNodeElement( 'overlay', overlay );
addNodeElement( 'screen', screen );

addNodeClass( BlendModeNode );
addNodeClass( 'BlendModeNode', BlendModeNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/display/BumpMapNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ export default BumpMapNode;

export const bumpMap = nodeProxy( BumpMapNode );

addNodeClass( BumpMapNode );
addNodeClass( 'BumpMapNode', BumpMapNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/display/ColorAdjustmentNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ addNodeElement( 'saturation', saturation );
addNodeElement( 'vibrance', vibrance );
addNodeElement( 'hue', hue );

addNodeClass( ColorAdjustmentNode );
addNodeClass( 'ColorAdjustmentNode', ColorAdjustmentNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/display/ColorSpaceNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ addNodeElement( 'sRGBToLinear', sRGBToLinear );
addNodeElement( 'linearToColorSpace', linearToColorSpace );
addNodeElement( 'colorSpaceToLinear', colorSpaceToLinear );

addNodeClass( ColorSpaceNode );
addNodeClass( 'ColorSpaceNode', ColorSpaceNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/display/FrontFacingNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ export default FrontFacingNode;
export const frontFacing = nodeImmutable( FrontFacingNode );
export const faceDirection = float( frontFacing ).mul( 2.0 ).sub( 1.0 );

addNodeClass( FrontFacingNode );
addNodeClass( 'FrontFacingNode', FrontFacingNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/display/NormalMapNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ export const normalMap = nodeProxy( NormalMapNode );

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

addNodeClass( NormalMapNode );
addNodeClass( 'NormalMapNode', NormalMapNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/display/PosterizeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ export const posterize = nodeProxy( PosterizeNode );

addNodeElement( 'posterize', posterize );

addNodeClass( PosterizeNode );
addNodeClass( 'PosterizeNode', PosterizeNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/display/ToneMappingNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ export default ToneMappingNode;

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

addNodeClass( ToneMappingNode );
addNodeClass( 'ToneMappingNode', ToneMappingNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/display/ViewportDepthNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ export default ViewportDepthNode;
export const depth = nodeImmutable( ViewportDepthNode, ViewportDepthNode.DEPTH );
export const depthTexture = nodeProxy( ViewportDepthNode, ViewportDepthNode.DEPTH_TEXTURE );

addNodeClass( ViewportDepthNode );
addNodeClass( 'ViewportDepthNode', ViewportDepthNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/display/ViewportDepthTextureNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ export const viewportDepthTexture = nodeProxy( ViewportDepthTextureNode );

addNodeElement( 'viewportDepthTexture', viewportDepthTexture );

addNodeClass( ViewportDepthTextureNode );
addNodeClass( 'ViewportDepthTextureNode', ViewportDepthTextureNode );
2 changes: 1 addition & 1 deletion examples/jsm/nodes/display/ViewportNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ export const viewportBottomLeft = nodeImmutable( ViewportNode, ViewportNode.BOTT
export const viewportTopRight = nodeImmutable( ViewportNode, ViewportNode.TOP_RIGHT );
export const viewportBottomRight = nodeImmutable( ViewportNode, ViewportNode.BOTTOM_RIGHT );

addNodeClass( ViewportNode );
addNodeClass( 'ViewportNode', ViewportNode );
Loading

0 comments on commit 2d1695e

Please sign in to comment.