123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- // core
- import ArrayUniformNode from './core/ArrayUniformNode.js';
- import AttributeNode from './core/AttributeNode.js';
- import BypassNode from './core/BypassNode.js';
- import CodeNode from './core/CodeNode.js';
- import ConstNode from './core/ConstNode.js';
- import ContextNode from './core/ContextNode.js';
- import ExpressionNode from './core/ExpressionNode.js';
- import FunctionCallNode from './core/FunctionCallNode.js';
- import FunctionNode from './core/FunctionNode.js';
- import InstanceIndexNode from './core/InstanceIndexNode.js';
- import Node from './core/Node.js';
- import NodeAttribute from './core/NodeAttribute.js';
- import NodeBuilder from './core/NodeBuilder.js';
- import NodeCode from './core/NodeCode.js';
- import NodeFrame from './core/NodeFrame.js';
- import NodeFunctionInput from './core/NodeFunctionInput.js';
- import NodeKeywords from './core/NodeKeywords.js';
- import NodeUniform from './core/NodeUniform.js';
- import NodeVar from './core/NodeVar.js';
- import NodeVarying from './core/NodeVarying.js';
- import PropertyNode from './core/PropertyNode.js';
- import TempNode from './core/TempNode.js';
- import UniformNode from './core/UniformNode.js';
- import VarNode from './core/VarNode.js';
- import VaryingNode from './core/VaryingNode.js';
- // accessors
- import BufferNode from './accessors/BufferNode.js';
- import CameraNode from './accessors/CameraNode.js';
- import CubeTextureNode from './accessors/CubeTextureNode.js';
- import InstanceNode from './accessors/InstanceNode.js';
- import MaterialNode from './accessors/MaterialNode.js';
- import MaterialReferenceNode from './accessors/MaterialReferenceNode.js';
- import ModelNode from './accessors/ModelNode.js';
- import ModelViewProjectionNode from './accessors/ModelViewProjectionNode.js';
- import NormalNode from './accessors/NormalNode.js';
- import Object3DNode from './accessors/Object3DNode.js';
- import PointUVNode from './accessors/PointUVNode.js';
- import PositionNode from './accessors/PositionNode.js';
- import ReferenceNode from './accessors/ReferenceNode.js';
- import ReflectVectorNode from './accessors/ReflectVectorNode.js';
- import SkinningNode from './accessors/SkinningNode.js';
- import TextureNode from './accessors/TextureNode.js';
- import UVNode from './accessors/UVNode.js';
- import UserDataNode from './accessors/UserDataNode.js';
- // geometry
- import RangeNode from './geometry/RangeNode.js';
- // gpgpu
- import ComputeNode from './gpgpu/ComputeNode.js';
- // display
- import ColorAdjustmentNode from './display/ColorAdjustmentNode.js';
- import ColorSpaceNode from './display/ColorSpaceNode.js';
- import FrontFacingNode from './display/FrontFacingNode.js';
- import NormalMapNode from './display/NormalMapNode.js';
- import ToneMappingNode from './display/ToneMappingNode.js';
- // math
- import MathNode from './math/MathNode.js';
- import OperatorNode from './math/OperatorNode.js';
- import CondNode from './math/CondNode.js';
- // lighting
- import PunctualLightNode from './lighting/PunctualLightNode.js';
- import LightsNode from './lighting/LightsNode.js';
- import LightingNode from './lighting/LightingNode.js';
- import LightingContextNode from './lighting/LightingContextNode.js';
- import HemisphereLightNode from './lighting/HemisphereLightNode.js';
- import EnvironmentNode from './lighting/EnvironmentNode.js';
- import AONode from './lighting/AONode.js';
- import AnalyticLightNode from './lighting/AnalyticLightNode.js';
- // utils
- import ArrayElementNode from './utils/ArrayElementNode.js';
- import ConvertNode from './utils/ConvertNode.js';
- import JoinNode from './utils/JoinNode.js';
- import MatcapUVNode from './utils/MatcapUVNode.js';
- import MaxMipLevelNode from './utils/MaxMipLevelNode.js';
- import OscNode from './utils/OscNode.js';
- import RotateUVNode from './utils/RotateUVNode.js';
- import SplitNode from './utils/SplitNode.js';
- import SpriteSheetUVNode from './utils/SpriteSheetUVNode.js';
- import TimerNode from './utils/TimerNode.js';
- // loaders
- import NodeLoader from './loaders/NodeLoader.js';
- import NodeObjectLoader from './loaders/NodeObjectLoader.js';
- import NodeMaterialLoader from './loaders/NodeMaterialLoader.js';
- // parsers
- import WGSLNodeParser from './parsers/WGSLNodeParser.js';
- import GLSLNodeParser from './parsers/GLSLNodeParser.js';
- // procedural
- import CheckerNode from './procedural/CheckerNode.js';
- // fog
- import FogNode from './fog/FogNode.js';
- import FogRangeNode from './fog/FogRangeNode.js';
- // core
- export * from './core/constants.js';
- // materials
- export * from './materials/Materials.js';
- // shader node
- export * from './shadernode/ShaderNodeElements.js';
- // shader stages
- export { defaultShaderStages } from './core/NodeBuilder.js';
- const nodeLib = {
- // core
- ArrayUniformNode,
- AttributeNode,
- BypassNode,
- CodeNode,
- ContextNode,
- ConstNode,
- ExpressionNode,
- FunctionCallNode,
- FunctionNode,
- InstanceIndexNode,
- Node,
- NodeAttribute,
- NodeBuilder,
- NodeCode,
- NodeFrame,
- NodeFunctionInput,
- NodeKeywords,
- NodeUniform,
- NodeVar,
- NodeVarying,
- PropertyNode,
- TempNode,
- UniformNode,
- VarNode,
- VaryingNode,
- // geometry
- RangeNode,
- // gpgpu
- ComputeNode,
- // accessors
- BufferNode,
- CameraNode,
- CubeTextureNode,
- InstanceNode,
- MaterialNode,
- MaterialReferenceNode,
- ModelNode,
- ModelViewProjectionNode,
- NormalNode,
- Object3DNode,
- PointUVNode,
- PositionNode,
- ReferenceNode,
- ReflectVectorNode,
- SkinningNode,
- TextureNode,
- UVNode,
- UserDataNode,
- // display
- ColorAdjustmentNode,
- ColorSpaceNode,
- FrontFacingNode,
- NormalMapNode,
- ToneMappingNode,
- // math
- MathNode,
- OperatorNode,
- CondNode,
- // lighting
- PunctualLightNode,
- LightsNode,
- LightingNode,
- LightingContextNode,
- HemisphereLightNode,
- EnvironmentNode,
- AONode,
- AnalyticLightNode,
- // utils
- ArrayElementNode,
- ConvertNode,
- JoinNode,
- MatcapUVNode,
- MaxMipLevelNode,
- OscNode,
- RotateUVNode,
- SplitNode,
- SpriteSheetUVNode,
- TimerNode,
- // procedural
- CheckerNode,
- // fog
- FogNode,
- FogRangeNode,
- // loaders
- NodeLoader,
- NodeObjectLoader,
- NodeMaterialLoader,
- // parsers
- WGSLNodeParser,
- GLSLNodeParser,
- };
- export const fromType = ( type ) => {
- return new nodeLib[ type ]();
- };
- export {
- // core
- ArrayUniformNode,
- AttributeNode,
- BypassNode,
- CodeNode,
- ContextNode,
- ConstNode,
- ExpressionNode,
- FunctionCallNode,
- FunctionNode,
- InstanceIndexNode,
- Node,
- NodeAttribute,
- NodeBuilder,
- NodeCode,
- NodeFrame,
- NodeFunctionInput,
- NodeKeywords,
- NodeUniform,
- NodeVar,
- NodeVarying,
- PropertyNode,
- TempNode,
- UniformNode,
- VarNode,
- VaryingNode,
- // geometry
- RangeNode,
- // gpgpu
- ComputeNode,
- // accessors
- BufferNode,
- CameraNode,
- CubeTextureNode,
- InstanceNode,
- MaterialNode,
- MaterialReferenceNode,
- ModelNode,
- ModelViewProjectionNode,
- NormalNode,
- Object3DNode,
- PointUVNode,
- PositionNode,
- ReferenceNode,
- ReflectVectorNode,
- SkinningNode,
- TextureNode,
- UVNode,
- UserDataNode,
- // display
- ColorAdjustmentNode,
- ColorSpaceNode,
- FrontFacingNode,
- NormalMapNode,
- ToneMappingNode,
- // math
- MathNode,
- OperatorNode,
- CondNode,
- // lighting
- PunctualLightNode,
- LightsNode,
- LightingNode,
- LightingContextNode,
- HemisphereLightNode,
- EnvironmentNode,
- AONode,
- AnalyticLightNode,
- // utils
- ArrayElementNode,
- ConvertNode,
- JoinNode,
- MatcapUVNode,
- MaxMipLevelNode,
- OscNode,
- RotateUVNode,
- SplitNode,
- SpriteSheetUVNode,
- TimerNode,
- // procedural
- CheckerNode,
- // fog
- FogNode,
- FogRangeNode,
- // loaders
- NodeLoader,
- NodeObjectLoader,
- NodeMaterialLoader,
- // parsers
- WGSLNodeParser,
- GLSLNodeParser,
- };
|