super-three 0.165.0 → 0.168.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/three.cjs +854 -410
- package/build/three.module.js +849 -411
- package/build/three.module.min.js +1 -1
- package/build/three.webgpu.js +77755 -0
- package/build/three.webgpu.min.js +6 -0
- package/examples/jsm/Addons.js +5 -2
- package/examples/jsm/animation/AnimationClipCreator.js +1 -1
- package/examples/jsm/capabilities/WebGL.js +27 -21
- package/examples/jsm/controls/ArcballControls.js +174 -158
- package/examples/jsm/controls/DragControls.js +260 -132
- package/examples/jsm/controls/FirstPersonControls.js +175 -163
- package/examples/jsm/controls/FlyControls.js +194 -188
- package/examples/jsm/controls/OrbitControls.js +777 -786
- package/examples/jsm/controls/PointerLockControls.js +24 -15
- package/examples/jsm/controls/TrackballControls.js +453 -452
- package/examples/jsm/csm/CSMShader.js +4 -4
- package/examples/jsm/effects/AnaglyphEffect.js +6 -13
- package/examples/jsm/effects/ParallaxBarrierEffect.js +17 -11
- package/examples/jsm/effects/StereoEffect.js +6 -1
- package/examples/jsm/environments/RoomEnvironment.js +1 -1
- package/examples/jsm/exporters/GLTFExporter.js +13 -4
- package/examples/jsm/exporters/USDZExporter.js +29 -8
- package/examples/jsm/geometries/TeapotGeometry.js +1 -1
- package/examples/jsm/helpers/LightProbeHelper.js +42 -43
- package/examples/jsm/helpers/ViewHelper.js +51 -2
- package/examples/jsm/libs/tween.module.js +64 -75
- package/examples/jsm/lights/RectAreaLightTexturesLib.js +91 -0
- package/examples/jsm/lights/RectAreaLightUniformsLib.js +8 -63
- package/examples/jsm/lines/webgpu/Line2.js +20 -0
- package/examples/jsm/lines/webgpu/LineSegments2.js +376 -0
- package/examples/jsm/loaders/FBXLoader.js +23 -45
- package/examples/jsm/loaders/GLTFLoader.js +10 -4
- package/examples/jsm/loaders/KTX2Loader.js +19 -7
- package/examples/jsm/loaders/MaterialXLoader.js +10 -10
- package/examples/jsm/loaders/PCDLoader.js +9 -9
- package/examples/jsm/loaders/USDZLoader.js +124 -76
- package/examples/jsm/loaders/UltraHDRLoader.js +583 -0
- package/examples/jsm/loaders/VTKLoader.js +76 -3
- package/examples/jsm/misc/GPUComputationRenderer.js +9 -19
- package/examples/jsm/modifiers/SimplifyModifier.js +2 -1
- package/examples/jsm/objects/InstancedPoints.js +2 -2
- package/examples/jsm/objects/SkyMesh.js +188 -0
- package/examples/jsm/objects/Water2Mesh.js +159 -0
- package/examples/jsm/objects/WaterMesh.js +102 -0
- package/examples/jsm/physics/RapierPhysics.js +20 -0
- package/examples/jsm/postprocessing/OutlinePass.js +31 -46
- package/examples/jsm/postprocessing/RenderTransitionPass.js +13 -38
- package/examples/jsm/postprocessing/SSAARenderPass.js +3 -1
- package/examples/jsm/postprocessing/SSAOPass.js +6 -9
- package/examples/jsm/postprocessing/UnrealBloomPass.js +4 -4
- package/examples/jsm/shaders/BleachBypassShader.js +1 -2
- package/examples/jsm/shaders/ColorifyShader.js +1 -2
- package/examples/jsm/shaders/FXAAShader.js +0 -2
- package/examples/jsm/shaders/GTAOShader.js +1 -1
- package/examples/jsm/shaders/LuminosityHighPassShader.js +1 -3
- package/examples/jsm/shaders/OutputShader.js +1 -1
- package/examples/jsm/transpiler/GLSLDecoder.js +46 -4
- package/examples/jsm/transpiler/TSLEncoder.js +24 -22
- package/examples/jsm/utils/TextureUtils.js +1 -1
- package/package.json +8 -6
- package/src/Three.WebGPU.js +200 -0
- package/src/Three.js +3 -0
- package/src/constants.js +4 -1
- package/src/core/Object3D.js +22 -22
- package/src/extras/Controls.js +32 -0
- package/src/extras/TextureUtils.js +210 -0
- package/src/lights/Light.js +1 -0
- package/src/lights/LightShadow.js +5 -0
- package/{examples/jsm/lights → src/lights/webgpu}/IESSpotLight.js +1 -1
- package/src/loaders/ObjectLoader.js +33 -2
- package/{examples/jsm/nodes/loaders → src/loaders/nodes}/NodeLoader.js +6 -4
- package/{examples/jsm/nodes/loaders → src/loaders/nodes}/NodeMaterialLoader.js +2 -2
- package/{examples/jsm/nodes/loaders → src/loaders/nodes}/NodeObjectLoader.js +2 -1
- package/src/materials/Material.js +7 -1
- package/{examples/jsm/nodes/materials → src/materials/nodes}/InstancedPointsNodeMaterial.js +36 -27
- package/{examples/jsm/nodes/materials → src/materials/nodes}/Line2NodeMaterial.js +37 -40
- package/src/materials/nodes/LineBasicNodeMaterial.js +27 -0
- package/{examples/jsm/nodes/materials → src/materials/nodes}/LineDashedNodeMaterial.js +10 -11
- package/src/materials/nodes/MeshBasicNodeMaterial.js +73 -0
- package/src/materials/nodes/MeshLambertNodeMaterial.js +43 -0
- package/src/materials/nodes/MeshMatcapNodeMaterial.js +53 -0
- package/src/materials/nodes/MeshNormalNodeMaterial.js +40 -0
- package/src/materials/nodes/MeshPhongNodeMaterial.js +74 -0
- package/{examples/jsm/nodes/materials → src/materials/nodes}/MeshPhysicalNodeMaterial.js +22 -20
- package/{examples/jsm/nodes/materials → src/materials/nodes}/MeshSSSNodeMaterial.js +6 -6
- package/{examples/jsm/nodes/materials → src/materials/nodes}/MeshStandardNodeMaterial.js +28 -11
- package/src/materials/nodes/MeshToonNodeMaterial.js +34 -0
- package/{examples/jsm/nodes/materials → src/materials/nodes}/NodeMaterial.js +142 -96
- package/{examples/jsm/nodes/materials/Materials.js → src/materials/nodes/NodeMaterials.js} +1 -1
- package/{examples/jsm/nodes/materials → src/materials/nodes}/PointsNodeMaterial.js +5 -6
- package/src/materials/nodes/ShadowNodeMaterial.js +34 -0
- package/{examples/jsm/nodes/materials → src/materials/nodes}/SpriteNodeMaterial.js +13 -13
- package/{examples/jsm/nodes/materials → src/materials/nodes}/VolumeNodeMaterial.js +14 -16
- package/src/math/Box2.js +4 -4
- package/src/math/Box3.js +6 -6
- package/src/math/ColorManagement.js +10 -0
- package/src/math/Matrix2.js +54 -0
- package/src/math/Vector4.js +13 -0
- package/src/nodes/Nodes.js +164 -0
- package/src/nodes/TSL.js +176 -0
- package/{examples/jsm → src}/nodes/accessors/AccessorsUtils.js +8 -8
- package/src/nodes/accessors/BatchNode.js +124 -0
- package/{examples/jsm/nodes/accessors/BitangentNode.js → src/nodes/accessors/Bitangent.js} +9 -9
- package/{examples/jsm → src}/nodes/accessors/BufferAttributeNode.js +41 -6
- package/{examples/jsm → src}/nodes/accessors/BufferNode.js +4 -4
- package/src/nodes/accessors/Camera.js +19 -0
- package/{examples/jsm → src}/nodes/accessors/ClippingNode.js +16 -14
- package/src/nodes/accessors/CubeTextureNode.js +76 -0
- package/src/nodes/accessors/InstanceNode.js +144 -0
- package/src/nodes/accessors/InstancedPointsMaterialNode.js +21 -0
- package/{examples/jsm → src}/nodes/accessors/MaterialNode.js +66 -49
- package/src/nodes/accessors/MaterialProperties.js +3 -0
- package/{examples/jsm → src}/nodes/accessors/MaterialReferenceNode.js +6 -4
- package/src/nodes/accessors/ModelNode.js +37 -0
- package/{examples/jsm → src}/nodes/accessors/ModelViewProjectionNode.js +6 -7
- package/{examples/jsm → src}/nodes/accessors/MorphNode.js +35 -31
- package/src/nodes/accessors/Normal.js +62 -0
- package/{examples/jsm → src}/nodes/accessors/Object3DNode.js +11 -11
- package/src/nodes/accessors/PointUVNode.js +26 -0
- package/src/nodes/accessors/Position.js +10 -0
- package/src/nodes/accessors/ReferenceBaseNode.js +143 -0
- package/{examples/jsm → src}/nodes/accessors/ReferenceNode.js +14 -8
- package/src/nodes/accessors/ReflectVector.js +10 -0
- package/{examples/jsm → src}/nodes/accessors/RendererReferenceNode.js +6 -6
- package/{examples/jsm → src}/nodes/accessors/SceneNode.js +5 -6
- package/src/nodes/accessors/SkinningNode.js +187 -0
- package/{examples/jsm → src}/nodes/accessors/StorageBufferNode.js +54 -6
- package/{examples/jsm → src}/nodes/accessors/StorageTextureNode.js +16 -7
- package/src/nodes/accessors/Tangent.js +22 -0
- package/{examples/jsm → src}/nodes/accessors/Texture3DNode.js +11 -11
- package/{examples/jsm/nodes/accessors/TextureBicubicNode.js → src/nodes/accessors/TextureBicubic.js} +3 -32
- package/{examples/jsm → src}/nodes/accessors/TextureNode.js +69 -37
- package/{examples/jsm → src}/nodes/accessors/TextureSizeNode.js +4 -6
- package/{examples/jsm/nodes/accessors/UniformsNode.js → src/nodes/accessors/UniformArrayNode.js} +24 -9
- package/{examples/jsm → src}/nodes/accessors/UserDataNode.js +4 -4
- package/src/nodes/accessors/VelocityNode.js +83 -0
- package/{examples/jsm → src}/nodes/accessors/VertexColorNode.js +6 -5
- package/{examples/jsm → src}/nodes/code/CodeNode.js +5 -5
- package/{examples/jsm → src}/nodes/code/ExpressionNode.js +4 -4
- package/{examples/jsm → src}/nodes/code/FunctionCallNode.js +5 -5
- package/{examples/jsm → src}/nodes/code/FunctionNode.js +5 -23
- package/{examples/jsm → src}/nodes/code/ScriptableNode.js +18 -6
- package/{examples/jsm → src}/nodes/code/ScriptableValueNode.js +6 -7
- package/{examples/jsm → src}/nodes/core/AssignNode.js +5 -5
- package/{examples/jsm → src}/nodes/core/AttributeNode.js +22 -21
- package/{examples/jsm → src}/nodes/core/BypassNode.js +5 -5
- package/src/nodes/core/CacheNode.js +46 -0
- package/{examples/jsm → src}/nodes/core/ConstNode.js +2 -2
- package/{examples/jsm → src}/nodes/core/ContextNode.js +17 -11
- package/{examples/jsm → src}/nodes/core/IndexNode.js +17 -6
- package/{examples/jsm → src}/nodes/core/InputNode.js +2 -2
- package/{examples/jsm → src}/nodes/core/LightingModel.js +2 -2
- package/src/nodes/core/MRTNode.js +82 -0
- package/{examples/jsm → src}/nodes/core/Node.js +57 -31
- package/{examples/jsm → src}/nodes/core/NodeBuilder.js +216 -65
- package/src/nodes/core/NodeCache.js +36 -0
- package/{examples/jsm → src}/nodes/core/NodeFrame.js +42 -0
- package/{examples/jsm → src}/nodes/core/NodeFunction.js +2 -2
- package/{examples/jsm → src}/nodes/core/NodeUniform.js +1 -2
- package/{examples/jsm → src}/nodes/core/NodeUtils.js +7 -1
- package/{examples/jsm → src}/nodes/core/OutputStructNode.js +4 -4
- package/{examples/jsm → src}/nodes/core/ParameterNode.js +4 -4
- package/src/nodes/core/PropertyNode.js +84 -0
- package/{examples/jsm → src}/nodes/core/StackNode.js +26 -10
- package/{examples/jsm → src}/nodes/core/StructTypeNode.js +2 -2
- package/{examples/jsm → src}/nodes/core/TempNode.js +4 -4
- package/src/nodes/core/UniformGroupNode.js +55 -0
- package/{examples/jsm → src}/nodes/core/UniformNode.js +14 -5
- package/{examples/jsm → src}/nodes/core/VarNode.js +8 -12
- package/{examples/jsm → src}/nodes/core/VaryingNode.js +13 -5
- package/{examples/jsm → src}/nodes/display/AfterImageNode.js +27 -35
- package/src/nodes/display/AnaglyphPassNode.js +61 -0
- package/{examples/jsm → src}/nodes/display/AnamorphicNode.js +27 -30
- package/src/nodes/display/BleachBypass.js +26 -0
- package/src/nodes/display/BlendMode.js +54 -0
- package/src/nodes/display/BloomNode.js +335 -0
- package/{examples/jsm → src}/nodes/display/BumpMapNode.js +7 -12
- package/src/nodes/display/ColorAdjustment.js +46 -0
- package/src/nodes/display/ColorSpaceFunctions.js +38 -0
- package/src/nodes/display/ColorSpaceNode.js +85 -0
- package/src/nodes/display/DenoiseNode.js +201 -0
- package/src/nodes/display/DepthOfFieldNode.js +121 -0
- package/src/nodes/display/DotScreenNode.js +63 -0
- package/src/nodes/display/FXAANode.js +329 -0
- package/src/nodes/display/FilmNode.js +53 -0
- package/src/nodes/display/FrontFacingNode.js +41 -0
- package/src/nodes/display/GTAONode.js +328 -0
- package/{examples/jsm → src}/nodes/display/GaussianBlurNode.js +44 -24
- package/src/nodes/display/Lut3DNode.js +54 -0
- package/src/nodes/display/MotionBlur.js +25 -0
- package/{examples/jsm → src}/nodes/display/NormalMapNode.js +9 -11
- package/src/nodes/display/ParallaxBarrierPassNode.js +55 -0
- package/src/nodes/display/PassNode.js +367 -0
- package/src/nodes/display/PixelationPassNode.js +206 -0
- package/{examples/jsm → src}/nodes/display/PosterizeNode.js +4 -6
- package/src/nodes/display/RGBShiftNode.js +50 -0
- package/src/nodes/display/RenderOutputNode.js +56 -0
- package/src/nodes/display/SSAAPassNode.js +284 -0
- package/src/nodes/display/Sepia.js +17 -0
- package/src/nodes/display/SobelOperatorNode.js +123 -0
- package/src/nodes/display/StereoCompositePassNode.js +107 -0
- package/src/nodes/display/StereoPassNode.js +80 -0
- package/src/nodes/display/ToneMappingFunctions.js +190 -0
- package/src/nodes/display/ToneMappingNode.js +66 -0
- package/src/nodes/display/TransitionNode.js +77 -0
- package/src/nodes/display/ViewportDepthNode.js +121 -0
- package/src/nodes/display/ViewportDepthTextureNode.js +30 -0
- package/{examples/jsm → src}/nodes/display/ViewportNode.js +28 -26
- package/src/nodes/display/ViewportSharedTextureNode.js +36 -0
- package/{examples/jsm → src}/nodes/display/ViewportTextureNode.js +12 -12
- package/{examples/jsm → src}/nodes/fog/FogExp2Node.js +4 -6
- package/{examples/jsm → src}/nodes/fog/FogNode.js +5 -7
- package/{examples/jsm → src}/nodes/fog/FogRangeNode.js +4 -6
- package/{examples/jsm → src}/nodes/functions/BSDF/BRDF_GGX.js +4 -4
- package/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Lambert.js +2 -2
- package/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Sheen.js +6 -6
- package/{examples/jsm → src}/nodes/functions/BSDF/DFGApprox.js +2 -2
- package/{examples/jsm → src}/nodes/functions/BSDF/D_GGX.js +2 -2
- package/{examples/jsm → src}/nodes/functions/BSDF/D_GGX_Anisotropic.js +3 -3
- package/{examples/jsm → src}/nodes/functions/BSDF/EnvironmentBRDF.js +2 -2
- package/{examples/jsm → src}/nodes/functions/BSDF/F_Schlick.js +2 -2
- package/src/nodes/functions/BSDF/LTC.js +131 -0
- package/{examples/jsm → src}/nodes/functions/BSDF/Schlick_to_F0.js +2 -2
- package/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated.js +2 -2
- package/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.js +2 -2
- package/src/nodes/functions/BasicLightingModel.js +78 -0
- package/{examples/jsm → src}/nodes/functions/PhongLightingModel.js +10 -8
- package/{examples/jsm → src}/nodes/functions/PhysicalLightingModel.js +73 -31
- package/{examples/jsm → src}/nodes/functions/ShadowMaskModel.js +1 -1
- package/{examples/jsm → src}/nodes/functions/ToonLightingModel.js +6 -4
- package/src/nodes/functions/material/getGeometryRoughness.js +13 -0
- package/{examples/jsm → src}/nodes/functions/material/getRoughness.js +2 -2
- package/{examples/jsm → src}/nodes/geometry/RangeNode.js +23 -10
- package/{examples/jsm → src}/nodes/gpgpu/ComputeNode.js +5 -5
- package/src/nodes/lighting/AONode.js +24 -0
- package/{examples/jsm → src}/nodes/lighting/AmbientLightNode.js +2 -7
- package/src/nodes/lighting/AnalyticLightNode.js +354 -0
- package/src/nodes/lighting/BasicEnvironmentNode.js +27 -0
- package/src/nodes/lighting/BasicLightMapNode.js +29 -0
- package/{examples/jsm → src}/nodes/lighting/DirectionalLightNode.js +3 -9
- package/{examples/jsm → src}/nodes/lighting/EnvironmentNode.js +23 -21
- package/{examples/jsm → src}/nodes/lighting/HemisphereLightNode.js +4 -7
- package/{examples/jsm → src}/nodes/lighting/IESSpotLightNode.js +3 -8
- package/{examples/jsm → src}/nodes/lighting/IrradianceNode.js +2 -2
- package/{examples/jsm → src}/nodes/lighting/LightNode.js +5 -5
- package/src/nodes/lighting/LightProbeNode.js +76 -0
- package/{examples/jsm → src}/nodes/lighting/LightUtils.js +3 -3
- package/src/nodes/lighting/LightingContextNode.js +64 -0
- package/{examples/jsm → src}/nodes/lighting/LightingNode.js +4 -2
- package/src/nodes/lighting/LightsNode.js +231 -0
- package/{examples/jsm → src}/nodes/lighting/PointLightNode.js +4 -10
- package/src/nodes/lighting/RectAreaLightNode.js +93 -0
- package/{examples/jsm → src}/nodes/lighting/SpotLightNode.js +4 -10
- package/{examples/jsm → src}/nodes/materialx/MaterialXNodes.js +2 -2
- package/{examples/jsm → src}/nodes/materialx/lib/mx_hsv.js +43 -46
- package/{examples/jsm → src}/nodes/materialx/lib/mx_noise.js +500 -603
- package/{examples/jsm → src}/nodes/materialx/lib/mx_transform_color.js +3 -9
- package/{examples/jsm/nodes/math/CondNode.js → src/nodes/math/ConditionalNode.js} +31 -13
- package/src/nodes/math/Hash.js +13 -0
- package/src/nodes/math/MathNode.js +404 -0
- package/{examples/jsm → src}/nodes/math/MathUtils.js +0 -7
- package/{examples/jsm → src}/nodes/math/OperatorNode.js +100 -58
- package/{examples/jsm → src}/nodes/math/TriNoise3D.js +19 -29
- package/{examples/jsm → src}/nodes/parsers/GLSLNodeFunction.js +7 -7
- package/{examples/jsm → src}/nodes/pmrem/PMREMNode.js +60 -16
- package/{examples/jsm → src}/nodes/pmrem/PMREMUtils.js +46 -46
- package/src/nodes/procedural/Checker.js +14 -0
- package/src/nodes/tsl/TSLBase.js +30 -0
- package/{examples/jsm/nodes/shadernode/ShaderNode.js → src/nodes/tsl/TSLCore.js} +106 -96
- package/{examples/jsm → src}/nodes/utils/ArrayElementNode.js +2 -2
- package/{examples/jsm → src}/nodes/utils/ConvertNode.js +2 -2
- package/src/nodes/utils/CubeMapNode.js +157 -0
- package/src/nodes/utils/Discard.js +8 -0
- package/{examples/jsm → src}/nodes/utils/EquirectUVNode.js +5 -5
- package/src/nodes/utils/FlipNode.js +65 -0
- package/{examples/jsm → src}/nodes/utils/FunctionOverloadingNode.js +7 -5
- package/{examples/jsm → src}/nodes/utils/JoinNode.js +2 -2
- package/{examples/jsm → src}/nodes/utils/LoopNode.js +19 -12
- package/{examples/jsm → src}/nodes/utils/MatcapUVNode.js +6 -6
- package/{examples/jsm → src}/nodes/utils/MaxMipLevelNode.js +12 -6
- package/{examples/jsm → src}/nodes/utils/OscNode.js +7 -7
- package/src/nodes/utils/Packing.js +4 -0
- package/src/nodes/utils/RTTNode.js +130 -0
- package/{examples/jsm → src}/nodes/utils/ReflectorNode.js +17 -4
- package/{examples/jsm → src}/nodes/utils/RemapNode.js +7 -7
- package/{examples/jsm → src}/nodes/utils/RotateNode.js +4 -12
- package/{examples/jsm → src}/nodes/utils/SetNode.js +2 -2
- package/{examples/jsm → src}/nodes/utils/SplitNode.js +2 -2
- package/{examples/jsm → src}/nodes/utils/SpriteSheetUVNode.js +5 -5
- package/src/nodes/utils/SpriteUtils.js +47 -0
- package/{examples/jsm → src}/nodes/utils/StorageArrayElementNode.js +4 -6
- package/{examples/jsm → src}/nodes/utils/TimerNode.js +5 -5
- package/{examples/jsm → src}/nodes/utils/TriplanarTexturesNode.js +7 -9
- package/src/nodes/utils/UVUtils.js +19 -0
- package/src/nodes/utils/ViewportUtils.js +14 -0
- package/src/objects/BatchedMesh.js +169 -190
- package/src/objects/InstancedMesh.js +1 -1
- package/src/renderers/WebGLRenderer.js +60 -23
- package/{examples/jsm → src}/renderers/common/Attributes.js +2 -1
- package/{examples/jsm → src}/renderers/common/Backend.js +30 -27
- package/{examples/jsm → src}/renderers/common/Background.js +12 -4
- package/src/renderers/common/BindGroup.js +18 -0
- package/{examples/jsm → src}/renderers/common/Bindings.js +45 -32
- package/{examples/jsm → src}/renderers/common/ClippingContext.js +18 -7
- package/{examples/jsm → src}/renderers/common/Color4.js +1 -1
- package/{examples/jsm → src}/renderers/common/CubeRenderTarget.js +16 -4
- package/{examples/jsm → src}/renderers/common/Geometries.js +37 -5
- package/{examples/jsm → src}/renderers/common/Info.js +34 -6
- package/src/renderers/common/PostProcessing.js +90 -0
- package/{examples/jsm/objects → src/renderers/common}/QuadMesh.js +8 -3
- package/{examples/jsm → src}/renderers/common/RenderContext.js +25 -1
- package/{examples/jsm → src}/renderers/common/RenderContexts.js +1 -1
- package/{examples/jsm → src}/renderers/common/RenderList.js +1 -1
- package/{examples/jsm → src}/renderers/common/RenderObject.js +45 -12
- package/{examples/jsm → src}/renderers/common/Renderer.js +151 -73
- package/{examples/jsm → src}/renderers/common/SampledTexture.js +14 -5
- package/src/renderers/common/StandardRenderer.js +18 -0
- package/{examples/jsm → src}/renderers/common/StorageBufferAttribute.js +1 -1
- package/{examples/jsm → src}/renderers/common/StorageInstancedBufferAttribute.js +1 -1
- package/{examples/jsm → src}/renderers/common/StorageTexture.js +2 -1
- package/{examples/jsm → src}/renderers/common/Textures.js +14 -14
- package/{examples/jsm → src}/renderers/common/Uniform.js +9 -4
- package/{examples/jsm → src}/renderers/common/UniformsGroup.js +69 -31
- package/{examples/jsm → src}/renderers/common/extras/PMREMGenerator.js +25 -25
- package/src/renderers/common/nodes/NodeBuilderState.js +58 -0
- package/src/renderers/common/nodes/NodeLibrary.js +118 -0
- package/{examples/jsm → src}/renderers/common/nodes/NodeSampledTexture.js +8 -7
- package/{examples/jsm → src}/renderers/common/nodes/NodeSampler.js +2 -1
- package/{examples/jsm → src}/renderers/common/nodes/NodeStorageBuffer.js +5 -1
- package/{examples/jsm → src}/renderers/common/nodes/NodeUniform.js +3 -3
- package/{examples/jsm → src}/renderers/common/nodes/NodeUniformBuffer.js +2 -1
- package/{examples/jsm → src}/renderers/common/nodes/NodeUniformsGroup.js +2 -8
- package/{examples/jsm → src}/renderers/common/nodes/Nodes.js +69 -21
- package/src/renderers/common/nodes/StandardNodeLibrary.js +105 -0
- package/src/renderers/shaders/ShaderChunk/batching_pars_vertex.glsl.js +16 -1
- package/src/renderers/shaders/ShaderChunk/batching_vertex.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/color_vertex.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/colorspace_pars_fragment.glsl.js +0 -9
- package/src/renderers/shaders/ShaderChunk/common.glsl.js +0 -10
- package/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js +3 -3
- package/src/renderers/shaders/ShaderChunk/packing.glsl.js +45 -13
- package/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js +7 -4
- package/src/renderers/shaders/ShaderChunk/shadowmap_pars_vertex.glsl.js +3 -0
- package/src/renderers/shaders/ShaderChunk/shadowmask_pars_fragment.glsl.js +3 -3
- package/src/renderers/shaders/ShaderChunk/tonemapping_pars_fragment.glsl.js +2 -2
- package/src/renderers/shaders/ShaderLib/depth.glsl.js +8 -0
- package/src/renderers/shaders/UniformsLib.js +3 -0
- package/src/renderers/webgl/WebGLAttributes.js +2 -2
- package/src/renderers/webgl/WebGLBufferRenderer.js +6 -19
- package/src/renderers/webgl/WebGLIndexedBufferRenderer.js +6 -18
- package/src/renderers/webgl/WebGLLights.js +6 -0
- package/src/renderers/webgl/WebGLProgram.js +27 -1
- package/src/renderers/webgl/WebGLPrograms.js +1 -1
- package/src/renderers/webgl/WebGLProperties.js +7 -0
- package/src/renderers/webgl/WebGLTextures.js +75 -57
- package/src/renderers/webgl/WebGLUniforms.js +12 -2
- package/src/renderers/webgl/WebGLUniformsGroups.js +7 -7
- package/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/WebGLBackend.js +242 -120
- package/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/nodes/GLSLNodeBuilder.js +227 -44
- package/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/utils/WebGLAttributeUtils.js +2 -2
- package/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/utils/WebGLConstants.js +1 -0
- package/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/utils/WebGLExtensions.js +2 -0
- package/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/utils/WebGLState.js +22 -1
- package/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/utils/WebGLTextureUtils.js +62 -23
- package/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/utils/WebGLUtils.js +1 -1
- package/{examples/jsm → src}/renderers/webgpu/WebGPUBackend.js +242 -136
- package/{examples/jsm → src}/renderers/webgpu/WebGPURenderer.js +9 -9
- package/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeBuilder.js +281 -107
- package/src/renderers/webgpu/nodes/WGSLNodeFunction.js +159 -0
- package/{examples/jsm → src}/renderers/webgpu/utils/WebGPUAttributeUtils.js +2 -1
- package/{examples/jsm → src}/renderers/webgpu/utils/WebGPUBindingUtils.js +64 -33
- package/{examples/jsm → src}/renderers/webgpu/utils/WebGPUConstants.js +4 -1
- package/{examples/jsm → src}/renderers/webgpu/utils/WebGPUPipelineUtils.js +34 -36
- package/{examples/jsm → src}/renderers/webgpu/utils/WebGPUTexturePassUtils.js +62 -5
- package/{examples/jsm → src}/renderers/webgpu/utils/WebGPUTextureUtils.js +76 -44
- package/{examples/jsm → src}/renderers/webgpu/utils/WebGPUUtils.js +42 -4
- package/src/renderers/webxr/WebXRDepthSensing.js +6 -0
- package/src/renderers/webxr/WebXRManager.js +37 -24
- package/src/textures/CompressedArrayTexture.js +1 -1
- package/examples/jsm/loaders/LogLuvLoader.js +0 -606
- package/examples/jsm/nodes/Nodes.js +0 -202
- package/examples/jsm/nodes/accessors/BatchNode.js +0 -78
- package/examples/jsm/nodes/accessors/CameraNode.js +0 -12
- package/examples/jsm/nodes/accessors/CubeTextureNode.js +0 -61
- package/examples/jsm/nodes/accessors/InstanceNode.js +0 -94
- package/examples/jsm/nodes/accessors/InstancedPointsMaterialNode.js +0 -21
- package/examples/jsm/nodes/accessors/ModelNode.js +0 -36
- package/examples/jsm/nodes/accessors/NormalNode.js +0 -14
- package/examples/jsm/nodes/accessors/PointUVNode.js +0 -26
- package/examples/jsm/nodes/accessors/PositionNode.js +0 -10
- package/examples/jsm/nodes/accessors/ReflectVectorNode.js +0 -6
- package/examples/jsm/nodes/accessors/SkinningNode.js +0 -124
- package/examples/jsm/nodes/accessors/TangentNode.js +0 -23
- package/examples/jsm/nodes/core/CacheNode.js +0 -49
- package/examples/jsm/nodes/core/NodeCache.js +0 -26
- package/examples/jsm/nodes/core/NodeKeywords.js +0 -80
- package/examples/jsm/nodes/core/PropertyNode.js +0 -83
- package/examples/jsm/nodes/core/UniformGroupNode.js +0 -36
- package/examples/jsm/nodes/display/BlendModeNode.js +0 -128
- package/examples/jsm/nodes/display/ColorAdjustmentNode.js +0 -99
- package/examples/jsm/nodes/display/ColorSpaceNode.js +0 -108
- package/examples/jsm/nodes/display/FrontFacingNode.js +0 -40
- package/examples/jsm/nodes/display/PassNode.js +0 -201
- package/examples/jsm/nodes/display/ToneMappingNode.js +0 -188
- package/examples/jsm/nodes/display/ViewportDepthNode.js +0 -97
- package/examples/jsm/nodes/display/ViewportDepthTextureNode.js +0 -31
- package/examples/jsm/nodes/display/ViewportSharedTextureNode.js +0 -37
- package/examples/jsm/nodes/functions/material/getGeometryRoughness.js +0 -13
- package/examples/jsm/nodes/lighting/AONode.js +0 -27
- package/examples/jsm/nodes/lighting/AnalyticLightNode.js +0 -256
- package/examples/jsm/nodes/lighting/LightingContextNode.js +0 -66
- package/examples/jsm/nodes/lighting/LightsNode.js +0 -215
- package/examples/jsm/nodes/materials/LineBasicNodeMaterial.js +0 -28
- package/examples/jsm/nodes/materials/MeshBasicNodeMaterial.js +0 -28
- package/examples/jsm/nodes/materials/MeshLambertNodeMaterial.js +0 -34
- package/examples/jsm/nodes/materials/MeshMatcapNodeMaterial.js +0 -52
- package/examples/jsm/nodes/materials/MeshNormalNodeMaterial.js +0 -38
- package/examples/jsm/nodes/materials/MeshPhongNodeMaterial.js +0 -65
- package/examples/jsm/nodes/materials/MeshToonNodeMaterial.js +0 -34
- package/examples/jsm/nodes/materials/ShadowNodeMaterial.js +0 -34
- package/examples/jsm/nodes/math/HashNode.js +0 -34
- package/examples/jsm/nodes/math/MathNode.js +0 -391
- package/examples/jsm/nodes/procedural/CheckerNode.js +0 -42
- package/examples/jsm/nodes/utils/DiscardNode.js +0 -27
- package/examples/jsm/nodes/utils/PackingNode.js +0 -55
- package/examples/jsm/nodes/utils/RotateUVNode.js +0 -35
- package/examples/jsm/renderers/common/PostProcessing.js +0 -33
- package/examples/jsm/renderers/common/nodes/NodeBuilderState.js +0 -44
- package/examples/jsm/renderers/webgpu/nodes/WGSLNodeFunction.js +0 -104
- /package/{examples/jsm/nodes/accessors/UVNode.js → src/nodes/accessors/UV.js} +0 -0
- /package/{examples/jsm → src}/nodes/core/NodeAttribute.js +0 -0
- /package/{examples/jsm → src}/nodes/core/NodeCode.js +0 -0
- /package/{examples/jsm → src}/nodes/core/NodeFunctionInput.js +0 -0
- /package/{examples/jsm → src}/nodes/core/NodeParser.js +0 -0
- /package/{examples/jsm → src}/nodes/core/NodeVar.js +0 -0
- /package/{examples/jsm → src}/nodes/core/NodeVarying.js +0 -0
- /package/{examples/jsm → src}/nodes/core/UniformGroup.js +0 -0
- /package/{examples/jsm → src}/nodes/core/constants.js +0 -0
- /package/{examples/jsm → src}/nodes/materialx/DISCLAIMER.md +0 -0
- /package/{examples/jsm → src}/nodes/parsers/GLSLNodeParser.js +0 -0
- /package/{examples/jsm → src}/renderers/common/Animation.js +0 -0
- /package/{examples/jsm → src}/renderers/common/Binding.js +0 -0
- /package/{examples/jsm → src}/renderers/common/Buffer.js +0 -0
- /package/{examples/jsm → src}/renderers/common/BufferUtils.js +0 -0
- /package/{examples/jsm → src}/renderers/common/ChainMap.js +0 -0
- /package/{examples/jsm → src}/renderers/common/ComputePipeline.js +0 -0
- /package/{examples/jsm → src}/renderers/common/Constants.js +0 -0
- /package/{examples/jsm → src}/renderers/common/DataMap.js +0 -0
- /package/{examples/jsm → src}/renderers/common/Pipeline.js +0 -0
- /package/{examples/jsm → src}/renderers/common/Pipelines.js +0 -0
- /package/{examples/jsm → src}/renderers/common/ProgrammableStage.js +0 -0
- /package/{examples/jsm → src}/renderers/common/RenderBundle.js +0 -0
- /package/{examples/jsm → src}/renderers/common/RenderBundles.js +0 -0
- /package/{examples/jsm → src}/renderers/common/RenderLists.js +0 -0
- /package/{examples/jsm → src}/renderers/common/RenderObjects.js +0 -0
- /package/{examples/jsm → src}/renderers/common/RenderPipeline.js +0 -0
- /package/{examples/jsm → src}/renderers/common/Sampler.js +0 -0
- /package/{examples/jsm → src}/renderers/common/StorageBuffer.js +0 -0
- /package/{examples/jsm → src}/renderers/common/UniformBuffer.js +0 -0
- /package/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/WebGLBufferRenderer.js +0 -0
- /package/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/utils/WebGLCapabilities.js +0 -0
- /package/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeParser.js +0 -0
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
|
|
2
|
-
import { materialReference } from '../accessors/MaterialReferenceNode.js';
|
|
3
|
-
import { diffuseColor } from '../core/PropertyNode.js';
|
|
4
|
-
import { vec3 } from '../shadernode/ShaderNode.js';
|
|
5
|
-
import { MeshMatcapMaterial } from 'three';
|
|
6
|
-
import { mix } from '../math/MathNode.js';
|
|
7
|
-
import { matcapUV } from '../utils/MatcapUVNode.js';
|
|
8
|
-
|
|
9
|
-
const defaultValues = new MeshMatcapMaterial();
|
|
10
|
-
|
|
11
|
-
class MeshMatcapNodeMaterial extends NodeMaterial {
|
|
12
|
-
|
|
13
|
-
constructor( parameters ) {
|
|
14
|
-
|
|
15
|
-
super();
|
|
16
|
-
|
|
17
|
-
this.isMeshMatcapNodeMaterial = true;
|
|
18
|
-
|
|
19
|
-
this.lights = false;
|
|
20
|
-
|
|
21
|
-
this.setDefaultValues( defaultValues );
|
|
22
|
-
|
|
23
|
-
this.setValues( parameters );
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
setupVariants( builder ) {
|
|
28
|
-
|
|
29
|
-
const uv = matcapUV;
|
|
30
|
-
|
|
31
|
-
let matcapColor;
|
|
32
|
-
|
|
33
|
-
if ( builder.material.matcap ) {
|
|
34
|
-
|
|
35
|
-
matcapColor = materialReference( 'matcap', 'texture' ).context( { getUV: () => uv } );
|
|
36
|
-
|
|
37
|
-
} else {
|
|
38
|
-
|
|
39
|
-
matcapColor = vec3( mix( 0.2, 0.8, uv.y ) ); // default if matcap is missing
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
diffuseColor.rgb.mulAssign( matcapColor.rgb );
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
export default MeshMatcapNodeMaterial;
|
|
51
|
-
|
|
52
|
-
addNodeMaterial( 'MeshMatcapNodeMaterial', MeshMatcapNodeMaterial );
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
|
|
2
|
-
import { diffuseColor } from '../core/PropertyNode.js';
|
|
3
|
-
import { directionToColor } from '../utils/PackingNode.js';
|
|
4
|
-
import { materialOpacity } from '../accessors/MaterialNode.js';
|
|
5
|
-
import { transformedNormalView } from '../accessors/NormalNode.js';
|
|
6
|
-
import { float, vec4 } from '../shadernode/ShaderNode.js';
|
|
7
|
-
|
|
8
|
-
import { MeshNormalMaterial } from 'three';
|
|
9
|
-
|
|
10
|
-
const defaultValues = new MeshNormalMaterial();
|
|
11
|
-
|
|
12
|
-
class MeshNormalNodeMaterial extends NodeMaterial {
|
|
13
|
-
|
|
14
|
-
constructor( parameters ) {
|
|
15
|
-
|
|
16
|
-
super();
|
|
17
|
-
|
|
18
|
-
this.isMeshNormalNodeMaterial = true;
|
|
19
|
-
|
|
20
|
-
this.setDefaultValues( defaultValues );
|
|
21
|
-
|
|
22
|
-
this.setValues( parameters );
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
setupDiffuseColor() {
|
|
27
|
-
|
|
28
|
-
const opacityNode = this.opacityNode ? float( this.opacityNode ) : materialOpacity;
|
|
29
|
-
|
|
30
|
-
diffuseColor.assign( vec4( directionToColor( transformedNormalView ), opacityNode ) );
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export default MeshNormalNodeMaterial;
|
|
37
|
-
|
|
38
|
-
addNodeMaterial( 'MeshNormalNodeMaterial', MeshNormalNodeMaterial );
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
|
|
2
|
-
import { shininess, specularColor } from '../core/PropertyNode.js';
|
|
3
|
-
import { materialShininess, materialSpecular } from '../accessors/MaterialNode.js';
|
|
4
|
-
import { float } from '../shadernode/ShaderNode.js';
|
|
5
|
-
import PhongLightingModel from '../functions/PhongLightingModel.js';
|
|
6
|
-
|
|
7
|
-
import { MeshPhongMaterial } from 'three';
|
|
8
|
-
|
|
9
|
-
const defaultValues = new MeshPhongMaterial();
|
|
10
|
-
|
|
11
|
-
class MeshPhongNodeMaterial extends NodeMaterial {
|
|
12
|
-
|
|
13
|
-
constructor( parameters ) {
|
|
14
|
-
|
|
15
|
-
super();
|
|
16
|
-
|
|
17
|
-
this.isMeshPhongNodeMaterial = true;
|
|
18
|
-
|
|
19
|
-
this.lights = true;
|
|
20
|
-
|
|
21
|
-
this.shininessNode = null;
|
|
22
|
-
this.specularNode = null;
|
|
23
|
-
|
|
24
|
-
this.setDefaultValues( defaultValues );
|
|
25
|
-
|
|
26
|
-
this.setValues( parameters );
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
setupLightingModel( /*builder*/ ) {
|
|
31
|
-
|
|
32
|
-
return new PhongLightingModel();
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
setupVariants() {
|
|
37
|
-
|
|
38
|
-
// SHININESS
|
|
39
|
-
|
|
40
|
-
const shininessNode = ( this.shininessNode ? float( this.shininessNode ) : materialShininess ).max( 1e-4 ); // to prevent pow( 0.0, 0.0 )
|
|
41
|
-
|
|
42
|
-
shininess.assign( shininessNode );
|
|
43
|
-
|
|
44
|
-
// SPECULAR COLOR
|
|
45
|
-
|
|
46
|
-
const specularNode = this.specularNode || materialSpecular;
|
|
47
|
-
|
|
48
|
-
specularColor.assign( specularNode );
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
copy( source ) {
|
|
53
|
-
|
|
54
|
-
this.shininessNode = source.shininessNode;
|
|
55
|
-
this.specularNode = source.specularNode;
|
|
56
|
-
|
|
57
|
-
return super.copy( source );
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export default MeshPhongNodeMaterial;
|
|
64
|
-
|
|
65
|
-
addNodeMaterial( 'MeshPhongNodeMaterial', MeshPhongNodeMaterial );
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
|
|
2
|
-
import ToonLightingModel from '../functions/ToonLightingModel.js';
|
|
3
|
-
|
|
4
|
-
import { MeshToonMaterial } from 'three';
|
|
5
|
-
|
|
6
|
-
const defaultValues = new MeshToonMaterial();
|
|
7
|
-
|
|
8
|
-
class MeshToonNodeMaterial extends NodeMaterial {
|
|
9
|
-
|
|
10
|
-
constructor( parameters ) {
|
|
11
|
-
|
|
12
|
-
super();
|
|
13
|
-
|
|
14
|
-
this.isMeshToonNodeMaterial = true;
|
|
15
|
-
|
|
16
|
-
this.lights = true;
|
|
17
|
-
|
|
18
|
-
this.setDefaultValues( defaultValues );
|
|
19
|
-
|
|
20
|
-
this.setValues( parameters );
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
setupLightingModel( /*builder*/ ) {
|
|
25
|
-
|
|
26
|
-
return new ToonLightingModel();
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default MeshToonNodeMaterial;
|
|
33
|
-
|
|
34
|
-
addNodeMaterial( 'MeshToonNodeMaterial', MeshToonNodeMaterial );
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
|
|
2
|
-
import ShadowMaskModel from '../functions/ShadowMaskModel.js';
|
|
3
|
-
|
|
4
|
-
import { ShadowMaterial } from 'three';
|
|
5
|
-
|
|
6
|
-
const defaultValues = new ShadowMaterial();
|
|
7
|
-
|
|
8
|
-
class ShadowNodeMaterial extends NodeMaterial {
|
|
9
|
-
|
|
10
|
-
constructor( parameters ) {
|
|
11
|
-
|
|
12
|
-
super();
|
|
13
|
-
|
|
14
|
-
this.isShadowNodeMaterial = true;
|
|
15
|
-
|
|
16
|
-
this.lights = true;
|
|
17
|
-
|
|
18
|
-
this.setDefaultValues( defaultValues );
|
|
19
|
-
|
|
20
|
-
this.setValues( parameters );
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
setupLightingModel( /*builder*/ ) {
|
|
25
|
-
|
|
26
|
-
return new ShadowMaskModel();
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default ShadowNodeMaterial;
|
|
33
|
-
|
|
34
|
-
addNodeMaterial( 'ShadowNodeMaterial', ShadowNodeMaterial );
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import Node, { addNodeClass } from '../core/Node.js';
|
|
2
|
-
import { addNodeElement, nodeProxy } from '../shadernode/ShaderNode.js';
|
|
3
|
-
|
|
4
|
-
class HashNode extends Node {
|
|
5
|
-
|
|
6
|
-
constructor( seedNode ) {
|
|
7
|
-
|
|
8
|
-
super();
|
|
9
|
-
|
|
10
|
-
this.seedNode = seedNode;
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
setup( /*builder*/ ) {
|
|
15
|
-
|
|
16
|
-
// Taken from https://www.shadertoy.com/view/XlGcRh, originally from pcg-random.org
|
|
17
|
-
|
|
18
|
-
const state = this.seedNode.toUint().mul( 747796405 ).add( 2891336453 );
|
|
19
|
-
const word = state.shiftRight( state.shiftRight( 28 ).add( 4 ) ).bitXor( state ).mul( 277803737 );
|
|
20
|
-
const result = word.shiftRight( 22 ).bitXor( word );
|
|
21
|
-
|
|
22
|
-
return result.toFloat().mul( 1 / 2 ** 32 ); // Convert to range [0, 1)
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default HashNode;
|
|
29
|
-
|
|
30
|
-
export const hash = nodeProxy( HashNode );
|
|
31
|
-
|
|
32
|
-
addNodeElement( 'hash', hash );
|
|
33
|
-
|
|
34
|
-
addNodeClass( 'HashNode', HashNode );
|
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
import TempNode from '../core/TempNode.js';
|
|
2
|
-
import { sub, mul, div } from './OperatorNode.js';
|
|
3
|
-
import { addNodeClass } from '../core/Node.js';
|
|
4
|
-
import { addNodeElement, nodeObject, nodeProxy, float, vec3, vec4 } from '../shadernode/ShaderNode.js';
|
|
5
|
-
|
|
6
|
-
class MathNode extends TempNode {
|
|
7
|
-
|
|
8
|
-
constructor( method, aNode, bNode = null, cNode = null ) {
|
|
9
|
-
|
|
10
|
-
super();
|
|
11
|
-
|
|
12
|
-
this.method = method;
|
|
13
|
-
|
|
14
|
-
this.aNode = aNode;
|
|
15
|
-
this.bNode = bNode;
|
|
16
|
-
this.cNode = cNode;
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
getInputType( builder ) {
|
|
21
|
-
|
|
22
|
-
const aType = this.aNode.getNodeType( builder );
|
|
23
|
-
const bType = this.bNode ? this.bNode.getNodeType( builder ) : null;
|
|
24
|
-
const cType = this.cNode ? this.cNode.getNodeType( builder ) : null;
|
|
25
|
-
|
|
26
|
-
const aLen = builder.isMatrix( aType ) ? 0 : builder.getTypeLength( aType );
|
|
27
|
-
const bLen = builder.isMatrix( bType ) ? 0 : builder.getTypeLength( bType );
|
|
28
|
-
const cLen = builder.isMatrix( cType ) ? 0 : builder.getTypeLength( cType );
|
|
29
|
-
|
|
30
|
-
if ( aLen > bLen && aLen > cLen ) {
|
|
31
|
-
|
|
32
|
-
return aType;
|
|
33
|
-
|
|
34
|
-
} else if ( bLen > cLen ) {
|
|
35
|
-
|
|
36
|
-
return bType;
|
|
37
|
-
|
|
38
|
-
} else if ( cLen > aLen ) {
|
|
39
|
-
|
|
40
|
-
return cType;
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return aType;
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
getNodeType( builder ) {
|
|
49
|
-
|
|
50
|
-
const method = this.method;
|
|
51
|
-
|
|
52
|
-
if ( method === MathNode.LENGTH || method === MathNode.DISTANCE || method === MathNode.DOT ) {
|
|
53
|
-
|
|
54
|
-
return 'float';
|
|
55
|
-
|
|
56
|
-
} else if ( method === MathNode.CROSS ) {
|
|
57
|
-
|
|
58
|
-
return 'vec3';
|
|
59
|
-
|
|
60
|
-
} else if ( method === MathNode.ALL ) {
|
|
61
|
-
|
|
62
|
-
return 'bool';
|
|
63
|
-
|
|
64
|
-
} else if ( method === MathNode.EQUALS ) {
|
|
65
|
-
|
|
66
|
-
return builder.changeComponentType( this.aNode.getNodeType( builder ), 'bool' );
|
|
67
|
-
|
|
68
|
-
} else if ( method === MathNode.MOD ) {
|
|
69
|
-
|
|
70
|
-
return this.aNode.getNodeType( builder );
|
|
71
|
-
|
|
72
|
-
} else {
|
|
73
|
-
|
|
74
|
-
return this.getInputType( builder );
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
generate( builder, output ) {
|
|
81
|
-
|
|
82
|
-
const method = this.method;
|
|
83
|
-
|
|
84
|
-
const type = this.getNodeType( builder );
|
|
85
|
-
const inputType = this.getInputType( builder );
|
|
86
|
-
|
|
87
|
-
const a = this.aNode;
|
|
88
|
-
const b = this.bNode;
|
|
89
|
-
const c = this.cNode;
|
|
90
|
-
|
|
91
|
-
const isWebGL = builder.renderer.isWebGLRenderer === true;
|
|
92
|
-
|
|
93
|
-
if ( method === MathNode.TRANSFORM_DIRECTION ) {
|
|
94
|
-
|
|
95
|
-
// dir can be either a direction vector or a normal vector
|
|
96
|
-
// upper-left 3x3 of matrix is assumed to be orthogonal
|
|
97
|
-
|
|
98
|
-
let tA = a;
|
|
99
|
-
let tB = b;
|
|
100
|
-
|
|
101
|
-
if ( builder.isMatrix( tA.getNodeType( builder ) ) ) {
|
|
102
|
-
|
|
103
|
-
tB = vec4( vec3( tB ), 0.0 );
|
|
104
|
-
|
|
105
|
-
} else {
|
|
106
|
-
|
|
107
|
-
tA = vec4( vec3( tA ), 0.0 );
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
const mulNode = mul( tA, tB ).xyz;
|
|
112
|
-
|
|
113
|
-
return normalize( mulNode ).build( builder, output );
|
|
114
|
-
|
|
115
|
-
} else if ( method === MathNode.NEGATE ) {
|
|
116
|
-
|
|
117
|
-
return builder.format( '( - ' + a.build( builder, inputType ) + ' )', type, output );
|
|
118
|
-
|
|
119
|
-
} else if ( method === MathNode.ONE_MINUS ) {
|
|
120
|
-
|
|
121
|
-
return sub( 1.0, a ).build( builder, output );
|
|
122
|
-
|
|
123
|
-
} else if ( method === MathNode.RECIPROCAL ) {
|
|
124
|
-
|
|
125
|
-
return div( 1.0, a ).build( builder, output );
|
|
126
|
-
|
|
127
|
-
} else if ( method === MathNode.DIFFERENCE ) {
|
|
128
|
-
|
|
129
|
-
return abs( sub( a, b ) ).build( builder, output );
|
|
130
|
-
|
|
131
|
-
} else {
|
|
132
|
-
|
|
133
|
-
const params = [];
|
|
134
|
-
|
|
135
|
-
if ( method === MathNode.CROSS || method === MathNode.MOD ) {
|
|
136
|
-
|
|
137
|
-
params.push(
|
|
138
|
-
a.build( builder, type ),
|
|
139
|
-
b.build( builder, type )
|
|
140
|
-
);
|
|
141
|
-
|
|
142
|
-
} else if ( method === MathNode.STEP ) {
|
|
143
|
-
|
|
144
|
-
params.push(
|
|
145
|
-
a.build( builder, builder.getTypeLength( a.getNodeType( builder ) ) === 1 ? 'float' : inputType ),
|
|
146
|
-
b.build( builder, inputType )
|
|
147
|
-
);
|
|
148
|
-
|
|
149
|
-
} else if ( ( isWebGL && ( method === MathNode.MIN || method === MathNode.MAX ) ) || method === MathNode.MOD ) {
|
|
150
|
-
|
|
151
|
-
params.push(
|
|
152
|
-
a.build( builder, inputType ),
|
|
153
|
-
b.build( builder, builder.getTypeLength( b.getNodeType( builder ) ) === 1 ? 'float' : inputType )
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
} else if ( method === MathNode.REFRACT ) {
|
|
157
|
-
|
|
158
|
-
params.push(
|
|
159
|
-
a.build( builder, inputType ),
|
|
160
|
-
b.build( builder, inputType ),
|
|
161
|
-
c.build( builder, 'float' )
|
|
162
|
-
);
|
|
163
|
-
|
|
164
|
-
} else if ( method === MathNode.MIX ) {
|
|
165
|
-
|
|
166
|
-
params.push(
|
|
167
|
-
a.build( builder, inputType ),
|
|
168
|
-
b.build( builder, inputType ),
|
|
169
|
-
c.build( builder, builder.getTypeLength( c.getNodeType( builder ) ) === 1 ? 'float' : inputType )
|
|
170
|
-
);
|
|
171
|
-
|
|
172
|
-
} else {
|
|
173
|
-
|
|
174
|
-
params.push( a.build( builder, inputType ) );
|
|
175
|
-
if ( b !== null ) params.push( b.build( builder, inputType ) );
|
|
176
|
-
if ( c !== null ) params.push( c.build( builder, inputType ) );
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
return builder.format( `${ builder.getMethod( method, type ) }( ${params.join( ', ' )} )`, type, output );
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
serialize( data ) {
|
|
187
|
-
|
|
188
|
-
super.serialize( data );
|
|
189
|
-
|
|
190
|
-
data.method = this.method;
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
deserialize( data ) {
|
|
195
|
-
|
|
196
|
-
super.deserialize( data );
|
|
197
|
-
|
|
198
|
-
this.method = data.method;
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// 1 input
|
|
205
|
-
|
|
206
|
-
MathNode.ALL = 'all';
|
|
207
|
-
MathNode.ANY = 'any';
|
|
208
|
-
MathNode.EQUALS = 'equals';
|
|
209
|
-
|
|
210
|
-
MathNode.RADIANS = 'radians';
|
|
211
|
-
MathNode.DEGREES = 'degrees';
|
|
212
|
-
MathNode.EXP = 'exp';
|
|
213
|
-
MathNode.EXP2 = 'exp2';
|
|
214
|
-
MathNode.LOG = 'log';
|
|
215
|
-
MathNode.LOG2 = 'log2';
|
|
216
|
-
MathNode.SQRT = 'sqrt';
|
|
217
|
-
MathNode.INVERSE_SQRT = 'inversesqrt';
|
|
218
|
-
MathNode.FLOOR = 'floor';
|
|
219
|
-
MathNode.CEIL = 'ceil';
|
|
220
|
-
MathNode.NORMALIZE = 'normalize';
|
|
221
|
-
MathNode.FRACT = 'fract';
|
|
222
|
-
MathNode.SIN = 'sin';
|
|
223
|
-
MathNode.COS = 'cos';
|
|
224
|
-
MathNode.TAN = 'tan';
|
|
225
|
-
MathNode.ASIN = 'asin';
|
|
226
|
-
MathNode.ACOS = 'acos';
|
|
227
|
-
MathNode.ATAN = 'atan';
|
|
228
|
-
MathNode.ABS = 'abs';
|
|
229
|
-
MathNode.SIGN = 'sign';
|
|
230
|
-
MathNode.LENGTH = 'length';
|
|
231
|
-
MathNode.NEGATE = 'negate';
|
|
232
|
-
MathNode.ONE_MINUS = 'oneMinus';
|
|
233
|
-
MathNode.DFDX = 'dFdx';
|
|
234
|
-
MathNode.DFDY = 'dFdy';
|
|
235
|
-
MathNode.ROUND = 'round';
|
|
236
|
-
MathNode.RECIPROCAL = 'reciprocal';
|
|
237
|
-
MathNode.TRUNC = 'trunc';
|
|
238
|
-
MathNode.FWIDTH = 'fwidth';
|
|
239
|
-
MathNode.BITCAST = 'bitcast';
|
|
240
|
-
|
|
241
|
-
// 2 inputs
|
|
242
|
-
|
|
243
|
-
MathNode.ATAN2 = 'atan2';
|
|
244
|
-
MathNode.MIN = 'min';
|
|
245
|
-
MathNode.MAX = 'max';
|
|
246
|
-
MathNode.MOD = 'mod';
|
|
247
|
-
MathNode.STEP = 'step';
|
|
248
|
-
MathNode.REFLECT = 'reflect';
|
|
249
|
-
MathNode.DISTANCE = 'distance';
|
|
250
|
-
MathNode.DIFFERENCE = 'difference';
|
|
251
|
-
MathNode.DOT = 'dot';
|
|
252
|
-
MathNode.CROSS = 'cross';
|
|
253
|
-
MathNode.POW = 'pow';
|
|
254
|
-
MathNode.TRANSFORM_DIRECTION = 'transformDirection';
|
|
255
|
-
|
|
256
|
-
// 3 inputs
|
|
257
|
-
|
|
258
|
-
MathNode.MIX = 'mix';
|
|
259
|
-
MathNode.CLAMP = 'clamp';
|
|
260
|
-
MathNode.REFRACT = 'refract';
|
|
261
|
-
MathNode.SMOOTHSTEP = 'smoothstep';
|
|
262
|
-
MathNode.FACEFORWARD = 'faceforward';
|
|
263
|
-
|
|
264
|
-
export default MathNode;
|
|
265
|
-
|
|
266
|
-
export const EPSILON = float( 1e-6 );
|
|
267
|
-
export const INFINITY = float( 1e6 );
|
|
268
|
-
export const PI = float( Math.PI );
|
|
269
|
-
export const PI2 = float( Math.PI * 2 );
|
|
270
|
-
|
|
271
|
-
export const all = nodeProxy( MathNode, MathNode.ALL );
|
|
272
|
-
export const any = nodeProxy( MathNode, MathNode.ANY );
|
|
273
|
-
export const equals = nodeProxy( MathNode, MathNode.EQUALS );
|
|
274
|
-
|
|
275
|
-
export const radians = nodeProxy( MathNode, MathNode.RADIANS );
|
|
276
|
-
export const degrees = nodeProxy( MathNode, MathNode.DEGREES );
|
|
277
|
-
export const exp = nodeProxy( MathNode, MathNode.EXP );
|
|
278
|
-
export const exp2 = nodeProxy( MathNode, MathNode.EXP2 );
|
|
279
|
-
export const log = nodeProxy( MathNode, MathNode.LOG );
|
|
280
|
-
export const log2 = nodeProxy( MathNode, MathNode.LOG2 );
|
|
281
|
-
export const sqrt = nodeProxy( MathNode, MathNode.SQRT );
|
|
282
|
-
export const inverseSqrt = nodeProxy( MathNode, MathNode.INVERSE_SQRT );
|
|
283
|
-
export const floor = nodeProxy( MathNode, MathNode.FLOOR );
|
|
284
|
-
export const ceil = nodeProxy( MathNode, MathNode.CEIL );
|
|
285
|
-
export const normalize = nodeProxy( MathNode, MathNode.NORMALIZE );
|
|
286
|
-
export const fract = nodeProxy( MathNode, MathNode.FRACT );
|
|
287
|
-
export const sin = nodeProxy( MathNode, MathNode.SIN );
|
|
288
|
-
export const cos = nodeProxy( MathNode, MathNode.COS );
|
|
289
|
-
export const tan = nodeProxy( MathNode, MathNode.TAN );
|
|
290
|
-
export const asin = nodeProxy( MathNode, MathNode.ASIN );
|
|
291
|
-
export const acos = nodeProxy( MathNode, MathNode.ACOS );
|
|
292
|
-
export const atan = nodeProxy( MathNode, MathNode.ATAN );
|
|
293
|
-
export const abs = nodeProxy( MathNode, MathNode.ABS );
|
|
294
|
-
export const sign = nodeProxy( MathNode, MathNode.SIGN );
|
|
295
|
-
export const length = nodeProxy( MathNode, MathNode.LENGTH );
|
|
296
|
-
export const negate = nodeProxy( MathNode, MathNode.NEGATE );
|
|
297
|
-
export const oneMinus = nodeProxy( MathNode, MathNode.ONE_MINUS );
|
|
298
|
-
export const dFdx = nodeProxy( MathNode, MathNode.DFDX );
|
|
299
|
-
export const dFdy = nodeProxy( MathNode, MathNode.DFDY );
|
|
300
|
-
export const round = nodeProxy( MathNode, MathNode.ROUND );
|
|
301
|
-
export const reciprocal = nodeProxy( MathNode, MathNode.RECIPROCAL );
|
|
302
|
-
export const trunc = nodeProxy( MathNode, MathNode.TRUNC );
|
|
303
|
-
export const fwidth = nodeProxy( MathNode, MathNode.FWIDTH );
|
|
304
|
-
export const bitcast = nodeProxy( MathNode, MathNode.BITCAST );
|
|
305
|
-
|
|
306
|
-
export const atan2 = nodeProxy( MathNode, MathNode.ATAN2 );
|
|
307
|
-
export const min = nodeProxy( MathNode, MathNode.MIN );
|
|
308
|
-
export const max = nodeProxy( MathNode, MathNode.MAX );
|
|
309
|
-
export const mod = nodeProxy( MathNode, MathNode.MOD );
|
|
310
|
-
export const step = nodeProxy( MathNode, MathNode.STEP );
|
|
311
|
-
export const reflect = nodeProxy( MathNode, MathNode.REFLECT );
|
|
312
|
-
export const distance = nodeProxy( MathNode, MathNode.DISTANCE );
|
|
313
|
-
export const difference = nodeProxy( MathNode, MathNode.DIFFERENCE );
|
|
314
|
-
export const dot = nodeProxy( MathNode, MathNode.DOT );
|
|
315
|
-
export const cross = nodeProxy( MathNode, MathNode.CROSS );
|
|
316
|
-
export const pow = nodeProxy( MathNode, MathNode.POW );
|
|
317
|
-
export const pow2 = nodeProxy( MathNode, MathNode.POW, 2 );
|
|
318
|
-
export const pow3 = nodeProxy( MathNode, MathNode.POW, 3 );
|
|
319
|
-
export const pow4 = nodeProxy( MathNode, MathNode.POW, 4 );
|
|
320
|
-
export const transformDirection = nodeProxy( MathNode, MathNode.TRANSFORM_DIRECTION );
|
|
321
|
-
|
|
322
|
-
export const cbrt = ( a ) => mul( sign( a ), pow( abs( a ), 1.0 / 3.0 ) );
|
|
323
|
-
export const lengthSq = ( a ) => dot( a, a );
|
|
324
|
-
export const mix = nodeProxy( MathNode, MathNode.MIX );
|
|
325
|
-
export const clamp = ( value, low = 0, high = 1 ) => nodeObject( new MathNode( MathNode.CLAMP, nodeObject( value ), nodeObject( low ), nodeObject( high ) ) );
|
|
326
|
-
export const saturate = ( value ) => clamp( value );
|
|
327
|
-
export const refract = nodeProxy( MathNode, MathNode.REFRACT );
|
|
328
|
-
export const smoothstep = nodeProxy( MathNode, MathNode.SMOOTHSTEP );
|
|
329
|
-
export const faceForward = nodeProxy( MathNode, MathNode.FACEFORWARD );
|
|
330
|
-
|
|
331
|
-
export const mixElement = ( t, e1, e2 ) => mix( e1, e2, t );
|
|
332
|
-
export const smoothstepElement = ( x, low, high ) => smoothstep( low, high, x );
|
|
333
|
-
|
|
334
|
-
addNodeElement( 'all', all );
|
|
335
|
-
addNodeElement( 'any', any );
|
|
336
|
-
addNodeElement( 'equals', equals );
|
|
337
|
-
|
|
338
|
-
addNodeElement( 'radians', radians );
|
|
339
|
-
addNodeElement( 'degrees', degrees );
|
|
340
|
-
addNodeElement( 'exp', exp );
|
|
341
|
-
addNodeElement( 'exp2', exp2 );
|
|
342
|
-
addNodeElement( 'log', log );
|
|
343
|
-
addNodeElement( 'log2', log2 );
|
|
344
|
-
addNodeElement( 'sqrt', sqrt );
|
|
345
|
-
addNodeElement( 'inverseSqrt', inverseSqrt );
|
|
346
|
-
addNodeElement( 'floor', floor );
|
|
347
|
-
addNodeElement( 'ceil', ceil );
|
|
348
|
-
addNodeElement( 'normalize', normalize );
|
|
349
|
-
addNodeElement( 'fract', fract );
|
|
350
|
-
addNodeElement( 'sin', sin );
|
|
351
|
-
addNodeElement( 'cos', cos );
|
|
352
|
-
addNodeElement( 'tan', tan );
|
|
353
|
-
addNodeElement( 'asin', asin );
|
|
354
|
-
addNodeElement( 'acos', acos );
|
|
355
|
-
addNodeElement( 'atan', atan );
|
|
356
|
-
addNodeElement( 'abs', abs );
|
|
357
|
-
addNodeElement( 'sign', sign );
|
|
358
|
-
addNodeElement( 'length', length );
|
|
359
|
-
addNodeElement( 'lengthSq', lengthSq );
|
|
360
|
-
addNodeElement( 'negate', negate );
|
|
361
|
-
addNodeElement( 'oneMinus', oneMinus );
|
|
362
|
-
addNodeElement( 'dFdx', dFdx );
|
|
363
|
-
addNodeElement( 'dFdy', dFdy );
|
|
364
|
-
addNodeElement( 'round', round );
|
|
365
|
-
addNodeElement( 'reciprocal', reciprocal );
|
|
366
|
-
addNodeElement( 'trunc', trunc );
|
|
367
|
-
addNodeElement( 'fwidth', fwidth );
|
|
368
|
-
addNodeElement( 'atan2', atan2 );
|
|
369
|
-
addNodeElement( 'min', min );
|
|
370
|
-
addNodeElement( 'max', max );
|
|
371
|
-
addNodeElement( 'mod', mod );
|
|
372
|
-
addNodeElement( 'step', step );
|
|
373
|
-
addNodeElement( 'reflect', reflect );
|
|
374
|
-
addNodeElement( 'distance', distance );
|
|
375
|
-
addNodeElement( 'dot', dot );
|
|
376
|
-
addNodeElement( 'cross', cross );
|
|
377
|
-
addNodeElement( 'pow', pow );
|
|
378
|
-
addNodeElement( 'pow2', pow2 );
|
|
379
|
-
addNodeElement( 'pow3', pow3 );
|
|
380
|
-
addNodeElement( 'pow4', pow4 );
|
|
381
|
-
addNodeElement( 'transformDirection', transformDirection );
|
|
382
|
-
addNodeElement( 'mix', mixElement );
|
|
383
|
-
addNodeElement( 'clamp', clamp );
|
|
384
|
-
addNodeElement( 'refract', refract );
|
|
385
|
-
addNodeElement( 'smoothstep', smoothstepElement );
|
|
386
|
-
addNodeElement( 'faceForward', faceForward );
|
|
387
|
-
addNodeElement( 'difference', difference );
|
|
388
|
-
addNodeElement( 'saturate', saturate );
|
|
389
|
-
addNodeElement( 'cbrt', cbrt );
|
|
390
|
-
|
|
391
|
-
addNodeClass( 'MathNode', MathNode );
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import TempNode from '../core/TempNode.js';
|
|
2
|
-
import { uv } from '../accessors/UVNode.js';
|
|
3
|
-
import { addNodeClass } from '../core/Node.js';
|
|
4
|
-
import { addNodeElement, tslFn, nodeProxy } from '../shadernode/ShaderNode.js';
|
|
5
|
-
|
|
6
|
-
const checkerShaderNode = tslFn( ( inputs ) => {
|
|
7
|
-
|
|
8
|
-
const uv = inputs.uv.mul( 2.0 );
|
|
9
|
-
|
|
10
|
-
const cx = uv.x.floor();
|
|
11
|
-
const cy = uv.y.floor();
|
|
12
|
-
const result = cx.add( cy ).mod( 2.0 );
|
|
13
|
-
|
|
14
|
-
return result.sign();
|
|
15
|
-
|
|
16
|
-
} );
|
|
17
|
-
|
|
18
|
-
class CheckerNode extends TempNode {
|
|
19
|
-
|
|
20
|
-
constructor( uvNode = uv() ) {
|
|
21
|
-
|
|
22
|
-
super( 'float' );
|
|
23
|
-
|
|
24
|
-
this.uvNode = uvNode;
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
setup() {
|
|
29
|
-
|
|
30
|
-
return checkerShaderNode( { uv: this.uvNode } );
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export default CheckerNode;
|
|
37
|
-
|
|
38
|
-
export const checker = nodeProxy( CheckerNode );
|
|
39
|
-
|
|
40
|
-
addNodeElement( 'checker', checker );
|
|
41
|
-
|
|
42
|
-
addNodeClass( 'CheckerNode', CheckerNode );
|