super-three 0.181.0 → 0.185.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/LICENSE +1 -1
- package/README.md +3 -4
- package/build/three.cjs +21332 -19201
- package/build/three.core.js +20908 -19853
- package/build/three.core.min.js +2 -2
- package/build/three.module.js +1947 -862
- package/build/three.module.min.js +2 -2
- package/build/three.tsl.js +37 -16
- package/build/three.tsl.min.js +2 -2
- package/build/three.webgpu.js +33628 -25197
- package/build/three.webgpu.min.js +2 -2
- package/build/three.webgpu.nodes.js +33394 -25000
- package/build/three.webgpu.nodes.min.js +2 -2
- package/examples/jsm/Addons.js +14 -3
- package/examples/jsm/animation/CCDIKSolver.js +7 -3
- package/examples/jsm/controls/ArcballControls.js +13 -6
- package/examples/jsm/controls/DragControls.js +2 -2
- package/examples/jsm/controls/FirstPersonControls.js +127 -86
- package/examples/jsm/controls/FlyControls.js +4 -0
- package/examples/jsm/controls/MapControls.js +55 -1
- package/examples/jsm/controls/OrbitControls.js +111 -8
- package/examples/jsm/controls/TrackballControls.js +8 -8
- package/examples/jsm/controls/TransformControls.js +102 -17
- package/examples/jsm/csm/CSM.js +2 -1
- package/examples/jsm/csm/CSMFrustum.js +31 -6
- package/examples/jsm/csm/CSMShadowNode.js +10 -3
- package/examples/jsm/effects/AnaglyphEffect.js +102 -7
- package/examples/jsm/effects/AsciiEffect.js +14 -1
- package/examples/jsm/environments/ColorEnvironment.js +59 -0
- package/examples/jsm/environments/RoomEnvironment.js +3 -0
- package/examples/jsm/exporters/DRACOExporter.js +27 -6
- package/examples/jsm/exporters/EXRExporter.js +1 -1
- package/examples/jsm/exporters/GLTFExporter.js +266 -21
- package/examples/jsm/exporters/PLYExporter.js +286 -73
- package/examples/jsm/exporters/USDZExporter.js +353 -99
- package/examples/jsm/generators/CityGenerator.js +346 -0
- package/examples/jsm/generators/ForestGenerator.js +347 -0
- package/examples/jsm/generators/TerrainGenerator.js +504 -0
- package/examples/jsm/generators/TreeGenerator.js +377 -0
- package/examples/jsm/generators/city/SidewalkGenerator.js +253 -0
- package/examples/jsm/generators/city/SkyscraperGenerator.js +1357 -0
- package/examples/jsm/geometries/DecalGeometry.js +1 -1
- package/examples/jsm/geometries/LoftGeometry.js +355 -0
- package/examples/jsm/geometries/TextGeometry.js +18 -0
- package/examples/jsm/helpers/AnimationPathHelper.js +302 -0
- package/examples/jsm/helpers/LightProbeGridHelper.js +221 -0
- package/examples/jsm/helpers/LightProbeHelper.js +5 -4
- package/examples/jsm/helpers/LightProbeHelperGPU.js +1 -1
- package/examples/jsm/helpers/TextureHelperGPU.js +1 -1
- package/examples/jsm/helpers/ViewHelper.js +83 -14
- package/examples/jsm/inspector/Extension.js +13 -0
- package/examples/jsm/inspector/Inspector.js +244 -91
- package/examples/jsm/inspector/RendererInspector.js +165 -39
- package/examples/jsm/inspector/extensions/tsl-graph/TSLGraphEditor.js +916 -0
- package/examples/jsm/inspector/extensions/tsl-graph/TSLGraphLoader.js +281 -0
- package/examples/jsm/inspector/tabs/Console.js +241 -25
- package/examples/jsm/inspector/tabs/Memory.js +136 -0
- package/examples/jsm/inspector/tabs/Parameters.js +115 -7
- package/examples/jsm/inspector/tabs/Performance.js +24 -9
- package/examples/jsm/inspector/tabs/Settings.js +306 -0
- package/examples/jsm/inspector/tabs/Timeline.js +1696 -0
- package/examples/jsm/inspector/tabs/Viewer.js +723 -9
- package/examples/jsm/inspector/ui/Graph.js +162 -25
- package/examples/jsm/inspector/ui/Item.js +92 -13
- package/examples/jsm/inspector/ui/List.js +2 -2
- package/examples/jsm/inspector/ui/Profiler.js +1991 -44
- package/examples/jsm/inspector/ui/Style.js +1943 -543
- package/examples/jsm/inspector/ui/Tab.js +226 -5
- package/examples/jsm/inspector/ui/Values.js +126 -8
- package/examples/jsm/inspector/ui/utils.js +143 -10
- package/examples/jsm/interaction/InteractionManager.js +226 -0
- package/examples/jsm/libs/basis/README.md +0 -1
- package/examples/jsm/libs/demuxer_mp4.js +3 -3
- package/examples/jsm/libs/draco/README.md +0 -1
- package/examples/jsm/libs/meshopt_clusterizer.module.js +421 -0
- package/examples/jsm/libs/meshopt_decoder.module.js +9 -8
- package/examples/jsm/libs/meshopt_simplifier.module.js +627 -0
- package/examples/jsm/libs/mikktspace.module.js +34 -9
- package/examples/jsm/lighting/ClusteredLighting.js +55 -0
- package/examples/jsm/lighting/DynamicLighting.js +82 -0
- package/examples/jsm/lighting/LightProbeGrid.js +681 -0
- package/examples/jsm/lines/LineMaterial.js +45 -16
- package/examples/jsm/lines/LineSegments2.js +8 -0
- package/examples/jsm/lines/webgpu/LineSegments2.js +8 -0
- package/examples/jsm/loaders/3DMLoader.js +6 -5
- package/examples/jsm/loaders/3MFLoader.js +2 -2
- package/examples/jsm/loaders/AMFLoader.js +2 -2
- package/examples/jsm/loaders/ColladaLoader.js +24 -4026
- package/examples/jsm/loaders/DRACOLoader.js +51 -18
- package/examples/jsm/loaders/EXRLoader.js +701 -90
- package/examples/jsm/loaders/FBXLoader.js +235 -37
- package/examples/jsm/loaders/GCodeLoader.js +34 -8
- package/examples/jsm/loaders/GLTFLoader.js +146 -178
- package/examples/jsm/loaders/HDRLoader.js +7 -30
- package/examples/jsm/loaders/KMZLoader.js +5 -5
- package/examples/jsm/loaders/KTX2Loader.js +58 -17
- package/examples/jsm/loaders/LDrawLoader.js +49 -58
- package/examples/jsm/loaders/LUT3dlLoader.js +2 -2
- package/examples/jsm/loaders/LUTCubeLoader.js +2 -2
- package/examples/jsm/loaders/LWOLoader.js +11 -39
- package/examples/jsm/loaders/LottieLoader.js +1 -1
- package/examples/jsm/loaders/MaterialXLoader.js +31 -9
- package/examples/jsm/loaders/NRRDLoader.js +5 -5
- package/examples/jsm/loaders/PCDLoader.js +11 -9
- package/examples/jsm/loaders/PLYLoader.js +218 -55
- package/examples/jsm/loaders/SVGLoader.js +549 -497
- package/examples/jsm/loaders/TDSLoader.js +0 -2
- package/examples/jsm/loaders/TGALoader.js +0 -2
- package/examples/jsm/loaders/TTFLoader.js +1 -1
- package/examples/jsm/loaders/USDLoader.js +127 -43
- package/examples/jsm/loaders/UltraHDRLoader.js +285 -160
- package/examples/jsm/loaders/VOXLoader.js +660 -117
- package/examples/jsm/loaders/VRMLLoader.js +80 -3
- package/examples/jsm/loaders/VTKLoader.js +42 -25
- package/examples/jsm/loaders/collada/ColladaComposer.js +3044 -0
- package/examples/jsm/loaders/collada/ColladaParser.js +1977 -0
- package/examples/jsm/loaders/usd/USDAParser.js +504 -344
- package/examples/jsm/loaders/usd/USDCParser.js +1867 -6
- package/examples/jsm/loaders/usd/USDComposer.js +4627 -0
- package/examples/jsm/materials/LDrawConditionalLineNodeMaterial.js +2 -2
- package/examples/jsm/materials/WoodNodeMaterial.js +11 -11
- package/examples/jsm/math/Octree.js +131 -1
- package/examples/jsm/misc/GPUComputationRenderer.js +2 -0
- package/examples/jsm/misc/RollerCoaster.js +42 -4
- package/examples/jsm/misc/TileCreasedNormalsPlugin.js +270 -0
- package/examples/jsm/misc/Volume.js +2 -3
- package/examples/jsm/misc/VolumeSlice.js +0 -1
- package/examples/jsm/modifiers/TessellateModifier.js +1 -1
- package/examples/jsm/objects/GroundedSkybox.js +1 -1
- package/examples/jsm/objects/LensflareMesh.js +1 -1
- package/examples/jsm/objects/Reflector.js +72 -25
- package/examples/jsm/objects/Sky.js +90 -6
- package/examples/jsm/objects/SkyMesh.js +150 -16
- package/examples/jsm/objects/Water.js +4 -3
- package/examples/jsm/objects/Water2.js +5 -3
- package/examples/jsm/objects/Water2Mesh.js +1 -1
- package/examples/jsm/objects/WaterMesh.js +5 -7
- package/examples/jsm/physics/AmmoPhysics.js +27 -15
- package/examples/jsm/physics/JoltPhysics.js +10 -6
- package/examples/jsm/physics/RapierPhysics.js +36 -7
- package/examples/jsm/postprocessing/EffectComposer.js +7 -5
- package/examples/jsm/postprocessing/OutputPass.js +9 -0
- package/examples/jsm/postprocessing/RenderPass.js +10 -0
- package/examples/jsm/postprocessing/RenderTransitionPass.js +1 -1
- package/examples/jsm/postprocessing/UnrealBloomPass.js +48 -18
- package/examples/jsm/renderers/CSS3DRenderer.js +1 -1
- package/examples/jsm/renderers/Projector.js +246 -28
- package/examples/jsm/renderers/SVGRenderer.js +174 -60
- package/examples/jsm/shaders/GTAOShader.js +19 -6
- package/examples/jsm/shaders/HalftoneShader.js +12 -1
- package/examples/jsm/shaders/PoissonDenoiseShader.js +6 -2
- package/examples/jsm/shaders/SAOShader.js +17 -4
- package/examples/jsm/shaders/SSAOShader.js +11 -1
- package/examples/jsm/shaders/SSRShader.js +6 -5
- package/examples/jsm/shaders/UnpackDepthRGBAShader.js +2 -4
- package/examples/jsm/shaders/VignetteShader.js +1 -1
- package/examples/jsm/shaders/VolumeShader.js +31 -44
- package/examples/jsm/transpiler/AST.js +44 -0
- package/examples/jsm/transpiler/GLSLDecoder.js +65 -8
- package/examples/jsm/transpiler/Linker.js +1 -1
- package/examples/jsm/transpiler/ShaderToyDecoder.js +2 -0
- package/examples/jsm/transpiler/TSLEncoder.js +46 -3
- package/examples/jsm/transpiler/TranspilerUtils.js +3 -3
- package/examples/jsm/transpiler/WGSLEncoder.js +27 -0
- package/examples/jsm/tsl/WebGLNodesHandler.js +605 -0
- package/examples/jsm/tsl/display/AfterImageNode.js +11 -1
- package/examples/jsm/tsl/display/AnaglyphPassNode.js +458 -16
- package/examples/jsm/tsl/display/BilateralBlurNode.js +374 -0
- package/examples/jsm/tsl/display/BloomNode.js +75 -25
- package/examples/jsm/tsl/display/CRT.js +150 -0
- package/examples/jsm/tsl/display/ChromaticAberrationNode.js +3 -36
- package/examples/jsm/tsl/display/DenoiseNode.js +1 -1
- package/examples/jsm/tsl/display/DepthOfFieldNode.js +3 -3
- package/examples/jsm/tsl/display/DotScreenNode.js +1 -1
- package/examples/jsm/tsl/display/FSR1Node.js +477 -0
- package/examples/jsm/tsl/display/FXAANode.js +13 -14
- package/examples/jsm/tsl/display/GTAONode.js +40 -17
- package/examples/jsm/tsl/display/GaussianBlurNode.js +21 -2
- package/examples/jsm/tsl/display/GodraysNode.js +615 -0
- package/examples/jsm/tsl/display/ImportanceSampledEnvironment.js +560 -0
- package/examples/jsm/tsl/display/LensflareNode.js +1 -1
- package/examples/jsm/tsl/display/Lut3DNode.js +1 -1
- package/examples/jsm/tsl/display/OutlineNode.js +69 -19
- package/examples/jsm/tsl/display/ParallaxBarrierPassNode.js +2 -2
- package/examples/jsm/tsl/display/PixelationPassNode.js +9 -8
- package/examples/jsm/tsl/display/RGBShiftNode.js +2 -2
- package/examples/jsm/tsl/display/RecurrentDenoiseNode.js +912 -0
- package/examples/jsm/tsl/display/RetroPassNode.js +263 -0
- package/examples/jsm/tsl/display/SMAANode.js +2 -2
- package/examples/jsm/tsl/display/SSAAPassNode.js +15 -27
- package/examples/jsm/tsl/display/SSGINode.js +96 -62
- package/examples/jsm/tsl/display/SSRNode.js +831 -134
- package/examples/jsm/tsl/display/SSSNode.js +8 -6
- package/examples/jsm/tsl/display/Shape.js +29 -0
- package/examples/jsm/tsl/display/SharpenNode.js +283 -0
- package/examples/jsm/tsl/display/SobelOperatorNode.js +2 -2
- package/examples/jsm/tsl/display/StereoCompositePassNode.js +8 -1
- package/examples/jsm/tsl/display/StereoPassNode.js +1 -2
- package/examples/jsm/tsl/display/TAAUNode.js +835 -0
- package/examples/jsm/tsl/display/TRAANode.js +315 -126
- package/examples/jsm/tsl/display/TemporalReprojectNode.js +1023 -0
- package/examples/jsm/tsl/display/TransitionNode.js +1 -1
- package/examples/jsm/tsl/display/depthAwareBlend.js +80 -0
- package/examples/jsm/tsl/display/radialBlur.js +68 -0
- package/examples/jsm/tsl/lighting/ClusteredLightsNode.js +622 -0
- package/examples/jsm/tsl/lighting/DynamicLightsNode.js +300 -0
- package/examples/jsm/tsl/lighting/data/AmbientLightDataNode.js +61 -0
- package/examples/jsm/tsl/lighting/data/DirectionalLightDataNode.js +111 -0
- package/examples/jsm/tsl/lighting/data/HemisphereLightDataNode.js +99 -0
- package/examples/jsm/tsl/lighting/data/PointLightDataNode.js +134 -0
- package/examples/jsm/tsl/lighting/data/SpotLightDataNode.js +161 -0
- package/examples/jsm/tsl/math/Bayer.js +53 -3
- package/examples/jsm/tsl/math/curlNoise.js +107 -0
- package/examples/jsm/tsl/shadows/TileShadowNode.js +1 -1
- package/examples/jsm/tsl/shadows/TileShadowNodeHelper.js +3 -3
- package/examples/jsm/tsl/utils/GroundedSkybox.js +62 -0
- package/examples/jsm/tsl/utils/RNoise.js +51 -0
- package/examples/jsm/tsl/utils/SpecularHelpers.js +325 -0
- package/examples/jsm/utils/BufferGeometryUtils.js +128 -62
- package/examples/jsm/utils/ColorUtils.js +76 -0
- package/examples/jsm/utils/GeometryCompressionUtils.js +1 -1
- package/examples/jsm/utils/LDrawUtils.js +1 -1
- package/examples/jsm/utils/SceneOptimizer.js +1 -1
- package/examples/jsm/utils/ShadowMapViewer.js +24 -10
- package/examples/jsm/utils/ShadowMapViewerGPU.js +1 -1
- package/examples/jsm/utils/SkeletonUtils.js +14 -8
- package/examples/jsm/utils/WebGPUTextureUtils.js +1 -1
- package/examples/jsm/webxr/ARButton.js +1 -1
- package/examples/jsm/webxr/WebGLXRFallback.js +89 -0
- package/examples/jsm/webxr/XRControllerModelFactory.js +2 -2
- package/examples/jsm/webxr/XRHandMeshModel.js +36 -10
- package/examples/jsm/webxr/XRHandModelFactory.js +2 -1
- package/package.json +28 -34
- package/src/Three.Core.js +3 -1
- package/src/Three.TSL.js +35 -14
- package/src/Three.WebGPU.Nodes.js +5 -0
- package/src/Three.WebGPU.js +13 -0
- package/src/Three.js +1 -0
- package/src/animation/AnimationAction.js +18 -4
- package/src/animation/AnimationClip.js +0 -139
- package/src/animation/AnimationMixer.js +6 -0
- package/src/animation/AnimationUtils.js +1 -12
- package/src/animation/KeyframeTrack.js +47 -8
- package/src/animation/PropertyBinding.js +2 -2
- package/src/animation/PropertyMixer.js +4 -4
- package/src/animation/tracks/BooleanKeyframeTrack.js +1 -1
- package/src/animation/tracks/ColorKeyframeTrack.js +1 -1
- package/src/animation/tracks/NumberKeyframeTrack.js +1 -1
- package/src/animation/tracks/QuaternionKeyframeTrack.js +1 -1
- package/src/animation/tracks/StringKeyframeTrack.js +1 -1
- package/src/animation/tracks/VectorKeyframeTrack.js +1 -1
- package/src/audio/Audio.js +1 -1
- package/src/audio/AudioContext.js +2 -2
- package/src/audio/AudioListener.js +5 -3
- package/src/cameras/Camera.js +34 -4
- package/src/cameras/CubeCamera.js +20 -0
- package/src/cameras/StereoCamera.js +5 -2
- package/src/constants.js +90 -5
- package/src/core/BufferAttribute.js +13 -1
- package/src/core/BufferGeometry.js +43 -9
- package/src/core/Clock.js +7 -0
- package/src/core/Object3D.js +69 -11
- package/src/core/Raycaster.js +3 -3
- package/src/core/RenderTarget.js +19 -6
- package/src/extras/PMREMGenerator.js +13 -22
- package/src/extras/TextureUtils.js +6 -2
- package/src/extras/core/ShapePath.js +149 -160
- package/src/extras/curves/CatmullRomCurve3.js +3 -2
- package/src/geometries/ExtrudeGeometry.js +2 -2
- package/src/geometries/PolyhedronGeometry.js +1 -1
- package/src/geometries/SphereGeometry.js +8 -3
- package/src/geometries/TorusGeometry.js +8 -3
- package/src/helpers/CameraHelper.js +3 -0
- package/src/helpers/DirectionalLightHelper.js +6 -1
- package/src/helpers/HemisphereLightHelper.js +5 -0
- package/src/helpers/PointLightHelper.js +3 -25
- package/src/helpers/SpotLightHelper.js +4 -1
- package/src/lights/DirectionalLight.js +13 -0
- package/src/lights/HemisphereLight.js +10 -0
- package/src/lights/Light.js +1 -11
- package/src/lights/LightProbe.js +0 -15
- package/src/lights/LightShadow.js +15 -6
- package/src/lights/PointLight.js +15 -0
- package/src/lights/PointLightShadow.js +0 -86
- package/src/lights/SpotLight.js +22 -1
- package/src/lights/webgpu/IESSpotLight.js +2 -1
- package/src/loaders/AudioLoader.js +11 -1
- package/src/loaders/Cache.js +28 -0
- package/src/loaders/DataTextureLoader.js +75 -42
- package/src/loaders/FileLoader.js +2 -3
- package/src/loaders/ImageBitmapLoader.js +12 -9
- package/src/loaders/Loader.js +6 -0
- package/src/loaders/LoadingManager.js +5 -0
- package/src/loaders/MaterialLoader.js +37 -266
- package/src/loaders/ObjectLoader.js +48 -6
- package/src/loaders/nodes/NodeLoader.js +2 -2
- package/src/loaders/nodes/NodeObjectLoader.js +18 -0
- package/src/materials/LineBasicMaterial.js +4 -0
- package/src/materials/Material.js +198 -1
- package/src/materials/MeshBasicMaterial.js +24 -0
- package/src/materials/MeshDepthMaterial.js +10 -0
- package/src/materials/MeshDistanceMaterial.js +10 -0
- package/src/materials/MeshLambertMaterial.js +49 -1
- package/src/materials/MeshMatcapMaterial.js +25 -1
- package/src/materials/MeshNormalMaterial.js +9 -1
- package/src/materials/MeshPhongMaterial.js +49 -1
- package/src/materials/MeshPhysicalMaterial.js +38 -0
- package/src/materials/MeshStandardMaterial.js +42 -1
- package/src/materials/MeshToonMaterial.js +35 -2
- package/src/materials/PointsMaterial.js +7 -0
- package/src/materials/ShaderMaterial.js +106 -1
- package/src/materials/SpriteMaterial.js +7 -0
- package/src/materials/nodes/Line2NodeMaterial.js +380 -297
- package/src/materials/nodes/MeshBasicNodeMaterial.js +2 -2
- package/src/materials/nodes/MeshNormalNodeMaterial.js +2 -2
- package/src/materials/nodes/MeshPhongNodeMaterial.js +0 -9
- package/src/materials/nodes/MeshPhysicalNodeMaterial.js +3 -30
- package/src/materials/nodes/MeshSSSNodeMaterial.js +0 -13
- package/src/materials/nodes/MeshStandardNodeMaterial.js +5 -15
- package/src/materials/nodes/NodeMaterial.js +153 -89
- package/src/materials/nodes/SpriteNodeMaterial.js +0 -10
- package/src/materials/nodes/manager/NodeMaterialObserver.js +234 -100
- package/src/math/Box3.js +5 -0
- package/src/math/FrustumArray.js +103 -133
- package/src/math/Interpolant.js +1 -1
- package/src/math/Line3.js +6 -5
- package/src/math/MathUtils.js +12 -12
- package/src/math/Matrix2.js +13 -9
- package/src/math/Matrix3.js +24 -9
- package/src/math/Matrix4.js +112 -74
- package/src/math/Plane.js +4 -3
- package/src/math/Quaternion.js +3 -29
- package/src/math/Sphere.js +1 -1
- package/src/math/Triangle.js +1 -1
- package/src/math/Vector2.js +13 -9
- package/src/math/Vector3.js +17 -15
- package/src/math/Vector4.js +15 -11
- package/src/math/interpolants/BezierInterpolant.js +106 -0
- package/src/nodes/Nodes.js +86 -71
- package/src/nodes/TSL.js +15 -13
- package/src/nodes/accessors/Arrays.js +5 -5
- package/src/nodes/accessors/Batch.js +108 -0
- package/src/nodes/accessors/Bitangent.js +7 -7
- package/src/nodes/accessors/BufferAttributeNode.js +120 -17
- package/src/nodes/accessors/BufferNode.js +29 -2
- package/src/nodes/accessors/Camera.js +149 -28
- package/src/nodes/accessors/ClippingNode.js +5 -5
- package/src/nodes/accessors/CubeTextureNode.js +27 -2
- package/src/nodes/accessors/Instance.js +264 -0
- package/src/nodes/accessors/MaterialNode.js +27 -3
- package/src/nodes/accessors/MaterialProperties.js +6 -8
- package/src/nodes/accessors/MaterialReferenceNode.js +1 -2
- package/src/nodes/accessors/ModelNode.js +1 -1
- package/src/nodes/accessors/{MorphNode.js → Morph.js} +99 -112
- package/src/nodes/accessors/Normal.js +24 -24
- package/src/nodes/accessors/Object3DNode.js +1 -1
- package/src/nodes/accessors/Position.js +39 -3
- package/src/nodes/accessors/ReferenceBaseNode.js +6 -6
- package/src/nodes/accessors/ReferenceNode.js +9 -8
- package/src/nodes/accessors/ReflectVector.js +3 -3
- package/src/nodes/accessors/RendererReferenceNode.js +1 -2
- package/src/nodes/accessors/SceneProperties.js +47 -0
- package/src/nodes/accessors/Skinning.js +263 -0
- package/src/nodes/accessors/StorageBufferNode.js +16 -27
- package/src/nodes/accessors/StorageTexture3DNode.js +100 -0
- package/src/nodes/accessors/StorageTextureNode.js +74 -11
- package/src/nodes/accessors/Tangent.js +8 -18
- package/src/nodes/accessors/Texture3DNode.js +32 -35
- package/src/nodes/accessors/TextureNode.js +124 -25
- package/src/nodes/accessors/UniformArrayNode.js +6 -4
- package/src/nodes/accessors/UserDataNode.js +1 -2
- package/src/nodes/accessors/VertexColorNode.js +1 -2
- package/src/nodes/code/FunctionCallNode.js +1 -1
- package/src/nodes/code/FunctionNode.js +4 -19
- package/src/nodes/core/ArrayNode.js +21 -2
- package/src/nodes/core/AssignNode.js +3 -3
- package/src/nodes/core/AttributeNode.js +3 -3
- package/src/nodes/core/BypassNode.js +1 -1
- package/src/nodes/core/ContextNode.js +104 -5
- package/src/nodes/core/IndexNode.js +2 -1
- package/src/nodes/core/InputNode.js +1 -1
- package/src/nodes/core/InspectorNode.js +1 -1
- package/src/nodes/core/IsolateNode.js +1 -1
- package/src/nodes/core/MRTNode.js +55 -4
- package/src/nodes/core/Node.js +151 -17
- package/src/nodes/core/NodeBuilder.js +479 -101
- package/src/nodes/core/NodeError.js +28 -0
- package/src/nodes/core/NodeFrame.js +12 -4
- package/src/nodes/core/NodeUtils.js +20 -18
- package/src/nodes/core/OutputStructNode.js +13 -11
- package/src/nodes/core/OverrideContextNode.js +153 -0
- package/src/nodes/core/ParameterNode.js +4 -4
- package/src/nodes/core/PropertyNode.js +66 -4
- package/src/nodes/core/StackNode.js +91 -20
- package/src/nodes/core/StackTrace.js +139 -0
- package/src/nodes/core/StructNode.js +20 -8
- package/src/nodes/core/StructTypeNode.js +17 -23
- package/src/nodes/core/SubBuildNode.js +2 -2
- package/src/nodes/core/UniformGroupNode.js +36 -6
- package/src/nodes/core/UniformNode.js +21 -5
- package/src/nodes/core/VarNode.js +56 -23
- package/src/nodes/core/VaryingNode.js +14 -21
- package/src/nodes/display/BlendModes.js +1 -105
- package/src/nodes/display/BumpMapNode.js +6 -1
- package/src/nodes/display/ColorAdjustment.js +27 -9
- package/src/nodes/display/ColorSpaceNode.js +3 -3
- package/src/nodes/display/FrontFacingNode.js +38 -9
- package/src/nodes/display/NormalMapNode.js +41 -6
- package/src/nodes/display/PassNode.js +157 -56
- package/src/nodes/display/PremultiplyAlphaFunctions.js +39 -0
- package/src/nodes/display/RenderOutputNode.js +19 -10
- package/src/nodes/display/ScreenNode.js +4 -2
- package/src/nodes/display/ToneMappingNode.js +1 -1
- package/src/nodes/display/ToonOutlinePassNode.js +2 -2
- package/src/nodes/display/ViewportDepthNode.js +52 -4
- package/src/nodes/display/ViewportDepthTextureNode.js +11 -15
- package/src/nodes/display/ViewportTextureNode.js +39 -11
- package/src/nodes/fog/Fog.js +18 -35
- package/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.js +3 -3
- package/src/nodes/functions/BSDF/DFGLUT.js +56 -0
- package/src/nodes/functions/BSDF/EnvironmentBRDF.js +2 -2
- package/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.js +2 -2
- package/src/nodes/functions/PhysicalLightingModel.js +126 -45
- package/src/nodes/functions/VolumetricLightingModel.js +40 -7
- package/src/nodes/geometry/RangeNode.js +5 -3
- package/src/nodes/gpgpu/AtomicFunctionNode.js +1 -1
- package/src/nodes/gpgpu/BarrierNode.js +9 -0
- package/src/nodes/gpgpu/ComputeBuiltinNode.js +2 -3
- package/src/nodes/gpgpu/ComputeNode.js +74 -48
- package/src/nodes/gpgpu/SubgroupFunctionNode.js +2 -2
- package/src/nodes/gpgpu/WorkgroupInfoNode.js +5 -5
- package/src/nodes/lighting/AnalyticLightNode.js +53 -0
- package/src/nodes/lighting/EnvironmentNode.js +30 -5
- package/src/nodes/lighting/IESSpotLightNode.js +40 -2
- package/src/nodes/lighting/LightingContextNode.js +10 -2
- package/src/nodes/lighting/LightsNode.js +97 -65
- package/src/nodes/lighting/PointShadowNode.js +166 -148
- package/src/nodes/lighting/ShadowFilterNode.js +74 -117
- package/src/nodes/lighting/ShadowNode.js +149 -51
- package/src/nodes/materialx/lib/mx_noise.js +2 -2
- package/src/nodes/math/BitcastNode.js +1 -1
- package/src/nodes/math/BitcountNode.js +433 -0
- package/src/nodes/math/ConditionalNode.js +6 -6
- package/src/nodes/math/MathNode.js +115 -52
- package/src/nodes/math/OperatorNode.js +24 -23
- package/src/nodes/math/PackFloatNode.js +98 -0
- package/src/nodes/math/UnpackFloatNode.js +96 -0
- package/src/nodes/parsers/GLSLNodeFunction.js +1 -1
- package/src/nodes/pmrem/PMREMNode.js +34 -3
- package/src/nodes/pmrem/PMREMUtils.js +9 -15
- package/src/nodes/tsl/TSLBase.js +1 -1
- package/src/nodes/tsl/TSLCore.js +99 -33
- package/src/nodes/utils/ArrayElementNode.js +14 -1
- package/src/nodes/utils/ConvertNode.js +1 -1
- package/src/nodes/utils/DebugNode.js +12 -12
- package/src/nodes/utils/EquirectUV.js +30 -5
- package/src/nodes/utils/EventNode.js +31 -2
- package/src/nodes/utils/FlipNode.js +1 -1
- package/src/nodes/utils/FunctionOverloadingNode.js +2 -2
- package/src/nodes/utils/JoinNode.js +3 -3
- package/src/nodes/utils/LoopNode.js +1 -1
- package/src/nodes/utils/MemberNode.js +2 -2
- package/src/nodes/utils/Packing.js +48 -5
- package/src/nodes/utils/PostProcessingUtils.js +33 -1
- package/src/nodes/utils/RTTNode.js +41 -25
- package/src/nodes/utils/ReflectorNode.js +4 -4
- package/src/nodes/utils/Remap.js +48 -0
- package/src/nodes/utils/RotateNode.js +1 -1
- package/src/nodes/utils/SampleNode.js +1 -1
- package/src/nodes/utils/SetNode.js +1 -1
- package/src/nodes/utils/SplitNode.js +1 -1
- package/src/nodes/utils/SpriteSheetUV.js +35 -0
- package/src/nodes/utils/StorageArrayElementNode.js +1 -1
- package/src/nodes/utils/UVUtils.js +28 -0
- package/src/objects/BatchedMesh.js +66 -30
- package/src/objects/InstancedMesh.js +19 -3
- package/src/objects/Line.js +1 -1
- package/src/objects/Mesh.js +1 -1
- package/src/objects/Points.js +1 -1
- package/src/objects/SkinnedMesh.js +26 -9
- package/src/renderers/WebGLRenderer.js +344 -156
- package/src/renderers/common/Animation.js +3 -3
- package/src/renderers/common/Attributes.js +15 -1
- package/src/renderers/common/Backend.js +78 -13
- package/src/renderers/common/Background.js +26 -13
- package/src/renderers/common/BindGroup.js +1 -16
- package/src/renderers/common/Binding.js +11 -0
- package/src/renderers/common/Bindings.js +141 -57
- package/src/renderers/common/BlendMode.js +143 -0
- package/src/renderers/common/Buffer.js +49 -0
- package/src/renderers/common/BundleGroup.js +1 -1
- package/src/renderers/common/ChainMap.js +30 -6
- package/src/renderers/common/ClippingContext.js +10 -2
- package/src/renderers/common/ComputePipeline.js +1 -1
- package/src/renderers/common/CubeRenderTarget.js +51 -7
- package/src/renderers/common/Geometries.js +29 -3
- package/src/renderers/common/Info.js +374 -4
- package/src/renderers/common/InspectorBase.js +6 -1
- package/src/renderers/common/Lighting.js +51 -19
- package/src/renderers/common/Pipelines.js +40 -7
- package/src/renderers/common/PostProcessing.js +8 -206
- package/src/renderers/common/ReadbackBuffer.js +78 -0
- package/src/renderers/common/RenderBundle.js +3 -1
- package/src/renderers/common/RenderBundles.js +7 -3
- package/src/renderers/common/RenderContext.js +16 -0
- package/src/renderers/common/RenderContexts.js +33 -49
- package/src/renderers/common/RenderList.js +41 -4
- package/src/renderers/common/RenderLists.js +2 -1
- package/src/renderers/common/RenderObject.js +88 -16
- package/src/renderers/common/RenderObjectPipeline.js +40 -0
- package/src/renderers/common/RenderObjects.js +21 -5
- package/src/renderers/common/RenderPipeline.js +232 -17
- package/src/renderers/common/Renderer.js +700 -163
- package/src/renderers/common/Sampler.js +16 -48
- package/src/renderers/common/StorageBuffer.js +13 -1
- package/src/renderers/common/Textures.js +121 -9
- package/src/renderers/common/TimestampQueryPool.js +6 -4
- package/src/renderers/common/Uniform.js +8 -0
- package/src/renderers/common/UniformsGroup.js +84 -1
- package/src/renderers/common/XRManager.js +377 -51
- package/src/renderers/common/extras/PMREMGenerator.js +40 -61
- package/src/renderers/common/nodes/NodeBuilderState.js +10 -2
- package/src/renderers/common/nodes/NodeLibrary.js +4 -4
- package/src/renderers/common/nodes/{Nodes.js → NodeManager.js} +298 -106
- package/src/renderers/common/nodes/NodeStorageBuffer.js +13 -2
- package/src/renderers/common/nodes/NodeUniformBuffer.js +65 -0
- package/src/renderers/shaders/DFGLUTData.js +19 -34
- package/src/renderers/shaders/ShaderChunk/batching_pars_vertex.glsl.js +2 -2
- package/src/renderers/shaders/ShaderChunk/color_fragment.glsl.js +1 -5
- package/src/renderers/shaders/ShaderChunk/color_pars_fragment.glsl.js +1 -5
- package/src/renderers/shaders/ShaderChunk/color_pars_vertex.glsl.js +1 -5
- package/src/renderers/shaders/ShaderChunk/color_vertex.glsl.js +8 -10
- package/src/renderers/shaders/ShaderChunk/common.glsl.js +13 -4
- package/src/renderers/shaders/ShaderChunk/defaultnormal_vertex.glsl.js +0 -6
- package/src/renderers/shaders/ShaderChunk/envmap_common_pars_fragment.glsl.js +0 -1
- package/src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js +9 -13
- package/src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js +2 -2
- package/src/renderers/shaders/ShaderChunk/envmap_vertex.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/lightprobes_pars_fragment.glsl.js +80 -0
- package/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js +13 -2
- package/src/renderers/shaders/ShaderChunk/lights_fragment_end.glsl.js +6 -0
- package/src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js +6 -2
- package/src/renderers/shaders/ShaderChunk/lights_pars_begin.glsl.js +3 -1
- package/src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js +8 -4
- package/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +112 -53
- package/src/renderers/shaders/ShaderChunk/normal_fragment_begin.glsl.js +2 -2
- package/src/renderers/shaders/ShaderChunk/normal_fragment_maps.glsl.js +7 -0
- package/src/renderers/shaders/ShaderChunk/normal_vertex.glsl.js +6 -0
- package/src/renderers/shaders/ShaderChunk/packing.glsl.js +20 -4
- package/src/renderers/shaders/ShaderChunk/premultiplied_alpha_fragment.glsl.js +0 -1
- package/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js +225 -186
- package/src/renderers/shaders/ShaderChunk/shadowmap_vertex.glsl.js +12 -2
- package/src/renderers/shaders/ShaderChunk/shadowmask_pars_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/transmission_fragment.glsl.js +2 -2
- package/src/renderers/shaders/ShaderChunk.js +5 -3
- package/src/renderers/shaders/ShaderLib/backgroundCube.glsl.js +1 -2
- package/src/renderers/shaders/ShaderLib/depth.glsl.js +3 -0
- package/src/renderers/shaders/ShaderLib/{distanceRGBA.glsl.js → distance.glsl.js} +2 -3
- package/src/renderers/shaders/ShaderLib/meshlambert.glsl.js +2 -1
- package/src/renderers/shaders/ShaderLib/meshnormal.glsl.js +1 -2
- package/src/renderers/shaders/ShaderLib/meshphong.glsl.js +2 -1
- package/src/renderers/shaders/ShaderLib/meshphysical.glsl.js +4 -9
- package/src/renderers/shaders/ShaderLib/meshtoon.glsl.js +0 -1
- package/src/renderers/shaders/ShaderLib/shadow.glsl.js +1 -1
- package/src/renderers/shaders/ShaderLib/vsm.glsl.js +4 -6
- package/src/renderers/shaders/ShaderLib.js +7 -6
- package/src/renderers/shaders/UniformsLib.js +7 -5
- package/src/renderers/shaders/UniformsUtils.js +27 -5
- package/src/renderers/webgl/WebGLAnimation.js +2 -1
- package/src/renderers/webgl/WebGLBackground.js +15 -15
- package/src/renderers/webgl/WebGLBindingStates.js +99 -27
- package/src/renderers/webgl/WebGLBufferRenderer.js +0 -32
- package/src/renderers/webgl/WebGLCapabilities.js +9 -4
- package/src/renderers/webgl/WebGLEnvironments.js +228 -0
- package/src/renderers/webgl/WebGLGeometries.js +10 -7
- package/src/renderers/webgl/WebGLIndexedBufferRenderer.js +0 -32
- package/src/renderers/webgl/WebGLLights.js +18 -1
- package/src/renderers/webgl/WebGLMaterials.js +24 -13
- package/src/renderers/webgl/WebGLObjects.js +3 -1
- package/src/renderers/webgl/WebGLOutput.js +271 -0
- package/src/renderers/webgl/WebGLProgram.js +54 -113
- package/src/renderers/webgl/WebGLPrograms.js +74 -55
- package/src/renderers/webgl/WebGLRenderLists.js +24 -1
- package/src/renderers/webgl/WebGLRenderStates.js +13 -2
- package/src/renderers/webgl/WebGLShaderCache.js +5 -11
- package/src/renderers/webgl/WebGLShadowMap.js +188 -24
- package/src/renderers/webgl/WebGLState.js +75 -37
- package/src/renderers/webgl/WebGLTextures.js +230 -56
- package/src/renderers/webgl/WebGLUniforms.js +40 -3
- package/src/renderers/webgl/WebGLUniformsGroups.js +82 -35
- package/src/renderers/webgl/WebGLUtils.js +6 -2
- package/src/renderers/webgl-fallback/WebGLBackend.js +322 -92
- package/src/renderers/webgl-fallback/WebGLBufferRenderer.js +0 -41
- package/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js +295 -66
- package/src/renderers/webgl-fallback/utils/WebGLAttributeUtils.js +53 -19
- package/src/renderers/webgl-fallback/utils/WebGLCapabilities.js +25 -0
- package/src/renderers/webgl-fallback/utils/WebGLState.js +223 -6
- package/src/renderers/webgl-fallback/utils/WebGLTextureUtils.js +118 -73
- package/src/renderers/webgl-fallback/utils/WebGLTimestampQueryPool.js +10 -10
- package/src/renderers/webgl-fallback/utils/WebGLUtils.js +9 -3
- package/src/renderers/webgpu/WebGPUBackend.js +733 -302
- package/src/renderers/webgpu/WebGPURenderer.js +2 -1
- package/src/renderers/webgpu/descriptors/GPUBindGroupDescriptor.js +48 -0
- package/src/renderers/webgpu/descriptors/GPUBufferDescriptor.js +57 -0
- package/src/renderers/webgpu/descriptors/GPUCommandEncoderDescriptor.js +30 -0
- package/src/renderers/webgpu/descriptors/GPUComputePassDescriptor.js +38 -0
- package/src/renderers/webgpu/descriptors/GPUComputePipelineDescriptor.js +48 -0
- package/src/renderers/webgpu/descriptors/GPUCopyExternalImageDestInfo.js +47 -0
- package/src/renderers/webgpu/descriptors/GPUCopyExternalImageSourceInfo.js +50 -0
- package/src/renderers/webgpu/descriptors/GPUExtent3D.js +51 -0
- package/src/renderers/webgpu/descriptors/GPUPipelineLayoutDescriptor.js +39 -0
- package/src/renderers/webgpu/descriptors/GPUQuerySetDescriptor.js +47 -0
- package/src/renderers/webgpu/descriptors/GPURenderBundleEncoderDescriptor.js +74 -0
- package/src/renderers/webgpu/descriptors/GPURenderPassColorAttachment.js +72 -0
- package/src/renderers/webgpu/descriptors/GPURenderPassDepthStencilAttachment.js +99 -0
- package/src/renderers/webgpu/descriptors/GPURenderPassDescriptor.js +72 -0
- package/src/renderers/webgpu/descriptors/GPURenderPassTimestampWrites.js +49 -0
- package/src/renderers/webgpu/descriptors/GPURenderPipelineDescriptor.js +130 -0
- package/src/renderers/webgpu/descriptors/GPUSamplerDescriptor.js +119 -0
- package/src/renderers/webgpu/descriptors/GPUShaderModuleDescriptor.js +46 -0
- package/src/renderers/webgpu/descriptors/GPUTexelCopyBufferInfo.js +57 -0
- package/src/renderers/webgpu/descriptors/GPUTexelCopyBufferLayout.js +48 -0
- package/src/renderers/webgpu/descriptors/GPUTexelCopyTextureInfo.js +61 -0
- package/src/renderers/webgpu/descriptors/GPUTextureDescriptor.js +99 -0
- package/src/renderers/webgpu/descriptors/GPUTextureViewDescriptor.js +108 -0
- package/src/renderers/webgpu/nodes/StandardNodeLibrary.js +0 -1
- package/src/renderers/webgpu/nodes/WGSLNodeBuilder.js +526 -93
- package/src/renderers/webgpu/nodes/WGSLNodeFunction.js +1 -1
- package/src/renderers/webgpu/utils/WebGPUAttributeUtils.js +194 -61
- package/src/renderers/webgpu/utils/WebGPUBindingUtils.js +395 -234
- package/src/renderers/webgpu/utils/WebGPUCapabilities.js +48 -0
- package/src/renderers/webgpu/utils/WebGPUConstants.js +10 -0
- package/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +224 -91
- package/src/renderers/webgpu/utils/WebGPUTexturePassUtils.js +228 -213
- package/src/renderers/webgpu/utils/WebGPUTextureUtils.js +428 -175
- package/src/renderers/webgpu/utils/WebGPUTimestampQueryPool.js +40 -25
- package/src/renderers/webgpu/utils/WebGPUUtils.js +70 -13
- package/src/renderers/webxr/WebXRController.js +12 -0
- package/src/renderers/webxr/WebXRManager.js +4 -2
- package/src/textures/CubeDepthTexture.js +76 -0
- package/src/textures/DepthTexture.js +1 -1
- package/src/textures/ExternalTexture.js +0 -3
- package/src/textures/HTMLTexture.js +74 -0
- package/src/textures/Source.js +2 -2
- package/src/textures/Texture.js +16 -5
- package/src/utils.js +280 -3
- package/examples/fonts/LICENSE +0 -13
- package/examples/fonts/MPLUSRounded1c/MPLUSRounded1c-Regular.typeface.json.zip +0 -0
- package/examples/fonts/MPLUSRounded1c/OFL.txt +0 -91
- package/examples/fonts/README.md +0 -11
- package/examples/fonts/droid/NOTICE +0 -190
- package/examples/fonts/droid/README.txt +0 -18
- package/examples/fonts/droid/droid_sans_bold.typeface.json +0 -1
- package/examples/fonts/droid/droid_sans_mono_regular.typeface.json +0 -1
- package/examples/fonts/droid/droid_sans_regular.typeface.json +0 -1
- package/examples/fonts/droid/droid_serif_bold.typeface.json +0 -1
- package/examples/fonts/droid/droid_serif_regular.typeface.json +0 -1
- package/examples/fonts/gentilis_bold.typeface.json +0 -1
- package/examples/fonts/gentilis_regular.typeface.json +0 -1
- package/examples/fonts/helvetiker_bold.typeface.json +0 -1
- package/examples/fonts/helvetiker_regular.typeface.json +0 -1
- package/examples/fonts/optimer_bold.typeface.json +0 -1
- package/examples/fonts/optimer_regular.typeface.json +0 -1
- package/examples/fonts/ttf/README.md +0 -9
- package/examples/fonts/ttf/kenpixel.ttf +0 -0
- package/examples/jsm/libs/ammo.wasm.js +0 -822
- package/examples/jsm/libs/ammo.wasm.wasm +0 -0
- package/examples/jsm/libs/draco/draco_encoder.js +0 -33
- package/examples/jsm/libs/draco/gltf/draco_encoder.js +0 -33
- package/examples/jsm/libs/lottie_canvas.module.js +0 -14849
- package/examples/jsm/libs/opentype.module.js +0 -14506
- package/examples/jsm/libs/rhino3dm/rhino3dm.js +0 -21
- package/examples/jsm/libs/rhino3dm/rhino3dm.module.js +0 -16
- package/examples/jsm/libs/rhino3dm/rhino3dm.wasm +0 -0
- package/examples/jsm/lighting/TiledLighting.js +0 -42
- package/examples/jsm/materials/MeshGouraudMaterial.js +0 -434
- package/examples/jsm/materials/MeshPostProcessingMaterial.js +0 -167
- package/examples/jsm/shaders/GodRaysShader.js +0 -333
- package/examples/jsm/tsl/display/AnamorphicNode.js +0 -282
- package/examples/jsm/tsl/lighting/TiledLightsNode.js +0 -442
- package/src/nodes/accessors/BatchNode.js +0 -163
- package/src/nodes/accessors/InstanceNode.js +0 -244
- package/src/nodes/accessors/InstancedMeshNode.js +0 -50
- package/src/nodes/accessors/SceneNode.js +0 -145
- package/src/nodes/accessors/SkinningNode.js +0 -327
- package/src/nodes/code/ScriptableNode.js +0 -726
- package/src/nodes/code/ScriptableValueNode.js +0 -253
- package/src/nodes/display/PosterizeNode.js +0 -65
- package/src/nodes/functions/BSDF/DFGApprox.js +0 -71
- package/src/nodes/utils/RemapNode.js +0 -125
- package/src/nodes/utils/SpriteSheetUVNode.js +0 -90
- package/src/renderers/webgl/WebGLCubeMaps.js +0 -99
- package/src/renderers/webgl/WebGLCubeUVMaps.js +0 -134
package/build/three.tsl.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright 2010-
|
|
3
|
+
* Copyright 2010-2026 Three.js Authors
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*/
|
|
6
6
|
import { TSL } from 'three/webgpu';
|
|
@@ -12,7 +12,7 @@ const BasicShadowFilter = TSL.BasicShadowFilter;
|
|
|
12
12
|
const Break = TSL.Break;
|
|
13
13
|
const Const = TSL.Const;
|
|
14
14
|
const Continue = TSL.Continue;
|
|
15
|
-
const
|
|
15
|
+
const DFGLUT = TSL.DFGLUT;
|
|
16
16
|
const D_GGX = TSL.D_GGX;
|
|
17
17
|
const Discard = TSL.Discard;
|
|
18
18
|
const EPSILON = TSL.EPSILON;
|
|
@@ -34,7 +34,6 @@ const HALF_PI = TSL.HALF_PI;
|
|
|
34
34
|
const PointShadowFilter = TSL.PointShadowFilter;
|
|
35
35
|
const Return = TSL.Return;
|
|
36
36
|
const Schlick_to_F0 = TSL.Schlick_to_F0;
|
|
37
|
-
const ScriptableNodeResources = TSL.ScriptableNodeResources;
|
|
38
37
|
const ShaderNode = TSL.ShaderNode;
|
|
39
38
|
const Stack = TSL.Stack;
|
|
40
39
|
const Switch = TSL.Switch;
|
|
@@ -46,12 +45,14 @@ const VarIntent = TSL.VarIntent;
|
|
|
46
45
|
const abs = TSL.abs;
|
|
47
46
|
const acesFilmicToneMapping = TSL.acesFilmicToneMapping;
|
|
48
47
|
const acos = TSL.acos;
|
|
48
|
+
const acosh = TSL.acosh;
|
|
49
49
|
const add = TSL.add;
|
|
50
50
|
const addMethodChaining = TSL.addMethodChaining;
|
|
51
51
|
const addNodeElement = TSL.addNodeElement;
|
|
52
52
|
const agxToneMapping = TSL.agxToneMapping;
|
|
53
53
|
const all = TSL.all;
|
|
54
54
|
const alphaT = TSL.alphaT;
|
|
55
|
+
const ambientOcclusion = TSL.ambientOcclusion;
|
|
55
56
|
const and = TSL.and;
|
|
56
57
|
const anisotropy = TSL.anisotropy;
|
|
57
58
|
const anisotropyB = TSL.anisotropyB;
|
|
@@ -59,11 +60,11 @@ const anisotropyT = TSL.anisotropyT;
|
|
|
59
60
|
const any = TSL.any;
|
|
60
61
|
const append = TSL.append;
|
|
61
62
|
const array = TSL.array;
|
|
62
|
-
const arrayBuffer = TSL.arrayBuffer;
|
|
63
63
|
const asin = TSL.asin;
|
|
64
|
+
const asinh = TSL.asinh;
|
|
64
65
|
const assign = TSL.assign;
|
|
65
66
|
const atan = TSL.atan;
|
|
66
|
-
const
|
|
67
|
+
const atanh = TSL.atanh;
|
|
67
68
|
const atomicAdd = TSL.atomicAdd;
|
|
68
69
|
const atomicAnd = TSL.atomicAnd;
|
|
69
70
|
const atomicFunc = TSL.atomicFunc;
|
|
@@ -103,8 +104,9 @@ const bool = TSL.bool;
|
|
|
103
104
|
const buffer = TSL.buffer;
|
|
104
105
|
const bufferAttribute = TSL.bufferAttribute;
|
|
105
106
|
const bumpMap = TSL.bumpMap;
|
|
106
|
-
const burn = TSL.burn;
|
|
107
107
|
const builtin = TSL.builtin;
|
|
108
|
+
const builtinAOContext = TSL.builtinAOContext;
|
|
109
|
+
const builtinShadowContext = TSL.builtinShadowContext;
|
|
108
110
|
const bvec2 = TSL.bvec2;
|
|
109
111
|
const bvec3 = TSL.bvec3;
|
|
110
112
|
const bvec4 = TSL.bvec4;
|
|
@@ -130,6 +132,7 @@ const clamp = TSL.clamp;
|
|
|
130
132
|
const clearcoat = TSL.clearcoat;
|
|
131
133
|
const clearcoatNormalView = TSL.clearcoatNormalView;
|
|
132
134
|
const clearcoatRoughness = TSL.clearcoatRoughness;
|
|
135
|
+
const clipSpace = TSL.clipSpace;
|
|
133
136
|
const code = TSL.code;
|
|
134
137
|
const color = TSL.color;
|
|
135
138
|
const colorSpaceToWorking = TSL.colorSpaceToWorking;
|
|
@@ -141,11 +144,14 @@ const context = TSL.context;
|
|
|
141
144
|
const convert = TSL.convert;
|
|
142
145
|
const convertColorSpace = TSL.convertColorSpace;
|
|
143
146
|
const convertToTexture = TSL.convertToTexture;
|
|
147
|
+
const countLeadingZeros = TSL.countLeadingZeros;
|
|
148
|
+
const countOneBits = TSL.countOneBits;
|
|
149
|
+
const countTrailingZeros = TSL.countTrailingZeros;
|
|
144
150
|
const cos = TSL.cos;
|
|
151
|
+
const cosh = TSL.cosh;
|
|
145
152
|
const cross = TSL.cross;
|
|
146
153
|
const cubeTexture = TSL.cubeTexture;
|
|
147
154
|
const cubeTextureBase = TSL.cubeTextureBase;
|
|
148
|
-
const cubeToUV = TSL.cubeToUV;
|
|
149
155
|
const dFdx = TSL.dFdx;
|
|
150
156
|
const dFdy = TSL.dFdy;
|
|
151
157
|
const dashSize = TSL.dashSize;
|
|
@@ -170,17 +176,17 @@ const directionToFaceDirection = TSL.directionToFaceDirection;
|
|
|
170
176
|
const dispersion = TSL.dispersion;
|
|
171
177
|
const distance = TSL.distance;
|
|
172
178
|
const div = TSL.div;
|
|
173
|
-
const dodge = TSL.dodge;
|
|
174
179
|
const dot = TSL.dot;
|
|
175
180
|
const drawIndex = TSL.drawIndex;
|
|
176
181
|
const dynamicBufferAttribute = TSL.dynamicBufferAttribute;
|
|
177
182
|
const element = TSL.element;
|
|
178
183
|
const emissive = TSL.emissive;
|
|
179
184
|
const equal = TSL.equal;
|
|
180
|
-
const
|
|
185
|
+
const equirectDirection = TSL.equirectDirection;
|
|
181
186
|
const equirectUV = TSL.equirectUV;
|
|
182
187
|
const exp = TSL.exp;
|
|
183
188
|
const exp2 = TSL.exp2;
|
|
189
|
+
const exponentialHeightFogFactor = TSL.exponentialHeightFogFactor;
|
|
184
190
|
const expression = TSL.expression;
|
|
185
191
|
const faceDirection = TSL.faceDirection;
|
|
186
192
|
const faceForward = TSL.faceForward;
|
|
@@ -204,6 +210,7 @@ const getDistanceAttenuation = TSL.getDistanceAttenuation;
|
|
|
204
210
|
const getGeometryRoughness = TSL.getGeometryRoughness;
|
|
205
211
|
const getNormalFromDepth = TSL.getNormalFromDepth;
|
|
206
212
|
const interleavedGradientNoise = TSL.interleavedGradientNoise;
|
|
213
|
+
const vogelDiskSample = TSL.vogelDiskSample;
|
|
207
214
|
const getParallaxCorrectNormal = TSL.getParallaxCorrectNormal;
|
|
208
215
|
const getRoughness = TSL.getRoughness;
|
|
209
216
|
const getScreenPosition = TSL.getScreenPosition;
|
|
@@ -319,7 +326,6 @@ const min = TSL.min;
|
|
|
319
326
|
const mix = TSL.mix;
|
|
320
327
|
const mixElement = TSL.mixElement;
|
|
321
328
|
const mod = TSL.mod;
|
|
322
|
-
const modInt = TSL.modInt;
|
|
323
329
|
const modelDirection = TSL.modelDirection;
|
|
324
330
|
const modelNormalMatrix = TSL.modelNormalMatrix;
|
|
325
331
|
const modelPosition = TSL.modelPosition;
|
|
@@ -377,6 +383,7 @@ const mx_worley_noise_float = TSL.mx_worley_noise_float;
|
|
|
377
383
|
const mx_worley_noise_vec2 = TSL.mx_worley_noise_vec2;
|
|
378
384
|
const mx_worley_noise_vec3 = TSL.mx_worley_noise_vec3;
|
|
379
385
|
const negate = TSL.negate;
|
|
386
|
+
const negateOnBackSide = TSL.negateOnBackSide;
|
|
380
387
|
const neutralToneMapping = TSL.neutralToneMapping;
|
|
381
388
|
const nodeArray = TSL.nodeArray;
|
|
382
389
|
const nodeImmutable = TSL.nodeImmutable;
|
|
@@ -417,8 +424,13 @@ const oscSquare = TSL.oscSquare;
|
|
|
417
424
|
const oscTriangle = TSL.oscTriangle;
|
|
418
425
|
const output = TSL.output;
|
|
419
426
|
const outputStruct = TSL.outputStruct;
|
|
420
|
-
const overlay = TSL.overlay;
|
|
421
427
|
const overloadingFn = TSL.overloadingFn;
|
|
428
|
+
const overrideNode = TSL.overrideNode;
|
|
429
|
+
const overrideNodes = TSL.overrideNodes;
|
|
430
|
+
const packHalf2x16 = TSL.packHalf2x16;
|
|
431
|
+
const packSnorm2x16 = TSL.packSnorm2x16;
|
|
432
|
+
const packUnorm2x16 = TSL.packUnorm2x16;
|
|
433
|
+
const packNormalToRGB = TSL.packNormalToRGB;
|
|
422
434
|
const parabola = TSL.parabola;
|
|
423
435
|
const parallaxDirection = TSL.parallaxDirection;
|
|
424
436
|
const parallaxUV = TSL.parallaxUV;
|
|
@@ -466,6 +478,7 @@ const remapClamp = TSL.remapClamp;
|
|
|
466
478
|
const renderGroup = TSL.renderGroup;
|
|
467
479
|
const renderOutput = TSL.renderOutput;
|
|
468
480
|
const rendererReference = TSL.rendererReference;
|
|
481
|
+
const replaceDefaultUV = TSL.replaceDefaultUV;
|
|
469
482
|
const rotate = TSL.rotate;
|
|
470
483
|
const rotateUV = TSL.rotateUV;
|
|
471
484
|
const roughness = TSL.roughness;
|
|
@@ -483,8 +496,6 @@ const screenCoordinate = TSL.screenCoordinate;
|
|
|
483
496
|
const screenDPR = TSL.screenDPR;
|
|
484
497
|
const screenSize = TSL.screenSize;
|
|
485
498
|
const screenUV = TSL.screenUV;
|
|
486
|
-
const scriptable = TSL.scriptable;
|
|
487
|
-
const scriptableValue = TSL.scriptableValue;
|
|
488
499
|
const select = TSL.select;
|
|
489
500
|
const setCurrentStack = TSL.setCurrentStack;
|
|
490
501
|
const setName = TSL.setName;
|
|
@@ -500,6 +511,7 @@ const shiftRight = TSL.shiftRight;
|
|
|
500
511
|
const shininess = TSL.shininess;
|
|
501
512
|
const sign = TSL.sign;
|
|
502
513
|
const sin = TSL.sin;
|
|
514
|
+
const sinh = TSL.sinh;
|
|
503
515
|
const sinc = TSL.sinc;
|
|
504
516
|
const skinning = TSL.skinning;
|
|
505
517
|
const smoothstep = TSL.smoothstep;
|
|
@@ -515,9 +527,8 @@ const step = TSL.step;
|
|
|
515
527
|
const stepElement = TSL.stepElement;
|
|
516
528
|
const storage = TSL.storage;
|
|
517
529
|
const storageBarrier = TSL.storageBarrier;
|
|
518
|
-
const storageObject = TSL.storageObject;
|
|
519
530
|
const storageTexture = TSL.storageTexture;
|
|
520
|
-
const
|
|
531
|
+
const storageTexture3D = TSL.storageTexture3D;
|
|
521
532
|
const struct = TSL.struct;
|
|
522
533
|
const sub = TSL.sub;
|
|
523
534
|
const subgroupAdd = TSL.subgroupAdd;
|
|
@@ -545,6 +556,7 @@ const subgroupShuffleXor = TSL.subgroupShuffleXor;
|
|
|
545
556
|
const subgroupSize = TSL.subgroupSize;
|
|
546
557
|
const subgroupXor = TSL.subgroupXor;
|
|
547
558
|
const tan = TSL.tan;
|
|
559
|
+
const tanh = TSL.tanh;
|
|
548
560
|
const tangentGeometry = TSL.tangentGeometry;
|
|
549
561
|
const tangentLocal = TSL.tangentLocal;
|
|
550
562
|
const tangentView = TSL.tangentView;
|
|
@@ -566,6 +578,8 @@ const toneMappingExposure = TSL.toneMappingExposure;
|
|
|
566
578
|
const toonOutlinePass = TSL.toonOutlinePass;
|
|
567
579
|
const transformDirection = TSL.transformDirection;
|
|
568
580
|
const transformNormal = TSL.transformNormal;
|
|
581
|
+
const transformNormalByInverseViewMatrix = TSL.transformNormalByInverseViewMatrix;
|
|
582
|
+
const transformNormalByViewMatrix = TSL.transformNormalByViewMatrix;
|
|
569
583
|
const transformNormalToView = TSL.transformNormalToView;
|
|
570
584
|
const transformedClearcoatNormalView = TSL.transformedClearcoatNormalView;
|
|
571
585
|
const transformedNormalView = TSL.transformedNormalView;
|
|
@@ -584,6 +598,10 @@ const uniformCubeTexture = TSL.uniformCubeTexture;
|
|
|
584
598
|
const uniformGroup = TSL.uniformGroup;
|
|
585
599
|
const uniformFlow = TSL.uniformFlow;
|
|
586
600
|
const uniformTexture = TSL.uniformTexture;
|
|
601
|
+
const unpackHalf2x16 = TSL.unpackHalf2x16;
|
|
602
|
+
const unpackSnorm2x16 = TSL.unpackSnorm2x16;
|
|
603
|
+
const unpackUnorm2x16 = TSL.unpackUnorm2x16;
|
|
604
|
+
const unpackRGBToNormal = TSL.unpackRGBToNormal;
|
|
587
605
|
const unpremultiplyAlpha = TSL.unpremultiplyAlpha;
|
|
588
606
|
const userData = TSL.userData;
|
|
589
607
|
const uv = TSL.uv;
|
|
@@ -604,11 +622,14 @@ const vibrance = TSL.vibrance;
|
|
|
604
622
|
const viewZToLogarithmicDepth = TSL.viewZToLogarithmicDepth;
|
|
605
623
|
const viewZToOrthographicDepth = TSL.viewZToOrthographicDepth;
|
|
606
624
|
const viewZToPerspectiveDepth = TSL.viewZToPerspectiveDepth;
|
|
625
|
+
const viewZToReversedOrthographicDepth = TSL.viewZToReversedOrthographicDepth;
|
|
626
|
+
const viewZToReversedPerspectiveDepth = TSL.viewZToReversedPerspectiveDepth;
|
|
607
627
|
const viewport = TSL.viewport;
|
|
608
628
|
const viewportCoordinate = TSL.viewportCoordinate;
|
|
609
629
|
const viewportDepthTexture = TSL.viewportDepthTexture;
|
|
610
630
|
const viewportLinearDepth = TSL.viewportLinearDepth;
|
|
611
631
|
const viewportMipTexture = TSL.viewportMipTexture;
|
|
632
|
+
const viewportOpaqueMipTexture = TSL.viewportOpaqueMipTexture;
|
|
612
633
|
const viewportResolution = TSL.viewportResolution;
|
|
613
634
|
const viewportSafeUV = TSL.viewportSafeUV;
|
|
614
635
|
const viewportSharedTexture = TSL.viewportSharedTexture;
|
|
@@ -637,4 +658,4 @@ for ( const key of Object.keys( THREE.TSL ) ) {
|
|
|
637
658
|
log( code );
|
|
638
659
|
//*/
|
|
639
660
|
|
|
640
|
-
export { BRDF_GGX, BRDF_Lambert, BasicPointShadowFilter, BasicShadowFilter, Break, Const, Continue,
|
|
661
|
+
export { BRDF_GGX, BRDF_Lambert, BasicPointShadowFilter, BasicShadowFilter, Break, Const, Continue, DFGLUT, D_GGX, Discard, EPSILON, F_Schlick, Fn, HALF_PI, INFINITY, If, Loop, NodeAccess, NodeShaderStage, NodeType, NodeUpdateType, OnBeforeMaterialUpdate, OnBeforeObjectUpdate, OnMaterialUpdate, OnObjectUpdate, PCFShadowFilter, PCFSoftShadowFilter, PI, PI2, PointShadowFilter, Return, Schlick_to_F0, ShaderNode, Stack, Switch, TBNViewMatrix, TWO_PI, VSMShadowFilter, V_GGX_SmithCorrelated, Var, VarIntent, abs, acesFilmicToneMapping, acos, acosh, add, addMethodChaining, addNodeElement, agxToneMapping, all, alphaT, ambientOcclusion, and, anisotropy, anisotropyB, anisotropyT, any, append, array, asin, asinh, assign, atan, atanh, atomicAdd, atomicAnd, atomicFunc, atomicLoad, atomicMax, atomicMin, atomicOr, atomicStore, atomicSub, atomicXor, attenuationColor, attenuationDistance, attribute, attributeArray, backgroundBlurriness, backgroundIntensity, backgroundRotation, batch, bentNormalView, billboarding, bitAnd, bitNot, bitOr, bitXor, bitangentGeometry, bitangentLocal, bitangentView, bitangentWorld, bitcast, blendBurn, blendColor, blendDodge, blendOverlay, blendScreen, blur, bool, buffer, bufferAttribute, builtin, builtinAOContext, builtinShadowContext, bumpMap, bvec2, bvec3, bvec4, bypass, cache, call, cameraFar, cameraIndex, cameraNear, cameraNormalMatrix, cameraPosition, cameraProjectionMatrix, cameraProjectionMatrixInverse, cameraViewMatrix, cameraViewport, cameraWorldMatrix, cbrt, cdl, ceil, checker, cineonToneMapping, clamp, clearcoat, clearcoatNormalView, clearcoatRoughness, clipSpace, code, color, colorSpaceToWorking, colorToDirection, compute, computeKernel, computeSkinning, context, convert, convertColorSpace, convertToTexture, cos, cosh, countLeadingZeros, countOneBits, countTrailingZeros, cross, cubeTexture, cubeTextureBase, dFdx, dFdy, dashSize, debug, decrement, decrementBefore, defaultBuildStages, defaultShaderStages, defined, degrees, deltaTime, densityFog, densityFogFactor, depth, depthPass, determinant, difference, diffuseColor, directPointLight, directionToColor, directionToFaceDirection, dispersion, distance, div, dot, drawIndex, dynamicBufferAttribute, element, emissive, equal, equirectDirection, equirectUV, exp, exp2, exponentialHeightFogFactor, expression, faceDirection, faceForward, faceforward, float, floatBitsToInt, floatBitsToUint, floor, fog, fract, frameGroup, frameId, frontFacing, fwidth, gain, gapSize, getConstNodeType, getCurrentStack, getDirection, getDistanceAttenuation, getGeometryRoughness, getNormalFromDepth, getParallaxCorrectNormal, getRoughness, getScreenPosition, getShIrradianceAt, getShadowMaterial, getShadowRenderObjectFunction, getTextureIndex, getViewPosition, globalId, glsl, glslFn, grayscale, greaterThan, greaterThanEqual, hash, highpModelNormalViewMatrix, highpModelViewMatrix, hue, increment, incrementBefore, instance, instanceIndex, instancedArray, instancedBufferAttribute, instancedDynamicBufferAttribute, instancedMesh, int, intBitsToFloat, interleavedGradientNoise, inverse, inverseSqrt, inversesqrt, invocationLocalIndex, invocationSubgroupIndex, ior, iridescence, iridescenceIOR, iridescenceThickness, ivec2, ivec3, ivec4, js, label, length, lengthSq, lessThan, lessThanEqual, lightPosition, lightProjectionUV, lightShadowMatrix, lightTargetDirection, lightTargetPosition, lightViewPosition, lightingContext, lights, linearDepth, linearToneMapping, localId, log, log2, logarithmicDepthToViewZ, luminance, mat2, mat3, mat4, matcapUV, materialAO, materialAlphaTest, materialAnisotropy, materialAnisotropyVector, materialAttenuationColor, materialAttenuationDistance, materialClearcoat, materialClearcoatNormal, materialClearcoatRoughness, materialColor, materialDispersion, materialEmissive, materialEnvIntensity, materialEnvRotation, materialIOR, materialIridescence, materialIridescenceIOR, materialIridescenceThickness, materialLightMap, materialLineDashOffset, materialLineDashSize, materialLineGapSize, materialLineScale, materialLineWidth, materialMetalness, materialNormal, materialOpacity, materialPointSize, materialReference, materialReflectivity, materialRefractionRatio, materialRotation, materialRoughness, materialSheen, materialSheenRoughness, materialShininess, materialSpecular, materialSpecularColor, materialSpecularIntensity, materialSpecularStrength, materialThickness, materialTransmission, max, maxMipLevel, mediumpModelViewMatrix, metalness, min, mix, mixElement, mod, modelDirection, modelNormalMatrix, modelPosition, modelRadius, modelScale, modelViewMatrix, modelViewPosition, modelViewProjection, modelWorldMatrix, modelWorldMatrixInverse, morphReference, mrt, mul, mx_aastep, mx_add, mx_atan2, mx_cell_noise_float, mx_contrast, mx_divide, mx_fractal_noise_float, mx_fractal_noise_vec2, mx_fractal_noise_vec3, mx_fractal_noise_vec4, mx_frame, mx_heighttonormal, mx_hsvtorgb, mx_ifequal, mx_ifgreater, mx_ifgreatereq, mx_invert, mx_modulo, mx_multiply, mx_noise_float, mx_noise_vec3, mx_noise_vec4, mx_place2d, mx_power, mx_ramp4, mx_ramplr, mx_ramptb, mx_rgbtohsv, mx_rotate2d, mx_rotate3d, mx_safepower, mx_separate, mx_splitlr, mx_splittb, mx_srgb_texture_to_lin_rec709, mx_subtract, mx_timer, mx_transform_uv, mx_unifiednoise2d, mx_unifiednoise3d, mx_worley_noise_float, mx_worley_noise_vec2, mx_worley_noise_vec3, negate, negateOnBackSide, neutralToneMapping, nodeArray, nodeImmutable, nodeObject, nodeObjectIntent, nodeObjects, nodeProxy, nodeProxyIntent, normalFlat, normalGeometry, normalLocal, normalMap, normalView, normalViewGeometry, normalWorld, normalWorldGeometry, normalize, not, notEqual, numWorkgroups, objectDirection, objectGroup, objectPosition, objectRadius, objectScale, objectViewPosition, objectWorldMatrix, oneMinus, or, orthographicDepthToViewZ, oscSawtooth, oscSine, oscSquare, oscTriangle, output, outputStruct, overloadingFn, overrideNode, overrideNodes, packHalf2x16, packNormalToRGB, packSnorm2x16, packUnorm2x16, parabola, parallaxDirection, parallaxUV, parameter, pass, passTexture, pcurve, perspectiveDepthToViewZ, pmremTexture, pointShadow, pointUV, pointWidth, positionGeometry, positionLocal, positionPrevious, positionView, positionViewDirection, positionWorld, positionWorldDirection, posterize, pow, pow2, pow3, pow4, premultiplyAlpha, property, radians, rand, range, rangeFog, rangeFogFactor, reciprocal, reference, referenceBuffer, reflect, reflectVector, reflectView, reflector, refract, refractVector, refractView, reinhardToneMapping, remap, remapClamp, renderGroup, renderOutput, rendererReference, replaceDefaultUV, rotate, rotateUV, roughness, round, rtt, sRGBTransferEOTF, sRGBTransferOETF, sample, sampler, samplerComparison, saturate, saturation, screen, screenCoordinate, screenDPR, screenSize, screenUV, select, setCurrentStack, setName, shaderStages, shadow, shadowPositionWorld, shapeCircle, sharedUniformGroup, sheen, sheenRoughness, shiftLeft, shiftRight, shininess, sign, sin, sinc, sinh, skinning, smoothstep, smoothstepElement, specularColor, specularF90, spherizeUV, split, spritesheetUV, sqrt, stack, step, stepElement, storage, storageBarrier, storageTexture, storageTexture3D, struct, sub, subBuild, subgroupAdd, subgroupAll, subgroupAnd, subgroupAny, subgroupBallot, subgroupBroadcast, subgroupBroadcastFirst, subgroupElect, subgroupExclusiveAdd, subgroupExclusiveMul, subgroupInclusiveAdd, subgroupInclusiveMul, subgroupIndex, subgroupMax, subgroupMin, subgroupMul, subgroupOr, subgroupShuffle, subgroupShuffleDown, subgroupShuffleUp, subgroupShuffleXor, subgroupSize, subgroupXor, tan, tangentGeometry, tangentLocal, tangentView, tangentWorld, tanh, texture, texture3D, textureBarrier, textureBicubic, textureBicubicLevel, textureCubeUV, textureLevel, textureLoad, textureSize, textureStore, thickness, time, toneMapping, toneMappingExposure, toonOutlinePass, transformDirection, transformNormal, transformNormalByInverseViewMatrix, transformNormalByViewMatrix, transformNormalToView, transformedClearcoatNormalView, transformedNormalView, transformedNormalWorld, transmission, transpose, triNoise3D, triplanarTexture, triplanarTextures, trunc, uint, uintBitsToFloat, uniform, uniformArray, uniformCubeTexture, uniformFlow, uniformGroup, uniformTexture, unpackHalf2x16, unpackRGBToNormal, unpackSnorm2x16, unpackUnorm2x16, unpremultiplyAlpha, userData, uv, uvec2, uvec3, uvec4, varying, varyingProperty, vec2, vec3, vec4, vectorComponents, velocity, vertexColor, vertexIndex, vertexStage, vibrance, viewZToLogarithmicDepth, viewZToOrthographicDepth, viewZToPerspectiveDepth, viewZToReversedOrthographicDepth, viewZToReversedPerspectiveDepth, viewport, viewportCoordinate, viewportDepthTexture, viewportLinearDepth, viewportMipTexture, viewportOpaqueMipTexture, viewportResolution, viewportSafeUV, viewportSharedTexture, viewportSize, viewportTexture, viewportUV, vogelDiskSample, wgsl, wgslFn, workgroupArray, workgroupBarrier, workgroupId, workingToColorSpace, xor };
|
package/build/three.tsl.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright 2010-
|
|
3
|
+
* Copyright 2010-2026 Three.js Authors
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*/
|
|
6
|
-
import{TSL as e}from"three/webgpu";const t=e.BRDF_GGX,r=e.BRDF_Lambert,a=e.BasicPointShadowFilter,o=e.BasicShadowFilter,i=e.Break,n=e.Const,l=e.Continue,s=e.DFGApprox,c=e.D_GGX,m=e.Discard,u=e.EPSILON,p=e.F_Schlick,d=e.Fn,g=e.INFINITY,h=e.If,x=e.Loop,b=e.NodeAccess,f=e.NodeShaderStage,v=e.NodeType,w=e.NodeUpdateType,_=e.PCFShadowFilter,S=e.PCFSoftShadowFilter,T=e.PI,y=e.PI2,V=e.TWO_PI,M=e.HALF_PI,F=e.PointShadowFilter,I=e.Return,D=e.Schlick_to_F0,B=e.ScriptableNodeResources,P=e.ShaderNode,C=e.Stack,A=e.Switch,N=e.TBNViewMatrix,R=e.VSMShadowFilter,O=e.V_GGX_SmithCorrelated,L=e.Var,k=e.VarIntent,G=e.abs,U=e.acesFilmicToneMapping,j=e.acos,E=e.add,W=e.addMethodChaining,q=e.addNodeElement,z=e.agxToneMapping,X=e.all,Z=e.alphaT,H=e.and,K=e.anisotropy,Y=e.anisotropyB,J=e.anisotropyT,Q=e.any,$=e.append,ee=e.array,te=e.arrayBuffer,re=e.asin,ae=e.assign,oe=e.atan,ie=e.atan2,ne=e.atomicAdd,le=e.atomicAnd,se=e.atomicFunc,ce=e.atomicLoad,me=e.atomicMax,ue=e.atomicMin,pe=e.atomicOr,de=e.atomicStore,ge=e.atomicSub,he=e.atomicXor,xe=e.attenuationColor,be=e.attenuationDistance,fe=e.attribute,ve=e.attributeArray,we=e.backgroundBlurriness,_e=e.backgroundIntensity,Se=e.backgroundRotation,Te=e.batch,ye=e.bentNormalView,Ve=e.billboarding,Me=e.bitAnd,Fe=e.bitNot,Ie=e.bitOr,De=e.bitXor,Be=e.bitangentGeometry,Pe=e.bitangentLocal,Ce=e.bitangentView,Ae=e.bitangentWorld,Ne=e.bitcast,Re=e.blendBurn,Oe=e.blendColor,Le=e.blendDodge,ke=e.blendOverlay,Ge=e.blendScreen,Ue=e.blur,je=e.bool,Ee=e.buffer,We=e.bufferAttribute,qe=e.bumpMap,ze=e.burn,Xe=e.builtin,Ze=e.bvec2,He=e.bvec3,Ke=e.bvec4,Ye=e.bypass,Je=e.cache,Qe=e.call,$e=e.cameraFar,et=e.cameraIndex,tt=e.cameraNear,rt=e.cameraNormalMatrix,at=e.cameraPosition,ot=e.cameraProjectionMatrix,it=e.cameraProjectionMatrixInverse,nt=e.cameraViewMatrix,lt=e.cameraViewport,st=e.cameraWorldMatrix,ct=e.cbrt,mt=e.cdl,ut=e.ceil,pt=e.checker,dt=e.cineonToneMapping,gt=e.clamp,ht=e.clearcoat,xt=e.clearcoatNormalView,bt=e.clearcoatRoughness,ft=e.code,vt=e.color,wt=e.colorSpaceToWorking,_t=e.colorToDirection,St=e.compute,Tt=e.computeKernel,yt=e.computeSkinning,Vt=e.context,Mt=e.convert,Ft=e.convertColorSpace,It=e.convertToTexture,Dt=e.cos,Bt=e.cross,Pt=e.cubeTexture,Ct=e.cubeTextureBase,At=e.cubeToUV,Nt=e.dFdx,Rt=e.dFdy,Ot=e.dashSize,Lt=e.debug,kt=e.decrement,Gt=e.decrementBefore,Ut=e.defaultBuildStages,jt=e.defaultShaderStages,Et=e.defined,Wt=e.degrees,qt=e.deltaTime,zt=e.densityFog,Xt=e.densityFogFactor,Zt=e.depth,Ht=e.depthPass,Kt=e.determinant,Yt=e.difference,Jt=e.diffuseColor,Qt=e.directPointLight,$t=e.directionToColor,er=e.directionToFaceDirection,tr=e.dispersion,rr=e.distance,ar=e.div,or=e.dodge,ir=e.dot,nr=e.drawIndex,lr=e.dynamicBufferAttribute,sr=e.element,cr=e.emissive,mr=e.equal,ur=e.equals,pr=e.equirectUV,dr=e.exp,gr=e.exp2,hr=e.expression,xr=e.faceDirection,br=e.faceForward,fr=e.faceforward,vr=e.float,wr=e.floatBitsToInt,_r=e.floatBitsToUint,Sr=e.floor,Tr=e.fog,yr=e.fract,Vr=e.frameGroup,Mr=e.frameId,Fr=e.frontFacing,Ir=e.fwidth,Dr=e.gain,Br=e.gapSize,Pr=e.getConstNodeType,Cr=e.getCurrentStack,Ar=e.getDirection,Nr=e.getDistanceAttenuation,Rr=e.getGeometryRoughness,Or=e.getNormalFromDepth,Lr=e.interleavedGradientNoise,kr=e.getParallaxCorrectNormal,Gr=e.getRoughness,Ur=e.getScreenPosition,jr=e.getShIrradianceAt,Er=e.getShadowMaterial,Wr=e.getShadowRenderObjectFunction,qr=e.getTextureIndex,zr=e.getViewPosition,Xr=e.globalId,Zr=e.glsl,Hr=e.glslFn,Kr=e.grayscale,Yr=e.greaterThan,Jr=e.greaterThanEqual,Qr=e.hash,$r=e.highpModelNormalViewMatrix,ea=e.highpModelViewMatrix,ta=e.hue,ra=e.increment,aa=e.incrementBefore,oa=e.instance,ia=e.instanceIndex,na=e.instancedArray,la=e.instancedBufferAttribute,sa=e.instancedDynamicBufferAttribute,ca=e.instancedMesh,ma=e.int,ua=e.intBitsToFloat,pa=e.inverse,da=e.inverseSqrt,ga=e.inversesqrt,ha=e.invocationLocalIndex,xa=e.invocationSubgroupIndex,ba=e.ior,fa=e.iridescence,va=e.iridescenceIOR,wa=e.iridescenceThickness,_a=e.ivec2,Sa=e.ivec3,Ta=e.ivec4,ya=e.js,Va=e.label,Ma=e.length,Fa=e.lengthSq,Ia=e.lessThan,Da=e.lessThanEqual,Ba=e.lightPosition,Pa=e.lightProjectionUV,Ca=e.lightShadowMatrix,Aa=e.lightTargetDirection,Na=e.lightTargetPosition,Ra=e.lightViewPosition,Oa=e.lightingContext,La=e.lights,ka=e.linearDepth,Ga=e.linearToneMapping,Ua=e.localId,ja=e.log,Ea=e.log2,Wa=e.logarithmicDepthToViewZ,qa=e.luminance,za=e.mat2,Xa=e.mat3,Za=e.mat4,Ha=e.matcapUV,Ka=e.materialAO,Ya=e.materialAlphaTest,Ja=e.materialAnisotropy,Qa=e.materialAnisotropyVector,$a=e.materialAttenuationColor,eo=e.materialAttenuationDistance,to=e.materialClearcoat,ro=e.materialClearcoatNormal,ao=e.materialClearcoatRoughness,oo=e.materialColor,io=e.materialDispersion,no=e.materialEmissive,lo=e.materialEnvIntensity,so=e.materialEnvRotation,co=e.materialIOR,mo=e.materialIridescence,uo=e.materialIridescenceIOR,po=e.materialIridescenceThickness,go=e.materialLightMap,ho=e.materialLineDashOffset,xo=e.materialLineDashSize,bo=e.materialLineGapSize,fo=e.materialLineScale,vo=e.materialLineWidth,wo=e.materialMetalness,_o=e.materialNormal,So=e.materialOpacity,To=e.materialPointSize,yo=e.materialReference,Vo=e.materialReflectivity,Mo=e.materialRefractionRatio,Fo=e.materialRotation,Io=e.materialRoughness,Do=e.materialSheen,Bo=e.materialSheenRoughness,Po=e.materialShininess,Co=e.materialSpecular,Ao=e.materialSpecularColor,No=e.materialSpecularIntensity,Ro=e.materialSpecularStrength,Oo=e.materialThickness,Lo=e.materialTransmission,ko=e.max,Go=e.maxMipLevel,Uo=e.mediumpModelViewMatrix,jo=e.metalness,Eo=e.min,Wo=e.mix,qo=e.mixElement,zo=e.mod,Xo=e.modInt,Zo=e.modelDirection,Ho=e.modelNormalMatrix,Ko=e.modelPosition,Yo=e.modelRadius,Jo=e.modelScale,Qo=e.modelViewMatrix,$o=e.modelViewPosition,ei=e.modelViewProjection,ti=e.modelWorldMatrix,ri=e.modelWorldMatrixInverse,ai=e.morphReference,oi=e.mrt,ii=e.mul,ni=e.mx_aastep,li=e.mx_add,si=e.mx_atan2,ci=e.mx_cell_noise_float,mi=e.mx_contrast,ui=e.mx_divide,pi=e.mx_fractal_noise_float,di=e.mx_fractal_noise_vec2,gi=e.mx_fractal_noise_vec3,hi=e.mx_fractal_noise_vec4,xi=e.mx_frame,bi=e.mx_heighttonormal,fi=e.mx_hsvtorgb,vi=e.mx_ifequal,wi=e.mx_ifgreater,_i=e.mx_ifgreatereq,Si=e.mx_invert,Ti=e.mx_modulo,yi=e.mx_multiply,Vi=e.mx_noise_float,Mi=e.mx_noise_vec3,Fi=e.mx_noise_vec4,Ii=e.mx_place2d,Di=e.mx_power,Bi=e.mx_ramp4,Pi=e.mx_ramplr,Ci=e.mx_ramptb,Ai=e.mx_rgbtohsv,Ni=e.mx_rotate2d,Ri=e.mx_rotate3d,Oi=e.mx_safepower,Li=e.mx_separate,ki=e.mx_splitlr,Gi=e.mx_splittb,Ui=e.mx_srgb_texture_to_lin_rec709,ji=e.mx_subtract,Ei=e.mx_timer,Wi=e.mx_transform_uv,qi=e.mx_unifiednoise2d,zi=e.mx_unifiednoise3d,Xi=e.mx_worley_noise_float,Zi=e.mx_worley_noise_vec2,Hi=e.mx_worley_noise_vec3,Ki=e.negate,Yi=e.neutralToneMapping,Ji=e.nodeArray,Qi=e.nodeImmutable,$i=e.nodeObject,en=e.nodeObjectIntent,tn=e.nodeObjects,rn=e.nodeProxy,an=e.nodeProxyIntent,on=e.normalFlat,nn=e.normalGeometry,ln=e.normalLocal,sn=e.normalMap,cn=e.normalView,mn=e.normalViewGeometry,un=e.normalWorld,pn=e.normalWorldGeometry,dn=e.normalize,gn=e.not,hn=e.notEqual,xn=e.numWorkgroups,bn=e.objectDirection,fn=e.objectGroup,vn=e.objectPosition,wn=e.objectRadius,_n=e.objectScale,Sn=e.objectViewPosition,Tn=e.objectWorldMatrix,yn=e.OnBeforeObjectUpdate,Vn=e.OnBeforeMaterialUpdate,Mn=e.OnObjectUpdate,Fn=e.OnMaterialUpdate,In=e.oneMinus,Dn=e.or,Bn=e.orthographicDepthToViewZ,Pn=e.oscSawtooth,Cn=e.oscSine,An=e.oscSquare,Nn=e.oscTriangle,Rn=e.output,On=e.outputStruct,Ln=e.overlay,kn=e.overloadingFn,Gn=e.parabola,Un=e.parallaxDirection,jn=e.parallaxUV,En=e.parameter,Wn=e.pass,qn=e.passTexture,zn=e.pcurve,Xn=e.perspectiveDepthToViewZ,Zn=e.pmremTexture,Hn=e.pointShadow,Kn=e.pointUV,Yn=e.pointWidth,Jn=e.positionGeometry,Qn=e.positionLocal,$n=e.positionPrevious,el=e.positionView,tl=e.positionViewDirection,rl=e.positionWorld,al=e.positionWorldDirection,ol=e.posterize,il=e.pow,nl=e.pow2,ll=e.pow3,sl=e.pow4,cl=e.premultiplyAlpha,ml=e.property,ul=e.radians,pl=e.rand,dl=e.range,gl=e.rangeFog,hl=e.rangeFogFactor,xl=e.reciprocal,bl=e.reference,fl=e.referenceBuffer,vl=e.reflect,wl=e.reflectVector,_l=e.reflectView,Sl=e.reflector,Tl=e.refract,yl=e.refractVector,Vl=e.refractView,Ml=e.reinhardToneMapping,Fl=e.remap,Il=e.remapClamp,Dl=e.renderGroup,Bl=e.renderOutput,Pl=e.rendererReference,Cl=e.rotate,Al=e.rotateUV,Nl=e.roughness,Rl=e.round,Ol=e.rtt,Ll=e.sRGBTransferEOTF,kl=e.sRGBTransferOETF,Gl=e.sample,Ul=e.sampler,jl=e.samplerComparison,El=e.saturate,Wl=e.saturation,ql=e.screen,zl=e.screenCoordinate,Xl=e.screenDPR,Zl=e.screenSize,Hl=e.screenUV,Kl=e.scriptable,Yl=e.scriptableValue,Jl=e.select,Ql=e.setCurrentStack,$l=e.setName,es=e.shaderStages,ts=e.shadow,rs=e.shadowPositionWorld,as=e.shapeCircle,os=e.sharedUniformGroup,is=e.sheen,ns=e.sheenRoughness,ls=e.shiftLeft,ss=e.shiftRight,cs=e.shininess,ms=e.sign,us=e.sin,ps=e.sinc,ds=e.skinning,gs=e.smoothstep,hs=e.smoothstepElement,xs=e.specularColor,bs=e.specularF90,fs=e.spherizeUV,vs=e.split,ws=e.spritesheetUV,_s=e.sqrt,Ss=e.stack,Ts=e.step,ys=e.stepElement,Vs=e.storage,Ms=e.storageBarrier,Fs=e.storageObject,Is=e.storageTexture,Ds=e.string,Bs=e.struct,Ps=e.sub,Cs=e.subgroupAdd,As=e.subgroupAll,Ns=e.subgroupAnd,Rs=e.subgroupAny,Os=e.subgroupBallot,Ls=e.subgroupBroadcast,ks=e.subgroupBroadcastFirst,Gs=e.subBuild,Us=e.subgroupElect,js=e.subgroupExclusiveAdd,Es=e.subgroupExclusiveMul,Ws=e.subgroupInclusiveAdd,qs=e.subgroupInclusiveMul,zs=e.subgroupIndex,Xs=e.subgroupMax,Zs=e.subgroupMin,Hs=e.subgroupMul,Ks=e.subgroupOr,Ys=e.subgroupShuffle,Js=e.subgroupShuffleDown,Qs=e.subgroupShuffleUp,$s=e.subgroupShuffleXor,ec=e.subgroupSize,tc=e.subgroupXor,rc=e.tan,ac=e.tangentGeometry,oc=e.tangentLocal,ic=e.tangentView,nc=e.tangentWorld,lc=e.texture,sc=e.texture3D,cc=e.textureBarrier,mc=e.textureBicubic,uc=e.textureBicubicLevel,pc=e.textureCubeUV,dc=e.textureLoad,gc=e.textureSize,hc=e.textureLevel,xc=e.textureStore,bc=e.thickness,fc=e.time,vc=e.toneMapping,wc=e.toneMappingExposure,_c=e.toonOutlinePass,Sc=e.transformDirection,Tc=e.transformNormal,yc=e.transformNormalToView,Vc=e.transformedClearcoatNormalView,Mc=e.transformedNormalView,Fc=e.transformedNormalWorld,Ic=e.transmission,Dc=e.transpose,Bc=e.triNoise3D,Pc=e.triplanarTexture,Cc=e.triplanarTextures,Ac=e.trunc,Nc=e.uint,Rc=e.uintBitsToFloat,Oc=e.uniform,Lc=e.uniformArray,kc=e.uniformCubeTexture,Gc=e.uniformGroup,Uc=e.uniformFlow,jc=e.uniformTexture,Ec=e.unpremultiplyAlpha,Wc=e.userData,qc=e.uv,zc=e.uvec2,Xc=e.uvec3,Zc=e.uvec4,Hc=e.varying,Kc=e.varyingProperty,Yc=e.vec2,Jc=e.vec3,Qc=e.vec4,$c=e.vectorComponents,em=e.velocity,tm=e.vertexColor,rm=e.vertexIndex,am=e.vertexStage,om=e.vibrance,im=e.viewZToLogarithmicDepth,nm=e.viewZToOrthographicDepth,lm=e.viewZToPerspectiveDepth,sm=e.viewport,cm=e.viewportCoordinate,mm=e.viewportDepthTexture,um=e.viewportLinearDepth,pm=e.viewportMipTexture,dm=e.viewportResolution,gm=e.viewportSafeUV,hm=e.viewportSharedTexture,xm=e.viewportSize,bm=e.viewportTexture,fm=e.viewportUV,vm=e.wgsl,wm=e.wgslFn,_m=e.workgroupArray,Sm=e.workgroupBarrier,Tm=e.workgroupId,ym=e.workingToColorSpace,Vm=e.xor;export{t as BRDF_GGX,r as BRDF_Lambert,a as BasicPointShadowFilter,o as BasicShadowFilter,i as Break,n as Const,l as Continue,s as DFGApprox,c as D_GGX,m as Discard,u as EPSILON,p as F_Schlick,d as Fn,M as HALF_PI,g as INFINITY,h as If,x as Loop,b as NodeAccess,f as NodeShaderStage,v as NodeType,w as NodeUpdateType,Vn as OnBeforeMaterialUpdate,yn as OnBeforeObjectUpdate,Fn as OnMaterialUpdate,Mn as OnObjectUpdate,_ as PCFShadowFilter,S as PCFSoftShadowFilter,T as PI,y as PI2,F as PointShadowFilter,I as Return,D as Schlick_to_F0,B as ScriptableNodeResources,P as ShaderNode,C as Stack,A as Switch,N as TBNViewMatrix,V as TWO_PI,R as VSMShadowFilter,O as V_GGX_SmithCorrelated,L as Var,k as VarIntent,G as abs,U as acesFilmicToneMapping,j as acos,E as add,W as addMethodChaining,q as addNodeElement,z as agxToneMapping,X as all,Z as alphaT,H as and,K as anisotropy,Y as anisotropyB,J as anisotropyT,Q as any,$ as append,ee as array,te as arrayBuffer,re as asin,ae as assign,oe as atan,ie as atan2,ne as atomicAdd,le as atomicAnd,se as atomicFunc,ce as atomicLoad,me as atomicMax,ue as atomicMin,pe as atomicOr,de as atomicStore,ge as atomicSub,he as atomicXor,xe as attenuationColor,be as attenuationDistance,fe as attribute,ve as attributeArray,we as backgroundBlurriness,_e as backgroundIntensity,Se as backgroundRotation,Te as batch,ye as bentNormalView,Ve as billboarding,Me as bitAnd,Fe as bitNot,Ie as bitOr,De as bitXor,Be as bitangentGeometry,Pe as bitangentLocal,Ce as bitangentView,Ae as bitangentWorld,Ne as bitcast,Re as blendBurn,Oe as blendColor,Le as blendDodge,ke as blendOverlay,Ge as blendScreen,Ue as blur,je as bool,Ee as buffer,We as bufferAttribute,Xe as builtin,qe as bumpMap,ze as burn,Ze as bvec2,He as bvec3,Ke as bvec4,Ye as bypass,Je as cache,Qe as call,$e as cameraFar,et as cameraIndex,tt as cameraNear,rt as cameraNormalMatrix,at as cameraPosition,ot as cameraProjectionMatrix,it as cameraProjectionMatrixInverse,nt as cameraViewMatrix,lt as cameraViewport,st as cameraWorldMatrix,ct as cbrt,mt as cdl,ut as ceil,pt as checker,dt as cineonToneMapping,gt as clamp,ht as clearcoat,xt as clearcoatNormalView,bt as clearcoatRoughness,ft as code,vt as color,wt as colorSpaceToWorking,_t as colorToDirection,St as compute,Tt as computeKernel,yt as computeSkinning,Vt as context,Mt as convert,Ft as convertColorSpace,It as convertToTexture,Dt as cos,Bt as cross,Pt as cubeTexture,Ct as cubeTextureBase,At as cubeToUV,Nt as dFdx,Rt as dFdy,Ot as dashSize,Lt as debug,kt as decrement,Gt as decrementBefore,Ut as defaultBuildStages,jt as defaultShaderStages,Et as defined,Wt as degrees,qt as deltaTime,zt as densityFog,Xt as densityFogFactor,Zt as depth,Ht as depthPass,Kt as determinant,Yt as difference,Jt as diffuseColor,Qt as directPointLight,$t as directionToColor,er as directionToFaceDirection,tr as dispersion,rr as distance,ar as div,or as dodge,ir as dot,nr as drawIndex,lr as dynamicBufferAttribute,sr as element,cr as emissive,mr as equal,ur as equals,pr as equirectUV,dr as exp,gr as exp2,hr as expression,xr as faceDirection,br as faceForward,fr as faceforward,vr as float,wr as floatBitsToInt,_r as floatBitsToUint,Sr as floor,Tr as fog,yr as fract,Vr as frameGroup,Mr as frameId,Fr as frontFacing,Ir as fwidth,Dr as gain,Br as gapSize,Pr as getConstNodeType,Cr as getCurrentStack,Ar as getDirection,Nr as getDistanceAttenuation,Rr as getGeometryRoughness,Or as getNormalFromDepth,kr as getParallaxCorrectNormal,Gr as getRoughness,Ur as getScreenPosition,jr as getShIrradianceAt,Er as getShadowMaterial,Wr as getShadowRenderObjectFunction,qr as getTextureIndex,zr as getViewPosition,Xr as globalId,Zr as glsl,Hr as glslFn,Kr as grayscale,Yr as greaterThan,Jr as greaterThanEqual,Qr as hash,$r as highpModelNormalViewMatrix,ea as highpModelViewMatrix,ta as hue,ra as increment,aa as incrementBefore,oa as instance,ia as instanceIndex,na as instancedArray,la as instancedBufferAttribute,sa as instancedDynamicBufferAttribute,ca as instancedMesh,ma as int,ua as intBitsToFloat,Lr as interleavedGradientNoise,pa as inverse,da as inverseSqrt,ga as inversesqrt,ha as invocationLocalIndex,xa as invocationSubgroupIndex,ba as ior,fa as iridescence,va as iridescenceIOR,wa as iridescenceThickness,_a as ivec2,Sa as ivec3,Ta as ivec4,ya as js,Va as label,Ma as length,Fa as lengthSq,Ia as lessThan,Da as lessThanEqual,Ba as lightPosition,Pa as lightProjectionUV,Ca as lightShadowMatrix,Aa as lightTargetDirection,Na as lightTargetPosition,Ra as lightViewPosition,Oa as lightingContext,La as lights,ka as linearDepth,Ga as linearToneMapping,Ua as localId,ja as log,Ea as log2,Wa as logarithmicDepthToViewZ,qa as luminance,za as mat2,Xa as mat3,Za as mat4,Ha as matcapUV,Ka as materialAO,Ya as materialAlphaTest,Ja as materialAnisotropy,Qa as materialAnisotropyVector,$a as materialAttenuationColor,eo as materialAttenuationDistance,to as materialClearcoat,ro as materialClearcoatNormal,ao as materialClearcoatRoughness,oo as materialColor,io as materialDispersion,no as materialEmissive,lo as materialEnvIntensity,so as materialEnvRotation,co as materialIOR,mo as materialIridescence,uo as materialIridescenceIOR,po as materialIridescenceThickness,go as materialLightMap,ho as materialLineDashOffset,xo as materialLineDashSize,bo as materialLineGapSize,fo as materialLineScale,vo as materialLineWidth,wo as materialMetalness,_o as materialNormal,So as materialOpacity,To as materialPointSize,yo as materialReference,Vo as materialReflectivity,Mo as materialRefractionRatio,Fo as materialRotation,Io as materialRoughness,Do as materialSheen,Bo as materialSheenRoughness,Po as materialShininess,Co as materialSpecular,Ao as materialSpecularColor,No as materialSpecularIntensity,Ro as materialSpecularStrength,Oo as materialThickness,Lo as materialTransmission,ko as max,Go as maxMipLevel,Uo as mediumpModelViewMatrix,jo as metalness,Eo as min,Wo as mix,qo as mixElement,zo as mod,Xo as modInt,Zo as modelDirection,Ho as modelNormalMatrix,Ko as modelPosition,Yo as modelRadius,Jo as modelScale,Qo as modelViewMatrix,$o as modelViewPosition,ei as modelViewProjection,ti as modelWorldMatrix,ri as modelWorldMatrixInverse,ai as morphReference,oi as mrt,ii as mul,ni as mx_aastep,li as mx_add,si as mx_atan2,ci as mx_cell_noise_float,mi as mx_contrast,ui as mx_divide,pi as mx_fractal_noise_float,di as mx_fractal_noise_vec2,gi as mx_fractal_noise_vec3,hi as mx_fractal_noise_vec4,xi as mx_frame,bi as mx_heighttonormal,fi as mx_hsvtorgb,vi as mx_ifequal,wi as mx_ifgreater,_i as mx_ifgreatereq,Si as mx_invert,Ti as mx_modulo,yi as mx_multiply,Vi as mx_noise_float,Mi as mx_noise_vec3,Fi as mx_noise_vec4,Ii as mx_place2d,Di as mx_power,Bi as mx_ramp4,Pi as mx_ramplr,Ci as mx_ramptb,Ai as mx_rgbtohsv,Ni as mx_rotate2d,Ri as mx_rotate3d,Oi as mx_safepower,Li as mx_separate,ki as mx_splitlr,Gi as mx_splittb,Ui as mx_srgb_texture_to_lin_rec709,ji as mx_subtract,Ei as mx_timer,Wi as mx_transform_uv,qi as mx_unifiednoise2d,zi as mx_unifiednoise3d,Xi as mx_worley_noise_float,Zi as mx_worley_noise_vec2,Hi as mx_worley_noise_vec3,Ki as negate,Yi as neutralToneMapping,Ji as nodeArray,Qi as nodeImmutable,$i as nodeObject,en as nodeObjectIntent,tn as nodeObjects,rn as nodeProxy,an as nodeProxyIntent,on as normalFlat,nn as normalGeometry,ln as normalLocal,sn as normalMap,cn as normalView,mn as normalViewGeometry,un as normalWorld,pn as normalWorldGeometry,dn as normalize,gn as not,hn as notEqual,xn as numWorkgroups,bn as objectDirection,fn as objectGroup,vn as objectPosition,wn as objectRadius,_n as objectScale,Sn as objectViewPosition,Tn as objectWorldMatrix,In as oneMinus,Dn as or,Bn as orthographicDepthToViewZ,Pn as oscSawtooth,Cn as oscSine,An as oscSquare,Nn as oscTriangle,Rn as output,On as outputStruct,Ln as overlay,kn as overloadingFn,Gn as parabola,Un as parallaxDirection,jn as parallaxUV,En as parameter,Wn as pass,qn as passTexture,zn as pcurve,Xn as perspectiveDepthToViewZ,Zn as pmremTexture,Hn as pointShadow,Kn as pointUV,Yn as pointWidth,Jn as positionGeometry,Qn as positionLocal,$n as positionPrevious,el as positionView,tl as positionViewDirection,rl as positionWorld,al as positionWorldDirection,ol as posterize,il as pow,nl as pow2,ll as pow3,sl as pow4,cl as premultiplyAlpha,ml as property,ul as radians,pl as rand,dl as range,gl as rangeFog,hl as rangeFogFactor,xl as reciprocal,bl as reference,fl as referenceBuffer,vl as reflect,wl as reflectVector,_l as reflectView,Sl as reflector,Tl as refract,yl as refractVector,Vl as refractView,Ml as reinhardToneMapping,Fl as remap,Il as remapClamp,Dl as renderGroup,Bl as renderOutput,Pl as rendererReference,Cl as rotate,Al as rotateUV,Nl as roughness,Rl as round,Ol as rtt,Ll as sRGBTransferEOTF,kl as sRGBTransferOETF,Gl as sample,Ul as sampler,jl as samplerComparison,El as saturate,Wl as saturation,ql as screen,zl as screenCoordinate,Xl as screenDPR,Zl as screenSize,Hl as screenUV,Kl as scriptable,Yl as scriptableValue,Jl as select,Ql as setCurrentStack,$l as setName,es as shaderStages,ts as shadow,rs as shadowPositionWorld,as as shapeCircle,os as sharedUniformGroup,is as sheen,ns as sheenRoughness,ls as shiftLeft,ss as shiftRight,cs as shininess,ms as sign,us as sin,ps as sinc,ds as skinning,gs as smoothstep,hs as smoothstepElement,xs as specularColor,bs as specularF90,fs as spherizeUV,vs as split,ws as spritesheetUV,_s as sqrt,Ss as stack,Ts as step,ys as stepElement,Vs as storage,Ms as storageBarrier,Fs as storageObject,Is as storageTexture,Ds as string,Bs as struct,Ps as sub,Gs as subBuild,Cs as subgroupAdd,As as subgroupAll,Ns as subgroupAnd,Rs as subgroupAny,Os as subgroupBallot,Ls as subgroupBroadcast,ks as subgroupBroadcastFirst,Us as subgroupElect,js as subgroupExclusiveAdd,Es as subgroupExclusiveMul,Ws as subgroupInclusiveAdd,qs as subgroupInclusiveMul,zs as subgroupIndex,Xs as subgroupMax,Zs as subgroupMin,Hs as subgroupMul,Ks as subgroupOr,Ys as subgroupShuffle,Js as subgroupShuffleDown,Qs as subgroupShuffleUp,$s as subgroupShuffleXor,ec as subgroupSize,tc as subgroupXor,rc as tan,ac as tangentGeometry,oc as tangentLocal,ic as tangentView,nc as tangentWorld,lc as texture,sc as texture3D,cc as textureBarrier,mc as textureBicubic,uc as textureBicubicLevel,pc as textureCubeUV,hc as textureLevel,dc as textureLoad,gc as textureSize,xc as textureStore,bc as thickness,fc as time,vc as toneMapping,wc as toneMappingExposure,_c as toonOutlinePass,Sc as transformDirection,Tc as transformNormal,yc as transformNormalToView,Vc as transformedClearcoatNormalView,Mc as transformedNormalView,Fc as transformedNormalWorld,Ic as transmission,Dc as transpose,Bc as triNoise3D,Pc as triplanarTexture,Cc as triplanarTextures,Ac as trunc,Nc as uint,Rc as uintBitsToFloat,Oc as uniform,Lc as uniformArray,kc as uniformCubeTexture,Uc as uniformFlow,Gc as uniformGroup,jc as uniformTexture,Ec as unpremultiplyAlpha,Wc as userData,qc as uv,zc as uvec2,Xc as uvec3,Zc as uvec4,Hc as varying,Kc as varyingProperty,Yc as vec2,Jc as vec3,Qc as vec4,$c as vectorComponents,em as velocity,tm as vertexColor,rm as vertexIndex,am as vertexStage,om as vibrance,im as viewZToLogarithmicDepth,nm as viewZToOrthographicDepth,lm as viewZToPerspectiveDepth,sm as viewport,cm as viewportCoordinate,mm as viewportDepthTexture,um as viewportLinearDepth,pm as viewportMipTexture,dm as viewportResolution,gm as viewportSafeUV,hm as viewportSharedTexture,xm as viewportSize,bm as viewportTexture,fm as viewportUV,vm as wgsl,wm as wgslFn,_m as workgroupArray,Sm as workgroupBarrier,Tm as workgroupId,ym as workingToColorSpace,Vm as xor};
|
|
6
|
+
import{TSL as e}from"three/webgpu";const t=e.BRDF_GGX,r=e.BRDF_Lambert,a=e.BasicPointShadowFilter,o=e.BasicShadowFilter,i=e.Break,n=e.Const,l=e.Continue,s=e.DFGLUT,c=e.D_GGX,m=e.Discard,u=e.EPSILON,p=e.F_Schlick,d=e.Fn,g=e.INFINITY,h=e.If,x=e.Loop,f=e.NodeAccess,b=e.NodeShaderStage,v=e.NodeType,w=e.NodeUpdateType,S=e.PCFShadowFilter,_=e.PCFSoftShadowFilter,T=e.PI,y=e.PI2,V=e.TWO_PI,M=e.HALF_PI,D=e.PointShadowFilter,F=e.Return,I=e.Schlick_to_F0,B=e.ShaderNode,C=e.Stack,N=e.Switch,P=e.TBNViewMatrix,R=e.VSMShadowFilter,k=e.V_GGX_SmithCorrelated,O=e.Var,A=e.VarIntent,L=e.abs,G=e.acesFilmicToneMapping,U=e.acos,j=e.acosh,E=e.add,W=e.addMethodChaining,q=e.addNodeElement,z=e.agxToneMapping,Z=e.all,X=e.alphaT,H=e.ambientOcclusion,K=e.and,Y=e.anisotropy,J=e.anisotropyB,Q=e.anisotropyT,$=e.any,ee=e.append,te=e.array,re=e.asin,ae=e.asinh,oe=e.assign,ie=e.atan,ne=e.atanh,le=e.atomicAdd,se=e.atomicAnd,ce=e.atomicFunc,me=e.atomicLoad,ue=e.atomicMax,pe=e.atomicMin,de=e.atomicOr,ge=e.atomicStore,he=e.atomicSub,xe=e.atomicXor,fe=e.attenuationColor,be=e.attenuationDistance,ve=e.attribute,we=e.attributeArray,Se=e.backgroundBlurriness,_e=e.backgroundIntensity,Te=e.backgroundRotation,ye=e.batch,Ve=e.bentNormalView,Me=e.billboarding,De=e.bitAnd,Fe=e.bitNot,Ie=e.bitOr,Be=e.bitXor,Ce=e.bitangentGeometry,Ne=e.bitangentLocal,Pe=e.bitangentView,Re=e.bitangentWorld,ke=e.bitcast,Oe=e.blendBurn,Ae=e.blendColor,Le=e.blendDodge,Ge=e.blendOverlay,Ue=e.blendScreen,je=e.blur,Ee=e.bool,We=e.buffer,qe=e.bufferAttribute,ze=e.bumpMap,Ze=e.builtin,Xe=e.builtinAOContext,He=e.builtinShadowContext,Ke=e.bvec2,Ye=e.bvec3,Je=e.bvec4,Qe=e.bypass,$e=e.cache,et=e.call,tt=e.cameraFar,rt=e.cameraIndex,at=e.cameraNear,ot=e.cameraNormalMatrix,it=e.cameraPosition,nt=e.cameraProjectionMatrix,lt=e.cameraProjectionMatrixInverse,st=e.cameraViewMatrix,ct=e.cameraViewport,mt=e.cameraWorldMatrix,ut=e.cbrt,pt=e.cdl,dt=e.ceil,gt=e.checker,ht=e.cineonToneMapping,xt=e.clamp,ft=e.clearcoat,bt=e.clearcoatNormalView,vt=e.clearcoatRoughness,wt=e.clipSpace,St=e.code,_t=e.color,Tt=e.colorSpaceToWorking,yt=e.colorToDirection,Vt=e.compute,Mt=e.computeKernel,Dt=e.computeSkinning,Ft=e.context,It=e.convert,Bt=e.convertColorSpace,Ct=e.convertToTexture,Nt=e.countLeadingZeros,Pt=e.countOneBits,Rt=e.countTrailingZeros,kt=e.cos,Ot=e.cosh,At=e.cross,Lt=e.cubeTexture,Gt=e.cubeTextureBase,Ut=e.dFdx,jt=e.dFdy,Et=e.dashSize,Wt=e.debug,qt=e.decrement,zt=e.decrementBefore,Zt=e.defaultBuildStages,Xt=e.defaultShaderStages,Ht=e.defined,Kt=e.degrees,Yt=e.deltaTime,Jt=e.densityFog,Qt=e.densityFogFactor,$t=e.depth,er=e.depthPass,tr=e.determinant,rr=e.difference,ar=e.diffuseColor,or=e.directPointLight,ir=e.directionToColor,nr=e.directionToFaceDirection,lr=e.dispersion,sr=e.distance,cr=e.div,mr=e.dot,ur=e.drawIndex,pr=e.dynamicBufferAttribute,dr=e.element,gr=e.emissive,hr=e.equal,xr=e.equirectDirection,fr=e.equirectUV,br=e.exp,vr=e.exp2,wr=e.exponentialHeightFogFactor,Sr=e.expression,_r=e.faceDirection,Tr=e.faceForward,yr=e.faceforward,Vr=e.float,Mr=e.floatBitsToInt,Dr=e.floatBitsToUint,Fr=e.floor,Ir=e.fog,Br=e.fract,Cr=e.frameGroup,Nr=e.frameId,Pr=e.frontFacing,Rr=e.fwidth,kr=e.gain,Or=e.gapSize,Ar=e.getConstNodeType,Lr=e.getCurrentStack,Gr=e.getDirection,Ur=e.getDistanceAttenuation,jr=e.getGeometryRoughness,Er=e.getNormalFromDepth,Wr=e.interleavedGradientNoise,qr=e.vogelDiskSample,zr=e.getParallaxCorrectNormal,Zr=e.getRoughness,Xr=e.getScreenPosition,Hr=e.getShIrradianceAt,Kr=e.getShadowMaterial,Yr=e.getShadowRenderObjectFunction,Jr=e.getTextureIndex,Qr=e.getViewPosition,$r=e.globalId,ea=e.glsl,ta=e.glslFn,ra=e.grayscale,aa=e.greaterThan,oa=e.greaterThanEqual,ia=e.hash,na=e.highpModelNormalViewMatrix,la=e.highpModelViewMatrix,sa=e.hue,ca=e.increment,ma=e.incrementBefore,ua=e.instance,pa=e.instanceIndex,da=e.instancedArray,ga=e.instancedBufferAttribute,ha=e.instancedDynamicBufferAttribute,xa=e.instancedMesh,fa=e.int,ba=e.intBitsToFloat,va=e.inverse,wa=e.inverseSqrt,Sa=e.inversesqrt,_a=e.invocationLocalIndex,Ta=e.invocationSubgroupIndex,ya=e.ior,Va=e.iridescence,Ma=e.iridescenceIOR,Da=e.iridescenceThickness,Fa=e.ivec2,Ia=e.ivec3,Ba=e.ivec4,Ca=e.js,Na=e.label,Pa=e.length,Ra=e.lengthSq,ka=e.lessThan,Oa=e.lessThanEqual,Aa=e.lightPosition,La=e.lightProjectionUV,Ga=e.lightShadowMatrix,Ua=e.lightTargetDirection,ja=e.lightTargetPosition,Ea=e.lightViewPosition,Wa=e.lightingContext,qa=e.lights,za=e.linearDepth,Za=e.linearToneMapping,Xa=e.localId,Ha=e.log,Ka=e.log2,Ya=e.logarithmicDepthToViewZ,Ja=e.luminance,Qa=e.mat2,$a=e.mat3,eo=e.mat4,to=e.matcapUV,ro=e.materialAO,ao=e.materialAlphaTest,oo=e.materialAnisotropy,io=e.materialAnisotropyVector,no=e.materialAttenuationColor,lo=e.materialAttenuationDistance,so=e.materialClearcoat,co=e.materialClearcoatNormal,mo=e.materialClearcoatRoughness,uo=e.materialColor,po=e.materialDispersion,go=e.materialEmissive,ho=e.materialEnvIntensity,xo=e.materialEnvRotation,fo=e.materialIOR,bo=e.materialIridescence,vo=e.materialIridescenceIOR,wo=e.materialIridescenceThickness,So=e.materialLightMap,_o=e.materialLineDashOffset,To=e.materialLineDashSize,yo=e.materialLineGapSize,Vo=e.materialLineScale,Mo=e.materialLineWidth,Do=e.materialMetalness,Fo=e.materialNormal,Io=e.materialOpacity,Bo=e.materialPointSize,Co=e.materialReference,No=e.materialReflectivity,Po=e.materialRefractionRatio,Ro=e.materialRotation,ko=e.materialRoughness,Oo=e.materialSheen,Ao=e.materialSheenRoughness,Lo=e.materialShininess,Go=e.materialSpecular,Uo=e.materialSpecularColor,jo=e.materialSpecularIntensity,Eo=e.materialSpecularStrength,Wo=e.materialThickness,qo=e.materialTransmission,zo=e.max,Zo=e.maxMipLevel,Xo=e.mediumpModelViewMatrix,Ho=e.metalness,Ko=e.min,Yo=e.mix,Jo=e.mixElement,Qo=e.mod,$o=e.modelDirection,ei=e.modelNormalMatrix,ti=e.modelPosition,ri=e.modelRadius,ai=e.modelScale,oi=e.modelViewMatrix,ii=e.modelViewPosition,ni=e.modelViewProjection,li=e.modelWorldMatrix,si=e.modelWorldMatrixInverse,ci=e.morphReference,mi=e.mrt,ui=e.mul,pi=e.mx_aastep,di=e.mx_add,gi=e.mx_atan2,hi=e.mx_cell_noise_float,xi=e.mx_contrast,fi=e.mx_divide,bi=e.mx_fractal_noise_float,vi=e.mx_fractal_noise_vec2,wi=e.mx_fractal_noise_vec3,Si=e.mx_fractal_noise_vec4,_i=e.mx_frame,Ti=e.mx_heighttonormal,yi=e.mx_hsvtorgb,Vi=e.mx_ifequal,Mi=e.mx_ifgreater,Di=e.mx_ifgreatereq,Fi=e.mx_invert,Ii=e.mx_modulo,Bi=e.mx_multiply,Ci=e.mx_noise_float,Ni=e.mx_noise_vec3,Pi=e.mx_noise_vec4,Ri=e.mx_place2d,ki=e.mx_power,Oi=e.mx_ramp4,Ai=e.mx_ramplr,Li=e.mx_ramptb,Gi=e.mx_rgbtohsv,Ui=e.mx_rotate2d,ji=e.mx_rotate3d,Ei=e.mx_safepower,Wi=e.mx_separate,qi=e.mx_splitlr,zi=e.mx_splittb,Zi=e.mx_srgb_texture_to_lin_rec709,Xi=e.mx_subtract,Hi=e.mx_timer,Ki=e.mx_transform_uv,Yi=e.mx_unifiednoise2d,Ji=e.mx_unifiednoise3d,Qi=e.mx_worley_noise_float,$i=e.mx_worley_noise_vec2,en=e.mx_worley_noise_vec3,tn=e.negate,rn=e.negateOnBackSide,an=e.neutralToneMapping,on=e.nodeArray,nn=e.nodeImmutable,ln=e.nodeObject,sn=e.nodeObjectIntent,cn=e.nodeObjects,mn=e.nodeProxy,un=e.nodeProxyIntent,pn=e.normalFlat,dn=e.normalGeometry,gn=e.normalLocal,hn=e.normalMap,xn=e.normalView,fn=e.normalViewGeometry,bn=e.normalWorld,vn=e.normalWorldGeometry,wn=e.normalize,Sn=e.not,_n=e.notEqual,Tn=e.numWorkgroups,yn=e.objectDirection,Vn=e.objectGroup,Mn=e.objectPosition,Dn=e.objectRadius,Fn=e.objectScale,In=e.objectViewPosition,Bn=e.objectWorldMatrix,Cn=e.OnBeforeObjectUpdate,Nn=e.OnBeforeMaterialUpdate,Pn=e.OnObjectUpdate,Rn=e.OnMaterialUpdate,kn=e.oneMinus,On=e.or,An=e.orthographicDepthToViewZ,Ln=e.oscSawtooth,Gn=e.oscSine,Un=e.oscSquare,jn=e.oscTriangle,En=e.output,Wn=e.outputStruct,qn=e.overloadingFn,zn=e.overrideNode,Zn=e.overrideNodes,Xn=e.packHalf2x16,Hn=e.packSnorm2x16,Kn=e.packUnorm2x16,Yn=e.packNormalToRGB,Jn=e.parabola,Qn=e.parallaxDirection,$n=e.parallaxUV,el=e.parameter,tl=e.pass,rl=e.passTexture,al=e.pcurve,ol=e.perspectiveDepthToViewZ,il=e.pmremTexture,nl=e.pointShadow,ll=e.pointUV,sl=e.pointWidth,cl=e.positionGeometry,ml=e.positionLocal,ul=e.positionPrevious,pl=e.positionView,dl=e.positionViewDirection,gl=e.positionWorld,hl=e.positionWorldDirection,xl=e.posterize,fl=e.pow,bl=e.pow2,vl=e.pow3,wl=e.pow4,Sl=e.premultiplyAlpha,_l=e.property,Tl=e.radians,yl=e.rand,Vl=e.range,Ml=e.rangeFog,Dl=e.rangeFogFactor,Fl=e.reciprocal,Il=e.reference,Bl=e.referenceBuffer,Cl=e.reflect,Nl=e.reflectVector,Pl=e.reflectView,Rl=e.reflector,kl=e.refract,Ol=e.refractVector,Al=e.refractView,Ll=e.reinhardToneMapping,Gl=e.remap,Ul=e.remapClamp,jl=e.renderGroup,El=e.renderOutput,Wl=e.rendererReference,ql=e.replaceDefaultUV,zl=e.rotate,Zl=e.rotateUV,Xl=e.roughness,Hl=e.round,Kl=e.rtt,Yl=e.sRGBTransferEOTF,Jl=e.sRGBTransferOETF,Ql=e.sample,$l=e.sampler,es=e.samplerComparison,ts=e.saturate,rs=e.saturation,as=e.screen,os=e.screenCoordinate,is=e.screenDPR,ns=e.screenSize,ls=e.screenUV,ss=e.select,cs=e.setCurrentStack,ms=e.setName,us=e.shaderStages,ps=e.shadow,ds=e.shadowPositionWorld,gs=e.shapeCircle,hs=e.sharedUniformGroup,xs=e.sheen,fs=e.sheenRoughness,bs=e.shiftLeft,vs=e.shiftRight,ws=e.shininess,Ss=e.sign,_s=e.sin,Ts=e.sinh,ys=e.sinc,Vs=e.skinning,Ms=e.smoothstep,Ds=e.smoothstepElement,Fs=e.specularColor,Is=e.specularF90,Bs=e.spherizeUV,Cs=e.split,Ns=e.spritesheetUV,Ps=e.sqrt,Rs=e.stack,ks=e.step,Os=e.stepElement,As=e.storage,Ls=e.storageBarrier,Gs=e.storageTexture,Us=e.storageTexture3D,js=e.struct,Es=e.sub,Ws=e.subgroupAdd,qs=e.subgroupAll,zs=e.subgroupAnd,Zs=e.subgroupAny,Xs=e.subgroupBallot,Hs=e.subgroupBroadcast,Ks=e.subgroupBroadcastFirst,Ys=e.subBuild,Js=e.subgroupElect,Qs=e.subgroupExclusiveAdd,$s=e.subgroupExclusiveMul,ec=e.subgroupInclusiveAdd,tc=e.subgroupInclusiveMul,rc=e.subgroupIndex,ac=e.subgroupMax,oc=e.subgroupMin,ic=e.subgroupMul,nc=e.subgroupOr,lc=e.subgroupShuffle,sc=e.subgroupShuffleDown,cc=e.subgroupShuffleUp,mc=e.subgroupShuffleXor,uc=e.subgroupSize,pc=e.subgroupXor,dc=e.tan,gc=e.tanh,hc=e.tangentGeometry,xc=e.tangentLocal,fc=e.tangentView,bc=e.tangentWorld,vc=e.texture,wc=e.texture3D,Sc=e.textureBarrier,_c=e.textureBicubic,Tc=e.textureBicubicLevel,yc=e.textureCubeUV,Vc=e.textureLoad,Mc=e.textureSize,Dc=e.textureLevel,Fc=e.textureStore,Ic=e.thickness,Bc=e.time,Cc=e.toneMapping,Nc=e.toneMappingExposure,Pc=e.toonOutlinePass,Rc=e.transformDirection,kc=e.transformNormal,Oc=e.transformNormalByInverseViewMatrix,Ac=e.transformNormalByViewMatrix,Lc=e.transformNormalToView,Gc=e.transformedClearcoatNormalView,Uc=e.transformedNormalView,jc=e.transformedNormalWorld,Ec=e.transmission,Wc=e.transpose,qc=e.triNoise3D,zc=e.triplanarTexture,Zc=e.triplanarTextures,Xc=e.trunc,Hc=e.uint,Kc=e.uintBitsToFloat,Yc=e.uniform,Jc=e.uniformArray,Qc=e.uniformCubeTexture,$c=e.uniformGroup,em=e.uniformFlow,tm=e.uniformTexture,rm=e.unpackHalf2x16,am=e.unpackSnorm2x16,om=e.unpackUnorm2x16,im=e.unpackRGBToNormal,nm=e.unpremultiplyAlpha,lm=e.userData,sm=e.uv,cm=e.uvec2,mm=e.uvec3,um=e.uvec4,pm=e.varying,dm=e.varyingProperty,gm=e.vec2,hm=e.vec3,xm=e.vec4,fm=e.vectorComponents,bm=e.velocity,vm=e.vertexColor,wm=e.vertexIndex,Sm=e.vertexStage,_m=e.vibrance,Tm=e.viewZToLogarithmicDepth,ym=e.viewZToOrthographicDepth,Vm=e.viewZToPerspectiveDepth,Mm=e.viewZToReversedOrthographicDepth,Dm=e.viewZToReversedPerspectiveDepth,Fm=e.viewport,Im=e.viewportCoordinate,Bm=e.viewportDepthTexture,Cm=e.viewportLinearDepth,Nm=e.viewportMipTexture,Pm=e.viewportOpaqueMipTexture,Rm=e.viewportResolution,km=e.viewportSafeUV,Om=e.viewportSharedTexture,Am=e.viewportSize,Lm=e.viewportTexture,Gm=e.viewportUV,Um=e.wgsl,jm=e.wgslFn,Em=e.workgroupArray,Wm=e.workgroupBarrier,qm=e.workgroupId,zm=e.workingToColorSpace,Zm=e.xor;export{t as BRDF_GGX,r as BRDF_Lambert,a as BasicPointShadowFilter,o as BasicShadowFilter,i as Break,n as Const,l as Continue,s as DFGLUT,c as D_GGX,m as Discard,u as EPSILON,p as F_Schlick,d as Fn,M as HALF_PI,g as INFINITY,h as If,x as Loop,f as NodeAccess,b as NodeShaderStage,v as NodeType,w as NodeUpdateType,Nn as OnBeforeMaterialUpdate,Cn as OnBeforeObjectUpdate,Rn as OnMaterialUpdate,Pn as OnObjectUpdate,S as PCFShadowFilter,_ as PCFSoftShadowFilter,T as PI,y as PI2,D as PointShadowFilter,F as Return,I as Schlick_to_F0,B as ShaderNode,C as Stack,N as Switch,P as TBNViewMatrix,V as TWO_PI,R as VSMShadowFilter,k as V_GGX_SmithCorrelated,O as Var,A as VarIntent,L as abs,G as acesFilmicToneMapping,U as acos,j as acosh,E as add,W as addMethodChaining,q as addNodeElement,z as agxToneMapping,Z as all,X as alphaT,H as ambientOcclusion,K as and,Y as anisotropy,J as anisotropyB,Q as anisotropyT,$ as any,ee as append,te as array,re as asin,ae as asinh,oe as assign,ie as atan,ne as atanh,le as atomicAdd,se as atomicAnd,ce as atomicFunc,me as atomicLoad,ue as atomicMax,pe as atomicMin,de as atomicOr,ge as atomicStore,he as atomicSub,xe as atomicXor,fe as attenuationColor,be as attenuationDistance,ve as attribute,we as attributeArray,Se as backgroundBlurriness,_e as backgroundIntensity,Te as backgroundRotation,ye as batch,Ve as bentNormalView,Me as billboarding,De as bitAnd,Fe as bitNot,Ie as bitOr,Be as bitXor,Ce as bitangentGeometry,Ne as bitangentLocal,Pe as bitangentView,Re as bitangentWorld,ke as bitcast,Oe as blendBurn,Ae as blendColor,Le as blendDodge,Ge as blendOverlay,Ue as blendScreen,je as blur,Ee as bool,We as buffer,qe as bufferAttribute,Ze as builtin,Xe as builtinAOContext,He as builtinShadowContext,ze as bumpMap,Ke as bvec2,Ye as bvec3,Je as bvec4,Qe as bypass,$e as cache,et as call,tt as cameraFar,rt as cameraIndex,at as cameraNear,ot as cameraNormalMatrix,it as cameraPosition,nt as cameraProjectionMatrix,lt as cameraProjectionMatrixInverse,st as cameraViewMatrix,ct as cameraViewport,mt as cameraWorldMatrix,ut as cbrt,pt as cdl,dt as ceil,gt as checker,ht as cineonToneMapping,xt as clamp,ft as clearcoat,bt as clearcoatNormalView,vt as clearcoatRoughness,wt as clipSpace,St as code,_t as color,Tt as colorSpaceToWorking,yt as colorToDirection,Vt as compute,Mt as computeKernel,Dt as computeSkinning,Ft as context,It as convert,Bt as convertColorSpace,Ct as convertToTexture,kt as cos,Ot as cosh,Nt as countLeadingZeros,Pt as countOneBits,Rt as countTrailingZeros,At as cross,Lt as cubeTexture,Gt as cubeTextureBase,Ut as dFdx,jt as dFdy,Et as dashSize,Wt as debug,qt as decrement,zt as decrementBefore,Zt as defaultBuildStages,Xt as defaultShaderStages,Ht as defined,Kt as degrees,Yt as deltaTime,Jt as densityFog,Qt as densityFogFactor,$t as depth,er as depthPass,tr as determinant,rr as difference,ar as diffuseColor,or as directPointLight,ir as directionToColor,nr as directionToFaceDirection,lr as dispersion,sr as distance,cr as div,mr as dot,ur as drawIndex,pr as dynamicBufferAttribute,dr as element,gr as emissive,hr as equal,xr as equirectDirection,fr as equirectUV,br as exp,vr as exp2,wr as exponentialHeightFogFactor,Sr as expression,_r as faceDirection,Tr as faceForward,yr as faceforward,Vr as float,Mr as floatBitsToInt,Dr as floatBitsToUint,Fr as floor,Ir as fog,Br as fract,Cr as frameGroup,Nr as frameId,Pr as frontFacing,Rr as fwidth,kr as gain,Or as gapSize,Ar as getConstNodeType,Lr as getCurrentStack,Gr as getDirection,Ur as getDistanceAttenuation,jr as getGeometryRoughness,Er as getNormalFromDepth,zr as getParallaxCorrectNormal,Zr as getRoughness,Xr as getScreenPosition,Hr as getShIrradianceAt,Kr as getShadowMaterial,Yr as getShadowRenderObjectFunction,Jr as getTextureIndex,Qr as getViewPosition,$r as globalId,ea as glsl,ta as glslFn,ra as grayscale,aa as greaterThan,oa as greaterThanEqual,ia as hash,na as highpModelNormalViewMatrix,la as highpModelViewMatrix,sa as hue,ca as increment,ma as incrementBefore,ua as instance,pa as instanceIndex,da as instancedArray,ga as instancedBufferAttribute,ha as instancedDynamicBufferAttribute,xa as instancedMesh,fa as int,ba as intBitsToFloat,Wr as interleavedGradientNoise,va as inverse,wa as inverseSqrt,Sa as inversesqrt,_a as invocationLocalIndex,Ta as invocationSubgroupIndex,ya as ior,Va as iridescence,Ma as iridescenceIOR,Da as iridescenceThickness,Fa as ivec2,Ia as ivec3,Ba as ivec4,Ca as js,Na as label,Pa as length,Ra as lengthSq,ka as lessThan,Oa as lessThanEqual,Aa as lightPosition,La as lightProjectionUV,Ga as lightShadowMatrix,Ua as lightTargetDirection,ja as lightTargetPosition,Ea as lightViewPosition,Wa as lightingContext,qa as lights,za as linearDepth,Za as linearToneMapping,Xa as localId,Ha as log,Ka as log2,Ya as logarithmicDepthToViewZ,Ja as luminance,Qa as mat2,$a as mat3,eo as mat4,to as matcapUV,ro as materialAO,ao as materialAlphaTest,oo as materialAnisotropy,io as materialAnisotropyVector,no as materialAttenuationColor,lo as materialAttenuationDistance,so as materialClearcoat,co as materialClearcoatNormal,mo as materialClearcoatRoughness,uo as materialColor,po as materialDispersion,go as materialEmissive,ho as materialEnvIntensity,xo as materialEnvRotation,fo as materialIOR,bo as materialIridescence,vo as materialIridescenceIOR,wo as materialIridescenceThickness,So as materialLightMap,_o as materialLineDashOffset,To as materialLineDashSize,yo as materialLineGapSize,Vo as materialLineScale,Mo as materialLineWidth,Do as materialMetalness,Fo as materialNormal,Io as materialOpacity,Bo as materialPointSize,Co as materialReference,No as materialReflectivity,Po as materialRefractionRatio,Ro as materialRotation,ko as materialRoughness,Oo as materialSheen,Ao as materialSheenRoughness,Lo as materialShininess,Go as materialSpecular,Uo as materialSpecularColor,jo as materialSpecularIntensity,Eo as materialSpecularStrength,Wo as materialThickness,qo as materialTransmission,zo as max,Zo as maxMipLevel,Xo as mediumpModelViewMatrix,Ho as metalness,Ko as min,Yo as mix,Jo as mixElement,Qo as mod,$o as modelDirection,ei as modelNormalMatrix,ti as modelPosition,ri as modelRadius,ai as modelScale,oi as modelViewMatrix,ii as modelViewPosition,ni as modelViewProjection,li as modelWorldMatrix,si as modelWorldMatrixInverse,ci as morphReference,mi as mrt,ui as mul,pi as mx_aastep,di as mx_add,gi as mx_atan2,hi as mx_cell_noise_float,xi as mx_contrast,fi as mx_divide,bi as mx_fractal_noise_float,vi as mx_fractal_noise_vec2,wi as mx_fractal_noise_vec3,Si as mx_fractal_noise_vec4,_i as mx_frame,Ti as mx_heighttonormal,yi as mx_hsvtorgb,Vi as mx_ifequal,Mi as mx_ifgreater,Di as mx_ifgreatereq,Fi as mx_invert,Ii as mx_modulo,Bi as mx_multiply,Ci as mx_noise_float,Ni as mx_noise_vec3,Pi as mx_noise_vec4,Ri as mx_place2d,ki as mx_power,Oi as mx_ramp4,Ai as mx_ramplr,Li as mx_ramptb,Gi as mx_rgbtohsv,Ui as mx_rotate2d,ji as mx_rotate3d,Ei as mx_safepower,Wi as mx_separate,qi as mx_splitlr,zi as mx_splittb,Zi as mx_srgb_texture_to_lin_rec709,Xi as mx_subtract,Hi as mx_timer,Ki as mx_transform_uv,Yi as mx_unifiednoise2d,Ji as mx_unifiednoise3d,Qi as mx_worley_noise_float,$i as mx_worley_noise_vec2,en as mx_worley_noise_vec3,tn as negate,rn as negateOnBackSide,an as neutralToneMapping,on as nodeArray,nn as nodeImmutable,ln as nodeObject,sn as nodeObjectIntent,cn as nodeObjects,mn as nodeProxy,un as nodeProxyIntent,pn as normalFlat,dn as normalGeometry,gn as normalLocal,hn as normalMap,xn as normalView,fn as normalViewGeometry,bn as normalWorld,vn as normalWorldGeometry,wn as normalize,Sn as not,_n as notEqual,Tn as numWorkgroups,yn as objectDirection,Vn as objectGroup,Mn as objectPosition,Dn as objectRadius,Fn as objectScale,In as objectViewPosition,Bn as objectWorldMatrix,kn as oneMinus,On as or,An as orthographicDepthToViewZ,Ln as oscSawtooth,Gn as oscSine,Un as oscSquare,jn as oscTriangle,En as output,Wn as outputStruct,qn as overloadingFn,zn as overrideNode,Zn as overrideNodes,Xn as packHalf2x16,Yn as packNormalToRGB,Hn as packSnorm2x16,Kn as packUnorm2x16,Jn as parabola,Qn as parallaxDirection,$n as parallaxUV,el as parameter,tl as pass,rl as passTexture,al as pcurve,ol as perspectiveDepthToViewZ,il as pmremTexture,nl as pointShadow,ll as pointUV,sl as pointWidth,cl as positionGeometry,ml as positionLocal,ul as positionPrevious,pl as positionView,dl as positionViewDirection,gl as positionWorld,hl as positionWorldDirection,xl as posterize,fl as pow,bl as pow2,vl as pow3,wl as pow4,Sl as premultiplyAlpha,_l as property,Tl as radians,yl as rand,Vl as range,Ml as rangeFog,Dl as rangeFogFactor,Fl as reciprocal,Il as reference,Bl as referenceBuffer,Cl as reflect,Nl as reflectVector,Pl as reflectView,Rl as reflector,kl as refract,Ol as refractVector,Al as refractView,Ll as reinhardToneMapping,Gl as remap,Ul as remapClamp,jl as renderGroup,El as renderOutput,Wl as rendererReference,ql as replaceDefaultUV,zl as rotate,Zl as rotateUV,Xl as roughness,Hl as round,Kl as rtt,Yl as sRGBTransferEOTF,Jl as sRGBTransferOETF,Ql as sample,$l as sampler,es as samplerComparison,ts as saturate,rs as saturation,as as screen,os as screenCoordinate,is as screenDPR,ns as screenSize,ls as screenUV,ss as select,cs as setCurrentStack,ms as setName,us as shaderStages,ps as shadow,ds as shadowPositionWorld,gs as shapeCircle,hs as sharedUniformGroup,xs as sheen,fs as sheenRoughness,bs as shiftLeft,vs as shiftRight,ws as shininess,Ss as sign,_s as sin,ys as sinc,Ts as sinh,Vs as skinning,Ms as smoothstep,Ds as smoothstepElement,Fs as specularColor,Is as specularF90,Bs as spherizeUV,Cs as split,Ns as spritesheetUV,Ps as sqrt,Rs as stack,ks as step,Os as stepElement,As as storage,Ls as storageBarrier,Gs as storageTexture,Us as storageTexture3D,js as struct,Es as sub,Ys as subBuild,Ws as subgroupAdd,qs as subgroupAll,zs as subgroupAnd,Zs as subgroupAny,Xs as subgroupBallot,Hs as subgroupBroadcast,Ks as subgroupBroadcastFirst,Js as subgroupElect,Qs as subgroupExclusiveAdd,$s as subgroupExclusiveMul,ec as subgroupInclusiveAdd,tc as subgroupInclusiveMul,rc as subgroupIndex,ac as subgroupMax,oc as subgroupMin,ic as subgroupMul,nc as subgroupOr,lc as subgroupShuffle,sc as subgroupShuffleDown,cc as subgroupShuffleUp,mc as subgroupShuffleXor,uc as subgroupSize,pc as subgroupXor,dc as tan,hc as tangentGeometry,xc as tangentLocal,fc as tangentView,bc as tangentWorld,gc as tanh,vc as texture,wc as texture3D,Sc as textureBarrier,_c as textureBicubic,Tc as textureBicubicLevel,yc as textureCubeUV,Dc as textureLevel,Vc as textureLoad,Mc as textureSize,Fc as textureStore,Ic as thickness,Bc as time,Cc as toneMapping,Nc as toneMappingExposure,Pc as toonOutlinePass,Rc as transformDirection,kc as transformNormal,Oc as transformNormalByInverseViewMatrix,Ac as transformNormalByViewMatrix,Lc as transformNormalToView,Gc as transformedClearcoatNormalView,Uc as transformedNormalView,jc as transformedNormalWorld,Ec as transmission,Wc as transpose,qc as triNoise3D,zc as triplanarTexture,Zc as triplanarTextures,Xc as trunc,Hc as uint,Kc as uintBitsToFloat,Yc as uniform,Jc as uniformArray,Qc as uniformCubeTexture,em as uniformFlow,$c as uniformGroup,tm as uniformTexture,rm as unpackHalf2x16,im as unpackRGBToNormal,am as unpackSnorm2x16,om as unpackUnorm2x16,nm as unpremultiplyAlpha,lm as userData,sm as uv,cm as uvec2,mm as uvec3,um as uvec4,pm as varying,dm as varyingProperty,gm as vec2,hm as vec3,xm as vec4,fm as vectorComponents,bm as velocity,vm as vertexColor,wm as vertexIndex,Sm as vertexStage,_m as vibrance,Tm as viewZToLogarithmicDepth,ym as viewZToOrthographicDepth,Vm as viewZToPerspectiveDepth,Mm as viewZToReversedOrthographicDepth,Dm as viewZToReversedPerspectiveDepth,Fm as viewport,Im as viewportCoordinate,Bm as viewportDepthTexture,Cm as viewportLinearDepth,Nm as viewportMipTexture,Pm as viewportOpaqueMipTexture,Rm as viewportResolution,km as viewportSafeUV,Om as viewportSharedTexture,Am as viewportSize,Lm as viewportTexture,Gm as viewportUV,qr as vogelDiskSample,Um as wgsl,jm as wgslFn,Em as workgroupArray,Wm as workgroupBarrier,qm as workgroupId,zm as workingToColorSpace,Zm as xor};
|