Skip to content

⬅️ Back to Table of Contents

📄 StandardNodeLibrary.js

📊 Analysis Summary

Metric Count
🧱 Classes 1
📦 Imports 44

📚 Table of Contents

🛠️ File Location:

📂 src/renderers/webgpu/nodes/StandardNodeLibrary.js

📦 Imports

Name Source
NodeLibrary ../../common/nodes/NodeLibrary.js
MeshPhongNodeMaterial ../../../materials/nodes/MeshPhongNodeMaterial.js
MeshStandardNodeMaterial ../../../materials/nodes/MeshStandardNodeMaterial.js
MeshPhysicalNodeMaterial ../../../materials/nodes/MeshPhysicalNodeMaterial.js
MeshToonNodeMaterial ../../../materials/nodes/MeshToonNodeMaterial.js
MeshBasicNodeMaterial ../../../materials/nodes/MeshBasicNodeMaterial.js
MeshLambertNodeMaterial ../../../materials/nodes/MeshLambertNodeMaterial.js
MeshNormalNodeMaterial ../../../materials/nodes/MeshNormalNodeMaterial.js
MeshMatcapNodeMaterial ../../../materials/nodes/MeshMatcapNodeMaterial.js
LineBasicNodeMaterial ../../../materials/nodes/LineBasicNodeMaterial.js
LineDashedNodeMaterial ../../../materials/nodes/LineDashedNodeMaterial.js
PointsNodeMaterial ../../../materials/nodes/PointsNodeMaterial.js
SpriteNodeMaterial ../../../materials/nodes/SpriteNodeMaterial.js
ShadowNodeMaterial ../../../materials/nodes/ShadowNodeMaterial.js
PointLight ../../../lights/PointLight.js
DirectionalLight ../../../lights/DirectionalLight.js
RectAreaLight ../../../lights/RectAreaLight.js
SpotLight ../../../lights/SpotLight.js
AmbientLight ../../../lights/AmbientLight.js
HemisphereLight ../../../lights/HemisphereLight.js
LightProbe ../../../lights/LightProbe.js
IESSpotLight ../../../lights/webgpu/IESSpotLight.js
ProjectorLight ../../../lights/webgpu/ProjectorLight.js
PointLightNode ../../../nodes/Nodes.js
DirectionalLightNode ../../../nodes/Nodes.js
RectAreaLightNode ../../../nodes/Nodes.js
SpotLightNode ../../../nodes/Nodes.js
AmbientLightNode ../../../nodes/Nodes.js
HemisphereLightNode ../../../nodes/Nodes.js
LightProbeNode ../../../nodes/Nodes.js
IESSpotLightNode ../../../nodes/Nodes.js
ProjectorLightNode ../../../nodes/Nodes.js
LinearToneMapping ../../../constants.js
ReinhardToneMapping ../../../constants.js
CineonToneMapping ../../../constants.js
ACESFilmicToneMapping ../../../constants.js
AgXToneMapping ../../../constants.js
NeutralToneMapping ../../../constants.js
linearToneMapping ../../../nodes/display/ToneMappingFunctions.js
reinhardToneMapping ../../../nodes/display/ToneMappingFunctions.js
cineonToneMapping ../../../nodes/display/ToneMappingFunctions.js
acesFilmicToneMapping ../../../nodes/display/ToneMappingFunctions.js
agxToneMapping ../../../nodes/display/ToneMappingFunctions.js
neutralToneMapping ../../../nodes/display/ToneMappingFunctions.js

Classes

StandardNodeLibrary

Class Code
class StandardNodeLibrary extends NodeLibrary {

    /**
     * Constructs a new standard node library.
     */
    constructor() {

        super();

        this.addMaterial( MeshPhongNodeMaterial, 'MeshPhongMaterial' );
        this.addMaterial( MeshStandardNodeMaterial, 'MeshStandardMaterial' );
        this.addMaterial( MeshPhysicalNodeMaterial, 'MeshPhysicalMaterial' );
        this.addMaterial( MeshToonNodeMaterial, 'MeshToonMaterial' );
        this.addMaterial( MeshBasicNodeMaterial, 'MeshBasicMaterial' );
        this.addMaterial( MeshLambertNodeMaterial, 'MeshLambertMaterial' );
        this.addMaterial( MeshNormalNodeMaterial, 'MeshNormalMaterial' );
        this.addMaterial( MeshMatcapNodeMaterial, 'MeshMatcapMaterial' );
        this.addMaterial( LineBasicNodeMaterial, 'LineBasicMaterial' );
        this.addMaterial( LineDashedNodeMaterial, 'LineDashedMaterial' );
        this.addMaterial( PointsNodeMaterial, 'PointsMaterial' );
        this.addMaterial( SpriteNodeMaterial, 'SpriteMaterial' );
        this.addMaterial( ShadowNodeMaterial, 'ShadowMaterial' );

        this.addLight( PointLightNode, PointLight );
        this.addLight( DirectionalLightNode, DirectionalLight );
        this.addLight( RectAreaLightNode, RectAreaLight );
        this.addLight( SpotLightNode, SpotLight );
        this.addLight( AmbientLightNode, AmbientLight );
        this.addLight( HemisphereLightNode, HemisphereLight );
        this.addLight( LightProbeNode, LightProbe );
        this.addLight( IESSpotLightNode, IESSpotLight );
        this.addLight( ProjectorLightNode, ProjectorLight );

        this.addToneMapping( linearToneMapping, LinearToneMapping );
        this.addToneMapping( reinhardToneMapping, ReinhardToneMapping );
        this.addToneMapping( cineonToneMapping, CineonToneMapping );
        this.addToneMapping( acesFilmicToneMapping, ACESFilmicToneMapping );
        this.addToneMapping( agxToneMapping, AgXToneMapping );
        this.addToneMapping( neutralToneMapping, NeutralToneMapping );

    }

}