super-three 0.179.0 → 0.184.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 +14522 -12207
- package/build/three.core.js +12005 -10954
- package/build/three.core.min.js +2 -2
- package/build/three.module.js +2270 -1005
- package/build/three.module.min.js +2 -2
- package/build/three.tsl.js +63 -18
- package/build/three.tsl.min.js +2 -2
- package/build/three.webgpu.js +16573 -7890
- package/build/three.webgpu.min.js +2 -2
- package/build/three.webgpu.nodes.js +16533 -7888
- package/build/three.webgpu.nodes.min.js +2 -2
- package/examples/fonts/MPLUSRounded1c/MPLUSRounded1c-Regular.typeface.json.zip +0 -0
- package/examples/fonts/MPLUSRounded1c/OFL.txt +91 -0
- package/examples/jsm/Addons.js +12 -4
- package/examples/jsm/animation/CCDIKSolver.js +8 -4
- package/examples/jsm/controls/ArcballControls.js +15 -12
- package/examples/jsm/controls/DragControls.js +9 -59
- package/examples/jsm/controls/FirstPersonControls.js +61 -57
- package/examples/jsm/controls/FlyControls.js +5 -1
- package/examples/jsm/controls/MapControls.js +55 -1
- package/examples/jsm/controls/OrbitControls.js +113 -10
- package/examples/jsm/controls/PointerLockControls.js +2 -10
- package/examples/jsm/controls/TrackballControls.js +9 -9
- package/examples/jsm/controls/TransformControls.js +35 -3
- package/examples/jsm/csm/CSM.js +2 -1
- package/examples/jsm/csm/CSMShadowNode.js +6 -2
- package/examples/jsm/effects/AnaglyphEffect.js +102 -7
- package/examples/jsm/effects/AsciiEffect.js +8 -8
- package/examples/jsm/environments/ColorEnvironment.js +59 -0
- package/examples/jsm/environments/RoomEnvironment.js +3 -0
- package/examples/jsm/exporters/DRACOExporter.js +2 -2
- package/examples/jsm/exporters/EXRExporter.js +2 -2
- package/examples/jsm/exporters/GLTFExporter.js +185 -34
- package/examples/jsm/exporters/KTX2Exporter.js +4 -2
- package/examples/jsm/exporters/PLYExporter.js +1 -1
- package/examples/jsm/exporters/USDZExporter.js +31 -5
- package/examples/jsm/geometries/DecalGeometry.js +3 -3
- package/examples/jsm/geometries/ParametricGeometry.js +1 -1
- package/examples/jsm/geometries/TeapotGeometry.js +2 -2
- package/examples/jsm/geometries/TextGeometry.js +21 -2
- package/examples/jsm/gpgpu/BitonicSort.js +715 -0
- package/examples/jsm/helpers/AnimationPathHelper.js +302 -0
- package/examples/jsm/helpers/LightProbeGridHelper.js +221 -0
- package/examples/jsm/helpers/LightProbeHelperGPU.js +1 -1
- package/examples/jsm/helpers/TextureHelperGPU.js +1 -1
- package/examples/jsm/helpers/ViewHelper.js +110 -13
- package/examples/jsm/inspector/Extension.js +13 -0
- package/examples/jsm/inspector/Inspector.js +542 -0
- package/examples/jsm/inspector/RendererInspector.js +425 -0
- package/examples/jsm/inspector/extensions/extensions.json +6 -0
- 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 +238 -0
- package/examples/jsm/inspector/tabs/Memory.js +128 -0
- package/examples/jsm/inspector/tabs/Parameters.js +380 -0
- package/examples/jsm/inspector/tabs/Performance.js +268 -0
- package/examples/jsm/inspector/tabs/Settings.js +264 -0
- package/examples/jsm/inspector/tabs/Timeline.js +1611 -0
- package/examples/jsm/inspector/tabs/Viewer.js +268 -0
- package/examples/jsm/inspector/ui/Graph.js +95 -0
- package/examples/jsm/inspector/ui/Item.js +170 -0
- package/examples/jsm/inspector/ui/List.js +75 -0
- package/examples/jsm/inspector/ui/Profiler.js +2072 -0
- package/examples/jsm/inspector/ui/Style.js +1667 -0
- package/examples/jsm/inspector/ui/Tab.js +265 -0
- package/examples/jsm/inspector/ui/Values.js +476 -0
- package/examples/jsm/inspector/ui/utils.js +69 -0
- package/examples/jsm/interaction/InteractionManager.js +226 -0
- package/examples/jsm/interactive/HTMLMesh.js +6 -10
- package/examples/jsm/interactive/InteractiveGroup.js +1 -1
- package/examples/jsm/interactive/SelectionBox.js +30 -0
- package/examples/jsm/libs/ktx-parse.module.js +1 -1
- package/examples/jsm/libs/meshopt_decoder.module.js +9 -8
- package/examples/jsm/lighting/DynamicLighting.js +82 -0
- package/examples/jsm/lighting/LightProbeGrid.js +651 -0
- package/examples/jsm/lights/RectAreaLightTexturesLib.js +1 -1
- package/examples/jsm/lines/Line2.js +3 -3
- package/examples/jsm/lines/LineGeometry.js +1 -1
- package/examples/jsm/lines/LineMaterial.js +7 -1
- package/examples/jsm/lines/LineSegments2.js +2 -2
- package/examples/jsm/lines/Wireframe.js +2 -2
- package/examples/jsm/lines/WireframeGeometry2.js +1 -1
- package/examples/jsm/lines/webgpu/LineSegments2.js +1 -1
- package/examples/jsm/lines/webgpu/Wireframe.js +1 -1
- package/examples/jsm/loaders/3DMLoader.js +5 -4
- package/examples/jsm/loaders/3MFLoader.js +3 -3
- package/examples/jsm/loaders/AMFLoader.js +2 -2
- package/examples/jsm/loaders/ColladaLoader.js +27 -4029
- package/examples/jsm/loaders/DDSLoader.js +1 -1
- package/examples/jsm/loaders/DRACOLoader.js +73 -22
- package/examples/jsm/loaders/EXRLoader.js +692 -53
- package/examples/jsm/loaders/FBXLoader.js +237 -39
- package/examples/jsm/loaders/FontLoader.js +23 -5
- package/examples/jsm/loaders/GCodeLoader.js +34 -8
- package/examples/jsm/loaders/GLTFLoader.js +159 -185
- package/examples/jsm/loaders/HDRCubeTextureLoader.js +5 -5
- package/examples/jsm/loaders/HDRLoader.js +485 -0
- package/examples/jsm/loaders/KMZLoader.js +5 -5
- package/examples/jsm/loaders/KTX2Loader.js +162 -53
- package/examples/jsm/loaders/KTXLoader.js +2 -2
- package/examples/jsm/loaders/LDrawLoader.js +41 -50
- package/examples/jsm/loaders/LUT3dlLoader.js +2 -2
- package/examples/jsm/loaders/LUTCubeLoader.js +1 -1
- package/examples/jsm/loaders/LWOLoader.js +9 -41
- package/examples/jsm/loaders/MaterialXLoader.js +22 -5
- package/examples/jsm/loaders/NRRDLoader.js +2 -2
- package/examples/jsm/loaders/OBJLoader.js +1 -1
- package/examples/jsm/loaders/PCDLoader.js +4 -2
- package/examples/jsm/loaders/PDBLoader.js +1 -1
- package/examples/jsm/loaders/RGBELoader.js +7 -473
- package/examples/jsm/loaders/SVGLoader.js +4 -4
- package/examples/jsm/loaders/TDSLoader.js +0 -2
- package/examples/jsm/loaders/TGALoader.js +0 -2
- package/examples/jsm/loaders/TTFLoader.js +4 -4
- package/examples/jsm/loaders/USDLoader.js +100 -40
- package/examples/jsm/loaders/UltraHDRLoader.js +287 -162
- package/examples/jsm/loaders/VOXLoader.js +660 -117
- package/examples/jsm/loaders/VRMLLoader.js +79 -2
- 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/lwo/IFFParser.js +1 -1
- package/examples/jsm/loaders/usd/USDAParser.js +450 -363
- package/examples/jsm/loaders/usd/USDCParser.js +1867 -6
- package/examples/jsm/loaders/usd/USDComposer.js +4594 -0
- package/examples/jsm/materials/LDrawConditionalLineNodeMaterial.js +2 -2
- package/examples/jsm/materials/WoodNodeMaterial.js +533 -0
- package/examples/jsm/math/ColorSpaces.js +19 -1
- package/examples/jsm/math/ConvexHull.js +3 -3
- package/examples/jsm/math/ImprovedNoise.js +1 -1
- package/examples/jsm/math/Lut.js +2 -2
- package/examples/jsm/math/Octree.js +131 -1
- package/examples/jsm/math/SimplexNoise.js +1 -1
- package/examples/jsm/misc/GPUComputationRenderer.js +2 -0
- package/examples/jsm/misc/MD2CharacterComplex.js +1 -1
- package/examples/jsm/misc/ProgressiveLightMap.js +9 -3
- package/examples/jsm/misc/ProgressiveLightMapGPU.js +7 -1
- package/examples/jsm/misc/RollerCoaster.js +42 -4
- package/examples/jsm/misc/TubePainter.js +383 -40
- package/examples/jsm/misc/Volume.js +1 -2
- package/examples/jsm/misc/VolumeSlice.js +0 -1
- package/examples/jsm/modifiers/SimplifyModifier.js +1 -1
- package/examples/jsm/modifiers/TessellateModifier.js +1 -1
- package/examples/jsm/objects/LensflareMesh.js +1 -1
- package/examples/jsm/objects/Reflector.js +73 -25
- package/examples/jsm/objects/ReflectorForSSRPass.js +1 -0
- package/examples/jsm/objects/Sky.js +91 -7
- package/examples/jsm/objects/SkyMesh.js +151 -17
- package/examples/jsm/objects/Water.js +7 -6
- package/examples/jsm/objects/Water2.js +5 -3
- package/examples/jsm/objects/WaterMesh.js +11 -13
- package/examples/jsm/physics/AmmoPhysics.js +12 -7
- package/examples/jsm/physics/JoltPhysics.js +10 -6
- package/examples/jsm/physics/RapierPhysics.js +9 -5
- package/examples/jsm/postprocessing/EffectComposer.js +7 -5
- package/examples/jsm/postprocessing/GlitchPass.js +2 -2
- package/examples/jsm/postprocessing/OutlinePass.js +1 -1
- 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/SSRPass.js +37 -8
- package/examples/jsm/postprocessing/UnrealBloomPass.js +56 -24
- package/examples/jsm/renderers/CSS2DRenderer.js +16 -5
- package/examples/jsm/renderers/CSS3DRenderer.js +8 -7
- package/examples/jsm/renderers/Projector.js +246 -28
- package/examples/jsm/renderers/SVGRenderer.js +175 -61
- package/examples/jsm/shaders/ACESFilmicToneMappingShader.js +1 -1
- package/examples/jsm/shaders/AfterimageShader.js +1 -1
- package/examples/jsm/shaders/BleachBypassShader.js +1 -1
- package/examples/jsm/shaders/BokehShader.js +1 -1
- package/examples/jsm/shaders/BokehShader2.js +1 -1
- package/examples/jsm/shaders/DotScreenShader.js +1 -1
- package/examples/jsm/shaders/FocusShader.js +1 -1
- package/examples/jsm/shaders/GTAOShader.js +21 -8
- package/examples/jsm/shaders/HalftoneShader.js +12 -1
- package/examples/jsm/shaders/KaleidoShader.js +1 -1
- package/examples/jsm/shaders/PoissonDenoiseShader.js +8 -4
- package/examples/jsm/shaders/SAOShader.js +17 -4
- package/examples/jsm/shaders/SSAOShader.js +11 -1
- package/examples/jsm/shaders/SSRShader.js +7 -6
- package/examples/jsm/shaders/SepiaShader.js +1 -1
- package/examples/jsm/shaders/SubsurfaceScatteringShader.js +1 -1
- package/examples/jsm/shaders/TriangleBlurShader.js +1 -1
- package/examples/jsm/shaders/UnpackDepthRGBAShader.js +3 -5
- package/examples/jsm/shaders/VignetteShader.js +1 -1
- package/examples/jsm/transpiler/AST.js +44 -0
- package/examples/jsm/transpiler/GLSLDecoder.js +85 -25
- package/examples/jsm/transpiler/ShaderToyDecoder.js +2 -0
- package/examples/jsm/transpiler/TSLEncoder.js +52 -10
- package/examples/jsm/transpiler/TranspilerUtils.js +3 -3
- package/examples/jsm/transpiler/WGSLEncoder.js +51 -0
- package/examples/jsm/tsl/WebGLNodesHandler.js +605 -0
- package/examples/jsm/tsl/display/AfterImageNode.js +36 -24
- package/examples/jsm/tsl/display/AnaglyphPassNode.js +458 -16
- package/examples/jsm/tsl/display/AnamorphicNode.js +40 -5
- package/examples/jsm/tsl/display/BilateralBlurNode.js +374 -0
- package/examples/jsm/tsl/display/BloomNode.js +23 -9
- package/examples/jsm/tsl/display/CRT.js +150 -0
- package/examples/jsm/tsl/display/ChromaticAberrationNode.js +5 -37
- package/examples/jsm/tsl/display/DenoiseNode.js +3 -1
- package/examples/jsm/tsl/display/DepthOfFieldNode.js +446 -90
- 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 +2 -2
- package/examples/jsm/tsl/display/GTAONode.js +59 -9
- package/examples/jsm/tsl/display/GaussianBlurNode.js +68 -35
- package/examples/jsm/tsl/display/GodraysNode.js +615 -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 +81 -20
- package/examples/jsm/tsl/display/ParallaxBarrierPassNode.js +2 -2
- package/examples/jsm/tsl/display/PixelationPassNode.js +7 -6
- package/examples/jsm/tsl/display/RGBShiftNode.js +2 -2
- 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 +2 -2
- package/examples/jsm/tsl/display/SSGINode.js +638 -0
- package/examples/jsm/tsl/display/SSRNode.js +186 -69
- package/examples/jsm/tsl/display/SSSNode.js +490 -0
- 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 +381 -75
- package/examples/jsm/tsl/display/TransitionNode.js +1 -1
- package/examples/jsm/tsl/display/boxBlur.js +65 -0
- package/examples/jsm/tsl/display/depthAwareBlend.js +80 -0
- package/examples/jsm/tsl/display/hashBlur.js +16 -18
- package/examples/jsm/tsl/display/radialBlur.js +68 -0
- package/examples/jsm/tsl/lighting/DynamicLightsNode.js +300 -0
- package/examples/jsm/tsl/lighting/TiledLightsNode.js +21 -1
- 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/utils/BufferGeometryUtils.js +3 -4
- package/examples/jsm/utils/ColorUtils.js +76 -0
- package/examples/jsm/utils/LDrawUtils.js +1 -1
- package/examples/jsm/utils/ShadowMapViewer.js +24 -10
- package/examples/jsm/utils/ShadowMapViewerGPU.js +13 -6
- package/examples/jsm/utils/SkeletonUtils.js +14 -8
- package/examples/jsm/utils/WebGPUTextureUtils.js +1 -1
- package/examples/jsm/webxr/OculusHandModel.js +1 -1
- package/examples/jsm/webxr/XRControllerModelFactory.js +1 -1
- package/examples/jsm/webxr/XRHandMeshModel.js +36 -10
- package/examples/jsm/webxr/XRHandModelFactory.js +4 -7
- package/package.json +27 -38
- package/src/Three.Core.js +7 -3
- package/src/Three.TSL.js +61 -16
- package/src/Three.WebGPU.Nodes.js +7 -0
- package/src/Three.WebGPU.js +11 -0
- package/src/Three.js +1 -0
- package/src/animation/AnimationAction.js +12 -2
- package/src/animation/AnimationClip.js +21 -5
- package/src/animation/AnimationMixer.js +9 -3
- package/src/animation/AnimationObjectGroup.js +2 -1
- package/src/animation/AnimationUtils.js +1 -12
- package/src/animation/KeyframeTrack.js +54 -14
- package/src/animation/PropertyBinding.js +12 -11
- 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 +11 -10
- package/src/audio/AudioContext.js +2 -2
- package/src/audio/AudioListener.js +5 -3
- package/src/audio/PositionalAudio.js +1 -1
- package/src/cameras/Camera.js +32 -2
- package/src/cameras/CubeCamera.js +20 -0
- package/src/cameras/OrthographicCamera.js +1 -1
- package/src/cameras/PerspectiveCamera.js +1 -1
- package/src/cameras/StereoCamera.js +2 -2
- package/src/constants.js +100 -7
- package/src/core/BufferAttribute.js +13 -1
- package/src/core/BufferGeometry.js +24 -12
- package/src/core/Clock.js +7 -0
- package/src/core/EventDispatcher.js +1 -1
- package/src/core/InterleavedBuffer.js +1 -1
- package/src/core/InterleavedBufferAttribute.js +3 -2
- package/src/core/Object3D.js +55 -6
- package/src/core/Raycaster.js +4 -3
- package/src/core/RenderTarget.js +14 -5
- package/src/extras/Controls.js +5 -4
- package/src/extras/DataUtils.js +2 -1
- package/src/extras/Earcut.js +6 -0
- package/src/extras/ImageUtils.js +2 -2
- package/src/extras/PMREMGenerator.js +259 -57
- package/src/extras/TextureUtils.js +6 -1
- package/src/extras/core/Curve.js +2 -1
- package/src/extras/core/Interpolations.js +7 -1
- package/src/extras/core/ShapePath.js +4 -4
- package/src/extras/curves/CatmullRomCurve3.js +3 -2
- package/src/extras/lib/earcut.js +8 -8
- package/src/geometries/BoxGeometry.js +1 -0
- package/src/geometries/CapsuleGeometry.js +1 -0
- package/src/geometries/CircleGeometry.js +1 -0
- package/src/geometries/ConeGeometry.js +1 -0
- package/src/geometries/CylinderGeometry.js +1 -0
- package/src/geometries/DodecahedronGeometry.js +1 -0
- package/src/geometries/ExtrudeGeometry.js +10 -8
- package/src/geometries/IcosahedronGeometry.js +1 -0
- package/src/geometries/LatheGeometry.js +1 -0
- package/src/geometries/OctahedronGeometry.js +1 -0
- package/src/geometries/PlaneGeometry.js +1 -0
- package/src/geometries/PolyhedronGeometry.js +1 -1
- package/src/geometries/RingGeometry.js +1 -0
- package/src/geometries/ShapeGeometry.js +1 -0
- package/src/geometries/SphereGeometry.js +1 -0
- package/src/geometries/TetrahedronGeometry.js +1 -0
- package/src/geometries/TorusGeometry.js +9 -3
- package/src/geometries/TorusKnotGeometry.js +1 -0
- package/src/geometries/TubeGeometry.js +1 -0
- package/src/helpers/CameraHelper.js +4 -1
- package/src/helpers/DirectionalLightHelper.js +4 -1
- package/src/helpers/HemisphereLightHelper.js +3 -0
- package/src/helpers/PointLightHelper.js +1 -25
- package/src/helpers/SpotLightHelper.js +3 -0
- 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/lights/webgpu/ProjectorLight.js +1 -1
- package/src/loaders/AnimationLoader.js +2 -1
- package/src/loaders/AudioLoader.js +13 -2
- package/src/loaders/BufferGeometryLoader.js +2 -2
- package/src/loaders/Cache.js +30 -2
- package/src/loaders/DataTextureLoader.js +6 -4
- package/src/loaders/FileLoader.js +4 -4
- package/src/loaders/ImageBitmapLoader.js +17 -13
- package/src/loaders/ImageLoader.js +1 -1
- package/src/loaders/Loader.js +9 -3
- package/src/loaders/LoadingManager.js +25 -3
- package/src/loaders/MaterialLoader.js +6 -4
- package/src/loaders/ObjectLoader.js +57 -17
- package/src/loaders/TextureLoader.js +1 -1
- package/src/loaders/nodes/NodeLoader.js +5 -4
- package/src/loaders/nodes/NodeObjectLoader.js +18 -0
- package/src/materials/Material.js +18 -3
- package/src/materials/MeshBasicMaterial.js +1 -0
- package/src/materials/MeshDepthMaterial.js +1 -0
- package/src/materials/MeshDistanceMaterial.js +1 -1
- package/src/materials/MeshLambertMaterial.js +11 -1
- package/src/materials/MeshMatcapMaterial.js +22 -0
- package/src/materials/MeshNormalMaterial.js +1 -0
- package/src/materials/MeshPhongMaterial.js +11 -1
- package/src/materials/MeshPhysicalMaterial.js +2 -1
- package/src/materials/MeshStandardMaterial.js +8 -7
- package/src/materials/MeshToonMaterial.js +2 -1
- package/src/materials/PointsMaterial.js +1 -1
- package/src/materials/ShaderMaterial.js +22 -3
- package/src/materials/nodes/Line2NodeMaterial.js +36 -9
- package/src/materials/nodes/MeshPhysicalNodeMaterial.js +5 -2
- package/src/materials/nodes/MeshSSSNodeMaterial.js +1 -1
- package/src/materials/nodes/MeshStandardNodeMaterial.js +5 -4
- package/src/materials/nodes/NodeMaterial.js +95 -35
- package/src/materials/nodes/PointsNodeMaterial.js +81 -28
- package/src/materials/nodes/SpriteNodeMaterial.js +3 -15
- package/src/materials/nodes/manager/NodeMaterialObserver.js +194 -88
- package/src/math/Color.js +6 -5
- package/src/math/ColorManagement.js +9 -3
- package/src/math/Cylindrical.js +1 -1
- package/src/math/Euler.js +2 -1
- package/src/math/Line3.js +6 -5
- package/src/math/MathUtils.js +23 -21
- package/src/math/Matrix2.js +14 -10
- package/src/math/Matrix3.js +15 -11
- package/src/math/Matrix4.js +94 -81
- package/src/math/Plane.js +5 -4
- package/src/math/Quaternion.js +60 -84
- package/src/math/Sphere.js +1 -1
- package/src/math/Spherical.js +1 -1
- package/src/math/Triangle.js +1 -1
- package/src/math/Vector2.js +11 -7
- package/src/math/Vector3.js +15 -13
- package/src/math/Vector4.js +13 -9
- package/src/math/interpolants/BezierInterpolant.js +108 -0
- package/src/nodes/Nodes.js +86 -65
- package/src/nodes/TSL.js +11 -8
- package/src/nodes/accessors/Arrays.js +1 -1
- package/src/nodes/accessors/BatchNode.js +10 -10
- package/src/nodes/accessors/Bitangent.js +5 -5
- package/src/nodes/accessors/BufferAttributeNode.js +107 -15
- package/src/nodes/accessors/BufferNode.js +30 -3
- package/src/nodes/accessors/Camera.js +260 -13
- package/src/nodes/accessors/ClippingNode.js +10 -9
- package/src/nodes/accessors/CubeTextureNode.js +32 -6
- package/src/nodes/accessors/InstanceNode.js +164 -39
- package/src/nodes/accessors/Lights.js +10 -0
- package/src/nodes/accessors/MaterialNode.js +9 -1
- package/src/nodes/accessors/MaterialProperties.js +2 -5
- package/src/nodes/accessors/MaterialReferenceNode.js +1 -2
- package/src/nodes/accessors/ModelNode.js +1 -1
- package/src/nodes/accessors/Normal.js +16 -15
- package/src/nodes/accessors/Object3DNode.js +2 -2
- package/src/nodes/accessors/Position.js +51 -3
- package/src/nodes/accessors/ReferenceBaseNode.js +7 -7
- package/src/nodes/accessors/ReferenceNode.js +11 -10
- package/src/nodes/accessors/RendererReferenceNode.js +1 -2
- package/src/nodes/accessors/SceneProperties.js +47 -0
- package/src/nodes/accessors/SkinningNode.js +27 -26
- package/src/nodes/accessors/StorageBufferNode.js +14 -24
- package/src/nodes/accessors/StorageTextureNode.js +62 -9
- package/src/nodes/accessors/Tangent.js +4 -14
- package/src/nodes/accessors/Texture3DNode.js +41 -31
- package/src/nodes/accessors/TextureNode.js +193 -63
- 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 +25 -5
- package/src/nodes/code/FunctionNode.js +25 -3
- package/src/nodes/core/ArrayNode.js +22 -2
- package/src/nodes/core/AssignNode.js +6 -5
- package/src/nodes/core/AttributeNode.js +5 -4
- package/src/nodes/core/BypassNode.js +1 -1
- package/src/nodes/core/ContextNode.js +133 -15
- package/src/nodes/core/IndexNode.js +4 -3
- package/src/nodes/core/InputNode.js +3 -2
- package/src/nodes/core/InspectorNode.js +128 -0
- package/src/nodes/core/{CacheNode.js → IsolateNode.js} +41 -8
- package/src/nodes/core/MRTNode.js +48 -2
- package/src/nodes/core/Node.js +264 -46
- package/src/nodes/core/NodeBuilder.js +453 -87
- package/src/nodes/core/NodeError.js +28 -0
- package/src/nodes/core/NodeFrame.js +31 -23
- package/src/nodes/core/NodeFunction.js +2 -1
- package/src/nodes/core/NodeParser.js +2 -1
- package/src/nodes/core/NodeUniform.js +1 -1
- package/src/nodes/core/NodeUtils.js +25 -97
- package/src/nodes/core/OutputStructNode.js +12 -10
- package/src/nodes/core/ParameterNode.js +34 -3
- package/src/nodes/core/PropertyNode.js +26 -3
- package/src/nodes/core/StackNode.js +99 -23
- package/src/nodes/core/StackTrace.js +139 -0
- package/src/nodes/core/StructNode.js +22 -8
- package/src/nodes/core/StructTypeNode.js +13 -18
- package/src/nodes/core/SubBuildNode.js +4 -4
- package/src/nodes/core/UniformGroupNode.js +36 -6
- package/src/nodes/core/UniformNode.js +37 -13
- package/src/nodes/core/VarNode.js +96 -34
- package/src/nodes/core/VaryingNode.js +2 -18
- package/src/nodes/display/BlendModes.js +0 -63
- package/src/nodes/display/BumpMapNode.js +1 -1
- package/src/nodes/display/ColorAdjustment.js +18 -1
- package/src/nodes/display/ColorSpaceNode.js +3 -3
- package/src/nodes/display/FrontFacingNode.js +4 -8
- package/src/nodes/display/NormalMapNode.js +41 -5
- package/src/nodes/display/PassNode.js +175 -25
- package/src/nodes/display/RenderOutputNode.js +35 -9
- package/src/nodes/display/ScreenNode.js +47 -15
- package/src/nodes/display/ToneMappingNode.js +32 -5
- package/src/nodes/display/ToonOutlinePassNode.js +10 -2
- package/src/nodes/display/ViewportDepthNode.js +52 -4
- package/src/nodes/display/ViewportDepthTextureNode.js +14 -6
- package/src/nodes/display/ViewportSharedTextureNode.js +12 -0
- package/src/nodes/display/ViewportTextureNode.js +72 -14
- package/src/nodes/fog/Fog.js +18 -34
- package/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.js +52 -0
- 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/BasicLightingModel.js +2 -1
- package/src/nodes/functions/PhysicalLightingModel.js +128 -46
- package/src/nodes/functions/VolumetricLightingModel.js +5 -5
- package/src/nodes/geometry/RangeNode.js +44 -6
- package/src/nodes/gpgpu/AtomicFunctionNode.js +1 -1
- package/src/nodes/gpgpu/BarrierNode.js +9 -0
- package/src/nodes/gpgpu/ComputeBuiltinNode.js +4 -4
- package/src/nodes/gpgpu/ComputeNode.js +76 -38
- package/src/nodes/gpgpu/SubgroupFunctionNode.js +455 -0
- package/src/nodes/gpgpu/WorkgroupInfoNode.js +5 -4
- package/src/nodes/lighting/AnalyticLightNode.js +53 -0
- package/src/nodes/lighting/EnvironmentNode.js +34 -9
- package/src/nodes/lighting/LightsNode.js +10 -32
- package/src/nodes/lighting/PointShadowNode.js +167 -148
- package/src/nodes/lighting/ShadowFilterNode.js +55 -65
- package/src/nodes/lighting/ShadowNode.js +189 -44
- package/src/nodes/math/BitcastNode.js +156 -0
- package/src/nodes/math/BitcountNode.js +433 -0
- package/src/nodes/math/ConditionalNode.js +25 -8
- package/src/nodes/math/MathNode.js +98 -57
- package/src/nodes/math/OperatorNode.js +8 -5
- package/src/nodes/math/PackFloatNode.js +98 -0
- package/src/nodes/math/UnpackFloatNode.js +96 -0
- package/src/nodes/pmrem/PMREMNode.js +1 -1
- package/src/nodes/pmrem/PMREMUtils.js +111 -2
- package/src/nodes/shapes/Shapes.js +1 -1
- package/src/nodes/tsl/TSLBase.js +6 -3
- package/src/nodes/tsl/TSLCore.js +488 -166
- package/src/nodes/utils/ArrayElementNode.js +14 -1
- package/src/nodes/utils/ConvertNode.js +1 -1
- package/src/nodes/utils/DebugNode.js +14 -13
- package/src/nodes/utils/EventNode.js +67 -2
- package/src/nodes/utils/FlipNode.js +1 -1
- package/src/nodes/utils/FunctionOverloadingNode.js +37 -19
- package/src/nodes/utils/JoinNode.js +7 -4
- package/src/nodes/utils/LoopNode.js +20 -24
- package/src/nodes/utils/MemberNode.js +60 -8
- package/src/nodes/utils/Packing.js +13 -1
- package/src/nodes/utils/PostProcessingUtils.js +60 -1
- package/src/nodes/utils/RTTNode.js +14 -4
- package/src/nodes/utils/ReflectorNode.js +61 -11
- package/src/nodes/utils/Remap.js +48 -0
- package/src/nodes/utils/RotateNode.js +1 -1
- package/src/nodes/utils/SampleNode.js +12 -2
- package/src/nodes/utils/SetNode.js +1 -1
- package/src/nodes/utils/SplitNode.js +12 -1
- package/src/nodes/utils/SpriteSheetUV.js +35 -0
- package/src/nodes/utils/Timer.js +0 -47
- package/src/nodes/utils/UVUtils.js +28 -0
- package/src/objects/BatchedMesh.js +46 -18
- package/src/objects/InstancedMesh.js +30 -3
- package/src/objects/LOD.js +1 -1
- package/src/objects/Line.js +3 -2
- package/src/objects/LineSegments.js +2 -1
- package/src/objects/Mesh.js +1 -1
- package/src/objects/Points.js +1 -1
- package/src/objects/Skeleton.js +12 -2
- package/src/objects/SkinnedMesh.js +29 -10
- package/src/objects/Sprite.js +4 -3
- package/src/renderers/WebGLRenderer.js +372 -179
- package/src/renderers/common/Animation.js +16 -4
- package/src/renderers/common/Attributes.js +16 -2
- package/src/renderers/common/Backend.js +137 -35
- package/src/renderers/common/Background.js +28 -14
- package/src/renderers/common/BindGroup.js +1 -16
- package/src/renderers/common/Binding.js +11 -0
- package/src/renderers/common/Bindings.js +83 -12
- package/src/renderers/common/BlendMode.js +143 -0
- package/src/renderers/common/Buffer.js +40 -0
- package/src/renderers/common/BundleGroup.js +1 -1
- package/src/renderers/common/CanvasTarget.js +341 -0
- package/src/renderers/common/ChainMap.js +30 -6
- package/src/renderers/common/ComputePipeline.js +1 -1
- package/src/renderers/common/CubeRenderTarget.js +51 -7
- package/src/renderers/common/DataMap.js +1 -1
- package/src/renderers/common/Geometries.js +55 -3
- package/src/renderers/common/Info.js +337 -6
- package/src/renderers/common/InspectorBase.js +151 -0
- package/src/renderers/common/Lighting.js +5 -21
- package/src/renderers/common/Pipelines.js +41 -8
- package/src/renderers/common/PostProcessing.js +9 -226
- package/src/renderers/common/QuadMesh.js +7 -1
- 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 +18 -2
- package/src/renderers/common/RenderContexts.js +33 -49
- package/src/renderers/common/RenderList.js +7 -3
- package/src/renderers/common/RenderLists.js +2 -1
- package/src/renderers/common/RenderObject.js +32 -6
- package/src/renderers/common/RenderObjectPipeline.js +40 -0
- package/src/renderers/common/RenderObjects.js +22 -6
- package/src/renderers/common/RenderPipeline.js +232 -17
- package/src/renderers/common/Renderer.js +927 -335
- package/src/renderers/common/RendererUtils.js +9 -0
- package/src/renderers/common/SampledTexture.js +9 -1
- package/src/renderers/common/Sampler.js +52 -14
- package/src/renderers/common/StorageBuffer.js +13 -1
- package/src/renderers/common/StorageTexture.js +9 -1
- package/src/renderers/common/Textures.js +208 -47
- package/src/renderers/common/TimestampQueryPool.js +70 -6
- package/src/renderers/common/Uniform.js +8 -0
- package/src/renderers/common/UniformsGroup.js +64 -2
- package/src/renderers/common/XRManager.js +79 -51
- package/src/renderers/common/extras/PMREMGenerator.js +176 -79
- package/src/renderers/common/nodes/NodeBuilderState.js +1 -1
- package/src/renderers/common/nodes/NodeLibrary.js +9 -7
- package/src/renderers/common/nodes/{Nodes.js → NodeManager.js} +260 -95
- package/src/renderers/common/nodes/NodeSampler.js +13 -1
- package/src/renderers/common/nodes/NodeStorageBuffer.js +13 -2
- package/src/renderers/common/nodes/NodeUniformBuffer.js +52 -0
- package/src/renderers/shaders/DFGLUTData.js +49 -0
- 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 +0 -12
- package/src/renderers/shaders/ShaderChunk/envmap_common_pars_fragment.glsl.js +1 -2
- package/src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js +8 -12
- package/src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.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 +2 -0
- package/src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js +8 -4
- package/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +152 -59
- package/src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_vertex.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/logdepthbuf_vertex.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/normal_fragment_maps.glsl.js +7 -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 +221 -190
- 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 +1 -1
- 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 +4 -1
- package/src/renderers/shaders/ShaderLib/{distanceRGBA.glsl.js → distance.glsl.js} +1 -2
- 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 +8 -5
- package/src/renderers/shaders/UniformsUtils.js +52 -9
- 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 +11 -5
- package/src/renderers/webgl/WebGLEnvironments.js +228 -0
- package/src/renderers/webgl/WebGLExtensions.js +2 -25
- package/src/renderers/webgl/WebGLGeometries.js +10 -7
- package/src/renderers/webgl/WebGLIndexedBufferRenderer.js +0 -32
- package/src/renderers/webgl/WebGLInfo.js +3 -1
- 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 +270 -0
- package/src/renderers/webgl/WebGLProgram.js +63 -122
- package/src/renderers/webgl/WebGLPrograms.js +65 -52
- package/src/renderers/webgl/WebGLRenderLists.js +15 -0
- package/src/renderers/webgl/WebGLRenderStates.js +13 -2
- package/src/renderers/webgl/WebGLShadowMap.js +191 -26
- package/src/renderers/webgl/WebGLState.js +79 -40
- package/src/renderers/webgl/WebGLTextures.js +234 -68
- package/src/renderers/webgl/WebGLUniforms.js +40 -3
- package/src/renderers/webgl/WebGLUniformsGroups.js +24 -3
- package/src/renderers/webgl/WebGLUtils.js +8 -3
- package/src/renderers/webgl-fallback/WebGLBackend.js +438 -235
- package/src/renderers/webgl-fallback/WebGLBufferRenderer.js +0 -41
- package/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js +339 -84
- 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/WebGLConstants.js +2 -3
- package/src/renderers/webgl-fallback/utils/WebGLState.js +229 -11
- package/src/renderers/webgl-fallback/utils/WebGLTextureUtils.js +237 -72
- package/src/renderers/webgl-fallback/utils/WebGLTimestampQueryPool.js +56 -27
- package/src/renderers/webgl-fallback/utils/WebGLUtils.js +8 -3
- package/src/renderers/webgpu/WebGPUBackend.js +403 -253
- package/src/renderers/webgpu/WebGPURenderer.Nodes.js +2 -1
- package/src/renderers/webgpu/WebGPURenderer.js +5 -3
- package/src/renderers/webgpu/nodes/WGSLNodeBuilder.js +491 -123
- package/src/renderers/webgpu/utils/WebGPUAttributeUtils.js +108 -34
- package/src/renderers/webgpu/utils/WebGPUBindingUtils.js +360 -201
- package/src/renderers/webgpu/utils/WebGPUCapabilities.js +48 -0
- package/src/renderers/webgpu/utils/WebGPUConstants.js +17 -2
- package/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +111 -54
- package/src/renderers/webgpu/utils/WebGPUTexturePassUtils.js +155 -205
- package/src/renderers/webgpu/utils/WebGPUTextureUtils.js +407 -149
- package/src/renderers/webgpu/utils/WebGPUTimestampQueryPool.js +36 -13
- package/src/renderers/webgpu/utils/WebGPUUtils.js +55 -13
- package/src/renderers/webxr/WebXRController.js +12 -0
- package/src/renderers/webxr/WebXRManager.js +45 -29
- package/src/textures/CubeDepthTexture.js +76 -0
- package/src/textures/ExternalTexture.js +15 -4
- package/src/textures/HTMLTexture.js +74 -0
- package/src/textures/Source.js +5 -4
- package/src/textures/Texture.js +19 -7
- package/src/textures/VideoTexture.js +2 -3
- package/src/utils.js +344 -3
- package/examples/jsm/loaders/RGBMLoader.js +0 -1148
- 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/src/nodes/accessors/SceneNode.js +0 -144
- 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 -30
- 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;
|
|
@@ -29,10 +29,11 @@ const PCFShadowFilter = TSL.PCFShadowFilter;
|
|
|
29
29
|
const PCFSoftShadowFilter = TSL.PCFSoftShadowFilter;
|
|
30
30
|
const PI = TSL.PI;
|
|
31
31
|
const PI2 = TSL.PI2;
|
|
32
|
+
const TWO_PI = TSL.TWO_PI;
|
|
33
|
+
const HALF_PI = TSL.HALF_PI;
|
|
32
34
|
const PointShadowFilter = TSL.PointShadowFilter;
|
|
33
35
|
const Return = TSL.Return;
|
|
34
36
|
const Schlick_to_F0 = TSL.Schlick_to_F0;
|
|
35
|
-
const ScriptableNodeResources = TSL.ScriptableNodeResources;
|
|
36
37
|
const ShaderNode = TSL.ShaderNode;
|
|
37
38
|
const Stack = TSL.Stack;
|
|
38
39
|
const Switch = TSL.Switch;
|
|
@@ -44,6 +45,7 @@ const VarIntent = TSL.VarIntent;
|
|
|
44
45
|
const abs = TSL.abs;
|
|
45
46
|
const acesFilmicToneMapping = TSL.acesFilmicToneMapping;
|
|
46
47
|
const acos = TSL.acos;
|
|
48
|
+
const acosh = TSL.acosh;
|
|
47
49
|
const add = TSL.add;
|
|
48
50
|
const addMethodChaining = TSL.addMethodChaining;
|
|
49
51
|
const addNodeElement = TSL.addNodeElement;
|
|
@@ -59,9 +61,10 @@ const append = TSL.append;
|
|
|
59
61
|
const array = TSL.array;
|
|
60
62
|
const arrayBuffer = TSL.arrayBuffer;
|
|
61
63
|
const asin = TSL.asin;
|
|
64
|
+
const asinh = TSL.asinh;
|
|
62
65
|
const assign = TSL.assign;
|
|
63
66
|
const atan = TSL.atan;
|
|
64
|
-
const
|
|
67
|
+
const atanh = TSL.atanh;
|
|
65
68
|
const atomicAdd = TSL.atomicAdd;
|
|
66
69
|
const atomicAnd = TSL.atomicAnd;
|
|
67
70
|
const atomicFunc = TSL.atomicFunc;
|
|
@@ -101,7 +104,9 @@ const bool = TSL.bool;
|
|
|
101
104
|
const buffer = TSL.buffer;
|
|
102
105
|
const bufferAttribute = TSL.bufferAttribute;
|
|
103
106
|
const bumpMap = TSL.bumpMap;
|
|
104
|
-
const
|
|
107
|
+
const builtin = TSL.builtin;
|
|
108
|
+
const builtinAOContext = TSL.builtinAOContext;
|
|
109
|
+
const builtinShadowContext = TSL.builtinShadowContext;
|
|
105
110
|
const bvec2 = TSL.bvec2;
|
|
106
111
|
const bvec3 = TSL.bvec3;
|
|
107
112
|
const bvec4 = TSL.bvec4;
|
|
@@ -116,6 +121,7 @@ const cameraPosition = TSL.cameraPosition;
|
|
|
116
121
|
const cameraProjectionMatrix = TSL.cameraProjectionMatrix;
|
|
117
122
|
const cameraProjectionMatrixInverse = TSL.cameraProjectionMatrixInverse;
|
|
118
123
|
const cameraViewMatrix = TSL.cameraViewMatrix;
|
|
124
|
+
const cameraViewport = TSL.cameraViewport;
|
|
119
125
|
const cameraWorldMatrix = TSL.cameraWorldMatrix;
|
|
120
126
|
const cbrt = TSL.cbrt;
|
|
121
127
|
const cdl = TSL.cdl;
|
|
@@ -126,6 +132,7 @@ const clamp = TSL.clamp;
|
|
|
126
132
|
const clearcoat = TSL.clearcoat;
|
|
127
133
|
const clearcoatNormalView = TSL.clearcoatNormalView;
|
|
128
134
|
const clearcoatRoughness = TSL.clearcoatRoughness;
|
|
135
|
+
const clipSpace = TSL.clipSpace;
|
|
129
136
|
const code = TSL.code;
|
|
130
137
|
const color = TSL.color;
|
|
131
138
|
const colorSpaceToWorking = TSL.colorSpaceToWorking;
|
|
@@ -137,11 +144,14 @@ const context = TSL.context;
|
|
|
137
144
|
const convert = TSL.convert;
|
|
138
145
|
const convertColorSpace = TSL.convertColorSpace;
|
|
139
146
|
const convertToTexture = TSL.convertToTexture;
|
|
147
|
+
const countLeadingZeros = TSL.countLeadingZeros;
|
|
148
|
+
const countOneBits = TSL.countOneBits;
|
|
149
|
+
const countTrailingZeros = TSL.countTrailingZeros;
|
|
140
150
|
const cos = TSL.cos;
|
|
151
|
+
const cosh = TSL.cosh;
|
|
141
152
|
const cross = TSL.cross;
|
|
142
153
|
const cubeTexture = TSL.cubeTexture;
|
|
143
154
|
const cubeTextureBase = TSL.cubeTextureBase;
|
|
144
|
-
const cubeToUV = TSL.cubeToUV;
|
|
145
155
|
const dFdx = TSL.dFdx;
|
|
146
156
|
const dFdy = TSL.dFdy;
|
|
147
157
|
const dashSize = TSL.dashSize;
|
|
@@ -166,22 +176,23 @@ const directionToFaceDirection = TSL.directionToFaceDirection;
|
|
|
166
176
|
const dispersion = TSL.dispersion;
|
|
167
177
|
const distance = TSL.distance;
|
|
168
178
|
const div = TSL.div;
|
|
169
|
-
const dodge = TSL.dodge;
|
|
170
179
|
const dot = TSL.dot;
|
|
171
180
|
const drawIndex = TSL.drawIndex;
|
|
172
181
|
const dynamicBufferAttribute = TSL.dynamicBufferAttribute;
|
|
173
182
|
const element = TSL.element;
|
|
174
183
|
const emissive = TSL.emissive;
|
|
175
184
|
const equal = TSL.equal;
|
|
176
|
-
const equals = TSL.equals;
|
|
177
185
|
const equirectUV = TSL.equirectUV;
|
|
178
186
|
const exp = TSL.exp;
|
|
179
187
|
const exp2 = TSL.exp2;
|
|
188
|
+
const exponentialHeightFogFactor = TSL.exponentialHeightFogFactor;
|
|
180
189
|
const expression = TSL.expression;
|
|
181
190
|
const faceDirection = TSL.faceDirection;
|
|
182
191
|
const faceForward = TSL.faceForward;
|
|
183
192
|
const faceforward = TSL.faceforward;
|
|
184
193
|
const float = TSL.float;
|
|
194
|
+
const floatBitsToInt = TSL.floatBitsToInt;
|
|
195
|
+
const floatBitsToUint = TSL.floatBitsToUint;
|
|
185
196
|
const floor = TSL.floor;
|
|
186
197
|
const fog = TSL.fog;
|
|
187
198
|
const fract = TSL.fract;
|
|
@@ -197,6 +208,8 @@ const getDirection = TSL.getDirection;
|
|
|
197
208
|
const getDistanceAttenuation = TSL.getDistanceAttenuation;
|
|
198
209
|
const getGeometryRoughness = TSL.getGeometryRoughness;
|
|
199
210
|
const getNormalFromDepth = TSL.getNormalFromDepth;
|
|
211
|
+
const interleavedGradientNoise = TSL.interleavedGradientNoise;
|
|
212
|
+
const vogelDiskSample = TSL.vogelDiskSample;
|
|
200
213
|
const getParallaxCorrectNormal = TSL.getParallaxCorrectNormal;
|
|
201
214
|
const getRoughness = TSL.getRoughness;
|
|
202
215
|
const getScreenPosition = TSL.getScreenPosition;
|
|
@@ -224,6 +237,7 @@ const instancedBufferAttribute = TSL.instancedBufferAttribute;
|
|
|
224
237
|
const instancedDynamicBufferAttribute = TSL.instancedDynamicBufferAttribute;
|
|
225
238
|
const instancedMesh = TSL.instancedMesh;
|
|
226
239
|
const int = TSL.int;
|
|
240
|
+
const intBitsToFloat = TSL.intBitsToFloat;
|
|
227
241
|
const inverse = TSL.inverse;
|
|
228
242
|
const inverseSqrt = TSL.inverseSqrt;
|
|
229
243
|
const inversesqrt = TSL.inversesqrt;
|
|
@@ -396,6 +410,8 @@ const objectRadius = TSL.objectRadius;
|
|
|
396
410
|
const objectScale = TSL.objectScale;
|
|
397
411
|
const objectViewPosition = TSL.objectViewPosition;
|
|
398
412
|
const objectWorldMatrix = TSL.objectWorldMatrix;
|
|
413
|
+
const OnBeforeObjectUpdate = TSL.OnBeforeObjectUpdate;
|
|
414
|
+
const OnBeforeMaterialUpdate = TSL.OnBeforeMaterialUpdate;
|
|
399
415
|
const OnObjectUpdate = TSL.OnObjectUpdate;
|
|
400
416
|
const OnMaterialUpdate = TSL.OnMaterialUpdate;
|
|
401
417
|
const oneMinus = TSL.oneMinus;
|
|
@@ -407,8 +423,10 @@ const oscSquare = TSL.oscSquare;
|
|
|
407
423
|
const oscTriangle = TSL.oscTriangle;
|
|
408
424
|
const output = TSL.output;
|
|
409
425
|
const outputStruct = TSL.outputStruct;
|
|
410
|
-
const overlay = TSL.overlay;
|
|
411
426
|
const overloadingFn = TSL.overloadingFn;
|
|
427
|
+
const packHalf2x16 = TSL.packHalf2x16;
|
|
428
|
+
const packSnorm2x16 = TSL.packSnorm2x16;
|
|
429
|
+
const packUnorm2x16 = TSL.packUnorm2x16;
|
|
412
430
|
const parabola = TSL.parabola;
|
|
413
431
|
const parallaxDirection = TSL.parallaxDirection;
|
|
414
432
|
const parallaxUV = TSL.parallaxUV;
|
|
@@ -456,6 +474,7 @@ const remapClamp = TSL.remapClamp;
|
|
|
456
474
|
const renderGroup = TSL.renderGroup;
|
|
457
475
|
const renderOutput = TSL.renderOutput;
|
|
458
476
|
const rendererReference = TSL.rendererReference;
|
|
477
|
+
const replaceDefaultUV = TSL.replaceDefaultUV;
|
|
459
478
|
const rotate = TSL.rotate;
|
|
460
479
|
const rotateUV = TSL.rotateUV;
|
|
461
480
|
const roughness = TSL.roughness;
|
|
@@ -470,10 +489,9 @@ const saturate = TSL.saturate;
|
|
|
470
489
|
const saturation = TSL.saturation;
|
|
471
490
|
const screen = TSL.screen;
|
|
472
491
|
const screenCoordinate = TSL.screenCoordinate;
|
|
492
|
+
const screenDPR = TSL.screenDPR;
|
|
473
493
|
const screenSize = TSL.screenSize;
|
|
474
494
|
const screenUV = TSL.screenUV;
|
|
475
|
-
const scriptable = TSL.scriptable;
|
|
476
|
-
const scriptableValue = TSL.scriptableValue;
|
|
477
495
|
const select = TSL.select;
|
|
478
496
|
const setCurrentStack = TSL.setCurrentStack;
|
|
479
497
|
const setName = TSL.setName;
|
|
@@ -489,6 +507,7 @@ const shiftRight = TSL.shiftRight;
|
|
|
489
507
|
const shininess = TSL.shininess;
|
|
490
508
|
const sign = TSL.sign;
|
|
491
509
|
const sin = TSL.sin;
|
|
510
|
+
const sinh = TSL.sinh;
|
|
492
511
|
const sinc = TSL.sinc;
|
|
493
512
|
const skinning = TSL.skinning;
|
|
494
513
|
const smoothstep = TSL.smoothstep;
|
|
@@ -504,20 +523,40 @@ const step = TSL.step;
|
|
|
504
523
|
const stepElement = TSL.stepElement;
|
|
505
524
|
const storage = TSL.storage;
|
|
506
525
|
const storageBarrier = TSL.storageBarrier;
|
|
507
|
-
const storageObject = TSL.storageObject;
|
|
508
526
|
const storageTexture = TSL.storageTexture;
|
|
509
527
|
const string = TSL.string;
|
|
510
528
|
const struct = TSL.struct;
|
|
511
529
|
const sub = TSL.sub;
|
|
530
|
+
const subgroupAdd = TSL.subgroupAdd;
|
|
531
|
+
const subgroupAll = TSL.subgroupAll;
|
|
532
|
+
const subgroupAnd = TSL.subgroupAnd;
|
|
533
|
+
const subgroupAny = TSL.subgroupAny;
|
|
534
|
+
const subgroupBallot = TSL.subgroupBallot;
|
|
535
|
+
const subgroupBroadcast = TSL.subgroupBroadcast;
|
|
536
|
+
const subgroupBroadcastFirst = TSL.subgroupBroadcastFirst;
|
|
512
537
|
const subBuild = TSL.subBuild;
|
|
538
|
+
const subgroupElect = TSL.subgroupElect;
|
|
539
|
+
const subgroupExclusiveAdd = TSL.subgroupExclusiveAdd;
|
|
540
|
+
const subgroupExclusiveMul = TSL.subgroupExclusiveMul;
|
|
541
|
+
const subgroupInclusiveAdd = TSL.subgroupInclusiveAdd;
|
|
542
|
+
const subgroupInclusiveMul = TSL.subgroupInclusiveMul;
|
|
513
543
|
const subgroupIndex = TSL.subgroupIndex;
|
|
544
|
+
const subgroupMax = TSL.subgroupMax;
|
|
545
|
+
const subgroupMin = TSL.subgroupMin;
|
|
546
|
+
const subgroupMul = TSL.subgroupMul;
|
|
547
|
+
const subgroupOr = TSL.subgroupOr;
|
|
548
|
+
const subgroupShuffle = TSL.subgroupShuffle;
|
|
549
|
+
const subgroupShuffleDown = TSL.subgroupShuffleDown;
|
|
550
|
+
const subgroupShuffleUp = TSL.subgroupShuffleUp;
|
|
551
|
+
const subgroupShuffleXor = TSL.subgroupShuffleXor;
|
|
514
552
|
const subgroupSize = TSL.subgroupSize;
|
|
553
|
+
const subgroupXor = TSL.subgroupXor;
|
|
515
554
|
const tan = TSL.tan;
|
|
555
|
+
const tanh = TSL.tanh;
|
|
516
556
|
const tangentGeometry = TSL.tangentGeometry;
|
|
517
557
|
const tangentLocal = TSL.tangentLocal;
|
|
518
558
|
const tangentView = TSL.tangentView;
|
|
519
559
|
const tangentWorld = TSL.tangentWorld;
|
|
520
|
-
const temp = TSL.temp;
|
|
521
560
|
const texture = TSL.texture;
|
|
522
561
|
const texture3D = TSL.texture3D;
|
|
523
562
|
const textureBarrier = TSL.textureBarrier;
|
|
@@ -526,12 +565,10 @@ const textureBicubicLevel = TSL.textureBicubicLevel;
|
|
|
526
565
|
const textureCubeUV = TSL.textureCubeUV;
|
|
527
566
|
const textureLoad = TSL.textureLoad;
|
|
528
567
|
const textureSize = TSL.textureSize;
|
|
568
|
+
const textureLevel = TSL.textureLevel;
|
|
529
569
|
const textureStore = TSL.textureStore;
|
|
530
570
|
const thickness = TSL.thickness;
|
|
531
571
|
const time = TSL.time;
|
|
532
|
-
const timerDelta = TSL.timerDelta;
|
|
533
|
-
const timerGlobal = TSL.timerGlobal;
|
|
534
|
-
const timerLocal = TSL.timerLocal;
|
|
535
572
|
const toneMapping = TSL.toneMapping;
|
|
536
573
|
const toneMappingExposure = TSL.toneMappingExposure;
|
|
537
574
|
const toonOutlinePass = TSL.toonOutlinePass;
|
|
@@ -548,11 +585,16 @@ const triplanarTexture = TSL.triplanarTexture;
|
|
|
548
585
|
const triplanarTextures = TSL.triplanarTextures;
|
|
549
586
|
const trunc = TSL.trunc;
|
|
550
587
|
const uint = TSL.uint;
|
|
588
|
+
const uintBitsToFloat = TSL.uintBitsToFloat;
|
|
551
589
|
const uniform = TSL.uniform;
|
|
552
590
|
const uniformArray = TSL.uniformArray;
|
|
553
591
|
const uniformCubeTexture = TSL.uniformCubeTexture;
|
|
554
592
|
const uniformGroup = TSL.uniformGroup;
|
|
593
|
+
const uniformFlow = TSL.uniformFlow;
|
|
555
594
|
const uniformTexture = TSL.uniformTexture;
|
|
595
|
+
const unpackHalf2x16 = TSL.unpackHalf2x16;
|
|
596
|
+
const unpackSnorm2x16 = TSL.unpackSnorm2x16;
|
|
597
|
+
const unpackUnorm2x16 = TSL.unpackUnorm2x16;
|
|
556
598
|
const unpremultiplyAlpha = TSL.unpremultiplyAlpha;
|
|
557
599
|
const userData = TSL.userData;
|
|
558
600
|
const uv = TSL.uv;
|
|
@@ -573,11 +615,14 @@ const vibrance = TSL.vibrance;
|
|
|
573
615
|
const viewZToLogarithmicDepth = TSL.viewZToLogarithmicDepth;
|
|
574
616
|
const viewZToOrthographicDepth = TSL.viewZToOrthographicDepth;
|
|
575
617
|
const viewZToPerspectiveDepth = TSL.viewZToPerspectiveDepth;
|
|
618
|
+
const viewZToReversedOrthographicDepth = TSL.viewZToReversedOrthographicDepth;
|
|
619
|
+
const viewZToReversedPerspectiveDepth = TSL.viewZToReversedPerspectiveDepth;
|
|
576
620
|
const viewport = TSL.viewport;
|
|
577
621
|
const viewportCoordinate = TSL.viewportCoordinate;
|
|
578
622
|
const viewportDepthTexture = TSL.viewportDepthTexture;
|
|
579
623
|
const viewportLinearDepth = TSL.viewportLinearDepth;
|
|
580
624
|
const viewportMipTexture = TSL.viewportMipTexture;
|
|
625
|
+
const viewportOpaqueMipTexture = TSL.viewportOpaqueMipTexture;
|
|
581
626
|
const viewportResolution = TSL.viewportResolution;
|
|
582
627
|
const viewportSafeUV = TSL.viewportSafeUV;
|
|
583
628
|
const viewportSharedTexture = TSL.viewportSharedTexture;
|
|
@@ -603,7 +648,7 @@ for ( const key of Object.keys( THREE.TSL ) ) {
|
|
|
603
648
|
|
|
604
649
|
}
|
|
605
650
|
|
|
606
|
-
|
|
651
|
+
log( code );
|
|
607
652
|
//*/
|
|
608
653
|
|
|
609
|
-
export { BRDF_GGX, BRDF_Lambert, BasicPointShadowFilter, BasicShadowFilter, Break, Const, Continue,
|
|
654
|
+
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, and, anisotropy, anisotropyB, anisotropyT, any, append, array, arrayBuffer, 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, 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, modInt, 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, 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, packHalf2x16, 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, string, 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, transformNormalToView, transformedClearcoatNormalView, transformedNormalView, transformedNormalWorld, transmission, transpose, triNoise3D, triplanarTexture, triplanarTextures, trunc, uint, uintBitsToFloat, uniform, uniformArray, uniformCubeTexture, uniformFlow, uniformGroup, uniformTexture, unpackHalf2x16, 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,d=e.EPSILON,p=e.F_Schlick,u=e.Fn,g=e.INFINITY,h=e.If,x=e.Loop,f=e.NodeAccess,b=e.NodeShaderStage,w=e.NodeType,_=e.NodeUpdateType,v=e.PCFShadowFilter,S=e.PCFSoftShadowFilter,T=e.PI,y=e.PI2,V=e.PointShadowFilter,M=e.Return,D=e.Schlick_to_F0,F=e.ScriptableNodeResources,I=e.ShaderNode,C=e.Stack,P=e.Switch,N=e.TBNViewMatrix,R=e.VSMShadowFilter,B=e.V_GGX_SmithCorrelated,A=e.Var,k=e.VarIntent,G=e.abs,L=e.acesFilmicToneMapping,O=e.acos,j=e.add,U=e.addMethodChaining,W=e.addNodeElement,E=e.agxToneMapping,q=e.all,z=e.alphaT,Z=e.and,X=e.anisotropy,K=e.anisotropyB,Y=e.anisotropyT,H=e.any,J=e.append,Q=e.array,$=e.arrayBuffer,ee=e.asin,te=e.assign,re=e.atan,ae=e.atan2,oe=e.atomicAdd,ie=e.atomicAnd,ne=e.atomicFunc,le=e.atomicLoad,se=e.atomicMax,ce=e.atomicMin,me=e.atomicOr,de=e.atomicStore,pe=e.atomicSub,ue=e.atomicXor,ge=e.attenuationColor,he=e.attenuationDistance,xe=e.attribute,fe=e.attributeArray,be=e.backgroundBlurriness,we=e.backgroundIntensity,_e=e.backgroundRotation,ve=e.batch,Se=e.bentNormalView,Te=e.billboarding,ye=e.bitAnd,Ve=e.bitNot,Me=e.bitOr,De=e.bitXor,Fe=e.bitangentGeometry,Ie=e.bitangentLocal,Ce=e.bitangentView,Pe=e.bitangentWorld,Ne=e.bitcast,Re=e.blendBurn,Be=e.blendColor,Ae=e.blendDodge,ke=e.blendOverlay,Ge=e.blendScreen,Le=e.blur,Oe=e.bool,je=e.buffer,Ue=e.bufferAttribute,We=e.bumpMap,Ee=e.burn,qe=e.bvec2,ze=e.bvec3,Ze=e.bvec4,Xe=e.bypass,Ke=e.cache,Ye=e.call,He=e.cameraFar,Je=e.cameraIndex,Qe=e.cameraNear,$e=e.cameraNormalMatrix,et=e.cameraPosition,tt=e.cameraProjectionMatrix,rt=e.cameraProjectionMatrixInverse,at=e.cameraViewMatrix,ot=e.cameraWorldMatrix,it=e.cbrt,nt=e.cdl,lt=e.ceil,st=e.checker,ct=e.cineonToneMapping,mt=e.clamp,dt=e.clearcoat,pt=e.clearcoatNormalView,ut=e.clearcoatRoughness,gt=e.code,ht=e.color,xt=e.colorSpaceToWorking,ft=e.colorToDirection,bt=e.compute,wt=e.computeKernel,_t=e.computeSkinning,vt=e.context,St=e.convert,Tt=e.convertColorSpace,yt=e.convertToTexture,Vt=e.cos,Mt=e.cross,Dt=e.cubeTexture,Ft=e.cubeTextureBase,It=e.cubeToUV,Ct=e.dFdx,Pt=e.dFdy,Nt=e.dashSize,Rt=e.debug,Bt=e.decrement,At=e.decrementBefore,kt=e.defaultBuildStages,Gt=e.defaultShaderStages,Lt=e.defined,Ot=e.degrees,jt=e.deltaTime,Ut=e.densityFog,Wt=e.densityFogFactor,Et=e.depth,qt=e.depthPass,zt=e.determinant,Zt=e.difference,Xt=e.diffuseColor,Kt=e.directPointLight,Yt=e.directionToColor,Ht=e.directionToFaceDirection,Jt=e.dispersion,Qt=e.distance,$t=e.div,er=e.dodge,tr=e.dot,rr=e.drawIndex,ar=e.dynamicBufferAttribute,or=e.element,ir=e.emissive,nr=e.equal,lr=e.equals,sr=e.equirectUV,cr=e.exp,mr=e.exp2,dr=e.expression,pr=e.faceDirection,ur=e.faceForward,gr=e.faceforward,hr=e.float,xr=e.floor,fr=e.fog,br=e.fract,wr=e.frameGroup,_r=e.frameId,vr=e.frontFacing,Sr=e.fwidth,Tr=e.gain,yr=e.gapSize,Vr=e.getConstNodeType,Mr=e.getCurrentStack,Dr=e.getDirection,Fr=e.getDistanceAttenuation,Ir=e.getGeometryRoughness,Cr=e.getNormalFromDepth,Pr=e.getParallaxCorrectNormal,Nr=e.getRoughness,Rr=e.getScreenPosition,Br=e.getShIrradianceAt,Ar=e.getShadowMaterial,kr=e.getShadowRenderObjectFunction,Gr=e.getTextureIndex,Lr=e.getViewPosition,Or=e.globalId,jr=e.glsl,Ur=e.glslFn,Wr=e.grayscale,Er=e.greaterThan,qr=e.greaterThanEqual,zr=e.hash,Zr=e.highpModelNormalViewMatrix,Xr=e.highpModelViewMatrix,Kr=e.hue,Yr=e.increment,Hr=e.incrementBefore,Jr=e.instance,Qr=e.instanceIndex,$r=e.instancedArray,ea=e.instancedBufferAttribute,ta=e.instancedDynamicBufferAttribute,ra=e.instancedMesh,aa=e.int,oa=e.inverse,ia=e.inverseSqrt,na=e.inversesqrt,la=e.invocationLocalIndex,sa=e.invocationSubgroupIndex,ca=e.ior,ma=e.iridescence,da=e.iridescenceIOR,pa=e.iridescenceThickness,ua=e.ivec2,ga=e.ivec3,ha=e.ivec4,xa=e.js,fa=e.label,ba=e.length,wa=e.lengthSq,_a=e.lessThan,va=e.lessThanEqual,Sa=e.lightPosition,Ta=e.lightProjectionUV,ya=e.lightShadowMatrix,Va=e.lightTargetDirection,Ma=e.lightTargetPosition,Da=e.lightViewPosition,Fa=e.lightingContext,Ia=e.lights,Ca=e.linearDepth,Pa=e.linearToneMapping,Na=e.localId,Ra=e.log,Ba=e.log2,Aa=e.logarithmicDepthToViewZ,ka=e.luminance,Ga=e.mat2,La=e.mat3,Oa=e.mat4,ja=e.matcapUV,Ua=e.materialAO,Wa=e.materialAlphaTest,Ea=e.materialAnisotropy,qa=e.materialAnisotropyVector,za=e.materialAttenuationColor,Za=e.materialAttenuationDistance,Xa=e.materialClearcoat,Ka=e.materialClearcoatNormal,Ya=e.materialClearcoatRoughness,Ha=e.materialColor,Ja=e.materialDispersion,Qa=e.materialEmissive,$a=e.materialEnvIntensity,eo=e.materialEnvRotation,to=e.materialIOR,ro=e.materialIridescence,ao=e.materialIridescenceIOR,oo=e.materialIridescenceThickness,io=e.materialLightMap,no=e.materialLineDashOffset,lo=e.materialLineDashSize,so=e.materialLineGapSize,co=e.materialLineScale,mo=e.materialLineWidth,po=e.materialMetalness,uo=e.materialNormal,go=e.materialOpacity,ho=e.materialPointSize,xo=e.materialReference,fo=e.materialReflectivity,bo=e.materialRefractionRatio,wo=e.materialRotation,_o=e.materialRoughness,vo=e.materialSheen,So=e.materialSheenRoughness,To=e.materialShininess,yo=e.materialSpecular,Vo=e.materialSpecularColor,Mo=e.materialSpecularIntensity,Do=e.materialSpecularStrength,Fo=e.materialThickness,Io=e.materialTransmission,Co=e.max,Po=e.maxMipLevel,No=e.mediumpModelViewMatrix,Ro=e.metalness,Bo=e.min,Ao=e.mix,ko=e.mixElement,Go=e.mod,Lo=e.modInt,Oo=e.modelDirection,jo=e.modelNormalMatrix,Uo=e.modelPosition,Wo=e.modelRadius,Eo=e.modelScale,qo=e.modelViewMatrix,zo=e.modelViewPosition,Zo=e.modelViewProjection,Xo=e.modelWorldMatrix,Ko=e.modelWorldMatrixInverse,Yo=e.morphReference,Ho=e.mrt,Jo=e.mul,Qo=e.mx_aastep,$o=e.mx_add,ei=e.mx_atan2,ti=e.mx_cell_noise_float,ri=e.mx_contrast,ai=e.mx_divide,oi=e.mx_fractal_noise_float,ii=e.mx_fractal_noise_vec2,ni=e.mx_fractal_noise_vec3,li=e.mx_fractal_noise_vec4,si=e.mx_frame,ci=e.mx_heighttonormal,mi=e.mx_hsvtorgb,di=e.mx_ifequal,pi=e.mx_ifgreater,ui=e.mx_ifgreatereq,gi=e.mx_invert,hi=e.mx_modulo,xi=e.mx_multiply,fi=e.mx_noise_float,bi=e.mx_noise_vec3,wi=e.mx_noise_vec4,_i=e.mx_place2d,vi=e.mx_power,Si=e.mx_ramp4,Ti=e.mx_ramplr,yi=e.mx_ramptb,Vi=e.mx_rgbtohsv,Mi=e.mx_rotate2d,Di=e.mx_rotate3d,Fi=e.mx_safepower,Ii=e.mx_separate,Ci=e.mx_splitlr,Pi=e.mx_splittb,Ni=e.mx_srgb_texture_to_lin_rec709,Ri=e.mx_subtract,Bi=e.mx_timer,Ai=e.mx_transform_uv,ki=e.mx_unifiednoise2d,Gi=e.mx_unifiednoise3d,Li=e.mx_worley_noise_float,Oi=e.mx_worley_noise_vec2,ji=e.mx_worley_noise_vec3,Ui=e.negate,Wi=e.neutralToneMapping,Ei=e.nodeArray,qi=e.nodeImmutable,zi=e.nodeObject,Zi=e.nodeObjectIntent,Xi=e.nodeObjects,Ki=e.nodeProxy,Yi=e.nodeProxyIntent,Hi=e.normalFlat,Ji=e.normalGeometry,Qi=e.normalLocal,$i=e.normalMap,en=e.normalView,tn=e.normalViewGeometry,rn=e.normalWorld,an=e.normalWorldGeometry,on=e.normalize,nn=e.not,ln=e.notEqual,sn=e.numWorkgroups,cn=e.objectDirection,mn=e.objectGroup,dn=e.objectPosition,pn=e.objectRadius,un=e.objectScale,gn=e.objectViewPosition,hn=e.objectWorldMatrix,xn=e.OnObjectUpdate,fn=e.OnMaterialUpdate,bn=e.oneMinus,wn=e.or,_n=e.orthographicDepthToViewZ,vn=e.oscSawtooth,Sn=e.oscSine,Tn=e.oscSquare,yn=e.oscTriangle,Vn=e.output,Mn=e.outputStruct,Dn=e.overlay,Fn=e.overloadingFn,In=e.parabola,Cn=e.parallaxDirection,Pn=e.parallaxUV,Nn=e.parameter,Rn=e.pass,Bn=e.passTexture,An=e.pcurve,kn=e.perspectiveDepthToViewZ,Gn=e.pmremTexture,Ln=e.pointShadow,On=e.pointUV,jn=e.pointWidth,Un=e.positionGeometry,Wn=e.positionLocal,En=e.positionPrevious,qn=e.positionView,zn=e.positionViewDirection,Zn=e.positionWorld,Xn=e.positionWorldDirection,Kn=e.posterize,Yn=e.pow,Hn=e.pow2,Jn=e.pow3,Qn=e.pow4,$n=e.premultiplyAlpha,el=e.property,tl=e.radians,rl=e.rand,al=e.range,ol=e.rangeFog,il=e.rangeFogFactor,nl=e.reciprocal,ll=e.reference,sl=e.referenceBuffer,cl=e.reflect,ml=e.reflectVector,dl=e.reflectView,pl=e.reflector,ul=e.refract,gl=e.refractVector,hl=e.refractView,xl=e.reinhardToneMapping,fl=e.remap,bl=e.remapClamp,wl=e.renderGroup,_l=e.renderOutput,vl=e.rendererReference,Sl=e.rotate,Tl=e.rotateUV,yl=e.roughness,Vl=e.round,Ml=e.rtt,Dl=e.sRGBTransferEOTF,Fl=e.sRGBTransferOETF,Il=e.sample,Cl=e.sampler,Pl=e.samplerComparison,Nl=e.saturate,Rl=e.saturation,Bl=e.screen,Al=e.screenCoordinate,kl=e.screenSize,Gl=e.screenUV,Ll=e.scriptable,Ol=e.scriptableValue,jl=e.select,Ul=e.setCurrentStack,Wl=e.setName,El=e.shaderStages,ql=e.shadow,zl=e.shadowPositionWorld,Zl=e.shapeCircle,Xl=e.sharedUniformGroup,Kl=e.sheen,Yl=e.sheenRoughness,Hl=e.shiftLeft,Jl=e.shiftRight,Ql=e.shininess,$l=e.sign,es=e.sin,ts=e.sinc,rs=e.skinning,as=e.smoothstep,os=e.smoothstepElement,is=e.specularColor,ns=e.specularF90,ls=e.spherizeUV,ss=e.split,cs=e.spritesheetUV,ms=e.sqrt,ds=e.stack,ps=e.step,us=e.stepElement,gs=e.storage,hs=e.storageBarrier,xs=e.storageObject,fs=e.storageTexture,bs=e.string,ws=e.struct,_s=e.sub,vs=e.subBuild,Ss=e.subgroupIndex,Ts=e.subgroupSize,ys=e.tan,Vs=e.tangentGeometry,Ms=e.tangentLocal,Ds=e.tangentView,Fs=e.tangentWorld,Is=e.temp,Cs=e.texture,Ps=e.texture3D,Ns=e.textureBarrier,Rs=e.textureBicubic,Bs=e.textureBicubicLevel,As=e.textureCubeUV,ks=e.textureLoad,Gs=e.textureSize,Ls=e.textureStore,Os=e.thickness,js=e.time,Us=e.timerDelta,Ws=e.timerGlobal,Es=e.timerLocal,qs=e.toneMapping,zs=e.toneMappingExposure,Zs=e.toonOutlinePass,Xs=e.transformDirection,Ks=e.transformNormal,Ys=e.transformNormalToView,Hs=e.transformedClearcoatNormalView,Js=e.transformedNormalView,Qs=e.transformedNormalWorld,$s=e.transmission,ec=e.transpose,tc=e.triNoise3D,rc=e.triplanarTexture,ac=e.triplanarTextures,oc=e.trunc,ic=e.uint,nc=e.uniform,lc=e.uniformArray,sc=e.uniformCubeTexture,cc=e.uniformGroup,mc=e.uniformTexture,dc=e.unpremultiplyAlpha,pc=e.userData,uc=e.uv,gc=e.uvec2,hc=e.uvec3,xc=e.uvec4,fc=e.varying,bc=e.varyingProperty,wc=e.vec2,_c=e.vec3,vc=e.vec4,Sc=e.vectorComponents,Tc=e.velocity,yc=e.vertexColor,Vc=e.vertexIndex,Mc=e.vertexStage,Dc=e.vibrance,Fc=e.viewZToLogarithmicDepth,Ic=e.viewZToOrthographicDepth,Cc=e.viewZToPerspectiveDepth,Pc=e.viewport,Nc=e.viewportCoordinate,Rc=e.viewportDepthTexture,Bc=e.viewportLinearDepth,Ac=e.viewportMipTexture,kc=e.viewportResolution,Gc=e.viewportSafeUV,Lc=e.viewportSharedTexture,Oc=e.viewportSize,jc=e.viewportTexture,Uc=e.viewportUV,Wc=e.wgsl,Ec=e.wgslFn,qc=e.workgroupArray,zc=e.workgroupBarrier,Zc=e.workgroupId,Xc=e.workingToColorSpace,Kc=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,d as EPSILON,p as F_Schlick,u as Fn,g as INFINITY,h as If,x as Loop,f as NodeAccess,b as NodeShaderStage,w as NodeType,_ as NodeUpdateType,fn as OnMaterialUpdate,xn as OnObjectUpdate,v as PCFShadowFilter,S as PCFSoftShadowFilter,T as PI,y as PI2,V as PointShadowFilter,M as Return,D as Schlick_to_F0,F as ScriptableNodeResources,I as ShaderNode,C as Stack,P as Switch,N as TBNViewMatrix,R as VSMShadowFilter,B as V_GGX_SmithCorrelated,A as Var,k as VarIntent,G as abs,L as acesFilmicToneMapping,O as acos,j as add,U as addMethodChaining,W as addNodeElement,E as agxToneMapping,q as all,z as alphaT,Z as and,X as anisotropy,K as anisotropyB,Y as anisotropyT,H as any,J as append,Q as array,$ as arrayBuffer,ee as asin,te as assign,re as atan,ae as atan2,oe as atomicAdd,ie as atomicAnd,ne as atomicFunc,le as atomicLoad,se as atomicMax,ce as atomicMin,me as atomicOr,de as atomicStore,pe as atomicSub,ue as atomicXor,ge as attenuationColor,he as attenuationDistance,xe as attribute,fe as attributeArray,be as backgroundBlurriness,we as backgroundIntensity,_e as backgroundRotation,ve as batch,Se as bentNormalView,Te as billboarding,ye as bitAnd,Ve as bitNot,Me as bitOr,De as bitXor,Fe as bitangentGeometry,Ie as bitangentLocal,Ce as bitangentView,Pe as bitangentWorld,Ne as bitcast,Re as blendBurn,Be as blendColor,Ae as blendDodge,ke as blendOverlay,Ge as blendScreen,Le as blur,Oe as bool,je as buffer,Ue as bufferAttribute,We as bumpMap,Ee as burn,qe as bvec2,ze as bvec3,Ze as bvec4,Xe as bypass,Ke as cache,Ye as call,He as cameraFar,Je as cameraIndex,Qe as cameraNear,$e as cameraNormalMatrix,et as cameraPosition,tt as cameraProjectionMatrix,rt as cameraProjectionMatrixInverse,at as cameraViewMatrix,ot as cameraWorldMatrix,it as cbrt,nt as cdl,lt as ceil,st as checker,ct as cineonToneMapping,mt as clamp,dt as clearcoat,pt as clearcoatNormalView,ut as clearcoatRoughness,gt as code,ht as color,xt as colorSpaceToWorking,ft as colorToDirection,bt as compute,wt as computeKernel,_t as computeSkinning,vt as context,St as convert,Tt as convertColorSpace,yt as convertToTexture,Vt as cos,Mt as cross,Dt as cubeTexture,Ft as cubeTextureBase,It as cubeToUV,Ct as dFdx,Pt as dFdy,Nt as dashSize,Rt as debug,Bt as decrement,At as decrementBefore,kt as defaultBuildStages,Gt as defaultShaderStages,Lt as defined,Ot as degrees,jt as deltaTime,Ut as densityFog,Wt as densityFogFactor,Et as depth,qt as depthPass,zt as determinant,Zt as difference,Xt as diffuseColor,Kt as directPointLight,Yt as directionToColor,Ht as directionToFaceDirection,Jt as dispersion,Qt as distance,$t as div,er as dodge,tr as dot,rr as drawIndex,ar as dynamicBufferAttribute,or as element,ir as emissive,nr as equal,lr as equals,sr as equirectUV,cr as exp,mr as exp2,dr as expression,pr as faceDirection,ur as faceForward,gr as faceforward,hr as float,xr as floor,fr as fog,br as fract,wr as frameGroup,_r as frameId,vr as frontFacing,Sr as fwidth,Tr as gain,yr as gapSize,Vr as getConstNodeType,Mr as getCurrentStack,Dr as getDirection,Fr as getDistanceAttenuation,Ir as getGeometryRoughness,Cr as getNormalFromDepth,Pr as getParallaxCorrectNormal,Nr as getRoughness,Rr as getScreenPosition,Br as getShIrradianceAt,Ar as getShadowMaterial,kr as getShadowRenderObjectFunction,Gr as getTextureIndex,Lr as getViewPosition,Or as globalId,jr as glsl,Ur as glslFn,Wr as grayscale,Er as greaterThan,qr as greaterThanEqual,zr as hash,Zr as highpModelNormalViewMatrix,Xr as highpModelViewMatrix,Kr as hue,Yr as increment,Hr as incrementBefore,Jr as instance,Qr as instanceIndex,$r as instancedArray,ea as instancedBufferAttribute,ta as instancedDynamicBufferAttribute,ra as instancedMesh,aa as int,oa as inverse,ia as inverseSqrt,na as inversesqrt,la as invocationLocalIndex,sa as invocationSubgroupIndex,ca as ior,ma as iridescence,da as iridescenceIOR,pa as iridescenceThickness,ua as ivec2,ga as ivec3,ha as ivec4,xa as js,fa as label,ba as length,wa as lengthSq,_a as lessThan,va as lessThanEqual,Sa as lightPosition,Ta as lightProjectionUV,ya as lightShadowMatrix,Va as lightTargetDirection,Ma as lightTargetPosition,Da as lightViewPosition,Fa as lightingContext,Ia as lights,Ca as linearDepth,Pa as linearToneMapping,Na as localId,Ra as log,Ba as log2,Aa as logarithmicDepthToViewZ,ka as luminance,Ga as mat2,La as mat3,Oa as mat4,ja as matcapUV,Ua as materialAO,Wa as materialAlphaTest,Ea as materialAnisotropy,qa as materialAnisotropyVector,za as materialAttenuationColor,Za as materialAttenuationDistance,Xa as materialClearcoat,Ka as materialClearcoatNormal,Ya as materialClearcoatRoughness,Ha as materialColor,Ja as materialDispersion,Qa as materialEmissive,$a as materialEnvIntensity,eo as materialEnvRotation,to as materialIOR,ro as materialIridescence,ao as materialIridescenceIOR,oo as materialIridescenceThickness,io as materialLightMap,no as materialLineDashOffset,lo as materialLineDashSize,so as materialLineGapSize,co as materialLineScale,mo as materialLineWidth,po as materialMetalness,uo as materialNormal,go as materialOpacity,ho as materialPointSize,xo as materialReference,fo as materialReflectivity,bo as materialRefractionRatio,wo as materialRotation,_o as materialRoughness,vo as materialSheen,So as materialSheenRoughness,To as materialShininess,yo as materialSpecular,Vo as materialSpecularColor,Mo as materialSpecularIntensity,Do as materialSpecularStrength,Fo as materialThickness,Io as materialTransmission,Co as max,Po as maxMipLevel,No as mediumpModelViewMatrix,Ro as metalness,Bo as min,Ao as mix,ko as mixElement,Go as mod,Lo as modInt,Oo as modelDirection,jo as modelNormalMatrix,Uo as modelPosition,Wo as modelRadius,Eo as modelScale,qo as modelViewMatrix,zo as modelViewPosition,Zo as modelViewProjection,Xo as modelWorldMatrix,Ko as modelWorldMatrixInverse,Yo as morphReference,Ho as mrt,Jo as mul,Qo as mx_aastep,$o as mx_add,ei as mx_atan2,ti as mx_cell_noise_float,ri as mx_contrast,ai as mx_divide,oi as mx_fractal_noise_float,ii as mx_fractal_noise_vec2,ni as mx_fractal_noise_vec3,li as mx_fractal_noise_vec4,si as mx_frame,ci as mx_heighttonormal,mi as mx_hsvtorgb,di as mx_ifequal,pi as mx_ifgreater,ui as mx_ifgreatereq,gi as mx_invert,hi as mx_modulo,xi as mx_multiply,fi as mx_noise_float,bi as mx_noise_vec3,wi as mx_noise_vec4,_i as mx_place2d,vi as mx_power,Si as mx_ramp4,Ti as mx_ramplr,yi as mx_ramptb,Vi as mx_rgbtohsv,Mi as mx_rotate2d,Di as mx_rotate3d,Fi as mx_safepower,Ii as mx_separate,Ci as mx_splitlr,Pi as mx_splittb,Ni as mx_srgb_texture_to_lin_rec709,Ri as mx_subtract,Bi as mx_timer,Ai as mx_transform_uv,ki as mx_unifiednoise2d,Gi as mx_unifiednoise3d,Li as mx_worley_noise_float,Oi as mx_worley_noise_vec2,ji as mx_worley_noise_vec3,Ui as negate,Wi as neutralToneMapping,Ei as nodeArray,qi as nodeImmutable,zi as nodeObject,Zi as nodeObjectIntent,Xi as nodeObjects,Ki as nodeProxy,Yi as nodeProxyIntent,Hi as normalFlat,Ji as normalGeometry,Qi as normalLocal,$i as normalMap,en as normalView,tn as normalViewGeometry,rn as normalWorld,an as normalWorldGeometry,on as normalize,nn as not,ln as notEqual,sn as numWorkgroups,cn as objectDirection,mn as objectGroup,dn as objectPosition,pn as objectRadius,un as objectScale,gn as objectViewPosition,hn as objectWorldMatrix,bn as oneMinus,wn as or,_n as orthographicDepthToViewZ,vn as oscSawtooth,Sn as oscSine,Tn as oscSquare,yn as oscTriangle,Vn as output,Mn as outputStruct,Dn as overlay,Fn as overloadingFn,In as parabola,Cn as parallaxDirection,Pn as parallaxUV,Nn as parameter,Rn as pass,Bn as passTexture,An as pcurve,kn as perspectiveDepthToViewZ,Gn as pmremTexture,Ln as pointShadow,On as pointUV,jn as pointWidth,Un as positionGeometry,Wn as positionLocal,En as positionPrevious,qn as positionView,zn as positionViewDirection,Zn as positionWorld,Xn as positionWorldDirection,Kn as posterize,Yn as pow,Hn as pow2,Jn as pow3,Qn as pow4,$n as premultiplyAlpha,el as property,tl as radians,rl as rand,al as range,ol as rangeFog,il as rangeFogFactor,nl as reciprocal,ll as reference,sl as referenceBuffer,cl as reflect,ml as reflectVector,dl as reflectView,pl as reflector,ul as refract,gl as refractVector,hl as refractView,xl as reinhardToneMapping,fl as remap,bl as remapClamp,wl as renderGroup,_l as renderOutput,vl as rendererReference,Sl as rotate,Tl as rotateUV,yl as roughness,Vl as round,Ml as rtt,Dl as sRGBTransferEOTF,Fl as sRGBTransferOETF,Il as sample,Cl as sampler,Pl as samplerComparison,Nl as saturate,Rl as saturation,Bl as screen,Al as screenCoordinate,kl as screenSize,Gl as screenUV,Ll as scriptable,Ol as scriptableValue,jl as select,Ul as setCurrentStack,Wl as setName,El as shaderStages,ql as shadow,zl as shadowPositionWorld,Zl as shapeCircle,Xl as sharedUniformGroup,Kl as sheen,Yl as sheenRoughness,Hl as shiftLeft,Jl as shiftRight,Ql as shininess,$l as sign,es as sin,ts as sinc,rs as skinning,as as smoothstep,os as smoothstepElement,is as specularColor,ns as specularF90,ls as spherizeUV,ss as split,cs as spritesheetUV,ms as sqrt,ds as stack,ps as step,us as stepElement,gs as storage,hs as storageBarrier,xs as storageObject,fs as storageTexture,bs as string,ws as struct,_s as sub,vs as subBuild,Ss as subgroupIndex,Ts as subgroupSize,ys as tan,Vs as tangentGeometry,Ms as tangentLocal,Ds as tangentView,Fs as tangentWorld,Is as temp,Cs as texture,Ps as texture3D,Ns as textureBarrier,Rs as textureBicubic,Bs as textureBicubicLevel,As as textureCubeUV,ks as textureLoad,Gs as textureSize,Ls as textureStore,Os as thickness,js as time,Us as timerDelta,Ws as timerGlobal,Es as timerLocal,qs as toneMapping,zs as toneMappingExposure,Zs as toonOutlinePass,Xs as transformDirection,Ks as transformNormal,Ys as transformNormalToView,Hs as transformedClearcoatNormalView,Js as transformedNormalView,Qs as transformedNormalWorld,$s as transmission,ec as transpose,tc as triNoise3D,rc as triplanarTexture,ac as triplanarTextures,oc as trunc,ic as uint,nc as uniform,lc as uniformArray,sc as uniformCubeTexture,cc as uniformGroup,mc as uniformTexture,dc as unpremultiplyAlpha,pc as userData,uc as uv,gc as uvec2,hc as uvec3,xc as uvec4,fc as varying,bc as varyingProperty,wc as vec2,_c as vec3,vc as vec4,Sc as vectorComponents,Tc as velocity,yc as vertexColor,Vc as vertexIndex,Mc as vertexStage,Dc as vibrance,Fc as viewZToLogarithmicDepth,Ic as viewZToOrthographicDepth,Cc as viewZToPerspectiveDepth,Pc as viewport,Nc as viewportCoordinate,Rc as viewportDepthTexture,Bc as viewportLinearDepth,Ac as viewportMipTexture,kc as viewportResolution,Gc as viewportSafeUV,Lc as viewportSharedTexture,Oc as viewportSize,jc as viewportTexture,Uc as viewportUV,Wc as wgsl,Ec as wgslFn,qc as workgroupArray,zc as workgroupBarrier,Zc as workgroupId,Xc as workingToColorSpace,Kc 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,_=e.PCFShadowFilter,S=e.PCFSoftShadowFilter,T=e.PI,y=e.PI2,V=e.TWO_PI,M=e.HALF_PI,F=e.PointShadowFilter,D=e.Return,I=e.Schlick_to_F0,B=e.ShaderNode,C=e.Stack,P=e.Switch,R=e.TBNViewMatrix,A=e.VSMShadowFilter,O=e.V_GGX_SmithCorrelated,k=e.Var,N=e.VarIntent,L=e.abs,U=e.acesFilmicToneMapping,G=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.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.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,_e=e.backgroundBlurriness,Se=e.backgroundIntensity,Te=e.backgroundRotation,ye=e.batch,Ve=e.bentNormalView,Me=e.billboarding,Fe=e.bitAnd,De=e.bitNot,Ie=e.bitOr,Be=e.bitXor,Ce=e.bitangentGeometry,Pe=e.bitangentLocal,Re=e.bitangentView,Ae=e.bitangentWorld,Oe=e.bitcast,ke=e.blendBurn,Ne=e.blendColor,Le=e.blendDodge,Ue=e.blendOverlay,Ge=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,_t=e.code,St=e.color,Tt=e.colorSpaceToWorking,yt=e.colorToDirection,Vt=e.compute,Mt=e.computeKernel,Ft=e.computeSkinning,Dt=e.context,It=e.convert,Bt=e.convertColorSpace,Ct=e.convertToTexture,Pt=e.countLeadingZeros,Rt=e.countOneBits,At=e.countTrailingZeros,Ot=e.cos,kt=e.cosh,Nt=e.cross,Lt=e.cubeTexture,Ut=e.cubeTextureBase,Gt=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.equirectUV,fr=e.exp,br=e.exp2,vr=e.exponentialHeightFogFactor,wr=e.expression,_r=e.faceDirection,Sr=e.faceForward,Tr=e.faceforward,yr=e.float,Vr=e.floatBitsToInt,Mr=e.floatBitsToUint,Fr=e.floor,Dr=e.fog,Ir=e.fract,Br=e.frameGroup,Cr=e.frameId,Pr=e.frontFacing,Rr=e.fwidth,Ar=e.gain,Or=e.gapSize,kr=e.getConstNodeType,Nr=e.getCurrentStack,Lr=e.getDirection,Ur=e.getDistanceAttenuation,Gr=e.getGeometryRoughness,jr=e.getNormalFromDepth,Er=e.interleavedGradientNoise,Wr=e.vogelDiskSample,qr=e.getParallaxCorrectNormal,zr=e.getRoughness,Zr=e.getScreenPosition,Xr=e.getShIrradianceAt,Hr=e.getShadowMaterial,Kr=e.getShadowRenderObjectFunction,Yr=e.getTextureIndex,Jr=e.getViewPosition,Qr=e.globalId,$r=e.glsl,ea=e.glslFn,ta=e.grayscale,ra=e.greaterThan,aa=e.greaterThanEqual,oa=e.hash,ia=e.highpModelNormalViewMatrix,na=e.highpModelViewMatrix,la=e.hue,sa=e.increment,ca=e.incrementBefore,ma=e.instance,ua=e.instanceIndex,pa=e.instancedArray,da=e.instancedBufferAttribute,ga=e.instancedDynamicBufferAttribute,ha=e.instancedMesh,xa=e.int,fa=e.intBitsToFloat,ba=e.inverse,va=e.inverseSqrt,wa=e.inversesqrt,_a=e.invocationLocalIndex,Sa=e.invocationSubgroupIndex,Ta=e.ior,ya=e.iridescence,Va=e.iridescenceIOR,Ma=e.iridescenceThickness,Fa=e.ivec2,Da=e.ivec3,Ia=e.ivec4,Ba=e.js,Ca=e.label,Pa=e.length,Ra=e.lengthSq,Aa=e.lessThan,Oa=e.lessThanEqual,ka=e.lightPosition,Na=e.lightProjectionUV,La=e.lightShadowMatrix,Ua=e.lightTargetDirection,Ga=e.lightTargetPosition,ja=e.lightViewPosition,Ea=e.lightingContext,Wa=e.lights,qa=e.linearDepth,za=e.linearToneMapping,Za=e.localId,Xa=e.log,Ha=e.log2,Ka=e.logarithmicDepthToViewZ,Ya=e.luminance,Ja=e.mat2,Qa=e.mat3,$a=e.mat4,eo=e.matcapUV,to=e.materialAO,ro=e.materialAlphaTest,ao=e.materialAnisotropy,oo=e.materialAnisotropyVector,io=e.materialAttenuationColor,no=e.materialAttenuationDistance,lo=e.materialClearcoat,so=e.materialClearcoatNormal,co=e.materialClearcoatRoughness,mo=e.materialColor,uo=e.materialDispersion,po=e.materialEmissive,go=e.materialEnvIntensity,ho=e.materialEnvRotation,xo=e.materialIOR,fo=e.materialIridescence,bo=e.materialIridescenceIOR,vo=e.materialIridescenceThickness,wo=e.materialLightMap,_o=e.materialLineDashOffset,So=e.materialLineDashSize,To=e.materialLineGapSize,yo=e.materialLineScale,Vo=e.materialLineWidth,Mo=e.materialMetalness,Fo=e.materialNormal,Do=e.materialOpacity,Io=e.materialPointSize,Bo=e.materialReference,Co=e.materialReflectivity,Po=e.materialRefractionRatio,Ro=e.materialRotation,Ao=e.materialRoughness,Oo=e.materialSheen,ko=e.materialSheenRoughness,No=e.materialShininess,Lo=e.materialSpecular,Uo=e.materialSpecularColor,Go=e.materialSpecularIntensity,jo=e.materialSpecularStrength,Eo=e.materialThickness,Wo=e.materialTransmission,qo=e.max,zo=e.maxMipLevel,Zo=e.mediumpModelViewMatrix,Xo=e.metalness,Ho=e.min,Ko=e.mix,Yo=e.mixElement,Jo=e.mod,Qo=e.modInt,$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,_i=e.mx_fractal_noise_vec4,Si=e.mx_frame,Ti=e.mx_heighttonormal,yi=e.mx_hsvtorgb,Vi=e.mx_ifequal,Mi=e.mx_ifgreater,Fi=e.mx_ifgreatereq,Di=e.mx_invert,Ii=e.mx_modulo,Bi=e.mx_multiply,Ci=e.mx_noise_float,Pi=e.mx_noise_vec3,Ri=e.mx_noise_vec4,Ai=e.mx_place2d,Oi=e.mx_power,ki=e.mx_ramp4,Ni=e.mx_ramplr,Li=e.mx_ramptb,Ui=e.mx_rgbtohsv,Gi=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.neutralToneMapping,an=e.nodeArray,on=e.nodeImmutable,nn=e.nodeObject,ln=e.nodeObjectIntent,sn=e.nodeObjects,cn=e.nodeProxy,mn=e.nodeProxyIntent,un=e.normalFlat,pn=e.normalGeometry,dn=e.normalLocal,gn=e.normalMap,hn=e.normalView,xn=e.normalViewGeometry,fn=e.normalWorld,bn=e.normalWorldGeometry,vn=e.normalize,wn=e.not,_n=e.notEqual,Sn=e.numWorkgroups,Tn=e.objectDirection,yn=e.objectGroup,Vn=e.objectPosition,Mn=e.objectRadius,Fn=e.objectScale,Dn=e.objectViewPosition,In=e.objectWorldMatrix,Bn=e.OnBeforeObjectUpdate,Cn=e.OnBeforeMaterialUpdate,Pn=e.OnObjectUpdate,Rn=e.OnMaterialUpdate,An=e.oneMinus,On=e.or,kn=e.orthographicDepthToViewZ,Nn=e.oscSawtooth,Ln=e.oscSine,Un=e.oscSquare,Gn=e.oscTriangle,jn=e.output,En=e.outputStruct,Wn=e.overloadingFn,qn=e.packHalf2x16,zn=e.packSnorm2x16,Zn=e.packUnorm2x16,Xn=e.parabola,Hn=e.parallaxDirection,Kn=e.parallaxUV,Yn=e.parameter,Jn=e.pass,Qn=e.passTexture,$n=e.pcurve,el=e.perspectiveDepthToViewZ,tl=e.pmremTexture,rl=e.pointShadow,al=e.pointUV,ol=e.pointWidth,il=e.positionGeometry,nl=e.positionLocal,ll=e.positionPrevious,sl=e.positionView,cl=e.positionViewDirection,ml=e.positionWorld,ul=e.positionWorldDirection,pl=e.posterize,dl=e.pow,gl=e.pow2,hl=e.pow3,xl=e.pow4,fl=e.premultiplyAlpha,bl=e.property,vl=e.radians,wl=e.rand,_l=e.range,Sl=e.rangeFog,Tl=e.rangeFogFactor,yl=e.reciprocal,Vl=e.reference,Ml=e.referenceBuffer,Fl=e.reflect,Dl=e.reflectVector,Il=e.reflectView,Bl=e.reflector,Cl=e.refract,Pl=e.refractVector,Rl=e.refractView,Al=e.reinhardToneMapping,Ol=e.remap,kl=e.remapClamp,Nl=e.renderGroup,Ll=e.renderOutput,Ul=e.rendererReference,Gl=e.replaceDefaultUV,jl=e.rotate,El=e.rotateUV,Wl=e.roughness,ql=e.round,zl=e.rtt,Zl=e.sRGBTransferEOTF,Xl=e.sRGBTransferOETF,Hl=e.sample,Kl=e.sampler,Yl=e.samplerComparison,Jl=e.saturate,Ql=e.saturation,$l=e.screen,es=e.screenCoordinate,ts=e.screenDPR,rs=e.screenSize,as=e.screenUV,os=e.select,is=e.setCurrentStack,ns=e.setName,ls=e.shaderStages,ss=e.shadow,cs=e.shadowPositionWorld,ms=e.shapeCircle,us=e.sharedUniformGroup,ps=e.sheen,ds=e.sheenRoughness,gs=e.shiftLeft,hs=e.shiftRight,xs=e.shininess,fs=e.sign,bs=e.sin,vs=e.sinh,ws=e.sinc,_s=e.skinning,Ss=e.smoothstep,Ts=e.smoothstepElement,ys=e.specularColor,Vs=e.specularF90,Ms=e.spherizeUV,Fs=e.split,Ds=e.spritesheetUV,Is=e.sqrt,Bs=e.stack,Cs=e.step,Ps=e.stepElement,Rs=e.storage,As=e.storageBarrier,Os=e.storageTexture,ks=e.string,Ns=e.struct,Ls=e.sub,Us=e.subgroupAdd,Gs=e.subgroupAll,js=e.subgroupAnd,Es=e.subgroupAny,Ws=e.subgroupBallot,qs=e.subgroupBroadcast,zs=e.subgroupBroadcastFirst,Zs=e.subBuild,Xs=e.subgroupElect,Hs=e.subgroupExclusiveAdd,Ks=e.subgroupExclusiveMul,Ys=e.subgroupInclusiveAdd,Js=e.subgroupInclusiveMul,Qs=e.subgroupIndex,$s=e.subgroupMax,ec=e.subgroupMin,tc=e.subgroupMul,rc=e.subgroupOr,ac=e.subgroupShuffle,oc=e.subgroupShuffleDown,ic=e.subgroupShuffleUp,nc=e.subgroupShuffleXor,lc=e.subgroupSize,sc=e.subgroupXor,cc=e.tan,mc=e.tanh,uc=e.tangentGeometry,pc=e.tangentLocal,dc=e.tangentView,gc=e.tangentWorld,hc=e.texture,xc=e.texture3D,fc=e.textureBarrier,bc=e.textureBicubic,vc=e.textureBicubicLevel,wc=e.textureCubeUV,_c=e.textureLoad,Sc=e.textureSize,Tc=e.textureLevel,yc=e.textureStore,Vc=e.thickness,Mc=e.time,Fc=e.toneMapping,Dc=e.toneMappingExposure,Ic=e.toonOutlinePass,Bc=e.transformDirection,Cc=e.transformNormal,Pc=e.transformNormalToView,Rc=e.transformedClearcoatNormalView,Ac=e.transformedNormalView,Oc=e.transformedNormalWorld,kc=e.transmission,Nc=e.transpose,Lc=e.triNoise3D,Uc=e.triplanarTexture,Gc=e.triplanarTextures,jc=e.trunc,Ec=e.uint,Wc=e.uintBitsToFloat,qc=e.uniform,zc=e.uniformArray,Zc=e.uniformCubeTexture,Xc=e.uniformGroup,Hc=e.uniformFlow,Kc=e.uniformTexture,Yc=e.unpackHalf2x16,Jc=e.unpackSnorm2x16,Qc=e.unpackUnorm2x16,$c=e.unpremultiplyAlpha,em=e.userData,tm=e.uv,rm=e.uvec2,am=e.uvec3,om=e.uvec4,im=e.varying,nm=e.varyingProperty,lm=e.vec2,sm=e.vec3,cm=e.vec4,mm=e.vectorComponents,um=e.velocity,pm=e.vertexColor,dm=e.vertexIndex,gm=e.vertexStage,hm=e.vibrance,xm=e.viewZToLogarithmicDepth,fm=e.viewZToOrthographicDepth,bm=e.viewZToPerspectiveDepth,vm=e.viewZToReversedOrthographicDepth,wm=e.viewZToReversedPerspectiveDepth,_m=e.viewport,Sm=e.viewportCoordinate,Tm=e.viewportDepthTexture,ym=e.viewportLinearDepth,Vm=e.viewportMipTexture,Mm=e.viewportOpaqueMipTexture,Fm=e.viewportResolution,Dm=e.viewportSafeUV,Im=e.viewportSharedTexture,Bm=e.viewportSize,Cm=e.viewportTexture,Pm=e.viewportUV,Rm=e.wgsl,Am=e.wgslFn,Om=e.workgroupArray,km=e.workgroupBarrier,Nm=e.workgroupId,Lm=e.workingToColorSpace,Um=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,Cn as OnBeforeMaterialUpdate,Bn as OnBeforeObjectUpdate,Rn as OnMaterialUpdate,Pn as OnObjectUpdate,_ as PCFShadowFilter,S as PCFSoftShadowFilter,T as PI,y as PI2,F as PointShadowFilter,D as Return,I as Schlick_to_F0,B as ShaderNode,C as Stack,P as Switch,R as TBNViewMatrix,V as TWO_PI,A as VSMShadowFilter,O as V_GGX_SmithCorrelated,k as Var,N as VarIntent,L as abs,U as acesFilmicToneMapping,G 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 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 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,_e as backgroundBlurriness,Se as backgroundIntensity,Te as backgroundRotation,ye as batch,Ve as bentNormalView,Me as billboarding,Fe as bitAnd,De as bitNot,Ie as bitOr,Be as bitXor,Ce as bitangentGeometry,Pe as bitangentLocal,Re as bitangentView,Ae as bitangentWorld,Oe as bitcast,ke as blendBurn,Ne as blendColor,Le as blendDodge,Ue as blendOverlay,Ge 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,_t as code,St as color,Tt as colorSpaceToWorking,yt as colorToDirection,Vt as compute,Mt as computeKernel,Ft as computeSkinning,Dt as context,It as convert,Bt as convertColorSpace,Ct as convertToTexture,Ot as cos,kt as cosh,Pt as countLeadingZeros,Rt as countOneBits,At as countTrailingZeros,Nt as cross,Lt as cubeTexture,Ut as cubeTextureBase,Gt 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 equirectUV,fr as exp,br as exp2,vr as exponentialHeightFogFactor,wr as expression,_r as faceDirection,Sr as faceForward,Tr as faceforward,yr as float,Vr as floatBitsToInt,Mr as floatBitsToUint,Fr as floor,Dr as fog,Ir as fract,Br as frameGroup,Cr as frameId,Pr as frontFacing,Rr as fwidth,Ar as gain,Or as gapSize,kr as getConstNodeType,Nr as getCurrentStack,Lr as getDirection,Ur as getDistanceAttenuation,Gr as getGeometryRoughness,jr as getNormalFromDepth,qr as getParallaxCorrectNormal,zr as getRoughness,Zr as getScreenPosition,Xr as getShIrradianceAt,Hr as getShadowMaterial,Kr as getShadowRenderObjectFunction,Yr as getTextureIndex,Jr as getViewPosition,Qr as globalId,$r as glsl,ea as glslFn,ta as grayscale,ra as greaterThan,aa as greaterThanEqual,oa as hash,ia as highpModelNormalViewMatrix,na as highpModelViewMatrix,la as hue,sa as increment,ca as incrementBefore,ma as instance,ua as instanceIndex,pa as instancedArray,da as instancedBufferAttribute,ga as instancedDynamicBufferAttribute,ha as instancedMesh,xa as int,fa as intBitsToFloat,Er as interleavedGradientNoise,ba as inverse,va as inverseSqrt,wa as inversesqrt,_a as invocationLocalIndex,Sa as invocationSubgroupIndex,Ta as ior,ya as iridescence,Va as iridescenceIOR,Ma as iridescenceThickness,Fa as ivec2,Da as ivec3,Ia as ivec4,Ba as js,Ca as label,Pa as length,Ra as lengthSq,Aa as lessThan,Oa as lessThanEqual,ka as lightPosition,Na as lightProjectionUV,La as lightShadowMatrix,Ua as lightTargetDirection,Ga as lightTargetPosition,ja as lightViewPosition,Ea as lightingContext,Wa as lights,qa as linearDepth,za as linearToneMapping,Za as localId,Xa as log,Ha as log2,Ka as logarithmicDepthToViewZ,Ya as luminance,Ja as mat2,Qa as mat3,$a as mat4,eo as matcapUV,to as materialAO,ro as materialAlphaTest,ao as materialAnisotropy,oo as materialAnisotropyVector,io as materialAttenuationColor,no as materialAttenuationDistance,lo as materialClearcoat,so as materialClearcoatNormal,co as materialClearcoatRoughness,mo as materialColor,uo as materialDispersion,po as materialEmissive,go as materialEnvIntensity,ho as materialEnvRotation,xo as materialIOR,fo as materialIridescence,bo as materialIridescenceIOR,vo as materialIridescenceThickness,wo as materialLightMap,_o as materialLineDashOffset,So as materialLineDashSize,To as materialLineGapSize,yo as materialLineScale,Vo as materialLineWidth,Mo as materialMetalness,Fo as materialNormal,Do as materialOpacity,Io as materialPointSize,Bo as materialReference,Co as materialReflectivity,Po as materialRefractionRatio,Ro as materialRotation,Ao as materialRoughness,Oo as materialSheen,ko as materialSheenRoughness,No as materialShininess,Lo as materialSpecular,Uo as materialSpecularColor,Go as materialSpecularIntensity,jo as materialSpecularStrength,Eo as materialThickness,Wo as materialTransmission,qo as max,zo as maxMipLevel,Zo as mediumpModelViewMatrix,Xo as metalness,Ho as min,Ko as mix,Yo as mixElement,Jo as mod,Qo as modInt,$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,_i as mx_fractal_noise_vec4,Si as mx_frame,Ti as mx_heighttonormal,yi as mx_hsvtorgb,Vi as mx_ifequal,Mi as mx_ifgreater,Fi as mx_ifgreatereq,Di as mx_invert,Ii as mx_modulo,Bi as mx_multiply,Ci as mx_noise_float,Pi as mx_noise_vec3,Ri as mx_noise_vec4,Ai as mx_place2d,Oi as mx_power,ki as mx_ramp4,Ni as mx_ramplr,Li as mx_ramptb,Ui as mx_rgbtohsv,Gi 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 neutralToneMapping,an as nodeArray,on as nodeImmutable,nn as nodeObject,ln as nodeObjectIntent,sn as nodeObjects,cn as nodeProxy,mn as nodeProxyIntent,un as normalFlat,pn as normalGeometry,dn as normalLocal,gn as normalMap,hn as normalView,xn as normalViewGeometry,fn as normalWorld,bn as normalWorldGeometry,vn as normalize,wn as not,_n as notEqual,Sn as numWorkgroups,Tn as objectDirection,yn as objectGroup,Vn as objectPosition,Mn as objectRadius,Fn as objectScale,Dn as objectViewPosition,In as objectWorldMatrix,An as oneMinus,On as or,kn as orthographicDepthToViewZ,Nn as oscSawtooth,Ln as oscSine,Un as oscSquare,Gn as oscTriangle,jn as output,En as outputStruct,Wn as overloadingFn,qn as packHalf2x16,zn as packSnorm2x16,Zn as packUnorm2x16,Xn as parabola,Hn as parallaxDirection,Kn as parallaxUV,Yn as parameter,Jn as pass,Qn as passTexture,$n as pcurve,el as perspectiveDepthToViewZ,tl as pmremTexture,rl as pointShadow,al as pointUV,ol as pointWidth,il as positionGeometry,nl as positionLocal,ll as positionPrevious,sl as positionView,cl as positionViewDirection,ml as positionWorld,ul as positionWorldDirection,pl as posterize,dl as pow,gl as pow2,hl as pow3,xl as pow4,fl as premultiplyAlpha,bl as property,vl as radians,wl as rand,_l as range,Sl as rangeFog,Tl as rangeFogFactor,yl as reciprocal,Vl as reference,Ml as referenceBuffer,Fl as reflect,Dl as reflectVector,Il as reflectView,Bl as reflector,Cl as refract,Pl as refractVector,Rl as refractView,Al as reinhardToneMapping,Ol as remap,kl as remapClamp,Nl as renderGroup,Ll as renderOutput,Ul as rendererReference,Gl as replaceDefaultUV,jl as rotate,El as rotateUV,Wl as roughness,ql as round,zl as rtt,Zl as sRGBTransferEOTF,Xl as sRGBTransferOETF,Hl as sample,Kl as sampler,Yl as samplerComparison,Jl as saturate,Ql as saturation,$l as screen,es as screenCoordinate,ts as screenDPR,rs as screenSize,as as screenUV,os as select,is as setCurrentStack,ns as setName,ls as shaderStages,ss as shadow,cs as shadowPositionWorld,ms as shapeCircle,us as sharedUniformGroup,ps as sheen,ds as sheenRoughness,gs as shiftLeft,hs as shiftRight,xs as shininess,fs as sign,bs as sin,ws as sinc,vs as sinh,_s as skinning,Ss as smoothstep,Ts as smoothstepElement,ys as specularColor,Vs as specularF90,Ms as spherizeUV,Fs as split,Ds as spritesheetUV,Is as sqrt,Bs as stack,Cs as step,Ps as stepElement,Rs as storage,As as storageBarrier,Os as storageTexture,ks as string,Ns as struct,Ls as sub,Zs as subBuild,Us as subgroupAdd,Gs as subgroupAll,js as subgroupAnd,Es as subgroupAny,Ws as subgroupBallot,qs as subgroupBroadcast,zs as subgroupBroadcastFirst,Xs as subgroupElect,Hs as subgroupExclusiveAdd,Ks as subgroupExclusiveMul,Ys as subgroupInclusiveAdd,Js as subgroupInclusiveMul,Qs as subgroupIndex,$s as subgroupMax,ec as subgroupMin,tc as subgroupMul,rc as subgroupOr,ac as subgroupShuffle,oc as subgroupShuffleDown,ic as subgroupShuffleUp,nc as subgroupShuffleXor,lc as subgroupSize,sc as subgroupXor,cc as tan,uc as tangentGeometry,pc as tangentLocal,dc as tangentView,gc as tangentWorld,mc as tanh,hc as texture,xc as texture3D,fc as textureBarrier,bc as textureBicubic,vc as textureBicubicLevel,wc as textureCubeUV,Tc as textureLevel,_c as textureLoad,Sc as textureSize,yc as textureStore,Vc as thickness,Mc as time,Fc as toneMapping,Dc as toneMappingExposure,Ic as toonOutlinePass,Bc as transformDirection,Cc as transformNormal,Pc as transformNormalToView,Rc as transformedClearcoatNormalView,Ac as transformedNormalView,Oc as transformedNormalWorld,kc as transmission,Nc as transpose,Lc as triNoise3D,Uc as triplanarTexture,Gc as triplanarTextures,jc as trunc,Ec as uint,Wc as uintBitsToFloat,qc as uniform,zc as uniformArray,Zc as uniformCubeTexture,Hc as uniformFlow,Xc as uniformGroup,Kc as uniformTexture,Yc as unpackHalf2x16,Jc as unpackSnorm2x16,Qc as unpackUnorm2x16,$c as unpremultiplyAlpha,em as userData,tm as uv,rm as uvec2,am as uvec3,om as uvec4,im as varying,nm as varyingProperty,lm as vec2,sm as vec3,cm as vec4,mm as vectorComponents,um as velocity,pm as vertexColor,dm as vertexIndex,gm as vertexStage,hm as vibrance,xm as viewZToLogarithmicDepth,fm as viewZToOrthographicDepth,bm as viewZToPerspectiveDepth,vm as viewZToReversedOrthographicDepth,wm as viewZToReversedPerspectiveDepth,_m as viewport,Sm as viewportCoordinate,Tm as viewportDepthTexture,ym as viewportLinearDepth,Vm as viewportMipTexture,Mm as viewportOpaqueMipTexture,Fm as viewportResolution,Dm as viewportSafeUV,Im as viewportSharedTexture,Bm as viewportSize,Cm as viewportTexture,Pm as viewportUV,Wr as vogelDiskSample,Rm as wgsl,Am as wgslFn,Om as workgroupArray,km as workgroupBarrier,Nm as workgroupId,Lm as workingToColorSpace,Um as xor};
|