@plastic-software/three 0.181.3 → 0.183.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 +11330 -10017
- package/build/three.core.js +10011 -9493
- package/build/three.core.min.js +2 -2
- package/build/three.module.js +1414 -631
- package/build/three.module.min.js +2 -2
- package/build/three.tsl.js +21 -13
- package/build/three.tsl.min.js +2 -2
- package/build/three.webgpu.js +8007 -5427
- package/build/three.webgpu.min.js +2 -2
- package/build/three.webgpu.nodes.js +8005 -5426
- package/build/three.webgpu.nodes.min.js +2 -2
- package/examples/jsm/Addons.js +0 -3
- package/examples/jsm/animation/CCDIKSolver.js +2 -2
- package/examples/jsm/controls/ArcballControls.js +3 -3
- package/examples/jsm/controls/MapControls.js +55 -1
- package/examples/jsm/controls/OrbitControls.js +109 -6
- package/examples/jsm/controls/TrackballControls.js +6 -6
- package/examples/jsm/csm/CSM.js +2 -1
- package/examples/jsm/effects/AnaglyphEffect.js +102 -7
- package/examples/jsm/environments/ColorEnvironment.js +59 -0
- package/examples/jsm/environments/RoomEnvironment.js +3 -0
- package/examples/jsm/exporters/EXRExporter.js +1 -1
- package/examples/jsm/exporters/GLTFExporter.js +131 -4
- package/examples/jsm/exporters/USDZExporter.js +22 -3
- package/examples/jsm/geometries/DecalGeometry.js +1 -1
- package/examples/jsm/helpers/AnimationPathHelper.js +302 -0
- package/examples/jsm/helpers/LightProbeHelperGPU.js +1 -1
- package/examples/jsm/helpers/TextureHelperGPU.js +1 -1
- package/examples/jsm/helpers/ViewHelper.js +67 -8
- package/examples/jsm/inspector/Inspector.js +74 -14
- package/examples/jsm/inspector/RendererInspector.js +12 -2
- package/examples/jsm/inspector/tabs/Console.js +41 -7
- package/examples/jsm/inspector/tabs/Parameters.js +18 -2
- package/examples/jsm/inspector/tabs/Performance.js +2 -2
- package/examples/jsm/inspector/tabs/Viewer.js +4 -4
- package/examples/jsm/inspector/ui/Profiler.js +1836 -31
- package/examples/jsm/inspector/ui/Style.js +973 -14
- package/examples/jsm/inspector/ui/Tab.js +188 -1
- package/examples/jsm/inspector/ui/Values.js +17 -1
- package/examples/jsm/libs/meshopt_decoder.module.js +6 -5
- package/examples/jsm/lines/LineMaterial.js +6 -0
- package/examples/jsm/loaders/3DMLoader.js +5 -4
- package/examples/jsm/loaders/3MFLoader.js +2 -2
- package/examples/jsm/loaders/AMFLoader.js +2 -2
- package/examples/jsm/loaders/ColladaLoader.js +24 -4026
- package/examples/jsm/loaders/DRACOLoader.js +5 -5
- package/examples/jsm/loaders/EXRLoader.js +5 -5
- package/examples/jsm/loaders/FBXLoader.js +2 -4
- package/examples/jsm/loaders/GCodeLoader.js +34 -8
- package/examples/jsm/loaders/GLTFLoader.js +122 -171
- package/examples/jsm/loaders/HDRLoader.js +0 -1
- package/examples/jsm/loaders/KMZLoader.js +5 -5
- package/examples/jsm/loaders/KTX2Loader.js +19 -3
- package/examples/jsm/loaders/LDrawLoader.js +2 -3
- package/examples/jsm/loaders/LWOLoader.js +7 -39
- package/examples/jsm/loaders/NRRDLoader.js +2 -2
- package/examples/jsm/loaders/PCDLoader.js +4 -2
- package/examples/jsm/loaders/SVGLoader.js +1 -1
- package/examples/jsm/loaders/TDSLoader.js +0 -2
- package/examples/jsm/loaders/TGALoader.js +0 -2
- package/examples/jsm/loaders/USDLoader.js +100 -40
- package/examples/jsm/loaders/UltraHDRLoader.js +285 -160
- package/examples/jsm/loaders/VOXLoader.js +660 -117
- package/examples/jsm/loaders/VRMLLoader.js +79 -2
- package/examples/jsm/loaders/VTKLoader.js +37 -24
- package/examples/jsm/loaders/collada/ColladaComposer.js +2950 -0
- package/examples/jsm/loaders/collada/ColladaParser.js +1962 -0
- package/examples/jsm/loaders/usd/USDAParser.js +447 -366
- package/examples/jsm/loaders/usd/USDCParser.js +1841 -6
- package/examples/jsm/loaders/usd/USDComposer.js +4041 -0
- package/examples/jsm/materials/LDrawConditionalLineNodeMaterial.js +2 -2
- package/examples/jsm/materials/WoodNodeMaterial.js +11 -11
- package/examples/jsm/math/Octree.js +131 -1
- package/examples/jsm/misc/Volume.js +0 -1
- package/examples/jsm/misc/VolumeSlice.js +0 -1
- package/examples/jsm/objects/LensflareMesh.js +1 -1
- package/examples/jsm/objects/Sky.js +76 -4
- package/examples/jsm/objects/SkyMesh.js +127 -10
- package/examples/jsm/objects/Water.js +4 -3
- package/examples/jsm/objects/Water2.js +5 -3
- package/examples/jsm/objects/WaterMesh.js +5 -7
- 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/OutputPass.js +9 -0
- package/examples/jsm/postprocessing/RenderPass.js +10 -0
- package/examples/jsm/postprocessing/RenderTransitionPass.js +1 -1
- package/examples/jsm/postprocessing/UnrealBloomPass.js +48 -18
- package/examples/jsm/renderers/CSS3DRenderer.js +1 -1
- package/examples/jsm/renderers/Projector.js +268 -30
- package/examples/jsm/renderers/SVGRenderer.js +193 -60
- package/examples/jsm/shaders/GTAOShader.js +19 -6
- package/examples/jsm/shaders/HalftoneShader.js +12 -1
- package/examples/jsm/shaders/PoissonDenoiseShader.js +6 -2
- package/examples/jsm/shaders/SAOShader.js +17 -4
- package/examples/jsm/shaders/SSAOShader.js +11 -1
- package/examples/jsm/shaders/SSRShader.js +6 -5
- package/examples/jsm/shaders/UnpackDepthRGBAShader.js +2 -4
- package/examples/jsm/shaders/VignetteShader.js +1 -1
- package/examples/jsm/transpiler/AST.js +44 -0
- package/examples/jsm/transpiler/GLSLDecoder.js +61 -4
- package/examples/jsm/transpiler/ShaderToyDecoder.js +2 -0
- package/examples/jsm/transpiler/TSLEncoder.js +46 -3
- package/examples/jsm/transpiler/TranspilerUtils.js +3 -3
- package/examples/jsm/transpiler/WGSLEncoder.js +27 -0
- package/examples/jsm/tsl/display/AfterImageNode.js +1 -1
- package/examples/jsm/tsl/display/AnaglyphPassNode.js +458 -16
- package/examples/jsm/tsl/display/AnamorphicNode.js +1 -1
- package/examples/jsm/tsl/display/BilateralBlurNode.js +364 -0
- package/examples/jsm/tsl/display/BloomNode.js +16 -6
- package/examples/jsm/tsl/display/CRT.js +150 -0
- package/examples/jsm/tsl/display/DenoiseNode.js +1 -1
- package/examples/jsm/tsl/display/DepthOfFieldNode.js +1 -1
- package/examples/jsm/tsl/display/DotScreenNode.js +1 -1
- package/examples/jsm/tsl/display/FXAANode.js +2 -2
- package/examples/jsm/tsl/display/GTAONode.js +5 -4
- package/examples/jsm/tsl/display/GaussianBlurNode.js +11 -2
- package/examples/jsm/tsl/display/GodraysNode.js +624 -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 +3 -3
- 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 +8 -20
- package/examples/jsm/tsl/display/SSRNode.js +8 -8
- package/examples/jsm/tsl/display/SSSNode.js +6 -4
- package/examples/jsm/tsl/display/Shape.js +29 -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/TRAANode.js +273 -125
- package/examples/jsm/tsl/display/TransitionNode.js +1 -1
- package/examples/jsm/tsl/display/depthAwareBlend.js +80 -0
- package/examples/jsm/tsl/display/radialBlur.js +68 -0
- package/examples/jsm/tsl/math/Bayer.js +40 -1
- package/examples/jsm/utils/LDrawUtils.js +1 -1
- package/examples/jsm/utils/ShadowMapViewer.js +24 -10
- package/examples/jsm/utils/ShadowMapViewerGPU.js +1 -1
- package/examples/jsm/utils/WebGPUTextureUtils.js +1 -1
- package/package.json +20 -26
- package/src/Three.Core.js +2 -1
- package/src/Three.TSL.js +19 -11
- package/src/Three.WebGPU.Nodes.js +2 -0
- package/src/Three.WebGPU.js +3 -0
- package/src/Three.js +1 -0
- package/src/animation/AnimationAction.js +1 -1
- package/src/animation/AnimationClip.js +1 -1
- package/src/animation/AnimationMixer.js +6 -0
- package/src/animation/AnimationUtils.js +1 -12
- package/src/animation/KeyframeTrack.js +47 -8
- package/src/animation/PropertyMixer.js +4 -4
- package/src/animation/tracks/BooleanKeyframeTrack.js +1 -1
- package/src/animation/tracks/ColorKeyframeTrack.js +1 -1
- package/src/animation/tracks/NumberKeyframeTrack.js +1 -1
- package/src/animation/tracks/QuaternionKeyframeTrack.js +1 -1
- package/src/animation/tracks/StringKeyframeTrack.js +1 -1
- package/src/animation/tracks/VectorKeyframeTrack.js +1 -1
- package/src/audio/Audio.js +1 -1
- package/src/audio/AudioListener.js +5 -3
- package/src/cameras/Camera.js +32 -2
- package/src/cameras/CubeCamera.js +20 -0
- package/src/constants.js +90 -5
- package/src/core/BufferGeometry.js +14 -2
- package/src/core/Clock.js +7 -0
- package/src/core/Object3D.js +56 -4
- package/src/core/Raycaster.js +2 -2
- package/src/core/RenderTarget.js +3 -4
- package/src/extras/PMREMGenerator.js +7 -18
- package/src/extras/TextureUtils.js +5 -1
- package/src/geometries/ExtrudeGeometry.js +2 -2
- package/src/geometries/PolyhedronGeometry.js +1 -1
- package/src/geometries/TorusGeometry.js +8 -3
- package/src/helpers/CameraHelper.js +3 -0
- 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/loaders/Cache.js +28 -0
- package/src/loaders/FileLoader.js +1 -1
- package/src/loaders/ImageBitmapLoader.js +8 -3
- package/src/loaders/Loader.js +6 -0
- package/src/loaders/MaterialLoader.js +2 -1
- package/src/loaders/ObjectLoader.js +21 -2
- package/src/loaders/nodes/NodeLoader.js +2 -2
- package/src/materials/Material.js +2 -0
- package/src/materials/MeshLambertMaterial.js +9 -0
- package/src/materials/MeshPhongMaterial.js +9 -0
- package/src/materials/ShaderMaterial.js +20 -1
- package/src/materials/nodes/Line2NodeMaterial.js +7 -7
- package/src/materials/nodes/MeshPhysicalNodeMaterial.js +5 -2
- package/src/materials/nodes/MeshStandardNodeMaterial.js +5 -4
- package/src/materials/nodes/NodeMaterial.js +72 -25
- package/src/materials/nodes/manager/NodeMaterialObserver.js +10 -4
- package/src/math/Line3.js +3 -5
- package/src/math/MathUtils.js +10 -10
- package/src/math/Matrix4.js +74 -65
- package/src/math/Quaternion.js +3 -29
- package/src/math/Sphere.js +1 -1
- package/src/math/Vector3.js +3 -5
- package/src/math/interpolants/BezierInterpolant.js +108 -0
- package/src/nodes/Nodes.js +87 -68
- package/src/nodes/TSL.js +6 -6
- 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 +98 -12
- package/src/nodes/accessors/BufferNode.js +29 -2
- package/src/nodes/accessors/Camera.js +149 -28
- package/src/nodes/accessors/ClippingNode.js +4 -4
- package/src/nodes/accessors/CubeTextureNode.js +20 -1
- package/src/nodes/accessors/InstanceNode.js +148 -43
- package/src/nodes/accessors/MaterialNode.js +9 -1
- package/src/nodes/accessors/MaterialReferenceNode.js +1 -2
- package/src/nodes/accessors/ModelNode.js +1 -1
- package/src/nodes/accessors/Normal.js +11 -11
- package/src/nodes/accessors/Position.js +34 -2
- package/src/nodes/accessors/ReferenceBaseNode.js +4 -4
- package/src/nodes/accessors/ReferenceNode.js +4 -4
- package/src/nodes/accessors/RendererReferenceNode.js +1 -2
- package/src/nodes/accessors/SceneProperties.js +53 -0
- package/src/nodes/accessors/SkinningNode.js +27 -26
- package/src/nodes/accessors/StorageBufferNode.js +4 -21
- package/src/nodes/accessors/StorageTextureNode.js +37 -1
- package/src/nodes/accessors/Tangent.js +4 -14
- package/src/nodes/accessors/Texture3DNode.js +32 -35
- package/src/nodes/accessors/TextureNode.js +58 -22
- package/src/nodes/accessors/UniformArrayNode.js +4 -2
- package/src/nodes/accessors/UserDataNode.js +1 -2
- package/src/nodes/accessors/VertexColorNode.js +1 -2
- package/src/nodes/code/FunctionNode.js +1 -2
- package/src/nodes/core/ArrayNode.js +20 -1
- package/src/nodes/core/AssignNode.js +2 -2
- package/src/nodes/core/AttributeNode.js +2 -2
- package/src/nodes/core/ContextNode.js +103 -4
- package/src/nodes/core/MRTNode.js +48 -2
- package/src/nodes/core/Node.js +29 -3
- package/src/nodes/core/NodeBuilder.js +170 -53
- package/src/nodes/core/NodeError.js +28 -0
- package/src/nodes/core/NodeFrame.js +12 -4
- package/src/nodes/core/NodeUtils.js +10 -8
- package/src/nodes/core/OutputStructNode.js +12 -10
- package/src/nodes/core/ParameterNode.js +3 -3
- package/src/nodes/core/PropertyNode.js +19 -3
- package/src/nodes/core/StackNode.js +65 -16
- package/src/nodes/core/StackTrace.js +139 -0
- package/src/nodes/core/StructNode.js +16 -2
- package/src/nodes/core/StructTypeNode.js +11 -17
- package/src/nodes/core/SubBuildNode.js +1 -1
- package/src/nodes/core/UniformNode.js +21 -5
- package/src/nodes/core/VarNode.js +47 -22
- package/src/nodes/core/VaryingNode.js +1 -18
- package/src/nodes/display/BlendModes.js +0 -64
- package/src/nodes/display/ColorAdjustment.js +17 -0
- package/src/nodes/display/ColorSpaceNode.js +3 -3
- package/src/nodes/display/NormalMapNode.js +39 -4
- package/src/nodes/display/PassNode.js +98 -9
- package/src/nodes/display/RenderOutputNode.js +3 -3
- package/src/nodes/display/ScreenNode.js +3 -1
- package/src/nodes/display/ToneMappingNode.js +1 -1
- package/src/nodes/display/ToonOutlinePassNode.js +2 -2
- package/src/nodes/display/ViewportDepthNode.js +52 -4
- package/src/nodes/display/ViewportTextureNode.js +21 -4
- package/src/nodes/fog/Fog.js +18 -35
- package/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.js +3 -3
- package/src/nodes/functions/BSDF/DFGLUT.js +56 -0
- package/src/nodes/functions/BSDF/EnvironmentBRDF.js +2 -2
- package/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.js +1 -1
- package/src/nodes/functions/PhysicalLightingModel.js +126 -45
- package/src/nodes/geometry/RangeNode.js +4 -2
- package/src/nodes/gpgpu/ComputeBuiltinNode.js +1 -2
- package/src/nodes/gpgpu/ComputeNode.js +5 -4
- package/src/nodes/gpgpu/SubgroupFunctionNode.js +1 -1
- package/src/nodes/gpgpu/WorkgroupInfoNode.js +4 -4
- package/src/nodes/lighting/AnalyticLightNode.js +53 -0
- package/src/nodes/lighting/EnvironmentNode.js +28 -3
- package/src/nodes/lighting/LightsNode.js +2 -2
- package/src/nodes/lighting/PointShadowNode.js +162 -149
- package/src/nodes/lighting/ShadowFilterNode.js +53 -65
- package/src/nodes/lighting/ShadowNode.js +97 -41
- package/src/nodes/math/BitcountNode.js +433 -0
- package/src/nodes/math/ConditionalNode.js +2 -2
- package/src/nodes/math/MathNode.js +3 -40
- package/src/nodes/math/OperatorNode.js +2 -1
- 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 +9 -15
- package/src/nodes/tsl/TSLCore.js +17 -14
- package/src/nodes/utils/ArrayElementNode.js +13 -0
- package/src/nodes/utils/DebugNode.js +11 -11
- package/src/nodes/utils/EventNode.js +1 -2
- package/src/nodes/utils/JoinNode.js +2 -2
- package/src/nodes/utils/LoopNode.js +1 -1
- package/src/nodes/utils/MemberNode.js +1 -1
- package/src/nodes/utils/Packing.js +13 -1
- package/src/nodes/utils/PostProcessingUtils.js +33 -1
- package/src/nodes/utils/RTTNode.js +1 -1
- package/src/nodes/utils/ReflectorNode.js +3 -4
- package/src/nodes/utils/SampleNode.js +1 -1
- package/src/nodes/utils/SpriteSheetUV.js +35 -0
- package/src/nodes/utils/UVUtils.js +28 -0
- package/src/objects/BatchedMesh.js +27 -14
- package/src/objects/InstancedMesh.js +11 -0
- package/src/objects/Line.js +1 -1
- package/src/objects/Mesh.js +1 -1
- package/src/objects/Points.js +1 -1
- package/src/objects/Skeleton.js +9 -0
- package/src/renderers/WebGLRenderer.js +178 -92
- package/src/renderers/common/Backend.js +29 -0
- package/src/renderers/common/Background.js +24 -11
- package/src/renderers/common/BindGroup.js +1 -9
- package/src/renderers/common/Binding.js +11 -0
- package/src/renderers/common/Bindings.js +27 -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/ChainMap.js +30 -6
- package/src/renderers/common/CubeRenderTarget.js +50 -6
- package/src/renderers/common/Geometries.js +29 -3
- package/src/renderers/common/Lighting.js +5 -21
- package/src/renderers/common/Pipelines.js +4 -4
- package/src/renderers/common/PostProcessing.js +8 -206
- package/src/renderers/common/RenderBundles.js +2 -1
- package/src/renderers/common/RenderContext.js +16 -0
- package/src/renderers/common/RenderContexts.js +33 -49
- package/src/renderers/common/RenderLists.js +2 -1
- package/src/renderers/common/RenderObject.js +15 -3
- package/src/renderers/common/RenderObjectPipeline.js +40 -0
- package/src/renderers/common/RenderObjects.js +18 -2
- package/src/renderers/common/RenderPipeline.js +203 -17
- package/src/renderers/common/Renderer.js +257 -72
- package/src/renderers/common/Sampler.js +4 -4
- package/src/renderers/common/StorageBuffer.js +13 -1
- package/src/renderers/common/Textures.js +17 -1
- package/src/renderers/common/TimestampQueryPool.js +5 -3
- package/src/renderers/common/Uniform.js +8 -0
- package/src/renderers/common/UniformsGroup.js +61 -0
- package/src/renderers/common/XRManager.js +3 -2
- package/src/renderers/common/extras/PMREMGenerator.js +2 -8
- package/src/renderers/common/nodes/NodeBuilderState.js +1 -1
- package/src/renderers/common/nodes/{Nodes.js → NodeManager.js} +18 -6
- package/src/renderers/common/nodes/NodeStorageBuffer.js +13 -2
- package/src/renderers/common/nodes/NodeUniformBuffer.js +52 -0
- package/src/renderers/shaders/DFGLUTData.js +19 -34
- package/src/renderers/shaders/ShaderChunk/batching_pars_vertex.glsl.js +2 -2
- package/src/renderers/shaders/ShaderChunk/color_fragment.glsl.js +1 -5
- package/src/renderers/shaders/ShaderChunk/color_pars_fragment.glsl.js +1 -5
- package/src/renderers/shaders/ShaderChunk/color_pars_vertex.glsl.js +1 -5
- package/src/renderers/shaders/ShaderChunk/color_vertex.glsl.js +8 -10
- package/src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js +7 -11
- package/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js +5 -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_physical_fragment.glsl.js +8 -4
- package/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +112 -51
- package/src/renderers/shaders/ShaderChunk/packing.glsl.js +20 -4
- package/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js +225 -186
- 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 +3 -3
- package/src/renderers/shaders/ShaderLib/depth.glsl.js +3 -0
- 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 -5
- package/src/renderers/shaders/UniformsLib.js +0 -3
- package/src/renderers/webgl/WebGLBackground.js +2 -2
- package/src/renderers/webgl/WebGLBindingStates.js +99 -27
- package/src/renderers/webgl/WebGLCapabilities.js +3 -4
- package/src/renderers/webgl/WebGLEnvironments.js +228 -0
- package/src/renderers/webgl/WebGLGeometries.js +10 -7
- package/src/renderers/webgl/WebGLLights.js +18 -1
- package/src/renderers/webgl/WebGLMaterials.js +12 -0
- package/src/renderers/webgl/WebGLObjects.js +3 -1
- package/src/renderers/webgl/WebGLOutput.js +267 -0
- package/src/renderers/webgl/WebGLProgram.js +45 -109
- package/src/renderers/webgl/WebGLPrograms.js +45 -49
- package/src/renderers/webgl/WebGLRenderLists.js +15 -0
- package/src/renderers/webgl/WebGLShadowMap.js +188 -24
- package/src/renderers/webgl/WebGLState.js +32 -37
- package/src/renderers/webgl/WebGLTextures.js +89 -28
- package/src/renderers/webgl/WebGLUniforms.js +40 -3
- package/src/renderers/webgl/WebGLUtils.js +6 -2
- package/src/renderers/webgl-fallback/WebGLBackend.js +148 -18
- package/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js +156 -35
- package/src/renderers/webgl-fallback/utils/WebGLState.js +181 -5
- package/src/renderers/webgl-fallback/utils/WebGLTextureUtils.js +5 -3
- package/src/renderers/webgl-fallback/utils/WebGLTimestampQueryPool.js +9 -9
- package/src/renderers/webgl-fallback/utils/WebGLUtils.js +6 -2
- package/src/renderers/webgpu/WebGPUBackend.js +119 -13
- package/src/renderers/webgpu/WebGPURenderer.js +2 -1
- package/src/renderers/webgpu/nodes/WGSLNodeBuilder.js +322 -68
- package/src/renderers/webgpu/utils/WebGPUAttributeUtils.js +4 -17
- package/src/renderers/webgpu/utils/WebGPUBindingUtils.js +357 -200
- package/src/renderers/webgpu/utils/WebGPUConstants.js +2 -0
- package/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +61 -23
- package/src/renderers/webgpu/utils/WebGPUTexturePassUtils.js +152 -200
- package/src/renderers/webgpu/utils/WebGPUTextureUtils.js +65 -42
- package/src/renderers/webgpu/utils/WebGPUTimestampQueryPool.js +7 -7
- package/src/renderers/webgpu/utils/WebGPUUtils.js +17 -11
- package/src/renderers/webxr/WebXRManager.js +2 -2
- package/src/textures/CubeDepthTexture.js +76 -0
- package/src/textures/Source.js +1 -1
- package/src/textures/Texture.js +3 -3
- package/src/utils.js +258 -3
- 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 -145
- package/src/nodes/code/ScriptableNode.js +0 -726
- package/src/nodes/code/ScriptableValueNode.js +0 -253
- package/src/nodes/display/PosterizeNode.js +0 -65
- package/src/nodes/functions/BSDF/DFGApprox.js +0 -71
- package/src/nodes/utils/SpriteSheetUVNode.js +0 -90
- package/src/renderers/webgl/WebGLCubeMaps.js +0 -99
- package/src/renderers/webgl/WebGLCubeUVMaps.js +0 -134
package/build/three.tsl.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright 2010-
|
|
3
|
+
* Copyright 2010-2026 Three.js Authors
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*/
|
|
6
6
|
import { TSL } from 'three/webgpu';
|
|
@@ -12,7 +12,7 @@ const BasicShadowFilter = TSL.BasicShadowFilter;
|
|
|
12
12
|
const Break = TSL.Break;
|
|
13
13
|
const Const = TSL.Const;
|
|
14
14
|
const Continue = TSL.Continue;
|
|
15
|
-
const
|
|
15
|
+
const DFGLUT = TSL.DFGLUT;
|
|
16
16
|
const D_GGX = TSL.D_GGX;
|
|
17
17
|
const Discard = TSL.Discard;
|
|
18
18
|
const EPSILON = TSL.EPSILON;
|
|
@@ -34,7 +34,6 @@ const HALF_PI = TSL.HALF_PI;
|
|
|
34
34
|
const PointShadowFilter = TSL.PointShadowFilter;
|
|
35
35
|
const Return = TSL.Return;
|
|
36
36
|
const Schlick_to_F0 = TSL.Schlick_to_F0;
|
|
37
|
-
const ScriptableNodeResources = TSL.ScriptableNodeResources;
|
|
38
37
|
const ShaderNode = TSL.ShaderNode;
|
|
39
38
|
const Stack = TSL.Stack;
|
|
40
39
|
const Switch = TSL.Switch;
|
|
@@ -63,7 +62,6 @@ const arrayBuffer = TSL.arrayBuffer;
|
|
|
63
62
|
const asin = TSL.asin;
|
|
64
63
|
const assign = TSL.assign;
|
|
65
64
|
const atan = TSL.atan;
|
|
66
|
-
const atan2 = TSL.atan2;
|
|
67
65
|
const atomicAdd = TSL.atomicAdd;
|
|
68
66
|
const atomicAnd = TSL.atomicAnd;
|
|
69
67
|
const atomicFunc = TSL.atomicFunc;
|
|
@@ -103,8 +101,9 @@ const bool = TSL.bool;
|
|
|
103
101
|
const buffer = TSL.buffer;
|
|
104
102
|
const bufferAttribute = TSL.bufferAttribute;
|
|
105
103
|
const bumpMap = TSL.bumpMap;
|
|
106
|
-
const burn = TSL.burn;
|
|
107
104
|
const builtin = TSL.builtin;
|
|
105
|
+
const builtinAOContext = TSL.builtinAOContext;
|
|
106
|
+
const builtinShadowContext = TSL.builtinShadowContext;
|
|
108
107
|
const bvec2 = TSL.bvec2;
|
|
109
108
|
const bvec3 = TSL.bvec3;
|
|
110
109
|
const bvec4 = TSL.bvec4;
|
|
@@ -130,6 +129,7 @@ const clamp = TSL.clamp;
|
|
|
130
129
|
const clearcoat = TSL.clearcoat;
|
|
131
130
|
const clearcoatNormalView = TSL.clearcoatNormalView;
|
|
132
131
|
const clearcoatRoughness = TSL.clearcoatRoughness;
|
|
132
|
+
const clipSpace = TSL.clipSpace;
|
|
133
133
|
const code = TSL.code;
|
|
134
134
|
const color = TSL.color;
|
|
135
135
|
const colorSpaceToWorking = TSL.colorSpaceToWorking;
|
|
@@ -141,11 +141,13 @@ const context = TSL.context;
|
|
|
141
141
|
const convert = TSL.convert;
|
|
142
142
|
const convertColorSpace = TSL.convertColorSpace;
|
|
143
143
|
const convertToTexture = TSL.convertToTexture;
|
|
144
|
+
const countLeadingZeros = TSL.countLeadingZeros;
|
|
145
|
+
const countOneBits = TSL.countOneBits;
|
|
146
|
+
const countTrailingZeros = TSL.countTrailingZeros;
|
|
144
147
|
const cos = TSL.cos;
|
|
145
148
|
const cross = TSL.cross;
|
|
146
149
|
const cubeTexture = TSL.cubeTexture;
|
|
147
150
|
const cubeTextureBase = TSL.cubeTextureBase;
|
|
148
|
-
const cubeToUV = TSL.cubeToUV;
|
|
149
151
|
const dFdx = TSL.dFdx;
|
|
150
152
|
const dFdy = TSL.dFdy;
|
|
151
153
|
const dashSize = TSL.dashSize;
|
|
@@ -170,17 +172,16 @@ const directionToFaceDirection = TSL.directionToFaceDirection;
|
|
|
170
172
|
const dispersion = TSL.dispersion;
|
|
171
173
|
const distance = TSL.distance;
|
|
172
174
|
const div = TSL.div;
|
|
173
|
-
const dodge = TSL.dodge;
|
|
174
175
|
const dot = TSL.dot;
|
|
175
176
|
const drawIndex = TSL.drawIndex;
|
|
176
177
|
const dynamicBufferAttribute = TSL.dynamicBufferAttribute;
|
|
177
178
|
const element = TSL.element;
|
|
178
179
|
const emissive = TSL.emissive;
|
|
179
180
|
const equal = TSL.equal;
|
|
180
|
-
const equals = TSL.equals;
|
|
181
181
|
const equirectUV = TSL.equirectUV;
|
|
182
182
|
const exp = TSL.exp;
|
|
183
183
|
const exp2 = TSL.exp2;
|
|
184
|
+
const exponentialHeightFogFactor = TSL.exponentialHeightFogFactor;
|
|
184
185
|
const expression = TSL.expression;
|
|
185
186
|
const faceDirection = TSL.faceDirection;
|
|
186
187
|
const faceForward = TSL.faceForward;
|
|
@@ -204,6 +205,7 @@ const getDistanceAttenuation = TSL.getDistanceAttenuation;
|
|
|
204
205
|
const getGeometryRoughness = TSL.getGeometryRoughness;
|
|
205
206
|
const getNormalFromDepth = TSL.getNormalFromDepth;
|
|
206
207
|
const interleavedGradientNoise = TSL.interleavedGradientNoise;
|
|
208
|
+
const vogelDiskSample = TSL.vogelDiskSample;
|
|
207
209
|
const getParallaxCorrectNormal = TSL.getParallaxCorrectNormal;
|
|
208
210
|
const getRoughness = TSL.getRoughness;
|
|
209
211
|
const getScreenPosition = TSL.getScreenPosition;
|
|
@@ -417,8 +419,10 @@ const oscSquare = TSL.oscSquare;
|
|
|
417
419
|
const oscTriangle = TSL.oscTriangle;
|
|
418
420
|
const output = TSL.output;
|
|
419
421
|
const outputStruct = TSL.outputStruct;
|
|
420
|
-
const overlay = TSL.overlay;
|
|
421
422
|
const overloadingFn = TSL.overloadingFn;
|
|
423
|
+
const packHalf2x16 = TSL.packHalf2x16;
|
|
424
|
+
const packSnorm2x16 = TSL.packSnorm2x16;
|
|
425
|
+
const packUnorm2x16 = TSL.packUnorm2x16;
|
|
422
426
|
const parabola = TSL.parabola;
|
|
423
427
|
const parallaxDirection = TSL.parallaxDirection;
|
|
424
428
|
const parallaxUV = TSL.parallaxUV;
|
|
@@ -466,6 +470,7 @@ const remapClamp = TSL.remapClamp;
|
|
|
466
470
|
const renderGroup = TSL.renderGroup;
|
|
467
471
|
const renderOutput = TSL.renderOutput;
|
|
468
472
|
const rendererReference = TSL.rendererReference;
|
|
473
|
+
const replaceDefaultUV = TSL.replaceDefaultUV;
|
|
469
474
|
const rotate = TSL.rotate;
|
|
470
475
|
const rotateUV = TSL.rotateUV;
|
|
471
476
|
const roughness = TSL.roughness;
|
|
@@ -483,8 +488,6 @@ const screenCoordinate = TSL.screenCoordinate;
|
|
|
483
488
|
const screenDPR = TSL.screenDPR;
|
|
484
489
|
const screenSize = TSL.screenSize;
|
|
485
490
|
const screenUV = TSL.screenUV;
|
|
486
|
-
const scriptable = TSL.scriptable;
|
|
487
|
-
const scriptableValue = TSL.scriptableValue;
|
|
488
491
|
const select = TSL.select;
|
|
489
492
|
const setCurrentStack = TSL.setCurrentStack;
|
|
490
493
|
const setName = TSL.setName;
|
|
@@ -515,7 +518,6 @@ const step = TSL.step;
|
|
|
515
518
|
const stepElement = TSL.stepElement;
|
|
516
519
|
const storage = TSL.storage;
|
|
517
520
|
const storageBarrier = TSL.storageBarrier;
|
|
518
|
-
const storageObject = TSL.storageObject;
|
|
519
521
|
const storageTexture = TSL.storageTexture;
|
|
520
522
|
const string = TSL.string;
|
|
521
523
|
const struct = TSL.struct;
|
|
@@ -584,6 +586,9 @@ const uniformCubeTexture = TSL.uniformCubeTexture;
|
|
|
584
586
|
const uniformGroup = TSL.uniformGroup;
|
|
585
587
|
const uniformFlow = TSL.uniformFlow;
|
|
586
588
|
const uniformTexture = TSL.uniformTexture;
|
|
589
|
+
const unpackHalf2x16 = TSL.unpackHalf2x16;
|
|
590
|
+
const unpackSnorm2x16 = TSL.unpackSnorm2x16;
|
|
591
|
+
const unpackUnorm2x16 = TSL.unpackUnorm2x16;
|
|
587
592
|
const unpremultiplyAlpha = TSL.unpremultiplyAlpha;
|
|
588
593
|
const userData = TSL.userData;
|
|
589
594
|
const uv = TSL.uv;
|
|
@@ -604,11 +609,14 @@ const vibrance = TSL.vibrance;
|
|
|
604
609
|
const viewZToLogarithmicDepth = TSL.viewZToLogarithmicDepth;
|
|
605
610
|
const viewZToOrthographicDepth = TSL.viewZToOrthographicDepth;
|
|
606
611
|
const viewZToPerspectiveDepth = TSL.viewZToPerspectiveDepth;
|
|
612
|
+
const viewZToReversedOrthographicDepth = TSL.viewZToReversedOrthographicDepth;
|
|
613
|
+
const viewZToReversedPerspectiveDepth = TSL.viewZToReversedPerspectiveDepth;
|
|
607
614
|
const viewport = TSL.viewport;
|
|
608
615
|
const viewportCoordinate = TSL.viewportCoordinate;
|
|
609
616
|
const viewportDepthTexture = TSL.viewportDepthTexture;
|
|
610
617
|
const viewportLinearDepth = TSL.viewportLinearDepth;
|
|
611
618
|
const viewportMipTexture = TSL.viewportMipTexture;
|
|
619
|
+
const viewportOpaqueMipTexture = TSL.viewportOpaqueMipTexture;
|
|
612
620
|
const viewportResolution = TSL.viewportResolution;
|
|
613
621
|
const viewportSafeUV = TSL.viewportSafeUV;
|
|
614
622
|
const viewportSharedTexture = TSL.viewportSharedTexture;
|
|
@@ -637,4 +645,4 @@ for ( const key of Object.keys( THREE.TSL ) ) {
|
|
|
637
645
|
log( code );
|
|
638
646
|
//*/
|
|
639
647
|
|
|
640
|
-
export { BRDF_GGX, BRDF_Lambert, BasicPointShadowFilter, BasicShadowFilter, Break, Const, Continue,
|
|
648
|
+
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, add, addMethodChaining, addNodeElement, agxToneMapping, all, alphaT, and, anisotropy, anisotropyB, anisotropyT, any, append, array, arrayBuffer, asin, assign, atan, 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, 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, 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, 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,u=e.EPSILON,p=e.F_Schlick,d=e.Fn,g=e.INFINITY,h=e.If,x=e.Loop,b=e.NodeAccess,f=e.NodeShaderStage,v=e.NodeType,w=e.NodeUpdateType,_=e.PCFShadowFilter,S=e.PCFSoftShadowFilter,T=e.PI,y=e.PI2,V=e.TWO_PI,M=e.HALF_PI,F=e.PointShadowFilter,I=e.Return,D=e.Schlick_to_F0,B=e.ScriptableNodeResources,P=e.ShaderNode,C=e.Stack,A=e.Switch,N=e.TBNViewMatrix,R=e.VSMShadowFilter,O=e.V_GGX_SmithCorrelated,L=e.Var,k=e.VarIntent,G=e.abs,U=e.acesFilmicToneMapping,j=e.acos,E=e.add,W=e.addMethodChaining,q=e.addNodeElement,z=e.agxToneMapping,X=e.all,Z=e.alphaT,H=e.and,K=e.anisotropy,Y=e.anisotropyB,J=e.anisotropyT,Q=e.any,$=e.append,ee=e.array,te=e.arrayBuffer,re=e.asin,ae=e.assign,oe=e.atan,ie=e.atan2,ne=e.atomicAdd,le=e.atomicAnd,se=e.atomicFunc,ce=e.atomicLoad,me=e.atomicMax,ue=e.atomicMin,pe=e.atomicOr,de=e.atomicStore,ge=e.atomicSub,he=e.atomicXor,xe=e.attenuationColor,be=e.attenuationDistance,fe=e.attribute,ve=e.attributeArray,we=e.backgroundBlurriness,_e=e.backgroundIntensity,Se=e.backgroundRotation,Te=e.batch,ye=e.bentNormalView,Ve=e.billboarding,Me=e.bitAnd,Fe=e.bitNot,Ie=e.bitOr,De=e.bitXor,Be=e.bitangentGeometry,Pe=e.bitangentLocal,Ce=e.bitangentView,Ae=e.bitangentWorld,Ne=e.bitcast,Re=e.blendBurn,Oe=e.blendColor,Le=e.blendDodge,ke=e.blendOverlay,Ge=e.blendScreen,Ue=e.blur,je=e.bool,Ee=e.buffer,We=e.bufferAttribute,qe=e.bumpMap,ze=e.burn,Xe=e.builtin,Ze=e.bvec2,He=e.bvec3,Ke=e.bvec4,Ye=e.bypass,Je=e.cache,Qe=e.call,$e=e.cameraFar,et=e.cameraIndex,tt=e.cameraNear,rt=e.cameraNormalMatrix,at=e.cameraPosition,ot=e.cameraProjectionMatrix,it=e.cameraProjectionMatrixInverse,nt=e.cameraViewMatrix,lt=e.cameraViewport,st=e.cameraWorldMatrix,ct=e.cbrt,mt=e.cdl,ut=e.ceil,pt=e.checker,dt=e.cineonToneMapping,gt=e.clamp,ht=e.clearcoat,xt=e.clearcoatNormalView,bt=e.clearcoatRoughness,ft=e.code,vt=e.color,wt=e.colorSpaceToWorking,_t=e.colorToDirection,St=e.compute,Tt=e.computeKernel,yt=e.computeSkinning,Vt=e.context,Mt=e.convert,Ft=e.convertColorSpace,It=e.convertToTexture,Dt=e.cos,Bt=e.cross,Pt=e.cubeTexture,Ct=e.cubeTextureBase,At=e.cubeToUV,Nt=e.dFdx,Rt=e.dFdy,Ot=e.dashSize,Lt=e.debug,kt=e.decrement,Gt=e.decrementBefore,Ut=e.defaultBuildStages,jt=e.defaultShaderStages,Et=e.defined,Wt=e.degrees,qt=e.deltaTime,zt=e.densityFog,Xt=e.densityFogFactor,Zt=e.depth,Ht=e.depthPass,Kt=e.determinant,Yt=e.difference,Jt=e.diffuseColor,Qt=e.directPointLight,$t=e.directionToColor,er=e.directionToFaceDirection,tr=e.dispersion,rr=e.distance,ar=e.div,or=e.dodge,ir=e.dot,nr=e.drawIndex,lr=e.dynamicBufferAttribute,sr=e.element,cr=e.emissive,mr=e.equal,ur=e.equals,pr=e.equirectUV,dr=e.exp,gr=e.exp2,hr=e.expression,xr=e.faceDirection,br=e.faceForward,fr=e.faceforward,vr=e.float,wr=e.floatBitsToInt,_r=e.floatBitsToUint,Sr=e.floor,Tr=e.fog,yr=e.fract,Vr=e.frameGroup,Mr=e.frameId,Fr=e.frontFacing,Ir=e.fwidth,Dr=e.gain,Br=e.gapSize,Pr=e.getConstNodeType,Cr=e.getCurrentStack,Ar=e.getDirection,Nr=e.getDistanceAttenuation,Rr=e.getGeometryRoughness,Or=e.getNormalFromDepth,Lr=e.interleavedGradientNoise,kr=e.getParallaxCorrectNormal,Gr=e.getRoughness,Ur=e.getScreenPosition,jr=e.getShIrradianceAt,Er=e.getShadowMaterial,Wr=e.getShadowRenderObjectFunction,qr=e.getTextureIndex,zr=e.getViewPosition,Xr=e.globalId,Zr=e.glsl,Hr=e.glslFn,Kr=e.grayscale,Yr=e.greaterThan,Jr=e.greaterThanEqual,Qr=e.hash,$r=e.highpModelNormalViewMatrix,ea=e.highpModelViewMatrix,ta=e.hue,ra=e.increment,aa=e.incrementBefore,oa=e.instance,ia=e.instanceIndex,na=e.instancedArray,la=e.instancedBufferAttribute,sa=e.instancedDynamicBufferAttribute,ca=e.instancedMesh,ma=e.int,ua=e.intBitsToFloat,pa=e.inverse,da=e.inverseSqrt,ga=e.inversesqrt,ha=e.invocationLocalIndex,xa=e.invocationSubgroupIndex,ba=e.ior,fa=e.iridescence,va=e.iridescenceIOR,wa=e.iridescenceThickness,_a=e.ivec2,Sa=e.ivec3,Ta=e.ivec4,ya=e.js,Va=e.label,Ma=e.length,Fa=e.lengthSq,Ia=e.lessThan,Da=e.lessThanEqual,Ba=e.lightPosition,Pa=e.lightProjectionUV,Ca=e.lightShadowMatrix,Aa=e.lightTargetDirection,Na=e.lightTargetPosition,Ra=e.lightViewPosition,Oa=e.lightingContext,La=e.lights,ka=e.linearDepth,Ga=e.linearToneMapping,Ua=e.localId,ja=e.log,Ea=e.log2,Wa=e.logarithmicDepthToViewZ,qa=e.luminance,za=e.mat2,Xa=e.mat3,Za=e.mat4,Ha=e.matcapUV,Ka=e.materialAO,Ya=e.materialAlphaTest,Ja=e.materialAnisotropy,Qa=e.materialAnisotropyVector,$a=e.materialAttenuationColor,eo=e.materialAttenuationDistance,to=e.materialClearcoat,ro=e.materialClearcoatNormal,ao=e.materialClearcoatRoughness,oo=e.materialColor,io=e.materialDispersion,no=e.materialEmissive,lo=e.materialEnvIntensity,so=e.materialEnvRotation,co=e.materialIOR,mo=e.materialIridescence,uo=e.materialIridescenceIOR,po=e.materialIridescenceThickness,go=e.materialLightMap,ho=e.materialLineDashOffset,xo=e.materialLineDashSize,bo=e.materialLineGapSize,fo=e.materialLineScale,vo=e.materialLineWidth,wo=e.materialMetalness,_o=e.materialNormal,So=e.materialOpacity,To=e.materialPointSize,yo=e.materialReference,Vo=e.materialReflectivity,Mo=e.materialRefractionRatio,Fo=e.materialRotation,Io=e.materialRoughness,Do=e.materialSheen,Bo=e.materialSheenRoughness,Po=e.materialShininess,Co=e.materialSpecular,Ao=e.materialSpecularColor,No=e.materialSpecularIntensity,Ro=e.materialSpecularStrength,Oo=e.materialThickness,Lo=e.materialTransmission,ko=e.max,Go=e.maxMipLevel,Uo=e.mediumpModelViewMatrix,jo=e.metalness,Eo=e.min,Wo=e.mix,qo=e.mixElement,zo=e.mod,Xo=e.modInt,Zo=e.modelDirection,Ho=e.modelNormalMatrix,Ko=e.modelPosition,Yo=e.modelRadius,Jo=e.modelScale,Qo=e.modelViewMatrix,$o=e.modelViewPosition,ei=e.modelViewProjection,ti=e.modelWorldMatrix,ri=e.modelWorldMatrixInverse,ai=e.morphReference,oi=e.mrt,ii=e.mul,ni=e.mx_aastep,li=e.mx_add,si=e.mx_atan2,ci=e.mx_cell_noise_float,mi=e.mx_contrast,ui=e.mx_divide,pi=e.mx_fractal_noise_float,di=e.mx_fractal_noise_vec2,gi=e.mx_fractal_noise_vec3,hi=e.mx_fractal_noise_vec4,xi=e.mx_frame,bi=e.mx_heighttonormal,fi=e.mx_hsvtorgb,vi=e.mx_ifequal,wi=e.mx_ifgreater,_i=e.mx_ifgreatereq,Si=e.mx_invert,Ti=e.mx_modulo,yi=e.mx_multiply,Vi=e.mx_noise_float,Mi=e.mx_noise_vec3,Fi=e.mx_noise_vec4,Ii=e.mx_place2d,Di=e.mx_power,Bi=e.mx_ramp4,Pi=e.mx_ramplr,Ci=e.mx_ramptb,Ai=e.mx_rgbtohsv,Ni=e.mx_rotate2d,Ri=e.mx_rotate3d,Oi=e.mx_safepower,Li=e.mx_separate,ki=e.mx_splitlr,Gi=e.mx_splittb,Ui=e.mx_srgb_texture_to_lin_rec709,ji=e.mx_subtract,Ei=e.mx_timer,Wi=e.mx_transform_uv,qi=e.mx_unifiednoise2d,zi=e.mx_unifiednoise3d,Xi=e.mx_worley_noise_float,Zi=e.mx_worley_noise_vec2,Hi=e.mx_worley_noise_vec3,Ki=e.negate,Yi=e.neutralToneMapping,Ji=e.nodeArray,Qi=e.nodeImmutable,$i=e.nodeObject,en=e.nodeObjectIntent,tn=e.nodeObjects,rn=e.nodeProxy,an=e.nodeProxyIntent,on=e.normalFlat,nn=e.normalGeometry,ln=e.normalLocal,sn=e.normalMap,cn=e.normalView,mn=e.normalViewGeometry,un=e.normalWorld,pn=e.normalWorldGeometry,dn=e.normalize,gn=e.not,hn=e.notEqual,xn=e.numWorkgroups,bn=e.objectDirection,fn=e.objectGroup,vn=e.objectPosition,wn=e.objectRadius,_n=e.objectScale,Sn=e.objectViewPosition,Tn=e.objectWorldMatrix,yn=e.OnBeforeObjectUpdate,Vn=e.OnBeforeMaterialUpdate,Mn=e.OnObjectUpdate,Fn=e.OnMaterialUpdate,In=e.oneMinus,Dn=e.or,Bn=e.orthographicDepthToViewZ,Pn=e.oscSawtooth,Cn=e.oscSine,An=e.oscSquare,Nn=e.oscTriangle,Rn=e.output,On=e.outputStruct,Ln=e.overlay,kn=e.overloadingFn,Gn=e.parabola,Un=e.parallaxDirection,jn=e.parallaxUV,En=e.parameter,Wn=e.pass,qn=e.passTexture,zn=e.pcurve,Xn=e.perspectiveDepthToViewZ,Zn=e.pmremTexture,Hn=e.pointShadow,Kn=e.pointUV,Yn=e.pointWidth,Jn=e.positionGeometry,Qn=e.positionLocal,$n=e.positionPrevious,el=e.positionView,tl=e.positionViewDirection,rl=e.positionWorld,al=e.positionWorldDirection,ol=e.posterize,il=e.pow,nl=e.pow2,ll=e.pow3,sl=e.pow4,cl=e.premultiplyAlpha,ml=e.property,ul=e.radians,pl=e.rand,dl=e.range,gl=e.rangeFog,hl=e.rangeFogFactor,xl=e.reciprocal,bl=e.reference,fl=e.referenceBuffer,vl=e.reflect,wl=e.reflectVector,_l=e.reflectView,Sl=e.reflector,Tl=e.refract,yl=e.refractVector,Vl=e.refractView,Ml=e.reinhardToneMapping,Fl=e.remap,Il=e.remapClamp,Dl=e.renderGroup,Bl=e.renderOutput,Pl=e.rendererReference,Cl=e.rotate,Al=e.rotateUV,Nl=e.roughness,Rl=e.round,Ol=e.rtt,Ll=e.sRGBTransferEOTF,kl=e.sRGBTransferOETF,Gl=e.sample,Ul=e.sampler,jl=e.samplerComparison,El=e.saturate,Wl=e.saturation,ql=e.screen,zl=e.screenCoordinate,Xl=e.screenDPR,Zl=e.screenSize,Hl=e.screenUV,Kl=e.scriptable,Yl=e.scriptableValue,Jl=e.select,Ql=e.setCurrentStack,$l=e.setName,es=e.shaderStages,ts=e.shadow,rs=e.shadowPositionWorld,as=e.shapeCircle,os=e.sharedUniformGroup,is=e.sheen,ns=e.sheenRoughness,ls=e.shiftLeft,ss=e.shiftRight,cs=e.shininess,ms=e.sign,us=e.sin,ps=e.sinc,ds=e.skinning,gs=e.smoothstep,hs=e.smoothstepElement,xs=e.specularColor,bs=e.specularF90,fs=e.spherizeUV,vs=e.split,ws=e.spritesheetUV,_s=e.sqrt,Ss=e.stack,Ts=e.step,ys=e.stepElement,Vs=e.storage,Ms=e.storageBarrier,Fs=e.storageObject,Is=e.storageTexture,Ds=e.string,Bs=e.struct,Ps=e.sub,Cs=e.subgroupAdd,As=e.subgroupAll,Ns=e.subgroupAnd,Rs=e.subgroupAny,Os=e.subgroupBallot,Ls=e.subgroupBroadcast,ks=e.subgroupBroadcastFirst,Gs=e.subBuild,Us=e.subgroupElect,js=e.subgroupExclusiveAdd,Es=e.subgroupExclusiveMul,Ws=e.subgroupInclusiveAdd,qs=e.subgroupInclusiveMul,zs=e.subgroupIndex,Xs=e.subgroupMax,Zs=e.subgroupMin,Hs=e.subgroupMul,Ks=e.subgroupOr,Ys=e.subgroupShuffle,Js=e.subgroupShuffleDown,Qs=e.subgroupShuffleUp,$s=e.subgroupShuffleXor,ec=e.subgroupSize,tc=e.subgroupXor,rc=e.tan,ac=e.tangentGeometry,oc=e.tangentLocal,ic=e.tangentView,nc=e.tangentWorld,lc=e.texture,sc=e.texture3D,cc=e.textureBarrier,mc=e.textureBicubic,uc=e.textureBicubicLevel,pc=e.textureCubeUV,dc=e.textureLoad,gc=e.textureSize,hc=e.textureLevel,xc=e.textureStore,bc=e.thickness,fc=e.time,vc=e.toneMapping,wc=e.toneMappingExposure,_c=e.toonOutlinePass,Sc=e.transformDirection,Tc=e.transformNormal,yc=e.transformNormalToView,Vc=e.transformedClearcoatNormalView,Mc=e.transformedNormalView,Fc=e.transformedNormalWorld,Ic=e.transmission,Dc=e.transpose,Bc=e.triNoise3D,Pc=e.triplanarTexture,Cc=e.triplanarTextures,Ac=e.trunc,Nc=e.uint,Rc=e.uintBitsToFloat,Oc=e.uniform,Lc=e.uniformArray,kc=e.uniformCubeTexture,Gc=e.uniformGroup,Uc=e.uniformFlow,jc=e.uniformTexture,Ec=e.unpremultiplyAlpha,Wc=e.userData,qc=e.uv,zc=e.uvec2,Xc=e.uvec3,Zc=e.uvec4,Hc=e.varying,Kc=e.varyingProperty,Yc=e.vec2,Jc=e.vec3,Qc=e.vec4,$c=e.vectorComponents,em=e.velocity,tm=e.vertexColor,rm=e.vertexIndex,am=e.vertexStage,om=e.vibrance,im=e.viewZToLogarithmicDepth,nm=e.viewZToOrthographicDepth,lm=e.viewZToPerspectiveDepth,sm=e.viewport,cm=e.viewportCoordinate,mm=e.viewportDepthTexture,um=e.viewportLinearDepth,pm=e.viewportMipTexture,dm=e.viewportResolution,gm=e.viewportSafeUV,hm=e.viewportSharedTexture,xm=e.viewportSize,bm=e.viewportTexture,fm=e.viewportUV,vm=e.wgsl,wm=e.wgslFn,_m=e.workgroupArray,Sm=e.workgroupBarrier,Tm=e.workgroupId,ym=e.workingToColorSpace,Vm=e.xor;export{t as BRDF_GGX,r as BRDF_Lambert,a as BasicPointShadowFilter,o as BasicShadowFilter,i as Break,n as Const,l as Continue,s as DFGApprox,c as D_GGX,m as Discard,u as EPSILON,p as F_Schlick,d as Fn,M as HALF_PI,g as INFINITY,h as If,x as Loop,b as NodeAccess,f as NodeShaderStage,v as NodeType,w as NodeUpdateType,Vn as OnBeforeMaterialUpdate,yn as OnBeforeObjectUpdate,Fn as OnMaterialUpdate,Mn as OnObjectUpdate,_ as PCFShadowFilter,S as PCFSoftShadowFilter,T as PI,y as PI2,F as PointShadowFilter,I as Return,D as Schlick_to_F0,B as ScriptableNodeResources,P as ShaderNode,C as Stack,A as Switch,N as TBNViewMatrix,V as TWO_PI,R as VSMShadowFilter,O as V_GGX_SmithCorrelated,L as Var,k as VarIntent,G as abs,U as acesFilmicToneMapping,j as acos,E as add,W as addMethodChaining,q as addNodeElement,z as agxToneMapping,X as all,Z as alphaT,H as and,K as anisotropy,Y as anisotropyB,J as anisotropyT,Q as any,$ as append,ee as array,te as arrayBuffer,re as asin,ae as assign,oe as atan,ie as atan2,ne as atomicAdd,le as atomicAnd,se as atomicFunc,ce as atomicLoad,me as atomicMax,ue as atomicMin,pe as atomicOr,de as atomicStore,ge as atomicSub,he as atomicXor,xe as attenuationColor,be as attenuationDistance,fe as attribute,ve as attributeArray,we as backgroundBlurriness,_e as backgroundIntensity,Se as backgroundRotation,Te as batch,ye as bentNormalView,Ve as billboarding,Me as bitAnd,Fe as bitNot,Ie as bitOr,De as bitXor,Be as bitangentGeometry,Pe as bitangentLocal,Ce as bitangentView,Ae as bitangentWorld,Ne as bitcast,Re as blendBurn,Oe as blendColor,Le as blendDodge,ke as blendOverlay,Ge as blendScreen,Ue as blur,je as bool,Ee as buffer,We as bufferAttribute,Xe as builtin,qe as bumpMap,ze as burn,Ze as bvec2,He as bvec3,Ke as bvec4,Ye as bypass,Je as cache,Qe as call,$e as cameraFar,et as cameraIndex,tt as cameraNear,rt as cameraNormalMatrix,at as cameraPosition,ot as cameraProjectionMatrix,it as cameraProjectionMatrixInverse,nt as cameraViewMatrix,lt as cameraViewport,st as cameraWorldMatrix,ct as cbrt,mt as cdl,ut as ceil,pt as checker,dt as cineonToneMapping,gt as clamp,ht as clearcoat,xt as clearcoatNormalView,bt as clearcoatRoughness,ft as code,vt as color,wt as colorSpaceToWorking,_t as colorToDirection,St as compute,Tt as computeKernel,yt as computeSkinning,Vt as context,Mt as convert,Ft as convertColorSpace,It as convertToTexture,Dt as cos,Bt as cross,Pt as cubeTexture,Ct as cubeTextureBase,At as cubeToUV,Nt as dFdx,Rt as dFdy,Ot as dashSize,Lt as debug,kt as decrement,Gt as decrementBefore,Ut as defaultBuildStages,jt as defaultShaderStages,Et as defined,Wt as degrees,qt as deltaTime,zt as densityFog,Xt as densityFogFactor,Zt as depth,Ht as depthPass,Kt as determinant,Yt as difference,Jt as diffuseColor,Qt as directPointLight,$t as directionToColor,er as directionToFaceDirection,tr as dispersion,rr as distance,ar as div,or as dodge,ir as dot,nr as drawIndex,lr as dynamicBufferAttribute,sr as element,cr as emissive,mr as equal,ur as equals,pr as equirectUV,dr as exp,gr as exp2,hr as expression,xr as faceDirection,br as faceForward,fr as faceforward,vr as float,wr as floatBitsToInt,_r as floatBitsToUint,Sr as floor,Tr as fog,yr as fract,Vr as frameGroup,Mr as frameId,Fr as frontFacing,Ir as fwidth,Dr as gain,Br as gapSize,Pr as getConstNodeType,Cr as getCurrentStack,Ar as getDirection,Nr as getDistanceAttenuation,Rr as getGeometryRoughness,Or as getNormalFromDepth,kr as getParallaxCorrectNormal,Gr as getRoughness,Ur as getScreenPosition,jr as getShIrradianceAt,Er as getShadowMaterial,Wr as getShadowRenderObjectFunction,qr as getTextureIndex,zr as getViewPosition,Xr as globalId,Zr as glsl,Hr as glslFn,Kr as grayscale,Yr as greaterThan,Jr as greaterThanEqual,Qr as hash,$r as highpModelNormalViewMatrix,ea as highpModelViewMatrix,ta as hue,ra as increment,aa as incrementBefore,oa as instance,ia as instanceIndex,na as instancedArray,la as instancedBufferAttribute,sa as instancedDynamicBufferAttribute,ca as instancedMesh,ma as int,ua as intBitsToFloat,Lr as interleavedGradientNoise,pa as inverse,da as inverseSqrt,ga as inversesqrt,ha as invocationLocalIndex,xa as invocationSubgroupIndex,ba as ior,fa as iridescence,va as iridescenceIOR,wa as iridescenceThickness,_a as ivec2,Sa as ivec3,Ta as ivec4,ya as js,Va as label,Ma as length,Fa as lengthSq,Ia as lessThan,Da as lessThanEqual,Ba as lightPosition,Pa as lightProjectionUV,Ca as lightShadowMatrix,Aa as lightTargetDirection,Na as lightTargetPosition,Ra as lightViewPosition,Oa as lightingContext,La as lights,ka as linearDepth,Ga as linearToneMapping,Ua as localId,ja as log,Ea as log2,Wa as logarithmicDepthToViewZ,qa as luminance,za as mat2,Xa as mat3,Za as mat4,Ha as matcapUV,Ka as materialAO,Ya as materialAlphaTest,Ja as materialAnisotropy,Qa as materialAnisotropyVector,$a as materialAttenuationColor,eo as materialAttenuationDistance,to as materialClearcoat,ro as materialClearcoatNormal,ao as materialClearcoatRoughness,oo as materialColor,io as materialDispersion,no as materialEmissive,lo as materialEnvIntensity,so as materialEnvRotation,co as materialIOR,mo as materialIridescence,uo as materialIridescenceIOR,po as materialIridescenceThickness,go as materialLightMap,ho as materialLineDashOffset,xo as materialLineDashSize,bo as materialLineGapSize,fo as materialLineScale,vo as materialLineWidth,wo as materialMetalness,_o as materialNormal,So as materialOpacity,To as materialPointSize,yo as materialReference,Vo as materialReflectivity,Mo as materialRefractionRatio,Fo as materialRotation,Io as materialRoughness,Do as materialSheen,Bo as materialSheenRoughness,Po as materialShininess,Co as materialSpecular,Ao as materialSpecularColor,No as materialSpecularIntensity,Ro as materialSpecularStrength,Oo as materialThickness,Lo as materialTransmission,ko as max,Go as maxMipLevel,Uo as mediumpModelViewMatrix,jo as metalness,Eo as min,Wo as mix,qo as mixElement,zo as mod,Xo as modInt,Zo as modelDirection,Ho as modelNormalMatrix,Ko as modelPosition,Yo as modelRadius,Jo as modelScale,Qo as modelViewMatrix,$o as modelViewPosition,ei as modelViewProjection,ti as modelWorldMatrix,ri as modelWorldMatrixInverse,ai as morphReference,oi as mrt,ii as mul,ni as mx_aastep,li as mx_add,si as mx_atan2,ci as mx_cell_noise_float,mi as mx_contrast,ui as mx_divide,pi as mx_fractal_noise_float,di as mx_fractal_noise_vec2,gi as mx_fractal_noise_vec3,hi as mx_fractal_noise_vec4,xi as mx_frame,bi as mx_heighttonormal,fi as mx_hsvtorgb,vi as mx_ifequal,wi as mx_ifgreater,_i as mx_ifgreatereq,Si as mx_invert,Ti as mx_modulo,yi as mx_multiply,Vi as mx_noise_float,Mi as mx_noise_vec3,Fi as mx_noise_vec4,Ii as mx_place2d,Di as mx_power,Bi as mx_ramp4,Pi as mx_ramplr,Ci as mx_ramptb,Ai as mx_rgbtohsv,Ni as mx_rotate2d,Ri as mx_rotate3d,Oi as mx_safepower,Li as mx_separate,ki as mx_splitlr,Gi as mx_splittb,Ui as mx_srgb_texture_to_lin_rec709,ji as mx_subtract,Ei as mx_timer,Wi as mx_transform_uv,qi as mx_unifiednoise2d,zi as mx_unifiednoise3d,Xi as mx_worley_noise_float,Zi as mx_worley_noise_vec2,Hi as mx_worley_noise_vec3,Ki as negate,Yi as neutralToneMapping,Ji as nodeArray,Qi as nodeImmutable,$i as nodeObject,en as nodeObjectIntent,tn as nodeObjects,rn as nodeProxy,an as nodeProxyIntent,on as normalFlat,nn as normalGeometry,ln as normalLocal,sn as normalMap,cn as normalView,mn as normalViewGeometry,un as normalWorld,pn as normalWorldGeometry,dn as normalize,gn as not,hn as notEqual,xn as numWorkgroups,bn as objectDirection,fn as objectGroup,vn as objectPosition,wn as objectRadius,_n as objectScale,Sn as objectViewPosition,Tn as objectWorldMatrix,In as oneMinus,Dn as or,Bn as orthographicDepthToViewZ,Pn as oscSawtooth,Cn as oscSine,An as oscSquare,Nn as oscTriangle,Rn as output,On as outputStruct,Ln as overlay,kn as overloadingFn,Gn as parabola,Un as parallaxDirection,jn as parallaxUV,En as parameter,Wn as pass,qn as passTexture,zn as pcurve,Xn as perspectiveDepthToViewZ,Zn as pmremTexture,Hn as pointShadow,Kn as pointUV,Yn as pointWidth,Jn as positionGeometry,Qn as positionLocal,$n as positionPrevious,el as positionView,tl as positionViewDirection,rl as positionWorld,al as positionWorldDirection,ol as posterize,il as pow,nl as pow2,ll as pow3,sl as pow4,cl as premultiplyAlpha,ml as property,ul as radians,pl as rand,dl as range,gl as rangeFog,hl as rangeFogFactor,xl as reciprocal,bl as reference,fl as referenceBuffer,vl as reflect,wl as reflectVector,_l as reflectView,Sl as reflector,Tl as refract,yl as refractVector,Vl as refractView,Ml as reinhardToneMapping,Fl as remap,Il as remapClamp,Dl as renderGroup,Bl as renderOutput,Pl as rendererReference,Cl as rotate,Al as rotateUV,Nl as roughness,Rl as round,Ol as rtt,Ll as sRGBTransferEOTF,kl as sRGBTransferOETF,Gl as sample,Ul as sampler,jl as samplerComparison,El as saturate,Wl as saturation,ql as screen,zl as screenCoordinate,Xl as screenDPR,Zl as screenSize,Hl as screenUV,Kl as scriptable,Yl as scriptableValue,Jl as select,Ql as setCurrentStack,$l as setName,es as shaderStages,ts as shadow,rs as shadowPositionWorld,as as shapeCircle,os as sharedUniformGroup,is as sheen,ns as sheenRoughness,ls as shiftLeft,ss as shiftRight,cs as shininess,ms as sign,us as sin,ps as sinc,ds as skinning,gs as smoothstep,hs as smoothstepElement,xs as specularColor,bs as specularF90,fs as spherizeUV,vs as split,ws as spritesheetUV,_s as sqrt,Ss as stack,Ts as step,ys as stepElement,Vs as storage,Ms as storageBarrier,Fs as storageObject,Is as storageTexture,Ds as string,Bs as struct,Ps as sub,Gs as subBuild,Cs as subgroupAdd,As as subgroupAll,Ns as subgroupAnd,Rs as subgroupAny,Os as subgroupBallot,Ls as subgroupBroadcast,ks as subgroupBroadcastFirst,Us as subgroupElect,js as subgroupExclusiveAdd,Es as subgroupExclusiveMul,Ws as subgroupInclusiveAdd,qs as subgroupInclusiveMul,zs as subgroupIndex,Xs as subgroupMax,Zs as subgroupMin,Hs as subgroupMul,Ks as subgroupOr,Ys as subgroupShuffle,Js as subgroupShuffleDown,Qs as subgroupShuffleUp,$s as subgroupShuffleXor,ec as subgroupSize,tc as subgroupXor,rc as tan,ac as tangentGeometry,oc as tangentLocal,ic as tangentView,nc as tangentWorld,lc as texture,sc as texture3D,cc as textureBarrier,mc as textureBicubic,uc as textureBicubicLevel,pc as textureCubeUV,hc as textureLevel,dc as textureLoad,gc as textureSize,xc as textureStore,bc as thickness,fc as time,vc as toneMapping,wc as toneMappingExposure,_c as toonOutlinePass,Sc as transformDirection,Tc as transformNormal,yc as transformNormalToView,Vc as transformedClearcoatNormalView,Mc as transformedNormalView,Fc as transformedNormalWorld,Ic as transmission,Dc as transpose,Bc as triNoise3D,Pc as triplanarTexture,Cc as triplanarTextures,Ac as trunc,Nc as uint,Rc as uintBitsToFloat,Oc as uniform,Lc as uniformArray,kc as uniformCubeTexture,Uc as uniformFlow,Gc as uniformGroup,jc as uniformTexture,Ec as unpremultiplyAlpha,Wc as userData,qc as uv,zc as uvec2,Xc as uvec3,Zc as uvec4,Hc as varying,Kc as varyingProperty,Yc as vec2,Jc as vec3,Qc as vec4,$c as vectorComponents,em as velocity,tm as vertexColor,rm as vertexIndex,am as vertexStage,om as vibrance,im as viewZToLogarithmicDepth,nm as viewZToOrthographicDepth,lm as viewZToPerspectiveDepth,sm as viewport,cm as viewportCoordinate,mm as viewportDepthTexture,um as viewportLinearDepth,pm as viewportMipTexture,dm as viewportResolution,gm as viewportSafeUV,hm as viewportSharedTexture,xm as viewportSize,bm as viewportTexture,fm as viewportUV,vm as wgsl,wm as wgslFn,_m as workgroupArray,Sm as workgroupBarrier,Tm as workgroupId,ym as workingToColorSpace,Vm as xor};
|
|
6
|
+
import{TSL as e}from"three/webgpu";const t=e.BRDF_GGX,r=e.BRDF_Lambert,a=e.BasicPointShadowFilter,o=e.BasicShadowFilter,i=e.Break,n=e.Const,l=e.Continue,s=e.DFGLUT,c=e.D_GGX,m=e.Discard,u=e.EPSILON,p=e.F_Schlick,d=e.Fn,g=e.INFINITY,x=e.If,h=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.add,E=e.addMethodChaining,W=e.addNodeElement,q=e.agxToneMapping,z=e.all,Z=e.alphaT,X=e.and,H=e.anisotropy,K=e.anisotropyB,Y=e.anisotropyT,J=e.any,Q=e.append,$=e.array,ee=e.arrayBuffer,te=e.asin,re=e.assign,ae=e.atan,oe=e.atomicAdd,ie=e.atomicAnd,ne=e.atomicFunc,le=e.atomicLoad,se=e.atomicMax,ce=e.atomicMin,me=e.atomicOr,ue=e.atomicStore,pe=e.atomicSub,de=e.atomicXor,ge=e.attenuationColor,xe=e.attenuationDistance,he=e.attribute,fe=e.attributeArray,be=e.backgroundBlurriness,ve=e.backgroundIntensity,we=e.backgroundRotation,_e=e.batch,Se=e.bentNormalView,Te=e.billboarding,ye=e.bitAnd,Ve=e.bitNot,Me=e.bitOr,Fe=e.bitXor,De=e.bitangentGeometry,Ie=e.bitangentLocal,Be=e.bitangentView,Ce=e.bitangentWorld,Pe=e.bitcast,Re=e.blendBurn,Ae=e.blendColor,Oe=e.blendDodge,ke=e.blendOverlay,Ne=e.blendScreen,Le=e.blur,Ue=e.bool,Ge=e.buffer,je=e.bufferAttribute,Ee=e.bumpMap,We=e.builtin,qe=e.builtinAOContext,ze=e.builtinShadowContext,Ze=e.bvec2,Xe=e.bvec3,He=e.bvec4,Ke=e.bypass,Ye=e.cache,Je=e.call,Qe=e.cameraFar,$e=e.cameraIndex,et=e.cameraNear,tt=e.cameraNormalMatrix,rt=e.cameraPosition,at=e.cameraProjectionMatrix,ot=e.cameraProjectionMatrixInverse,it=e.cameraViewMatrix,nt=e.cameraViewport,lt=e.cameraWorldMatrix,st=e.cbrt,ct=e.cdl,mt=e.ceil,ut=e.checker,pt=e.cineonToneMapping,dt=e.clamp,gt=e.clearcoat,xt=e.clearcoatNormalView,ht=e.clearcoatRoughness,ft=e.clipSpace,bt=e.code,vt=e.color,wt=e.colorSpaceToWorking,_t=e.colorToDirection,St=e.compute,Tt=e.computeKernel,yt=e.computeSkinning,Vt=e.context,Mt=e.convert,Ft=e.convertColorSpace,Dt=e.convertToTexture,It=e.countLeadingZeros,Bt=e.countOneBits,Ct=e.countTrailingZeros,Pt=e.cos,Rt=e.cross,At=e.cubeTexture,Ot=e.cubeTextureBase,kt=e.dFdx,Nt=e.dFdy,Lt=e.dashSize,Ut=e.debug,Gt=e.decrement,jt=e.decrementBefore,Et=e.defaultBuildStages,Wt=e.defaultShaderStages,qt=e.defined,zt=e.degrees,Zt=e.deltaTime,Xt=e.densityFog,Ht=e.densityFogFactor,Kt=e.depth,Yt=e.depthPass,Jt=e.determinant,Qt=e.difference,$t=e.diffuseColor,er=e.directPointLight,tr=e.directionToColor,rr=e.directionToFaceDirection,ar=e.dispersion,or=e.distance,ir=e.div,nr=e.dot,lr=e.drawIndex,sr=e.dynamicBufferAttribute,cr=e.element,mr=e.emissive,ur=e.equal,pr=e.equirectUV,dr=e.exp,gr=e.exp2,xr=e.exponentialHeightFogFactor,hr=e.expression,fr=e.faceDirection,br=e.faceForward,vr=e.faceforward,wr=e.float,_r=e.floatBitsToInt,Sr=e.floatBitsToUint,Tr=e.floor,yr=e.fog,Vr=e.fract,Mr=e.frameGroup,Fr=e.frameId,Dr=e.frontFacing,Ir=e.fwidth,Br=e.gain,Cr=e.gapSize,Pr=e.getConstNodeType,Rr=e.getCurrentStack,Ar=e.getDirection,Or=e.getDistanceAttenuation,kr=e.getGeometryRoughness,Nr=e.getNormalFromDepth,Lr=e.interleavedGradientNoise,Ur=e.vogelDiskSample,Gr=e.getParallaxCorrectNormal,jr=e.getRoughness,Er=e.getScreenPosition,Wr=e.getShIrradianceAt,qr=e.getShadowMaterial,zr=e.getShadowRenderObjectFunction,Zr=e.getTextureIndex,Xr=e.getViewPosition,Hr=e.globalId,Kr=e.glsl,Yr=e.glslFn,Jr=e.grayscale,Qr=e.greaterThan,$r=e.greaterThanEqual,ea=e.hash,ta=e.highpModelNormalViewMatrix,ra=e.highpModelViewMatrix,aa=e.hue,oa=e.increment,ia=e.incrementBefore,na=e.instance,la=e.instanceIndex,sa=e.instancedArray,ca=e.instancedBufferAttribute,ma=e.instancedDynamicBufferAttribute,ua=e.instancedMesh,pa=e.int,da=e.intBitsToFloat,ga=e.inverse,xa=e.inverseSqrt,ha=e.inversesqrt,fa=e.invocationLocalIndex,ba=e.invocationSubgroupIndex,va=e.ior,wa=e.iridescence,_a=e.iridescenceIOR,Sa=e.iridescenceThickness,Ta=e.ivec2,ya=e.ivec3,Va=e.ivec4,Ma=e.js,Fa=e.label,Da=e.length,Ia=e.lengthSq,Ba=e.lessThan,Ca=e.lessThanEqual,Pa=e.lightPosition,Ra=e.lightProjectionUV,Aa=e.lightShadowMatrix,Oa=e.lightTargetDirection,ka=e.lightTargetPosition,Na=e.lightViewPosition,La=e.lightingContext,Ua=e.lights,Ga=e.linearDepth,ja=e.linearToneMapping,Ea=e.localId,Wa=e.log,qa=e.log2,za=e.logarithmicDepthToViewZ,Za=e.luminance,Xa=e.mat2,Ha=e.mat3,Ka=e.mat4,Ya=e.matcapUV,Ja=e.materialAO,Qa=e.materialAlphaTest,$a=e.materialAnisotropy,eo=e.materialAnisotropyVector,to=e.materialAttenuationColor,ro=e.materialAttenuationDistance,ao=e.materialClearcoat,oo=e.materialClearcoatNormal,io=e.materialClearcoatRoughness,no=e.materialColor,lo=e.materialDispersion,so=e.materialEmissive,co=e.materialEnvIntensity,mo=e.materialEnvRotation,uo=e.materialIOR,po=e.materialIridescence,go=e.materialIridescenceIOR,xo=e.materialIridescenceThickness,ho=e.materialLightMap,fo=e.materialLineDashOffset,bo=e.materialLineDashSize,vo=e.materialLineGapSize,wo=e.materialLineScale,_o=e.materialLineWidth,So=e.materialMetalness,To=e.materialNormal,yo=e.materialOpacity,Vo=e.materialPointSize,Mo=e.materialReference,Fo=e.materialReflectivity,Do=e.materialRefractionRatio,Io=e.materialRotation,Bo=e.materialRoughness,Co=e.materialSheen,Po=e.materialSheenRoughness,Ro=e.materialShininess,Ao=e.materialSpecular,Oo=e.materialSpecularColor,ko=e.materialSpecularIntensity,No=e.materialSpecularStrength,Lo=e.materialThickness,Uo=e.materialTransmission,Go=e.max,jo=e.maxMipLevel,Eo=e.mediumpModelViewMatrix,Wo=e.metalness,qo=e.min,zo=e.mix,Zo=e.mixElement,Xo=e.mod,Ho=e.modInt,Ko=e.modelDirection,Yo=e.modelNormalMatrix,Jo=e.modelPosition,Qo=e.modelRadius,$o=e.modelScale,ei=e.modelViewMatrix,ti=e.modelViewPosition,ri=e.modelViewProjection,ai=e.modelWorldMatrix,oi=e.modelWorldMatrixInverse,ii=e.morphReference,ni=e.mrt,li=e.mul,si=e.mx_aastep,ci=e.mx_add,mi=e.mx_atan2,ui=e.mx_cell_noise_float,pi=e.mx_contrast,di=e.mx_divide,gi=e.mx_fractal_noise_float,xi=e.mx_fractal_noise_vec2,hi=e.mx_fractal_noise_vec3,fi=e.mx_fractal_noise_vec4,bi=e.mx_frame,vi=e.mx_heighttonormal,wi=e.mx_hsvtorgb,_i=e.mx_ifequal,Si=e.mx_ifgreater,Ti=e.mx_ifgreatereq,yi=e.mx_invert,Vi=e.mx_modulo,Mi=e.mx_multiply,Fi=e.mx_noise_float,Di=e.mx_noise_vec3,Ii=e.mx_noise_vec4,Bi=e.mx_place2d,Ci=e.mx_power,Pi=e.mx_ramp4,Ri=e.mx_ramplr,Ai=e.mx_ramptb,Oi=e.mx_rgbtohsv,ki=e.mx_rotate2d,Ni=e.mx_rotate3d,Li=e.mx_safepower,Ui=e.mx_separate,Gi=e.mx_splitlr,ji=e.mx_splittb,Ei=e.mx_srgb_texture_to_lin_rec709,Wi=e.mx_subtract,qi=e.mx_timer,zi=e.mx_transform_uv,Zi=e.mx_unifiednoise2d,Xi=e.mx_unifiednoise3d,Hi=e.mx_worley_noise_float,Ki=e.mx_worley_noise_vec2,Yi=e.mx_worley_noise_vec3,Ji=e.negate,Qi=e.neutralToneMapping,$i=e.nodeArray,en=e.nodeImmutable,tn=e.nodeObject,rn=e.nodeObjectIntent,an=e.nodeObjects,on=e.nodeProxy,nn=e.nodeProxyIntent,ln=e.normalFlat,sn=e.normalGeometry,cn=e.normalLocal,mn=e.normalMap,un=e.normalView,pn=e.normalViewGeometry,dn=e.normalWorld,gn=e.normalWorldGeometry,xn=e.normalize,hn=e.not,fn=e.notEqual,bn=e.numWorkgroups,vn=e.objectDirection,wn=e.objectGroup,_n=e.objectPosition,Sn=e.objectRadius,Tn=e.objectScale,yn=e.objectViewPosition,Vn=e.objectWorldMatrix,Mn=e.OnBeforeObjectUpdate,Fn=e.OnBeforeMaterialUpdate,Dn=e.OnObjectUpdate,In=e.OnMaterialUpdate,Bn=e.oneMinus,Cn=e.or,Pn=e.orthographicDepthToViewZ,Rn=e.oscSawtooth,An=e.oscSine,On=e.oscSquare,kn=e.oscTriangle,Nn=e.output,Ln=e.outputStruct,Un=e.overloadingFn,Gn=e.packHalf2x16,jn=e.packSnorm2x16,En=e.packUnorm2x16,Wn=e.parabola,qn=e.parallaxDirection,zn=e.parallaxUV,Zn=e.parameter,Xn=e.pass,Hn=e.passTexture,Kn=e.pcurve,Yn=e.perspectiveDepthToViewZ,Jn=e.pmremTexture,Qn=e.pointShadow,$n=e.pointUV,el=e.pointWidth,tl=e.positionGeometry,rl=e.positionLocal,al=e.positionPrevious,ol=e.positionView,il=e.positionViewDirection,nl=e.positionWorld,ll=e.positionWorldDirection,sl=e.posterize,cl=e.pow,ml=e.pow2,ul=e.pow3,pl=e.pow4,dl=e.premultiplyAlpha,gl=e.property,xl=e.radians,hl=e.rand,fl=e.range,bl=e.rangeFog,vl=e.rangeFogFactor,wl=e.reciprocal,_l=e.reference,Sl=e.referenceBuffer,Tl=e.reflect,yl=e.reflectVector,Vl=e.reflectView,Ml=e.reflector,Fl=e.refract,Dl=e.refractVector,Il=e.refractView,Bl=e.reinhardToneMapping,Cl=e.remap,Pl=e.remapClamp,Rl=e.renderGroup,Al=e.renderOutput,Ol=e.rendererReference,kl=e.replaceDefaultUV,Nl=e.rotate,Ll=e.rotateUV,Ul=e.roughness,Gl=e.round,jl=e.rtt,El=e.sRGBTransferEOTF,Wl=e.sRGBTransferOETF,ql=e.sample,zl=e.sampler,Zl=e.samplerComparison,Xl=e.saturate,Hl=e.saturation,Kl=e.screen,Yl=e.screenCoordinate,Jl=e.screenDPR,Ql=e.screenSize,$l=e.screenUV,es=e.select,ts=e.setCurrentStack,rs=e.setName,as=e.shaderStages,os=e.shadow,is=e.shadowPositionWorld,ns=e.shapeCircle,ls=e.sharedUniformGroup,ss=e.sheen,cs=e.sheenRoughness,ms=e.shiftLeft,us=e.shiftRight,ps=e.shininess,ds=e.sign,gs=e.sin,xs=e.sinc,hs=e.skinning,fs=e.smoothstep,bs=e.smoothstepElement,vs=e.specularColor,ws=e.specularF90,_s=e.spherizeUV,Ss=e.split,Ts=e.spritesheetUV,ys=e.sqrt,Vs=e.stack,Ms=e.step,Fs=e.stepElement,Ds=e.storage,Is=e.storageBarrier,Bs=e.storageTexture,Cs=e.string,Ps=e.struct,Rs=e.sub,As=e.subgroupAdd,Os=e.subgroupAll,ks=e.subgroupAnd,Ns=e.subgroupAny,Ls=e.subgroupBallot,Us=e.subgroupBroadcast,Gs=e.subgroupBroadcastFirst,js=e.subBuild,Es=e.subgroupElect,Ws=e.subgroupExclusiveAdd,qs=e.subgroupExclusiveMul,zs=e.subgroupInclusiveAdd,Zs=e.subgroupInclusiveMul,Xs=e.subgroupIndex,Hs=e.subgroupMax,Ks=e.subgroupMin,Ys=e.subgroupMul,Js=e.subgroupOr,Qs=e.subgroupShuffle,$s=e.subgroupShuffleDown,ec=e.subgroupShuffleUp,tc=e.subgroupShuffleXor,rc=e.subgroupSize,ac=e.subgroupXor,oc=e.tan,ic=e.tangentGeometry,nc=e.tangentLocal,lc=e.tangentView,sc=e.tangentWorld,cc=e.texture,mc=e.texture3D,uc=e.textureBarrier,pc=e.textureBicubic,dc=e.textureBicubicLevel,gc=e.textureCubeUV,xc=e.textureLoad,hc=e.textureSize,fc=e.textureLevel,bc=e.textureStore,vc=e.thickness,wc=e.time,_c=e.toneMapping,Sc=e.toneMappingExposure,Tc=e.toonOutlinePass,yc=e.transformDirection,Vc=e.transformNormal,Mc=e.transformNormalToView,Fc=e.transformedClearcoatNormalView,Dc=e.transformedNormalView,Ic=e.transformedNormalWorld,Bc=e.transmission,Cc=e.transpose,Pc=e.triNoise3D,Rc=e.triplanarTexture,Ac=e.triplanarTextures,Oc=e.trunc,kc=e.uint,Nc=e.uintBitsToFloat,Lc=e.uniform,Uc=e.uniformArray,Gc=e.uniformCubeTexture,jc=e.uniformGroup,Ec=e.uniformFlow,Wc=e.uniformTexture,qc=e.unpackHalf2x16,zc=e.unpackSnorm2x16,Zc=e.unpackUnorm2x16,Xc=e.unpremultiplyAlpha,Hc=e.userData,Kc=e.uv,Yc=e.uvec2,Jc=e.uvec3,Qc=e.uvec4,$c=e.varying,em=e.varyingProperty,tm=e.vec2,rm=e.vec3,am=e.vec4,om=e.vectorComponents,im=e.velocity,nm=e.vertexColor,lm=e.vertexIndex,sm=e.vertexStage,cm=e.vibrance,mm=e.viewZToLogarithmicDepth,um=e.viewZToOrthographicDepth,pm=e.viewZToPerspectiveDepth,dm=e.viewZToReversedOrthographicDepth,gm=e.viewZToReversedPerspectiveDepth,xm=e.viewport,hm=e.viewportCoordinate,fm=e.viewportDepthTexture,bm=e.viewportLinearDepth,vm=e.viewportMipTexture,wm=e.viewportOpaqueMipTexture,_m=e.viewportResolution,Sm=e.viewportSafeUV,Tm=e.viewportSharedTexture,ym=e.viewportSize,Vm=e.viewportTexture,Mm=e.viewportUV,Fm=e.wgsl,Dm=e.wgslFn,Im=e.workgroupArray,Bm=e.workgroupBarrier,Cm=e.workgroupId,Pm=e.workingToColorSpace,Rm=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,x as If,h as Loop,f as NodeAccess,b as NodeShaderStage,v as NodeType,w as NodeUpdateType,Fn as OnBeforeMaterialUpdate,Mn as OnBeforeObjectUpdate,In as OnMaterialUpdate,Dn 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 add,E as addMethodChaining,W as addNodeElement,q as agxToneMapping,z as all,Z as alphaT,X as and,H as anisotropy,K as anisotropyB,Y as anisotropyT,J as any,Q as append,$ as array,ee as arrayBuffer,te as asin,re as assign,ae as atan,oe as atomicAdd,ie as atomicAnd,ne as atomicFunc,le as atomicLoad,se as atomicMax,ce as atomicMin,me as atomicOr,ue as atomicStore,pe as atomicSub,de as atomicXor,ge as attenuationColor,xe as attenuationDistance,he as attribute,fe as attributeArray,be as backgroundBlurriness,ve as backgroundIntensity,we as backgroundRotation,_e as batch,Se as bentNormalView,Te as billboarding,ye as bitAnd,Ve as bitNot,Me as bitOr,Fe as bitXor,De as bitangentGeometry,Ie as bitangentLocal,Be as bitangentView,Ce as bitangentWorld,Pe as bitcast,Re as blendBurn,Ae as blendColor,Oe as blendDodge,ke as blendOverlay,Ne as blendScreen,Le as blur,Ue as bool,Ge as buffer,je as bufferAttribute,We as builtin,qe as builtinAOContext,ze as builtinShadowContext,Ee as bumpMap,Ze as bvec2,Xe as bvec3,He as bvec4,Ke as bypass,Ye as cache,Je as call,Qe as cameraFar,$e as cameraIndex,et as cameraNear,tt as cameraNormalMatrix,rt as cameraPosition,at as cameraProjectionMatrix,ot as cameraProjectionMatrixInverse,it as cameraViewMatrix,nt as cameraViewport,lt as cameraWorldMatrix,st as cbrt,ct as cdl,mt as ceil,ut as checker,pt as cineonToneMapping,dt as clamp,gt as clearcoat,xt as clearcoatNormalView,ht as clearcoatRoughness,ft as clipSpace,bt as code,vt as color,wt as colorSpaceToWorking,_t as colorToDirection,St as compute,Tt as computeKernel,yt as computeSkinning,Vt as context,Mt as convert,Ft as convertColorSpace,Dt as convertToTexture,Pt as cos,It as countLeadingZeros,Bt as countOneBits,Ct as countTrailingZeros,Rt as cross,At as cubeTexture,Ot as cubeTextureBase,kt as dFdx,Nt as dFdy,Lt as dashSize,Ut as debug,Gt as decrement,jt as decrementBefore,Et as defaultBuildStages,Wt as defaultShaderStages,qt as defined,zt as degrees,Zt as deltaTime,Xt as densityFog,Ht as densityFogFactor,Kt as depth,Yt as depthPass,Jt as determinant,Qt as difference,$t as diffuseColor,er as directPointLight,tr as directionToColor,rr as directionToFaceDirection,ar as dispersion,or as distance,ir as div,nr as dot,lr as drawIndex,sr as dynamicBufferAttribute,cr as element,mr as emissive,ur as equal,pr as equirectUV,dr as exp,gr as exp2,xr as exponentialHeightFogFactor,hr as expression,fr as faceDirection,br as faceForward,vr as faceforward,wr as float,_r as floatBitsToInt,Sr as floatBitsToUint,Tr as floor,yr as fog,Vr as fract,Mr as frameGroup,Fr as frameId,Dr as frontFacing,Ir as fwidth,Br as gain,Cr as gapSize,Pr as getConstNodeType,Rr as getCurrentStack,Ar as getDirection,Or as getDistanceAttenuation,kr as getGeometryRoughness,Nr as getNormalFromDepth,Gr as getParallaxCorrectNormal,jr as getRoughness,Er as getScreenPosition,Wr as getShIrradianceAt,qr as getShadowMaterial,zr as getShadowRenderObjectFunction,Zr as getTextureIndex,Xr as getViewPosition,Hr as globalId,Kr as glsl,Yr as glslFn,Jr as grayscale,Qr as greaterThan,$r as greaterThanEqual,ea as hash,ta as highpModelNormalViewMatrix,ra as highpModelViewMatrix,aa as hue,oa as increment,ia as incrementBefore,na as instance,la as instanceIndex,sa as instancedArray,ca as instancedBufferAttribute,ma as instancedDynamicBufferAttribute,ua as instancedMesh,pa as int,da as intBitsToFloat,Lr as interleavedGradientNoise,ga as inverse,xa as inverseSqrt,ha as inversesqrt,fa as invocationLocalIndex,ba as invocationSubgroupIndex,va as ior,wa as iridescence,_a as iridescenceIOR,Sa as iridescenceThickness,Ta as ivec2,ya as ivec3,Va as ivec4,Ma as js,Fa as label,Da as length,Ia as lengthSq,Ba as lessThan,Ca as lessThanEqual,Pa as lightPosition,Ra as lightProjectionUV,Aa as lightShadowMatrix,Oa as lightTargetDirection,ka as lightTargetPosition,Na as lightViewPosition,La as lightingContext,Ua as lights,Ga as linearDepth,ja as linearToneMapping,Ea as localId,Wa as log,qa as log2,za as logarithmicDepthToViewZ,Za as luminance,Xa as mat2,Ha as mat3,Ka as mat4,Ya as matcapUV,Ja as materialAO,Qa as materialAlphaTest,$a as materialAnisotropy,eo as materialAnisotropyVector,to as materialAttenuationColor,ro as materialAttenuationDistance,ao as materialClearcoat,oo as materialClearcoatNormal,io as materialClearcoatRoughness,no as materialColor,lo as materialDispersion,so as materialEmissive,co as materialEnvIntensity,mo as materialEnvRotation,uo as materialIOR,po as materialIridescence,go as materialIridescenceIOR,xo as materialIridescenceThickness,ho as materialLightMap,fo as materialLineDashOffset,bo as materialLineDashSize,vo as materialLineGapSize,wo as materialLineScale,_o as materialLineWidth,So as materialMetalness,To as materialNormal,yo as materialOpacity,Vo as materialPointSize,Mo as materialReference,Fo as materialReflectivity,Do as materialRefractionRatio,Io as materialRotation,Bo as materialRoughness,Co as materialSheen,Po as materialSheenRoughness,Ro as materialShininess,Ao as materialSpecular,Oo as materialSpecularColor,ko as materialSpecularIntensity,No as materialSpecularStrength,Lo as materialThickness,Uo as materialTransmission,Go as max,jo as maxMipLevel,Eo as mediumpModelViewMatrix,Wo as metalness,qo as min,zo as mix,Zo as mixElement,Xo as mod,Ho as modInt,Ko as modelDirection,Yo as modelNormalMatrix,Jo as modelPosition,Qo as modelRadius,$o as modelScale,ei as modelViewMatrix,ti as modelViewPosition,ri as modelViewProjection,ai as modelWorldMatrix,oi as modelWorldMatrixInverse,ii as morphReference,ni as mrt,li as mul,si as mx_aastep,ci as mx_add,mi as mx_atan2,ui as mx_cell_noise_float,pi as mx_contrast,di as mx_divide,gi as mx_fractal_noise_float,xi as mx_fractal_noise_vec2,hi as mx_fractal_noise_vec3,fi as mx_fractal_noise_vec4,bi as mx_frame,vi as mx_heighttonormal,wi as mx_hsvtorgb,_i as mx_ifequal,Si as mx_ifgreater,Ti as mx_ifgreatereq,yi as mx_invert,Vi as mx_modulo,Mi as mx_multiply,Fi as mx_noise_float,Di as mx_noise_vec3,Ii as mx_noise_vec4,Bi as mx_place2d,Ci as mx_power,Pi as mx_ramp4,Ri as mx_ramplr,Ai as mx_ramptb,Oi as mx_rgbtohsv,ki as mx_rotate2d,Ni as mx_rotate3d,Li as mx_safepower,Ui as mx_separate,Gi as mx_splitlr,ji as mx_splittb,Ei as mx_srgb_texture_to_lin_rec709,Wi as mx_subtract,qi as mx_timer,zi as mx_transform_uv,Zi as mx_unifiednoise2d,Xi as mx_unifiednoise3d,Hi as mx_worley_noise_float,Ki as mx_worley_noise_vec2,Yi as mx_worley_noise_vec3,Ji as negate,Qi as neutralToneMapping,$i as nodeArray,en as nodeImmutable,tn as nodeObject,rn as nodeObjectIntent,an as nodeObjects,on as nodeProxy,nn as nodeProxyIntent,ln as normalFlat,sn as normalGeometry,cn as normalLocal,mn as normalMap,un as normalView,pn as normalViewGeometry,dn as normalWorld,gn as normalWorldGeometry,xn as normalize,hn as not,fn as notEqual,bn as numWorkgroups,vn as objectDirection,wn as objectGroup,_n as objectPosition,Sn as objectRadius,Tn as objectScale,yn as objectViewPosition,Vn as objectWorldMatrix,Bn as oneMinus,Cn as or,Pn as orthographicDepthToViewZ,Rn as oscSawtooth,An as oscSine,On as oscSquare,kn as oscTriangle,Nn as output,Ln as outputStruct,Un as overloadingFn,Gn as packHalf2x16,jn as packSnorm2x16,En as packUnorm2x16,Wn as parabola,qn as parallaxDirection,zn as parallaxUV,Zn as parameter,Xn as pass,Hn as passTexture,Kn as pcurve,Yn as perspectiveDepthToViewZ,Jn as pmremTexture,Qn as pointShadow,$n as pointUV,el as pointWidth,tl as positionGeometry,rl as positionLocal,al as positionPrevious,ol as positionView,il as positionViewDirection,nl as positionWorld,ll as positionWorldDirection,sl as posterize,cl as pow,ml as pow2,ul as pow3,pl as pow4,dl as premultiplyAlpha,gl as property,xl as radians,hl as rand,fl as range,bl as rangeFog,vl as rangeFogFactor,wl as reciprocal,_l as reference,Sl as referenceBuffer,Tl as reflect,yl as reflectVector,Vl as reflectView,Ml as reflector,Fl as refract,Dl as refractVector,Il as refractView,Bl as reinhardToneMapping,Cl as remap,Pl as remapClamp,Rl as renderGroup,Al as renderOutput,Ol as rendererReference,kl as replaceDefaultUV,Nl as rotate,Ll as rotateUV,Ul as roughness,Gl as round,jl as rtt,El as sRGBTransferEOTF,Wl as sRGBTransferOETF,ql as sample,zl as sampler,Zl as samplerComparison,Xl as saturate,Hl as saturation,Kl as screen,Yl as screenCoordinate,Jl as screenDPR,Ql as screenSize,$l as screenUV,es as select,ts as setCurrentStack,rs as setName,as as shaderStages,os as shadow,is as shadowPositionWorld,ns as shapeCircle,ls as sharedUniformGroup,ss as sheen,cs as sheenRoughness,ms as shiftLeft,us as shiftRight,ps as shininess,ds as sign,gs as sin,xs as sinc,hs as skinning,fs as smoothstep,bs as smoothstepElement,vs as specularColor,ws as specularF90,_s as spherizeUV,Ss as split,Ts as spritesheetUV,ys as sqrt,Vs as stack,Ms as step,Fs as stepElement,Ds as storage,Is as storageBarrier,Bs as storageTexture,Cs as string,Ps as struct,Rs as sub,js as subBuild,As as subgroupAdd,Os as subgroupAll,ks as subgroupAnd,Ns as subgroupAny,Ls as subgroupBallot,Us as subgroupBroadcast,Gs as subgroupBroadcastFirst,Es as subgroupElect,Ws as subgroupExclusiveAdd,qs as subgroupExclusiveMul,zs as subgroupInclusiveAdd,Zs as subgroupInclusiveMul,Xs as subgroupIndex,Hs as subgroupMax,Ks as subgroupMin,Ys as subgroupMul,Js as subgroupOr,Qs as subgroupShuffle,$s as subgroupShuffleDown,ec as subgroupShuffleUp,tc as subgroupShuffleXor,rc as subgroupSize,ac as subgroupXor,oc as tan,ic as tangentGeometry,nc as tangentLocal,lc as tangentView,sc as tangentWorld,cc as texture,mc as texture3D,uc as textureBarrier,pc as textureBicubic,dc as textureBicubicLevel,gc as textureCubeUV,fc as textureLevel,xc as textureLoad,hc as textureSize,bc as textureStore,vc as thickness,wc as time,_c as toneMapping,Sc as toneMappingExposure,Tc as toonOutlinePass,yc as transformDirection,Vc as transformNormal,Mc as transformNormalToView,Fc as transformedClearcoatNormalView,Dc as transformedNormalView,Ic as transformedNormalWorld,Bc as transmission,Cc as transpose,Pc as triNoise3D,Rc as triplanarTexture,Ac as triplanarTextures,Oc as trunc,kc as uint,Nc as uintBitsToFloat,Lc as uniform,Uc as uniformArray,Gc as uniformCubeTexture,Ec as uniformFlow,jc as uniformGroup,Wc as uniformTexture,qc as unpackHalf2x16,zc as unpackSnorm2x16,Zc as unpackUnorm2x16,Xc as unpremultiplyAlpha,Hc as userData,Kc as uv,Yc as uvec2,Jc as uvec3,Qc as uvec4,$c as varying,em as varyingProperty,tm as vec2,rm as vec3,am as vec4,om as vectorComponents,im as velocity,nm as vertexColor,lm as vertexIndex,sm as vertexStage,cm as vibrance,mm as viewZToLogarithmicDepth,um as viewZToOrthographicDepth,pm as viewZToPerspectiveDepth,dm as viewZToReversedOrthographicDepth,gm as viewZToReversedPerspectiveDepth,xm as viewport,hm as viewportCoordinate,fm as viewportDepthTexture,bm as viewportLinearDepth,vm as viewportMipTexture,wm as viewportOpaqueMipTexture,_m as viewportResolution,Sm as viewportSafeUV,Tm as viewportSharedTexture,ym as viewportSize,Vm as viewportTexture,Mm as viewportUV,Ur as vogelDiskSample,Fm as wgsl,Dm as wgslFn,Im as workgroupArray,Bm as workgroupBarrier,Cm as workgroupId,Pm as workingToColorSpace,Rm as xor};
|