super-three 0.171.0 → 0.173.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.
Files changed (455) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/build/three.cjs +594 -427
  4. package/build/three.core.js +515 -81
  5. package/build/three.core.min.js +2 -2
  6. package/build/three.module.js +79 -350
  7. package/build/three.module.min.js +2 -2
  8. package/build/three.tsl.js +20 -7
  9. package/build/three.tsl.min.js +2 -2
  10. package/build/three.webgpu.js +29362 -3427
  11. package/build/three.webgpu.min.js +2 -2
  12. package/build/three.webgpu.nodes.js +29361 -3427
  13. package/build/three.webgpu.nodes.min.js +2 -2
  14. package/examples/jsm/Addons.js +0 -5
  15. package/examples/jsm/animation/CCDIKSolver.js +9 -7
  16. package/examples/jsm/capabilities/WebGPU.js +1 -1
  17. package/examples/jsm/controls/ArcballControls.js +48 -37
  18. package/examples/jsm/controls/OrbitControls.js +5 -4
  19. package/examples/jsm/csm/CSMShadowNode.js +16 -11
  20. package/examples/jsm/curves/NURBSCurve.js +1 -1
  21. package/examples/jsm/curves/NURBSUtils.js +3 -0
  22. package/examples/jsm/effects/OutlineEffect.js +1 -1
  23. package/examples/jsm/exporters/GLTFExporter.js +34 -29
  24. package/examples/jsm/exporters/KTX2Exporter.js +1 -1
  25. package/examples/jsm/exporters/PLYExporter.js +2 -2
  26. package/examples/jsm/geometries/TextGeometry.js +1 -12
  27. package/examples/jsm/helpers/TextureHelperGPU.js +15 -5
  28. package/examples/jsm/helpers/VertexNormalsHelper.js +2 -0
  29. package/examples/jsm/interactive/InteractiveGroup.js +108 -51
  30. package/examples/jsm/libs/demuxer_mp4.js +109 -0
  31. package/examples/jsm/lights/LightProbeGenerator.js +3 -3
  32. package/examples/jsm/lines/webgpu/LineSegments2.js +15 -6
  33. package/examples/jsm/loaders/3MFLoader.js +6 -3
  34. package/examples/jsm/loaders/BVHLoader.js +1 -1
  35. package/examples/jsm/loaders/ColladaLoader.js +5 -5
  36. package/examples/jsm/loaders/DDSLoader.js +42 -0
  37. package/examples/jsm/loaders/GCodeLoader.js +4 -2
  38. package/examples/jsm/loaders/GLTFLoader.js +22 -4
  39. package/examples/jsm/loaders/KTX2Loader.js +6 -1
  40. package/examples/jsm/loaders/KTXLoader.js +4 -4
  41. package/examples/jsm/loaders/LDrawLoader.js +1 -1
  42. package/examples/jsm/loaders/LottieLoader.js +1 -1
  43. package/examples/jsm/loaders/MTLLoader.js +1 -0
  44. package/examples/jsm/loaders/NRRDLoader.js +1 -1
  45. package/examples/jsm/loaders/PLYLoader.js +7 -7
  46. package/examples/jsm/loaders/PVRLoader.js +1 -1
  47. package/examples/jsm/loaders/SVGLoader.js +2 -2
  48. package/examples/jsm/loaders/TDSLoader.js +1 -2
  49. package/examples/jsm/loaders/VRMLLoader.js +7 -7
  50. package/examples/jsm/loaders/lwo/IFFParser.js +4 -4
  51. package/examples/jsm/materials/LDrawConditionalLineNodeMaterial.js +1 -1
  52. package/examples/jsm/materials/MeshGouraudMaterial.js +2 -0
  53. package/examples/jsm/math/ConvexHull.js +1 -1
  54. package/examples/jsm/math/OBB.js +17 -0
  55. package/examples/jsm/misc/GPUComputationRenderer.js +6 -7
  56. package/examples/jsm/misc/ProgressiveLightMap.js +4 -3
  57. package/examples/jsm/misc/ProgressiveLightMapGPU.js +14 -13
  58. package/examples/jsm/misc/Volume.js +27 -17
  59. package/examples/jsm/misc/VolumeSlice.js +7 -5
  60. package/examples/jsm/modifiers/CurveModifier.js +10 -8
  61. package/examples/jsm/modifiers/CurveModifierGPU.js +9 -7
  62. package/examples/jsm/modifiers/SimplifyModifier.js +2 -2
  63. package/examples/jsm/objects/GroundedSkybox.js +4 -4
  64. package/examples/jsm/objects/Sky.js +2 -2
  65. package/examples/jsm/objects/SkyMesh.js +3 -3
  66. package/examples/jsm/objects/Water2.js +1 -1
  67. package/examples/jsm/objects/Water2Mesh.js +2 -2
  68. package/examples/jsm/objects/WaterMesh.js +29 -24
  69. package/examples/jsm/physics/JoltPhysics.js +7 -7
  70. package/examples/jsm/physics/RapierPhysics.js +4 -4
  71. package/examples/jsm/postprocessing/BloomPass.js +2 -2
  72. package/examples/jsm/postprocessing/EffectComposer.js +1 -2
  73. package/examples/jsm/postprocessing/OutlinePass.js +4 -4
  74. package/examples/jsm/postprocessing/OutputPass.js +2 -0
  75. package/examples/jsm/postprocessing/SAOPass.js +1 -2
  76. package/examples/jsm/postprocessing/SMAAPass.js +1 -3
  77. package/examples/jsm/postprocessing/SSAOPass.js +2 -4
  78. package/examples/jsm/postprocessing/SSRPass.js +2 -4
  79. package/examples/jsm/postprocessing/UnrealBloomPass.js +2 -2
  80. package/examples/jsm/renderers/SVGRenderer.js +6 -4
  81. package/examples/jsm/shaders/BokehShader2.js +1 -1
  82. package/examples/jsm/shaders/GodRaysShader.js +3 -3
  83. package/examples/jsm/shaders/OutputShader.js +5 -1
  84. package/examples/jsm/shaders/SobelOperatorShader.js +1 -1
  85. package/examples/jsm/transpiler/GLSLDecoder.js +2 -2
  86. package/examples/jsm/transpiler/TSLEncoder.js +2 -0
  87. package/examples/jsm/tsl/display/AfterImageNode.js +93 -4
  88. package/examples/jsm/tsl/display/AnaglyphPassNode.js +46 -2
  89. package/examples/jsm/tsl/display/AnamorphicNode.js +118 -5
  90. package/examples/jsm/tsl/display/BleachBypass.js +10 -0
  91. package/examples/jsm/tsl/display/BloomNode.js +233 -26
  92. package/examples/jsm/tsl/display/DenoiseNode.js +141 -25
  93. package/examples/jsm/tsl/display/DepthOfFieldNode.js +80 -1
  94. package/examples/jsm/tsl/display/DotScreenNode.js +50 -5
  95. package/examples/jsm/tsl/display/FXAANode.js +52 -3
  96. package/examples/jsm/tsl/display/FilmNode.js +47 -1
  97. package/examples/jsm/tsl/display/GTAONode.js +210 -14
  98. package/examples/jsm/tsl/display/GaussianBlurNode.js +152 -8
  99. package/examples/jsm/tsl/display/LensflareNode.js +131 -13
  100. package/examples/jsm/tsl/display/Lut3DNode.js +55 -1
  101. package/examples/jsm/tsl/display/MotionBlur.js +12 -2
  102. package/examples/jsm/tsl/display/OutlineNode.js +343 -26
  103. package/examples/jsm/tsl/display/ParallaxBarrierPassNode.js +36 -2
  104. package/examples/jsm/tsl/display/PixelationPassNode.js +142 -9
  105. package/examples/jsm/tsl/display/RGBShiftNode.js +49 -2
  106. package/examples/jsm/tsl/display/SMAANode.js +187 -46
  107. package/examples/jsm/tsl/display/SSAAPassNode.js +110 -25
  108. package/examples/jsm/tsl/display/SSRNode.js +194 -21
  109. package/examples/jsm/tsl/display/Sepia.js +9 -0
  110. package/examples/jsm/tsl/display/SobelOperatorNode.js +54 -4
  111. package/examples/jsm/tsl/display/StereoCompositePassNode.js +79 -3
  112. package/examples/jsm/tsl/display/StereoPassNode.js +41 -3
  113. package/examples/jsm/tsl/display/TRAAPassNode.js +116 -21
  114. package/examples/jsm/tsl/display/TransitionNode.js +71 -6
  115. package/examples/jsm/tsl/display/hashBlur.js +14 -3
  116. package/examples/jsm/tsl/lighting/TiledLightsNode.js +40 -34
  117. package/examples/jsm/utils/BufferGeometryUtils.js +1 -1
  118. package/examples/jsm/utils/CameraUtils.js +4 -1
  119. package/examples/jsm/utils/GeometryUtils.js +22 -19
  120. package/examples/jsm/utils/SceneUtils.js +2 -2
  121. package/examples/jsm/webxr/XRControllerModelFactory.js +6 -1
  122. package/examples/jsm/webxr/XREstimatedLight.js +1 -1
  123. package/package.json +8 -3
  124. package/src/Three.Core.js +4 -0
  125. package/src/Three.Legacy.js +0 -21
  126. package/src/Three.TSL.js +18 -5
  127. package/src/Three.WebGPU.Nodes.js +2 -2
  128. package/src/Three.WebGPU.js +2 -2
  129. package/src/animation/PropertyBinding.js +2 -2
  130. package/src/cameras/ArrayCamera.js +1 -0
  131. package/src/cameras/PerspectiveCamera.js +18 -2
  132. package/src/constants.js +6 -1
  133. package/src/core/BufferAttribute.js +4 -0
  134. package/src/core/EventDispatcher.js +8 -6
  135. package/src/core/RenderTarget.js +18 -0
  136. package/src/core/RenderTarget3D.js +22 -0
  137. package/src/core/RenderTargetArray.js +22 -0
  138. package/src/extras/Earcut.js +1 -1
  139. package/src/extras/ImageUtils.js +1 -11
  140. package/src/extras/PMREMGenerator.js +20 -0
  141. package/src/extras/TextureUtils.js +6 -0
  142. package/src/helpers/CameraHelper.js +16 -13
  143. package/src/loaders/nodes/NodeLoader.js +59 -0
  144. package/src/loaders/nodes/NodeMaterialLoader.js +45 -0
  145. package/src/loaders/nodes/NodeObjectLoader.js +61 -0
  146. package/src/materials/nodes/Line2NodeMaterial.js +128 -34
  147. package/src/materials/nodes/LineBasicNodeMaterial.js +17 -2
  148. package/src/materials/nodes/LineDashedNodeMaterial.js +78 -5
  149. package/src/materials/nodes/MeshBasicNodeMaterial.js +56 -0
  150. package/src/materials/nodes/MeshLambertNodeMaterial.js +35 -0
  151. package/src/materials/nodes/MeshMatcapNodeMaterial.js +22 -2
  152. package/src/materials/nodes/MeshNormalNodeMaterial.js +21 -2
  153. package/src/materials/nodes/MeshPhongNodeMaterial.js +64 -1
  154. package/src/materials/nodes/MeshPhysicalNodeMaterial.js +269 -0
  155. package/src/materials/nodes/MeshSSSNodeMaterial.js +97 -6
  156. package/src/materials/nodes/MeshStandardNodeMaterial.js +78 -0
  157. package/src/materials/nodes/MeshToonNodeMaterial.js +28 -0
  158. package/src/materials/nodes/NodeMaterial.js +476 -23
  159. package/src/materials/nodes/NodeMaterials.js +0 -1
  160. package/src/materials/nodes/PointsNodeMaterial.js +121 -10
  161. package/src/materials/nodes/ShadowNodeMaterial.js +29 -0
  162. package/src/materials/nodes/SpriteNodeMaterial.js +78 -20
  163. package/src/materials/nodes/VolumeNodeMaterial.js +80 -4
  164. package/src/materials/nodes/manager/NodeMaterialObserver.js +95 -0
  165. package/src/nodes/Nodes.js +5 -6
  166. package/src/nodes/TSL.js +6 -3
  167. package/src/nodes/accessors/AccessorsUtils.js +27 -0
  168. package/src/nodes/accessors/Arrays.js +47 -6
  169. package/src/nodes/accessors/BatchNode.js +42 -6
  170. package/src/nodes/accessors/Bitangent.js +37 -0
  171. package/src/nodes/accessors/BufferAttributeNode.js +178 -5
  172. package/src/nodes/accessors/BufferNode.js +63 -0
  173. package/src/nodes/accessors/BuiltinNode.js +38 -0
  174. package/src/nodes/accessors/Camera.js +113 -3
  175. package/src/nodes/accessors/ClippingNode.js +71 -2
  176. package/src/nodes/accessors/CubeTextureNode.js +64 -0
  177. package/src/nodes/accessors/InstanceNode.js +85 -2
  178. package/src/nodes/accessors/InstancedMeshNode.js +28 -3
  179. package/src/nodes/accessors/Lights.js +50 -1
  180. package/src/nodes/accessors/MaterialNode.js +306 -12
  181. package/src/nodes/accessors/MaterialProperties.js +7 -0
  182. package/src/nodes/accessors/MaterialReferenceNode.js +53 -13
  183. package/src/nodes/accessors/ModelNode.js +100 -5
  184. package/src/nodes/accessors/ModelViewProjectionNode.js +10 -38
  185. package/src/nodes/accessors/MorphNode.js +48 -4
  186. package/src/nodes/accessors/Normal.js +65 -5
  187. package/src/nodes/accessors/Object3DNode.js +101 -1
  188. package/src/nodes/accessors/PointUVNode.js +26 -0
  189. package/src/nodes/accessors/Position.js +56 -7
  190. package/src/nodes/accessors/ReferenceBaseNode.js +186 -0
  191. package/src/nodes/accessors/ReferenceNode.js +201 -2
  192. package/src/nodes/accessors/ReflectVector.js +24 -0
  193. package/src/nodes/accessors/RendererReferenceNode.js +46 -1
  194. package/src/nodes/accessors/SceneNode.js +54 -0
  195. package/src/nodes/accessors/SkinningNode.js +127 -1
  196. package/src/nodes/accessors/StorageBufferNode.js +209 -8
  197. package/src/nodes/accessors/StorageTextureNode.js +118 -0
  198. package/src/nodes/accessors/Tangent.js +38 -2
  199. package/src/nodes/accessors/Texture3DNode.js +91 -7
  200. package/src/nodes/accessors/TextureBicubic.js +12 -2
  201. package/src/nodes/accessors/TextureNode.js +316 -10
  202. package/src/nodes/accessors/TextureSizeNode.js +42 -0
  203. package/src/nodes/accessors/UV.js +10 -1
  204. package/src/nodes/accessors/UniformArrayNode.js +231 -25
  205. package/src/nodes/accessors/UserDataNode.js +46 -0
  206. package/src/nodes/accessors/VelocityNode.js +80 -0
  207. package/src/nodes/accessors/VertexColorNode.js +39 -2
  208. package/src/nodes/code/CodeNode.js +95 -1
  209. package/src/nodes/code/ExpressionNode.js +28 -0
  210. package/src/nodes/code/FunctionCallNode.js +37 -0
  211. package/src/nodes/code/FunctionNode.js +45 -0
  212. package/src/nodes/code/ScriptableNode.js +223 -1
  213. package/src/nodes/code/ScriptableValueNode.js +85 -1
  214. package/src/nodes/core/ArrayNode.js +125 -0
  215. package/src/nodes/core/AssignNode.js +48 -2
  216. package/src/nodes/core/AttributeNode.js +43 -0
  217. package/src/nodes/core/BypassNode.js +47 -2
  218. package/src/nodes/core/CacheNode.js +53 -2
  219. package/src/nodes/core/ConstNode.js +32 -0
  220. package/src/nodes/core/ContextNode.js +65 -0
  221. package/src/nodes/core/IndexNode.js +68 -7
  222. package/src/nodes/core/InputNode.js +48 -0
  223. package/src/nodes/core/LightingModel.js +60 -0
  224. package/src/nodes/core/MRTNode.js +66 -0
  225. package/src/nodes/core/Node.js +350 -12
  226. package/src/nodes/core/NodeAttribute.js +38 -0
  227. package/src/nodes/core/NodeBuilder.js +1166 -26
  228. package/src/nodes/core/NodeCache.js +41 -2
  229. package/src/nodes/core/NodeCode.js +31 -0
  230. package/src/nodes/core/NodeFrame.js +123 -2
  231. package/src/nodes/core/NodeFunction.js +46 -0
  232. package/src/nodes/core/NodeFunctionInput.js +44 -0
  233. package/src/nodes/core/NodeParser.js +11 -0
  234. package/src/nodes/core/NodeUniform.js +52 -0
  235. package/src/nodes/core/NodeUtils.js +152 -1
  236. package/src/nodes/core/NodeVar.js +47 -1
  237. package/src/nodes/core/NodeVarying.js +28 -0
  238. package/src/nodes/core/OutputStructNode.js +51 -10
  239. package/src/nodes/core/ParameterNode.js +28 -0
  240. package/src/nodes/core/PropertyNode.js +232 -0
  241. package/src/nodes/core/StackNode.js +98 -1
  242. package/src/nodes/core/StructNode.js +121 -0
  243. package/src/nodes/core/StructType.js +13 -0
  244. package/src/nodes/core/StructTypeNode.js +105 -6
  245. package/src/nodes/core/TempNode.js +31 -5
  246. package/src/nodes/core/UniformGroupNode.js +82 -7
  247. package/src/nodes/core/UniformNode.js +66 -0
  248. package/src/nodes/core/VarNode.js +146 -7
  249. package/src/nodes/core/VaryingNode.js +100 -3
  250. package/src/nodes/core/constants.js +36 -0
  251. package/src/nodes/display/BlendModes.js +88 -1
  252. package/src/nodes/display/BumpMapNode.js +37 -0
  253. package/src/nodes/display/ColorAdjustment.js +53 -11
  254. package/src/nodes/display/ColorSpaceFunctions.js +16 -0
  255. package/src/nodes/display/ColorSpaceNode.js +82 -0
  256. package/src/nodes/display/FrontFacingNode.js +29 -0
  257. package/src/nodes/display/NormalMapNode.js +43 -0
  258. package/src/nodes/display/PassNode.js +300 -7
  259. package/src/nodes/display/PosterizeNode.js +33 -0
  260. package/src/nodes/display/RenderOutputNode.js +66 -1
  261. package/src/nodes/display/ScreenNode.js +96 -0
  262. package/src/nodes/display/ToneMappingFunctions.js +58 -10
  263. package/src/nodes/display/ToneMappingNode.js +55 -2
  264. package/src/nodes/display/ToonOutlinePassNode.js +73 -0
  265. package/src/nodes/display/ViewportDepthNode.js +122 -8
  266. package/src/nodes/display/ViewportDepthTextureNode.js +23 -0
  267. package/src/nodes/display/ViewportSharedTextureNode.js +23 -0
  268. package/src/nodes/display/ViewportTextureNode.js +57 -0
  269. package/src/nodes/fog/Fog.js +110 -0
  270. package/src/nodes/functions/BasicLightingModel.js +24 -0
  271. package/src/nodes/functions/PhongLightingModel.js +34 -2
  272. package/src/nodes/functions/PhysicalLightingModel.js +167 -8
  273. package/src/nodes/functions/ShadowMaskModel.js +23 -0
  274. package/src/nodes/functions/ToonLightingModel.js +20 -0
  275. package/src/nodes/functions/material/getAlphaHashThreshold.js +1 -3
  276. package/src/nodes/functions/material/getParallaxCorrectNormal.js +16 -1
  277. package/src/nodes/geometry/RangeNode.js +54 -2
  278. package/src/nodes/gpgpu/AtomicFunctionNode.js +174 -2
  279. package/src/nodes/gpgpu/BarrierNode.js +47 -0
  280. package/src/nodes/gpgpu/ComputeBuiltinNode.js +134 -0
  281. package/src/nodes/gpgpu/ComputeNode.js +106 -2
  282. package/src/nodes/gpgpu/WorkgroupInfoNode.js +115 -6
  283. package/src/nodes/lighting/AONode.js +18 -0
  284. package/src/nodes/lighting/AmbientLightNode.js +10 -0
  285. package/src/nodes/lighting/AnalyticLightNode.js +97 -2
  286. package/src/nodes/lighting/BasicEnvironmentNode.js +19 -0
  287. package/src/nodes/lighting/BasicLightMapNode.js +17 -0
  288. package/src/nodes/lighting/DirectionalLightNode.js +10 -0
  289. package/src/nodes/lighting/EnvironmentNode.js +18 -0
  290. package/src/nodes/lighting/HemisphereLightNode.js +31 -0
  291. package/src/nodes/lighting/IESSpotLightNode.js +11 -0
  292. package/src/nodes/lighting/IrradianceNode.js +17 -0
  293. package/src/nodes/lighting/LightProbeNode.js +20 -0
  294. package/src/nodes/lighting/LightUtils.js +12 -0
  295. package/src/nodes/lighting/LightingContextNode.js +48 -0
  296. package/src/nodes/lighting/LightingNode.js +15 -6
  297. package/src/nodes/lighting/LightsNode.js +132 -1
  298. package/src/nodes/lighting/PointLightNode.js +32 -1
  299. package/src/nodes/lighting/PointShadowNode.js +54 -1
  300. package/src/nodes/lighting/RectAreaLightNode.js +44 -6
  301. package/src/nodes/lighting/ShadowBaseNode.js +93 -0
  302. package/src/nodes/lighting/ShadowNode.js +241 -35
  303. package/src/nodes/lighting/SpotLightNode.js +43 -0
  304. package/src/nodes/math/ConditionalNode.js +78 -4
  305. package/src/nodes/math/Hash.js +9 -0
  306. package/src/nodes/math/MathNode.js +627 -11
  307. package/src/nodes/math/MathUtils.js +45 -1
  308. package/src/nodes/math/OperatorNode.js +329 -18
  309. package/src/nodes/math/TriNoise3D.js +18 -7
  310. package/src/nodes/parsers/GLSLNodeFunction.js +16 -0
  311. package/src/nodes/parsers/GLSLNodeParser.js +11 -0
  312. package/src/nodes/pmrem/PMREMNode.js +133 -0
  313. package/src/nodes/pmrem/PMREMUtils.js +2 -2
  314. package/src/nodes/procedural/Checker.js +9 -0
  315. package/src/nodes/shapes/Shapes.js +33 -0
  316. package/src/nodes/tsl/TSLBase.js +3 -2
  317. package/src/nodes/tsl/TSLCore.js +22 -2
  318. package/src/nodes/utils/ArrayElementNode.js +39 -3
  319. package/src/nodes/utils/ConvertNode.js +31 -0
  320. package/src/nodes/utils/CubeMapNode.js +78 -0
  321. package/src/nodes/utils/Discard.js +16 -0
  322. package/src/nodes/utils/EquirectUVNode.js +31 -1
  323. package/src/nodes/utils/FlipNode.js +38 -0
  324. package/src/nodes/utils/FunctionOverloadingNode.js +53 -1
  325. package/src/nodes/utils/JoinNode.js +25 -0
  326. package/src/nodes/utils/LoopNode.js +82 -2
  327. package/src/nodes/utils/MatcapUVNode.js +17 -0
  328. package/src/nodes/utils/MaxMipLevelNode.js +49 -0
  329. package/src/nodes/utils/MemberNode.js +68 -0
  330. package/src/nodes/utils/Oscillators.js +33 -0
  331. package/src/nodes/utils/Packing.js +17 -0
  332. package/src/nodes/utils/PostProcessingUtils.js +28 -23
  333. package/src/nodes/utils/RTTNode.js +123 -2
  334. package/src/nodes/utils/ReflectorNode.js +174 -4
  335. package/src/nodes/utils/RemapNode.js +79 -0
  336. package/src/nodes/utils/RotateNode.js +41 -0
  337. package/src/nodes/utils/SetNode.js +44 -1
  338. package/src/nodes/utils/SplitNode.js +55 -3
  339. package/src/nodes/utils/SpriteSheetUVNode.js +46 -0
  340. package/src/nodes/utils/SpriteUtils.js +17 -0
  341. package/src/nodes/utils/StorageArrayElementNode.js +54 -0
  342. package/src/nodes/utils/Timer.js +40 -0
  343. package/src/nodes/utils/TriplanarTexturesNode.js +84 -0
  344. package/src/nodes/utils/UVUtils.js +20 -0
  345. package/src/nodes/utils/ViewportUtils.js +13 -0
  346. package/src/objects/BatchedMesh.js +2 -3
  347. package/src/objects/ClippingGroup.js +49 -0
  348. package/src/objects/Line.js +6 -6
  349. package/src/renderers/WebGLRenderer.js +30 -4
  350. package/src/renderers/common/Animation.js +85 -0
  351. package/src/renderers/common/Attributes.js +36 -0
  352. package/src/renderers/common/Backend.js +502 -44
  353. package/src/renderers/common/Background.js +48 -1
  354. package/src/renderers/common/BindGroup.js +43 -0
  355. package/src/renderers/common/Binding.js +35 -0
  356. package/src/renderers/common/Bindings.js +93 -1
  357. package/src/renderers/common/Buffer.js +49 -0
  358. package/src/renderers/common/BufferUtils.js +27 -0
  359. package/src/renderers/common/BundleGroup.js +57 -0
  360. package/src/renderers/common/ChainMap.js +45 -6
  361. package/src/renderers/common/ClippingContext.js +108 -15
  362. package/src/renderers/common/Color4.js +40 -0
  363. package/src/renderers/common/ComputePipeline.js +24 -0
  364. package/src/renderers/common/CubeRenderTarget.js +13 -0
  365. package/src/renderers/common/DataMap.js +37 -1
  366. package/src/renderers/common/Geometries.js +91 -14
  367. package/src/renderers/common/IndirectStorageBufferAttribute.js +25 -2
  368. package/src/renderers/common/Info.js +78 -35
  369. package/src/renderers/common/Lighting.js +34 -6
  370. package/src/renderers/common/Pipeline.js +22 -0
  371. package/src/renderers/common/Pipelines.js +148 -5
  372. package/src/renderers/common/PostProcessing.js +99 -11
  373. package/src/renderers/common/ProgrammableStage.js +60 -2
  374. package/src/renderers/common/QuadMesh.js +54 -5
  375. package/src/renderers/common/RenderBundle.js +14 -8
  376. package/src/renderers/common/RenderBundles.js +39 -10
  377. package/src/renderers/common/RenderContext.js +201 -2
  378. package/src/renderers/common/RenderContexts.js +59 -6
  379. package/src/renderers/common/RenderList.js +178 -0
  380. package/src/renderers/common/RenderLists.js +40 -3
  381. package/src/renderers/common/RenderObject.js +400 -17
  382. package/src/renderers/common/RenderObjects.js +103 -7
  383. package/src/renderers/common/RenderPipeline.js +24 -0
  384. package/src/renderers/common/Renderer.js +1170 -86
  385. package/src/renderers/common/RendererUtils.js +193 -0
  386. package/src/renderers/common/SampledTexture.js +120 -0
  387. package/src/renderers/common/Sampler.js +30 -0
  388. package/src/renderers/common/StorageBuffer.js +24 -0
  389. package/src/renderers/common/StorageBufferAttribute.js +31 -2
  390. package/src/renderers/common/StorageInstancedBufferAttribute.js +31 -2
  391. package/src/renderers/common/StorageTexture.js +38 -0
  392. package/src/renderers/common/Textures.js +97 -7
  393. package/src/renderers/common/TimestampQueryPool.js +39 -0
  394. package/src/renderers/common/Uniform.js +225 -3
  395. package/src/renderers/common/UniformBuffer.js +19 -0
  396. package/src/renderers/common/UniformsGroup.js +141 -2
  397. package/src/renderers/common/XRManager.js +1193 -0
  398. package/src/renderers/common/XRRenderTarget.js +74 -0
  399. package/src/renderers/common/extras/PMREMGenerator.js +76 -10
  400. package/src/renderers/common/nodes/NodeBuilderState.js +99 -5
  401. package/src/renderers/common/nodes/NodeLibrary.js +89 -0
  402. package/src/renderers/common/nodes/NodeSampledTexture.js +90 -2
  403. package/src/renderers/common/nodes/NodeSampler.js +28 -0
  404. package/src/renderers/common/nodes/NodeStorageBuffer.js +35 -0
  405. package/src/renderers/common/nodes/NodeUniform.js +243 -2
  406. package/src/renderers/common/nodes/NodeUniformBuffer.js +29 -0
  407. package/src/renderers/common/nodes/NodeUniformsGroup.js +31 -18
  408. package/src/renderers/common/nodes/Nodes.js +352 -78
  409. package/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +2 -2
  410. package/src/renderers/shaders/ShaderChunk/transmission_pars_fragment.glsl.js +7 -7
  411. package/src/renderers/webgl/WebGLBackground.js +4 -0
  412. package/src/renderers/webgl-fallback/WebGLBackend.js +819 -116
  413. package/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js +347 -18
  414. package/src/renderers/webgl-fallback/utils/WebGLAttributeUtils.js +58 -1
  415. package/src/renderers/webgl-fallback/utils/WebGLCapabilities.js +28 -0
  416. package/src/renderers/webgl-fallback/utils/WebGLExtensions.js +45 -0
  417. package/src/renderers/webgl-fallback/utils/WebGLState.js +323 -11
  418. package/src/renderers/webgl-fallback/utils/WebGLTextureUtils.js +168 -22
  419. package/src/renderers/webgl-fallback/utils/WebGLTimestampQueryPool.js +359 -0
  420. package/src/renderers/webgl-fallback/utils/WebGLUtils.js +43 -0
  421. package/src/renderers/webgpu/WebGPUBackend.js +578 -164
  422. package/src/renderers/webgpu/WebGPURenderer.Nodes.js +36 -0
  423. package/src/renderers/webgpu/WebGPURenderer.js +36 -0
  424. package/src/renderers/webgpu/nodes/BasicNodeLibrary.js +20 -8
  425. package/src/renderers/webgpu/nodes/StandardNodeLibrary.js +21 -8
  426. package/src/renderers/webgpu/nodes/WGSLNodeBuilder.js +674 -52
  427. package/src/renderers/webgpu/nodes/WGSLNodeFunction.js +17 -0
  428. package/src/renderers/webgpu/nodes/WGSLNodeParser.js +11 -0
  429. package/src/renderers/webgpu/utils/WebGPUAttributeUtils.js +95 -14
  430. package/src/renderers/webgpu/utils/WebGPUBindingUtils.js +94 -1
  431. package/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +102 -3
  432. package/src/renderers/webgpu/utils/WebGPUTexturePassUtils.js +98 -1
  433. package/src/renderers/webgpu/utils/WebGPUTextureUtils.js +262 -18
  434. package/src/renderers/webgpu/utils/WebGPUTimestampQueryPool.js +274 -0
  435. package/src/renderers/webgpu/utils/WebGPUUtils.js +116 -4
  436. package/src/renderers/webxr/WebXRDepthSensing.js +1 -1
  437. package/src/renderers/webxr/WebXRManager.js +19 -2
  438. package/src/textures/Data3DTexture.js +2 -2
  439. package/src/textures/Texture.js +4 -0
  440. package/src/textures/VideoFrameTexture.js +35 -0
  441. package/examples/jsm/animation/MMDAnimationHelper.js +0 -1209
  442. package/examples/jsm/animation/MMDPhysics.js +0 -1408
  443. package/examples/jsm/exporters/MMDExporter.js +0 -223
  444. package/examples/jsm/geometries/InstancedPointsGeometry.js +0 -176
  445. package/examples/jsm/libs/mmdparser.module.js +0 -11530
  446. package/examples/jsm/loaders/MMDLoader.js +0 -2298
  447. package/examples/jsm/objects/InstancedPoints.js +0 -19
  448. package/examples/jsm/shaders/MMDToonShader.js +0 -134
  449. package/src/materials/nodes/InstancedPointsNodeMaterial.js +0 -156
  450. package/src/nodes/accessors/InstancedPointsMaterialNode.js +0 -24
  451. package/src/nodes/core/UniformGroup.js +0 -13
  452. package/src/nodes/fog/FogExp2Node.js +0 -35
  453. package/src/nodes/fog/FogNode.js +0 -50
  454. package/src/nodes/fog/FogRangeNode.js +0 -36
  455. package/src/renderers/common/PostProcessingUtils.js +0 -86
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright 2010-2024 Three.js Authors
3
+ * Copyright 2010-2025 Three.js Authors
4
4
  * SPDX-License-Identifier: MIT
5
5
  */
6
6
  import { TSL } from 'three/webgpu';
@@ -38,7 +38,6 @@ const abs = TSL.abs;
38
38
  const acesFilmicToneMapping = TSL.acesFilmicToneMapping;
39
39
  const acos = TSL.acos;
40
40
  const add = TSL.add;
41
- const addMethodChaining = TSL.addMethodChaining;
42
41
  const addNodeElement = TSL.addNodeElement;
43
42
  const agxToneMapping = TSL.agxToneMapping;
44
43
  const all = TSL.all;
@@ -49,6 +48,7 @@ const anisotropyB = TSL.anisotropyB;
49
48
  const anisotropyT = TSL.anisotropyT;
50
49
  const any = TSL.any;
51
50
  const append = TSL.append;
51
+ const array = TSL.array;
52
52
  const arrayBuffer = TSL.arrayBuffer;
53
53
  const asin = TSL.asin;
54
54
  const assign = TSL.assign;
@@ -63,6 +63,7 @@ const atomicOr = TSL.atomicOr;
63
63
  const atomicStore = TSL.atomicStore;
64
64
  const atomicSub = TSL.atomicSub;
65
65
  const atomicXor = TSL.atomicXor;
66
+ const atomicLoad = TSL.atomicLoad;
66
67
  const attenuationColor = TSL.attenuationColor;
67
68
  const attenuationDistance = TSL.attenuationDistance;
68
69
  const attribute = TSL.attribute;
@@ -99,6 +100,7 @@ const bypass = TSL.bypass;
99
100
  const cache = TSL.cache;
100
101
  const call = TSL.call;
101
102
  const cameraFar = TSL.cameraFar;
103
+ const cameraIndex = TSL.cameraIndex;
102
104
  const cameraNear = TSL.cameraNear;
103
105
  const cameraNormalMatrix = TSL.cameraNormalMatrix;
104
106
  const cameraPosition = TSL.cameraPosition;
@@ -120,6 +122,7 @@ const colorSpaceToWorking = TSL.colorSpaceToWorking;
120
122
  const colorToDirection = TSL.colorToDirection;
121
123
  const compute = TSL.compute;
122
124
  const cond = TSL.cond;
125
+ const Const = TSL.Const;
123
126
  const context = TSL.context;
124
127
  const convert = TSL.convert;
125
128
  const convertColorSpace = TSL.convertColorSpace;
@@ -136,6 +139,7 @@ const defined = TSL.defined;
136
139
  const degrees = TSL.degrees;
137
140
  const deltaTime = TSL.deltaTime;
138
141
  const densityFog = TSL.densityFog;
142
+ const densityFogFactor = TSL.densityFogFactor;
139
143
  const depth = TSL.depth;
140
144
  const depthPass = TSL.depthPass;
141
145
  const difference = TSL.difference;
@@ -159,6 +163,7 @@ const exp2 = TSL.exp2;
159
163
  const expression = TSL.expression;
160
164
  const faceDirection = TSL.faceDirection;
161
165
  const faceForward = TSL.faceForward;
166
+ const faceforward = TSL.faceforward;
162
167
  const float = TSL.float;
163
168
  const floor = TSL.floor;
164
169
  const fog = TSL.fog;
@@ -187,8 +192,8 @@ const grayscale = TSL.grayscale;
187
192
  const greaterThan = TSL.greaterThan;
188
193
  const greaterThanEqual = TSL.greaterThanEqual;
189
194
  const hash = TSL.hash;
190
- const highPrecisionModelNormalViewMatrix = TSL.highPrecisionModelNormalViewMatrix;
191
- const highPrecisionModelViewMatrix = TSL.highPrecisionModelViewMatrix;
195
+ const highpModelNormalViewMatrix = TSL.highpModelNormalViewMatrix;
196
+ const highpModelViewMatrix = TSL.highpModelViewMatrix;
192
197
  const hue = TSL.hue;
193
198
  const instance = TSL.instance;
194
199
  const instanceIndex = TSL.instanceIndex;
@@ -198,6 +203,7 @@ const instancedDynamicBufferAttribute = TSL.instancedDynamicBufferAttribute;
198
203
  const instancedMesh = TSL.instancedMesh;
199
204
  const int = TSL.int;
200
205
  const inverseSqrt = TSL.inverseSqrt;
206
+ const inversesqrt = TSL.inversesqrt;
201
207
  const invocationLocalIndex = TSL.invocationLocalIndex;
202
208
  const invocationSubgroupIndex = TSL.invocationSubgroupIndex;
203
209
  const ior = TSL.ior;
@@ -222,16 +228,18 @@ const lights = TSL.lights;
222
228
  const linearDepth = TSL.linearDepth;
223
229
  const linearToneMapping = TSL.linearToneMapping;
224
230
  const localId = TSL.localId;
231
+ const globalId = TSL.globalId;
225
232
  const log = TSL.log;
226
233
  const log2 = TSL.log2;
227
234
  const logarithmicDepthToViewZ = TSL.logarithmicDepthToViewZ;
228
235
  const loop = TSL.loop;
229
236
  const luminance = TSL.luminance;
237
+ const mediumpModelViewMatrix = TSL.mediumpModelViewMatrix;
230
238
  const mat2 = TSL.mat2;
231
239
  const mat3 = TSL.mat3;
232
240
  const mat4 = TSL.mat4;
233
241
  const matcapUV = TSL.matcapUV;
234
- const materialAOMap = TSL.materialAOMap;
242
+ const materialAO = TSL.materialAO;
235
243
  const materialAlphaTest = TSL.materialAlphaTest;
236
244
  const materialAnisotropy = TSL.materialAnisotropy;
237
245
  const materialAnisotropyVector = TSL.materialAnisotropyVector;
@@ -256,7 +264,7 @@ const materialLineWidth = TSL.materialLineWidth;
256
264
  const materialMetalness = TSL.materialMetalness;
257
265
  const materialNormal = TSL.materialNormal;
258
266
  const materialOpacity = TSL.materialOpacity;
259
- const materialPointWidth = TSL.materialPointWidth;
267
+ const materialPointSize = TSL.materialPointSize;
260
268
  const materialReference = TSL.materialReference;
261
269
  const materialReflectivity = TSL.materialReflectivity;
262
270
  const materialRefractionRatio = TSL.materialRefractionRatio;
@@ -375,6 +383,7 @@ const radians = TSL.radians;
375
383
  const rand = TSL.rand;
376
384
  const range = TSL.range;
377
385
  const rangeFog = TSL.rangeFog;
386
+ const rangeFogFactor = TSL.rangeFogFactor;
378
387
  const reciprocal = TSL.reciprocal;
379
388
  const reference = TSL.reference;
380
389
  const referenceBuffer = TSL.referenceBuffer;
@@ -412,7 +421,9 @@ const select = TSL.select;
412
421
  const setCurrentStack = TSL.setCurrentStack;
413
422
  const shaderStages = TSL.shaderStages;
414
423
  const shadow = TSL.shadow;
424
+ const shadowPositionWorld = TSL.shadowPositionWorld;
415
425
  const sharedUniformGroup = TSL.sharedUniformGroup;
426
+ const shapeCircle = TSL.shapeCircle;
416
427
  const sheen = TSL.sheen;
417
428
  const sheenRoughness = TSL.sheenRoughness;
418
429
  const shiftLeft = TSL.shiftLeft;
@@ -438,6 +449,7 @@ const storageBarrier = TSL.storageBarrier;
438
449
  const storageObject = TSL.storageObject;
439
450
  const storageTexture = TSL.storageTexture;
440
451
  const string = TSL.string;
452
+ const struct = TSL.struct;
441
453
  const sub = TSL.sub;
442
454
  const subgroupIndex = TSL.subgroupIndex;
443
455
  const subgroupSize = TSL.subgroupSize;
@@ -496,6 +508,7 @@ const uv = TSL.uv;
496
508
  const uvec2 = TSL.uvec2;
497
509
  const uvec3 = TSL.uvec3;
498
510
  const uvec4 = TSL.uvec4;
511
+ const Var = TSL.Var;
499
512
  const varying = TSL.varying;
500
513
  const varyingProperty = TSL.varyingProperty;
501
514
  const vec2 = TSL.vec2;
@@ -530,4 +543,4 @@ const workgroupId = TSL.workgroupId;
530
543
  const workingToColorSpace = TSL.workingToColorSpace;
531
544
  const xor = TSL.xor;
532
545
 
533
- export { BRDF_GGX, BRDF_Lambert, BasicShadowFilter, Break, Continue, DFGApprox, D_GGX, Discard, EPSILON, F_Schlick, Fn, INFINITY, If, Loop, NodeAccess, NodeShaderStage, NodeType, NodeUpdateType, PCFShadowFilter, PCFSoftShadowFilter, PI, PI2, Return, Schlick_to_F0, ScriptableNodeResources, ShaderNode, TBNViewMatrix, VSMShadowFilter, V_GGX_SmithCorrelated, abs, acesFilmicToneMapping, acos, add, addMethodChaining, addNodeElement, agxToneMapping, all, alphaT, and, anisotropy, anisotropyB, anisotropyT, any, append, arrayBuffer, asin, assign, atan, atan2, atomicAdd, atomicAnd, atomicFunc, atomicMax, atomicMin, atomicOr, atomicStore, atomicSub, atomicXor, attenuationColor, attenuationDistance, attribute, attributeArray, backgroundBlurriness, backgroundIntensity, backgroundRotation, batch, billboarding, bitAnd, bitNot, bitOr, bitXor, bitangentGeometry, bitangentLocal, bitangentView, bitangentWorld, bitcast, blendBurn, blendColor, blendDodge, blendOverlay, blendScreen, blur, bool, buffer, bufferAttribute, bumpMap, burn, bvec2, bvec3, bvec4, bypass, cache, call, cameraFar, cameraNear, cameraNormalMatrix, cameraPosition, cameraProjectionMatrix, cameraProjectionMatrixInverse, cameraViewMatrix, cameraWorldMatrix, cbrt, cdl, ceil, checker, cineonToneMapping, clamp, clearcoat, clearcoatRoughness, code, color, colorSpaceToWorking, colorToDirection, compute, cond, context, convert, convertColorSpace, convertToTexture, cos, cross, cubeTexture, dFdx, dFdy, dashSize, defaultBuildStages, defaultShaderStages, defined, degrees, deltaTime, densityFog, depth, depthPass, difference, diffuseColor, directPointLight, directionToColor, dispersion, distance, div, dodge, dot, drawIndex, dynamicBufferAttribute, element, emissive, equal, equals, equirectUV, exp, exp2, expression, faceDirection, faceForward, float, floor, fog, fract, frameGroup, frameId, frontFacing, fwidth, gain, gapSize, getConstNodeType, getCurrentStack, getDirection, getDistanceAttenuation, getGeometryRoughness, getNormalFromDepth, getParallaxCorrectNormal, getRoughness, getScreenPosition, getShIrradianceAt, getTextureIndex, getViewPosition, glsl, glslFn, grayscale, greaterThan, greaterThanEqual, hash, highPrecisionModelNormalViewMatrix, highPrecisionModelViewMatrix, hue, instance, instanceIndex, instancedArray, instancedBufferAttribute, instancedDynamicBufferAttribute, instancedMesh, int, inverseSqrt, invocationLocalIndex, invocationSubgroupIndex, ior, iridescence, iridescenceIOR, iridescenceThickness, ivec2, ivec3, ivec4, js, label, length, lengthSq, lessThan, lessThanEqual, lightPosition, lightTargetDirection, lightTargetPosition, lightViewPosition, lightingContext, lights, linearDepth, linearToneMapping, localId, log, log2, logarithmicDepthToViewZ, loop, luminance, mat2, mat3, mat4, matcapUV, materialAOMap, materialAlphaTest, materialAnisotropy, materialAnisotropyVector, materialAttenuationColor, materialAttenuationDistance, materialClearcoat, materialClearcoatNormal, materialClearcoatRoughness, materialColor, materialDispersion, materialEmissive, materialIOR, materialIridescence, materialIridescenceIOR, materialIridescenceThickness, materialLightMap, materialLineDashOffset, materialLineDashSize, materialLineGapSize, materialLineScale, materialLineWidth, materialMetalness, materialNormal, materialOpacity, materialPointWidth, materialReference, materialReflectivity, materialRefractionRatio, materialRotation, materialRoughness, materialSheen, materialSheenRoughness, materialShininess, materialSpecular, materialSpecularColor, materialSpecularIntensity, materialSpecularStrength, materialThickness, materialTransmission, max, maxMipLevel, metalness, min, mix, mixElement, mod, modInt, modelDirection, modelNormalMatrix, modelPosition, modelScale, modelViewMatrix, modelViewPosition, modelViewProjection, modelWorldMatrix, modelWorldMatrixInverse, morphReference, mrt, mul, mx_aastep, mx_cell_noise_float, mx_contrast, mx_fractal_noise_float, mx_fractal_noise_vec2, mx_fractal_noise_vec3, mx_fractal_noise_vec4, mx_hsvtorgb, mx_noise_float, mx_noise_vec3, mx_noise_vec4, mx_ramplr, mx_ramptb, mx_rgbtohsv, mx_safepower, mx_splitlr, mx_splittb, mx_srgb_texture_to_lin_rec709, mx_transform_uv, mx_worley_noise_float, mx_worley_noise_vec2, mx_worley_noise_vec3, negate, neutralToneMapping, nodeArray, nodeImmutable, nodeObject, nodeObjects, nodeProxy, normalFlat, normalGeometry, normalLocal, normalMap, normalView, normalWorld, normalize, not, notEqual, numWorkgroups, objectDirection, objectGroup, objectPosition, objectScale, objectViewPosition, objectWorldMatrix, oneMinus, or, orthographicDepthToViewZ, oscSawtooth, oscSine, oscSquare, oscTriangle, output, outputStruct, overlay, overloadingFn, parabola, parallaxDirection, parallaxUV, parameter, pass, passTexture, pcurve, perspectiveDepthToViewZ, pmremTexture, pointUV, pointWidth, positionGeometry, positionLocal, positionPrevious, positionView, positionViewDirection, positionWorld, positionWorldDirection, posterize, pow, pow2, pow3, pow4, property, radians, rand, range, rangeFog, reciprocal, reference, referenceBuffer, reflect, reflectVector, reflectView, reflector, refract, refractVector, refractView, reinhardToneMapping, remainder, remap, remapClamp, renderGroup, renderOutput, rendererReference, rotate, rotateUV, roughness, round, rtt, sRGBTransferEOTF, sRGBTransferOETF, sampler, saturate, saturation, screen, screenCoordinate, screenSize, screenUV, scriptable, scriptableValue, select, setCurrentStack, shaderStages, shadow, sharedUniformGroup, sheen, sheenRoughness, shiftLeft, shiftRight, shininess, sign, sin, sinc, skinning, skinningReference, smoothstep, smoothstepElement, specularColor, specularF90, spherizeUV, split, spritesheetUV, sqrt, stack, step, storage, storageBarrier, storageObject, storageTexture, string, sub, subgroupIndex, subgroupSize, tan, tangentGeometry, tangentLocal, tangentView, tangentWorld, temp, texture, texture3D, textureBarrier, textureBicubic, textureCubeUV, textureLoad, textureSize, textureStore, thickness, threshold, time, timerDelta, timerGlobal, timerLocal, toOutputColorSpace, toWorkingColorSpace, toneMapping, toneMappingExposure, toonOutlinePass, transformDirection, transformNormal, transformNormalToView, transformedBentNormalView, transformedBitangentView, transformedBitangentWorld, transformedClearcoatNormalView, transformedNormalView, transformedNormalWorld, transformedTangentView, transformedTangentWorld, transmission, transpose, tri, tri3, triNoise3D, triplanarTexture, triplanarTextures, trunc, tslFn, uint, uniform, uniformArray, uniformGroup, uniforms, userData, uv, uvec2, uvec3, uvec4, varying, varyingProperty, vec2, vec3, vec4, vectorComponents, velocity, vertexColor, vertexIndex, vibrance, viewZToLogarithmicDepth, viewZToOrthographicDepth, viewZToPerspectiveDepth, viewport, viewportBottomLeft, viewportCoordinate, viewportDepthTexture, viewportLinearDepth, viewportMipTexture, viewportResolution, viewportSafeUV, viewportSharedTexture, viewportSize, viewportTexture, viewportTopLeft, viewportUV, wgsl, wgslFn, workgroupArray, workgroupBarrier, workgroupId, workingToColorSpace, xor };
546
+ export { BRDF_GGX, BRDF_Lambert, BasicShadowFilter, Break, Const, Continue, DFGApprox, D_GGX, Discard, EPSILON, F_Schlick, Fn, INFINITY, If, Loop, NodeAccess, NodeShaderStage, NodeType, NodeUpdateType, PCFShadowFilter, PCFSoftShadowFilter, PI, PI2, Return, Schlick_to_F0, ScriptableNodeResources, ShaderNode, TBNViewMatrix, VSMShadowFilter, V_GGX_SmithCorrelated, Var, abs, acesFilmicToneMapping, acos, add, addNodeElement, agxToneMapping, all, alphaT, and, anisotropy, anisotropyB, anisotropyT, any, append, array, arrayBuffer, asin, assign, atan, atan2, atomicAdd, atomicAnd, atomicFunc, atomicLoad, atomicMax, atomicMin, atomicOr, atomicStore, atomicSub, atomicXor, attenuationColor, attenuationDistance, attribute, attributeArray, backgroundBlurriness, backgroundIntensity, backgroundRotation, batch, billboarding, bitAnd, bitNot, bitOr, bitXor, bitangentGeometry, bitangentLocal, bitangentView, bitangentWorld, bitcast, blendBurn, blendColor, blendDodge, blendOverlay, blendScreen, blur, bool, buffer, bufferAttribute, bumpMap, burn, bvec2, bvec3, bvec4, bypass, cache, call, cameraFar, cameraIndex, cameraNear, cameraNormalMatrix, cameraPosition, cameraProjectionMatrix, cameraProjectionMatrixInverse, cameraViewMatrix, cameraWorldMatrix, cbrt, cdl, ceil, checker, cineonToneMapping, clamp, clearcoat, clearcoatRoughness, code, color, colorSpaceToWorking, colorToDirection, compute, cond, context, convert, convertColorSpace, convertToTexture, cos, cross, cubeTexture, dFdx, dFdy, dashSize, defaultBuildStages, defaultShaderStages, defined, degrees, deltaTime, densityFog, densityFogFactor, depth, depthPass, difference, diffuseColor, directPointLight, directionToColor, dispersion, distance, div, dodge, dot, drawIndex, dynamicBufferAttribute, element, emissive, equal, equals, equirectUV, exp, exp2, expression, faceDirection, faceForward, faceforward, float, floor, fog, fract, frameGroup, frameId, frontFacing, fwidth, gain, gapSize, getConstNodeType, getCurrentStack, getDirection, getDistanceAttenuation, getGeometryRoughness, getNormalFromDepth, getParallaxCorrectNormal, getRoughness, getScreenPosition, getShIrradianceAt, getTextureIndex, getViewPosition, globalId, glsl, glslFn, grayscale, greaterThan, greaterThanEqual, hash, highpModelNormalViewMatrix, highpModelViewMatrix, hue, instance, instanceIndex, instancedArray, instancedBufferAttribute, instancedDynamicBufferAttribute, instancedMesh, int, inverseSqrt, inversesqrt, invocationLocalIndex, invocationSubgroupIndex, ior, iridescence, iridescenceIOR, iridescenceThickness, ivec2, ivec3, ivec4, js, label, length, lengthSq, lessThan, lessThanEqual, lightPosition, lightTargetDirection, lightTargetPosition, lightViewPosition, lightingContext, lights, linearDepth, linearToneMapping, localId, log, log2, logarithmicDepthToViewZ, loop, luminance, mat2, mat3, mat4, matcapUV, materialAO, materialAlphaTest, materialAnisotropy, materialAnisotropyVector, materialAttenuationColor, materialAttenuationDistance, materialClearcoat, materialClearcoatNormal, materialClearcoatRoughness, materialColor, materialDispersion, materialEmissive, 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, modelScale, modelViewMatrix, modelViewPosition, modelViewProjection, modelWorldMatrix, modelWorldMatrixInverse, morphReference, mrt, mul, mx_aastep, mx_cell_noise_float, mx_contrast, mx_fractal_noise_float, mx_fractal_noise_vec2, mx_fractal_noise_vec3, mx_fractal_noise_vec4, mx_hsvtorgb, mx_noise_float, mx_noise_vec3, mx_noise_vec4, mx_ramplr, mx_ramptb, mx_rgbtohsv, mx_safepower, mx_splitlr, mx_splittb, mx_srgb_texture_to_lin_rec709, mx_transform_uv, mx_worley_noise_float, mx_worley_noise_vec2, mx_worley_noise_vec3, negate, neutralToneMapping, nodeArray, nodeImmutable, nodeObject, nodeObjects, nodeProxy, normalFlat, normalGeometry, normalLocal, normalMap, normalView, normalWorld, normalize, not, notEqual, numWorkgroups, objectDirection, objectGroup, objectPosition, objectScale, objectViewPosition, objectWorldMatrix, oneMinus, or, orthographicDepthToViewZ, oscSawtooth, oscSine, oscSquare, oscTriangle, output, outputStruct, overlay, overloadingFn, parabola, parallaxDirection, parallaxUV, parameter, pass, passTexture, pcurve, perspectiveDepthToViewZ, pmremTexture, pointUV, pointWidth, positionGeometry, positionLocal, positionPrevious, positionView, positionViewDirection, positionWorld, positionWorldDirection, posterize, pow, pow2, pow3, pow4, property, radians, rand, range, rangeFog, rangeFogFactor, reciprocal, reference, referenceBuffer, reflect, reflectVector, reflectView, reflector, refract, refractVector, refractView, reinhardToneMapping, remainder, remap, remapClamp, renderGroup, renderOutput, rendererReference, rotate, rotateUV, roughness, round, rtt, sRGBTransferEOTF, sRGBTransferOETF, sampler, saturate, saturation, screen, screenCoordinate, screenSize, screenUV, scriptable, scriptableValue, select, setCurrentStack, shaderStages, shadow, shadowPositionWorld, shapeCircle, sharedUniformGroup, sheen, sheenRoughness, shiftLeft, shiftRight, shininess, sign, sin, sinc, skinning, skinningReference, smoothstep, smoothstepElement, specularColor, specularF90, spherizeUV, split, spritesheetUV, sqrt, stack, step, storage, storageBarrier, storageObject, storageTexture, string, struct, sub, subgroupIndex, subgroupSize, tan, tangentGeometry, tangentLocal, tangentView, tangentWorld, temp, texture, texture3D, textureBarrier, textureBicubic, textureCubeUV, textureLoad, textureSize, textureStore, thickness, threshold, time, timerDelta, timerGlobal, timerLocal, toOutputColorSpace, toWorkingColorSpace, toneMapping, toneMappingExposure, toonOutlinePass, transformDirection, transformNormal, transformNormalToView, transformedBentNormalView, transformedBitangentView, transformedBitangentWorld, transformedClearcoatNormalView, transformedNormalView, transformedNormalWorld, transformedTangentView, transformedTangentWorld, transmission, transpose, tri, tri3, triNoise3D, triplanarTexture, triplanarTextures, trunc, tslFn, uint, uniform, uniformArray, uniformGroup, uniforms, userData, uv, uvec2, uvec3, uvec4, varying, varyingProperty, vec2, vec3, vec4, vectorComponents, velocity, vertexColor, vertexIndex, vibrance, viewZToLogarithmicDepth, viewZToOrthographicDepth, viewZToPerspectiveDepth, viewport, viewportBottomLeft, viewportCoordinate, viewportDepthTexture, viewportLinearDepth, viewportMipTexture, viewportResolution, viewportSafeUV, viewportSharedTexture, viewportSize, viewportTexture, viewportTopLeft, viewportUV, wgsl, wgslFn, workgroupArray, workgroupBarrier, workgroupId, workingToColorSpace, xor };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright 2010-2024 Three.js Authors
3
+ * Copyright 2010-2025 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.BasicShadowFilter,o=e.Break,i=e.Continue,n=e.DFGApprox,s=e.D_GGX,l=e.Discard,c=e.EPSILON,m=e.F_Schlick,p=e.Fn,d=e.INFINITY,u=e.If,g=e.Loop,h=e.NodeShaderStage,f=e.NodeType,x=e.NodeUpdateType,b=e.NodeAccess,v=e.PCFShadowFilter,w=e.PCFSoftShadowFilter,S=e.PI,T=e.PI2,_=e.Return,V=e.Schlick_to_F0,y=e.ScriptableNodeResources,D=e.ShaderNode,M=e.TBNViewMatrix,C=e.VSMShadowFilter,F=e.V_GGX_SmithCorrelated,I=e.abs,P=e.acesFilmicToneMapping,N=e.acos,R=e.add,B=e.addMethodChaining,k=e.addNodeElement,L=e.agxToneMapping,A=e.all,G=e.alphaT,O=e.and,W=e.anisotropy,j=e.anisotropyB,U=e.anisotropyT,z=e.any,E=e.append,q=e.arrayBuffer,Z=e.asin,X=e.assign,Y=e.atan,H=e.atan2,J=e.atomicAdd,K=e.atomicAnd,Q=e.atomicFunc,$=e.atomicMax,ee=e.atomicMin,te=e.atomicOr,re=e.atomicStore,ae=e.atomicSub,oe=e.atomicXor,ie=e.attenuationColor,ne=e.attenuationDistance,se=e.attribute,le=e.attributeArray,ce=e.backgroundBlurriness,me=e.backgroundIntensity,pe=e.backgroundRotation,de=e.batch,ue=e.billboarding,ge=e.bitAnd,he=e.bitNot,fe=e.bitOr,xe=e.bitXor,be=e.bitangentGeometry,ve=e.bitangentLocal,we=e.bitangentView,Se=e.bitangentWorld,Te=e.bitcast,_e=e.blendBurn,Ve=e.blendColor,ye=e.blendDodge,De=e.blendOverlay,Me=e.blendScreen,Ce=e.blur,Fe=e.bool,Ie=e.buffer,Pe=e.bufferAttribute,Ne=e.bumpMap,Re=e.burn,Be=e.bvec2,ke=e.bvec3,Le=e.bvec4,Ae=e.bypass,Ge=e.cache,Oe=e.call,We=e.cameraFar,je=e.cameraNear,Ue=e.cameraNormalMatrix,ze=e.cameraPosition,Ee=e.cameraProjectionMatrix,qe=e.cameraProjectionMatrixInverse,Ze=e.cameraViewMatrix,Xe=e.cameraWorldMatrix,Ye=e.cbrt,He=e.cdl,Je=e.ceil,Ke=e.checker,Qe=e.cineonToneMapping,$e=e.clamp,et=e.clearcoat,tt=e.clearcoatRoughness,rt=e.code,at=e.color,ot=e.colorSpaceToWorking,it=e.colorToDirection,nt=e.compute,st=e.cond,lt=e.context,ct=e.convert,mt=e.convertColorSpace,pt=e.convertToTexture,dt=e.cos,ut=e.cross,gt=e.cubeTexture,ht=e.dFdx,ft=e.dFdy,xt=e.dashSize,bt=e.defaultBuildStages,vt=e.defaultShaderStages,wt=e.defined,St=e.degrees,Tt=e.deltaTime,_t=e.densityFog,Vt=e.depth,yt=e.depthPass,Dt=e.difference,Mt=e.diffuseColor,Ct=e.directPointLight,Ft=e.directionToColor,It=e.dispersion,Pt=e.distance,Nt=e.div,Rt=e.dodge,Bt=e.dot,kt=e.drawIndex,Lt=e.dynamicBufferAttribute,At=e.element,Gt=e.emissive,Ot=e.equal,Wt=e.equals,jt=e.equirectUV,Ut=e.exp,zt=e.exp2,Et=e.expression,qt=e.faceDirection,Zt=e.faceForward,Xt=e.float,Yt=e.floor,Ht=e.fog,Jt=e.fract,Kt=e.frameGroup,Qt=e.frameId,$t=e.frontFacing,er=e.fwidth,tr=e.gain,rr=e.gapSize,ar=e.getConstNodeType,or=e.getCurrentStack,ir=e.getDirection,nr=e.getDistanceAttenuation,sr=e.getGeometryRoughness,lr=e.getNormalFromDepth,cr=e.getParallaxCorrectNormal,mr=e.getRoughness,pr=e.getScreenPosition,dr=e.getShIrradianceAt,ur=e.getTextureIndex,gr=e.getViewPosition,hr=e.glsl,fr=e.glslFn,xr=e.grayscale,br=e.greaterThan,vr=e.greaterThanEqual,wr=e.hash,Sr=e.highPrecisionModelNormalViewMatrix,Tr=e.highPrecisionModelViewMatrix,_r=e.hue,Vr=e.instance,yr=e.instanceIndex,Dr=e.instancedArray,Mr=e.instancedBufferAttribute,Cr=e.instancedDynamicBufferAttribute,Fr=e.instancedMesh,Ir=e.int,Pr=e.inverseSqrt,Nr=e.invocationLocalIndex,Rr=e.invocationSubgroupIndex,Br=e.ior,kr=e.iridescence,Lr=e.iridescenceIOR,Ar=e.iridescenceThickness,Gr=e.ivec2,Or=e.ivec3,Wr=e.ivec4,jr=e.js,Ur=e.label,zr=e.length,Er=e.lengthSq,qr=e.lessThan,Zr=e.lessThanEqual,Xr=e.lightPosition,Yr=e.lightTargetDirection,Hr=e.lightTargetPosition,Jr=e.lightViewPosition,Kr=e.lightingContext,Qr=e.lights,$r=e.linearDepth,ea=e.linearToneMapping,ta=e.localId,ra=e.log,aa=e.log2,oa=e.logarithmicDepthToViewZ,ia=e.loop,na=e.luminance,sa=e.mat2,la=e.mat3,ca=e.mat4,ma=e.matcapUV,pa=e.materialAOMap,da=e.materialAlphaTest,ua=e.materialAnisotropy,ga=e.materialAnisotropyVector,ha=e.materialAttenuationColor,fa=e.materialAttenuationDistance,xa=e.materialClearcoat,ba=e.materialClearcoatNormal,va=e.materialClearcoatRoughness,wa=e.materialColor,Sa=e.materialDispersion,Ta=e.materialEmissive,_a=e.materialIOR,Va=e.materialIridescence,ya=e.materialIridescenceIOR,Da=e.materialIridescenceThickness,Ma=e.materialLightMap,Ca=e.materialLineDashOffset,Fa=e.materialLineDashSize,Ia=e.materialLineGapSize,Pa=e.materialLineScale,Na=e.materialLineWidth,Ra=e.materialMetalness,Ba=e.materialNormal,ka=e.materialOpacity,La=e.materialPointWidth,Aa=e.materialReference,Ga=e.materialReflectivity,Oa=e.materialRefractionRatio,Wa=e.materialRotation,ja=e.materialRoughness,Ua=e.materialSheen,za=e.materialSheenRoughness,Ea=e.materialShininess,qa=e.materialSpecular,Za=e.materialSpecularColor,Xa=e.materialSpecularIntensity,Ya=e.materialSpecularStrength,Ha=e.materialThickness,Ja=e.materialTransmission,Ka=e.max,Qa=e.maxMipLevel,$a=e.metalness,eo=e.min,to=e.mix,ro=e.mixElement,ao=e.mod,oo=e.modInt,io=e.modelDirection,no=e.modelNormalMatrix,so=e.modelPosition,lo=e.modelScale,co=e.modelViewMatrix,mo=e.modelViewPosition,po=e.modelViewProjection,uo=e.modelWorldMatrix,go=e.modelWorldMatrixInverse,ho=e.morphReference,fo=e.mrt,xo=e.mul,bo=e.mx_aastep,vo=e.mx_cell_noise_float,wo=e.mx_contrast,So=e.mx_fractal_noise_float,To=e.mx_fractal_noise_vec2,_o=e.mx_fractal_noise_vec3,Vo=e.mx_fractal_noise_vec4,yo=e.mx_hsvtorgb,Do=e.mx_noise_float,Mo=e.mx_noise_vec3,Co=e.mx_noise_vec4,Fo=e.mx_ramplr,Io=e.mx_ramptb,Po=e.mx_rgbtohsv,No=e.mx_safepower,Ro=e.mx_splitlr,Bo=e.mx_splittb,ko=e.mx_srgb_texture_to_lin_rec709,Lo=e.mx_transform_uv,Ao=e.mx_worley_noise_float,Go=e.mx_worley_noise_vec2,Oo=e.mx_worley_noise_vec3,Wo=e.negate,jo=e.neutralToneMapping,Uo=e.nodeArray,zo=e.nodeImmutable,Eo=e.nodeObject,qo=e.nodeObjects,Zo=e.nodeProxy,Xo=e.normalFlat,Yo=e.normalGeometry,Ho=e.normalLocal,Jo=e.normalMap,Ko=e.normalView,Qo=e.normalWorld,$o=e.normalize,ei=e.not,ti=e.notEqual,ri=e.numWorkgroups,ai=e.objectDirection,oi=e.objectGroup,ii=e.objectPosition,ni=e.objectScale,si=e.objectViewPosition,li=e.objectWorldMatrix,ci=e.oneMinus,mi=e.or,pi=e.orthographicDepthToViewZ,di=e.oscSawtooth,ui=e.oscSine,gi=e.oscSquare,hi=e.oscTriangle,fi=e.output,xi=e.outputStruct,bi=e.overlay,vi=e.overloadingFn,wi=e.parabola,Si=e.parallaxDirection,Ti=e.parallaxUV,_i=e.parameter,Vi=e.pass,yi=e.passTexture,Di=e.pcurve,Mi=e.perspectiveDepthToViewZ,Ci=e.pmremTexture,Fi=e.pointUV,Ii=e.pointWidth,Pi=e.positionGeometry,Ni=e.positionLocal,Ri=e.positionPrevious,Bi=e.positionView,ki=e.positionViewDirection,Li=e.positionWorld,Ai=e.positionWorldDirection,Gi=e.posterize,Oi=e.pow,Wi=e.pow2,ji=e.pow3,Ui=e.pow4,zi=e.property,Ei=e.radians,qi=e.rand,Zi=e.range,Xi=e.rangeFog,Yi=e.reciprocal,Hi=e.reference,Ji=e.referenceBuffer,Ki=e.reflect,Qi=e.reflectVector,$i=e.reflectView,en=e.reflector,tn=e.refract,rn=e.refractVector,an=e.refractView,on=e.reinhardToneMapping,nn=e.remainder,sn=e.remap,ln=e.remapClamp,cn=e.renderGroup,mn=e.renderOutput,pn=e.rendererReference,dn=e.rotate,un=e.rotateUV,gn=e.roughness,hn=e.round,fn=e.rtt,xn=e.sRGBTransferEOTF,bn=e.sRGBTransferOETF,vn=e.sampler,wn=e.saturate,Sn=e.saturation,Tn=e.screen,_n=e.screenCoordinate,Vn=e.screenSize,yn=e.screenUV,Dn=e.scriptable,Mn=e.scriptableValue,Cn=e.select,Fn=e.setCurrentStack,In=e.shaderStages,Pn=e.shadow,Nn=e.sharedUniformGroup,Rn=e.sheen,Bn=e.sheenRoughness,kn=e.shiftLeft,Ln=e.shiftRight,An=e.shininess,Gn=e.sign,On=e.sin,Wn=e.sinc,jn=e.skinning,Un=e.skinningReference,zn=e.smoothstep,En=e.smoothstepElement,qn=e.specularColor,Zn=e.specularF90,Xn=e.spherizeUV,Yn=e.split,Hn=e.spritesheetUV,Jn=e.sqrt,Kn=e.stack,Qn=e.step,$n=e.storage,es=e.storageBarrier,ts=e.storageObject,rs=e.storageTexture,as=e.string,os=e.sub,is=e.subgroupIndex,ns=e.subgroupSize,ss=e.tan,ls=e.tangentGeometry,cs=e.tangentLocal,ms=e.tangentView,ps=e.tangentWorld,ds=e.temp,us=e.texture,gs=e.texture3D,hs=e.textureBarrier,fs=e.textureBicubic,xs=e.textureCubeUV,bs=e.textureLoad,vs=e.textureSize,ws=e.textureStore,Ss=e.thickness,Ts=e.threshold,_s=e.time,Vs=e.timerDelta,ys=e.timerGlobal,Ds=e.timerLocal,Ms=e.toOutputColorSpace,Cs=e.toWorkingColorSpace,Fs=e.toneMapping,Is=e.toneMappingExposure,Ps=e.toonOutlinePass,Ns=e.transformDirection,Rs=e.transformNormal,Bs=e.transformNormalToView,ks=e.transformedBentNormalView,Ls=e.transformedBitangentView,As=e.transformedBitangentWorld,Gs=e.transformedClearcoatNormalView,Os=e.transformedNormalView,Ws=e.transformedNormalWorld,js=e.transformedTangentView,Us=e.transformedTangentWorld,zs=e.transmission,Es=e.transpose,qs=e.tri,Zs=e.tri3,Xs=e.triNoise3D,Ys=e.triplanarTexture,Hs=e.triplanarTextures,Js=e.trunc,Ks=e.tslFn,Qs=e.uint,$s=e.uniform,el=e.uniformArray,tl=e.uniformGroup,rl=e.uniforms,al=e.userData,ol=e.uv,il=e.uvec2,nl=e.uvec3,sl=e.uvec4,ll=e.varying,cl=e.varyingProperty,ml=e.vec2,pl=e.vec3,dl=e.vec4,ul=e.vectorComponents,gl=e.velocity,hl=e.vertexColor,fl=e.vertexIndex,xl=e.vibrance,bl=e.viewZToLogarithmicDepth,vl=e.viewZToOrthographicDepth,wl=e.viewZToPerspectiveDepth,Sl=e.viewport,Tl=e.viewportBottomLeft,_l=e.viewportCoordinate,Vl=e.viewportDepthTexture,yl=e.viewportLinearDepth,Dl=e.viewportMipTexture,Ml=e.viewportResolution,Cl=e.viewportSafeUV,Fl=e.viewportSharedTexture,Il=e.viewportSize,Pl=e.viewportTexture,Nl=e.viewportTopLeft,Rl=e.viewportUV,Bl=e.wgsl,kl=e.wgslFn,Ll=e.workgroupArray,Al=e.workgroupBarrier,Gl=e.workgroupId,Ol=e.workingToColorSpace,Wl=e.xor;export{t as BRDF_GGX,r as BRDF_Lambert,a as BasicShadowFilter,o as Break,i as Continue,n as DFGApprox,s as D_GGX,l as Discard,c as EPSILON,m as F_Schlick,p as Fn,d as INFINITY,u as If,g as Loop,b as NodeAccess,h as NodeShaderStage,f as NodeType,x as NodeUpdateType,v as PCFShadowFilter,w as PCFSoftShadowFilter,S as PI,T as PI2,_ as Return,V as Schlick_to_F0,y as ScriptableNodeResources,D as ShaderNode,M as TBNViewMatrix,C as VSMShadowFilter,F as V_GGX_SmithCorrelated,I as abs,P as acesFilmicToneMapping,N as acos,R as add,B as addMethodChaining,k as addNodeElement,L as agxToneMapping,A as all,G as alphaT,O as and,W as anisotropy,j as anisotropyB,U as anisotropyT,z as any,E as append,q as arrayBuffer,Z as asin,X as assign,Y as atan,H as atan2,J as atomicAdd,K as atomicAnd,Q as atomicFunc,$ as atomicMax,ee as atomicMin,te as atomicOr,re as atomicStore,ae as atomicSub,oe as atomicXor,ie as attenuationColor,ne as attenuationDistance,se as attribute,le as attributeArray,ce as backgroundBlurriness,me as backgroundIntensity,pe as backgroundRotation,de as batch,ue as billboarding,ge as bitAnd,he as bitNot,fe as bitOr,xe as bitXor,be as bitangentGeometry,ve as bitangentLocal,we as bitangentView,Se as bitangentWorld,Te as bitcast,_e as blendBurn,Ve as blendColor,ye as blendDodge,De as blendOverlay,Me as blendScreen,Ce as blur,Fe as bool,Ie as buffer,Pe as bufferAttribute,Ne as bumpMap,Re as burn,Be as bvec2,ke as bvec3,Le as bvec4,Ae as bypass,Ge as cache,Oe as call,We as cameraFar,je as cameraNear,Ue as cameraNormalMatrix,ze as cameraPosition,Ee as cameraProjectionMatrix,qe as cameraProjectionMatrixInverse,Ze as cameraViewMatrix,Xe as cameraWorldMatrix,Ye as cbrt,He as cdl,Je as ceil,Ke as checker,Qe as cineonToneMapping,$e as clamp,et as clearcoat,tt as clearcoatRoughness,rt as code,at as color,ot as colorSpaceToWorking,it as colorToDirection,nt as compute,st as cond,lt as context,ct as convert,mt as convertColorSpace,pt as convertToTexture,dt as cos,ut as cross,gt as cubeTexture,ht as dFdx,ft as dFdy,xt as dashSize,bt as defaultBuildStages,vt as defaultShaderStages,wt as defined,St as degrees,Tt as deltaTime,_t as densityFog,Vt as depth,yt as depthPass,Dt as difference,Mt as diffuseColor,Ct as directPointLight,Ft as directionToColor,It as dispersion,Pt as distance,Nt as div,Rt as dodge,Bt as dot,kt as drawIndex,Lt as dynamicBufferAttribute,At as element,Gt as emissive,Ot as equal,Wt as equals,jt as equirectUV,Ut as exp,zt as exp2,Et as expression,qt as faceDirection,Zt as faceForward,Xt as float,Yt as floor,Ht as fog,Jt as fract,Kt as frameGroup,Qt as frameId,$t as frontFacing,er as fwidth,tr as gain,rr as gapSize,ar as getConstNodeType,or as getCurrentStack,ir as getDirection,nr as getDistanceAttenuation,sr as getGeometryRoughness,lr as getNormalFromDepth,cr as getParallaxCorrectNormal,mr as getRoughness,pr as getScreenPosition,dr as getShIrradianceAt,ur as getTextureIndex,gr as getViewPosition,hr as glsl,fr as glslFn,xr as grayscale,br as greaterThan,vr as greaterThanEqual,wr as hash,Sr as highPrecisionModelNormalViewMatrix,Tr as highPrecisionModelViewMatrix,_r as hue,Vr as instance,yr as instanceIndex,Dr as instancedArray,Mr as instancedBufferAttribute,Cr as instancedDynamicBufferAttribute,Fr as instancedMesh,Ir as int,Pr as inverseSqrt,Nr as invocationLocalIndex,Rr as invocationSubgroupIndex,Br as ior,kr as iridescence,Lr as iridescenceIOR,Ar as iridescenceThickness,Gr as ivec2,Or as ivec3,Wr as ivec4,jr as js,Ur as label,zr as length,Er as lengthSq,qr as lessThan,Zr as lessThanEqual,Xr as lightPosition,Yr as lightTargetDirection,Hr as lightTargetPosition,Jr as lightViewPosition,Kr as lightingContext,Qr as lights,$r as linearDepth,ea as linearToneMapping,ta as localId,ra as log,aa as log2,oa as logarithmicDepthToViewZ,ia as loop,na as luminance,sa as mat2,la as mat3,ca as mat4,ma as matcapUV,pa as materialAOMap,da as materialAlphaTest,ua as materialAnisotropy,ga as materialAnisotropyVector,ha as materialAttenuationColor,fa as materialAttenuationDistance,xa as materialClearcoat,ba as materialClearcoatNormal,va as materialClearcoatRoughness,wa as materialColor,Sa as materialDispersion,Ta as materialEmissive,_a as materialIOR,Va as materialIridescence,ya as materialIridescenceIOR,Da as materialIridescenceThickness,Ma as materialLightMap,Ca as materialLineDashOffset,Fa as materialLineDashSize,Ia as materialLineGapSize,Pa as materialLineScale,Na as materialLineWidth,Ra as materialMetalness,Ba as materialNormal,ka as materialOpacity,La as materialPointWidth,Aa as materialReference,Ga as materialReflectivity,Oa as materialRefractionRatio,Wa as materialRotation,ja as materialRoughness,Ua as materialSheen,za as materialSheenRoughness,Ea as materialShininess,qa as materialSpecular,Za as materialSpecularColor,Xa as materialSpecularIntensity,Ya as materialSpecularStrength,Ha as materialThickness,Ja as materialTransmission,Ka as max,Qa as maxMipLevel,$a as metalness,eo as min,to as mix,ro as mixElement,ao as mod,oo as modInt,io as modelDirection,no as modelNormalMatrix,so as modelPosition,lo as modelScale,co as modelViewMatrix,mo as modelViewPosition,po as modelViewProjection,uo as modelWorldMatrix,go as modelWorldMatrixInverse,ho as morphReference,fo as mrt,xo as mul,bo as mx_aastep,vo as mx_cell_noise_float,wo as mx_contrast,So as mx_fractal_noise_float,To as mx_fractal_noise_vec2,_o as mx_fractal_noise_vec3,Vo as mx_fractal_noise_vec4,yo as mx_hsvtorgb,Do as mx_noise_float,Mo as mx_noise_vec3,Co as mx_noise_vec4,Fo as mx_ramplr,Io as mx_ramptb,Po as mx_rgbtohsv,No as mx_safepower,Ro as mx_splitlr,Bo as mx_splittb,ko as mx_srgb_texture_to_lin_rec709,Lo as mx_transform_uv,Ao as mx_worley_noise_float,Go as mx_worley_noise_vec2,Oo as mx_worley_noise_vec3,Wo as negate,jo as neutralToneMapping,Uo as nodeArray,zo as nodeImmutable,Eo as nodeObject,qo as nodeObjects,Zo as nodeProxy,Xo as normalFlat,Yo as normalGeometry,Ho as normalLocal,Jo as normalMap,Ko as normalView,Qo as normalWorld,$o as normalize,ei as not,ti as notEqual,ri as numWorkgroups,ai as objectDirection,oi as objectGroup,ii as objectPosition,ni as objectScale,si as objectViewPosition,li as objectWorldMatrix,ci as oneMinus,mi as or,pi as orthographicDepthToViewZ,di as oscSawtooth,ui as oscSine,gi as oscSquare,hi as oscTriangle,fi as output,xi as outputStruct,bi as overlay,vi as overloadingFn,wi as parabola,Si as parallaxDirection,Ti as parallaxUV,_i as parameter,Vi as pass,yi as passTexture,Di as pcurve,Mi as perspectiveDepthToViewZ,Ci as pmremTexture,Fi as pointUV,Ii as pointWidth,Pi as positionGeometry,Ni as positionLocal,Ri as positionPrevious,Bi as positionView,ki as positionViewDirection,Li as positionWorld,Ai as positionWorldDirection,Gi as posterize,Oi as pow,Wi as pow2,ji as pow3,Ui as pow4,zi as property,Ei as radians,qi as rand,Zi as range,Xi as rangeFog,Yi as reciprocal,Hi as reference,Ji as referenceBuffer,Ki as reflect,Qi as reflectVector,$i as reflectView,en as reflector,tn as refract,rn as refractVector,an as refractView,on as reinhardToneMapping,nn as remainder,sn as remap,ln as remapClamp,cn as renderGroup,mn as renderOutput,pn as rendererReference,dn as rotate,un as rotateUV,gn as roughness,hn as round,fn as rtt,xn as sRGBTransferEOTF,bn as sRGBTransferOETF,vn as sampler,wn as saturate,Sn as saturation,Tn as screen,_n as screenCoordinate,Vn as screenSize,yn as screenUV,Dn as scriptable,Mn as scriptableValue,Cn as select,Fn as setCurrentStack,In as shaderStages,Pn as shadow,Nn as sharedUniformGroup,Rn as sheen,Bn as sheenRoughness,kn as shiftLeft,Ln as shiftRight,An as shininess,Gn as sign,On as sin,Wn as sinc,jn as skinning,Un as skinningReference,zn as smoothstep,En as smoothstepElement,qn as specularColor,Zn as specularF90,Xn as spherizeUV,Yn as split,Hn as spritesheetUV,Jn as sqrt,Kn as stack,Qn as step,$n as storage,es as storageBarrier,ts as storageObject,rs as storageTexture,as as string,os as sub,is as subgroupIndex,ns as subgroupSize,ss as tan,ls as tangentGeometry,cs as tangentLocal,ms as tangentView,ps as tangentWorld,ds as temp,us as texture,gs as texture3D,hs as textureBarrier,fs as textureBicubic,xs as textureCubeUV,bs as textureLoad,vs as textureSize,ws as textureStore,Ss as thickness,Ts as threshold,_s as time,Vs as timerDelta,ys as timerGlobal,Ds as timerLocal,Ms as toOutputColorSpace,Cs as toWorkingColorSpace,Fs as toneMapping,Is as toneMappingExposure,Ps as toonOutlinePass,Ns as transformDirection,Rs as transformNormal,Bs as transformNormalToView,ks as transformedBentNormalView,Ls as transformedBitangentView,As as transformedBitangentWorld,Gs as transformedClearcoatNormalView,Os as transformedNormalView,Ws as transformedNormalWorld,js as transformedTangentView,Us as transformedTangentWorld,zs as transmission,Es as transpose,qs as tri,Zs as tri3,Xs as triNoise3D,Ys as triplanarTexture,Hs as triplanarTextures,Js as trunc,Ks as tslFn,Qs as uint,$s as uniform,el as uniformArray,tl as uniformGroup,rl as uniforms,al as userData,ol as uv,il as uvec2,nl as uvec3,sl as uvec4,ll as varying,cl as varyingProperty,ml as vec2,pl as vec3,dl as vec4,ul as vectorComponents,gl as velocity,hl as vertexColor,fl as vertexIndex,xl as vibrance,bl as viewZToLogarithmicDepth,vl as viewZToOrthographicDepth,wl as viewZToPerspectiveDepth,Sl as viewport,Tl as viewportBottomLeft,_l as viewportCoordinate,Vl as viewportDepthTexture,yl as viewportLinearDepth,Dl as viewportMipTexture,Ml as viewportResolution,Cl as viewportSafeUV,Fl as viewportSharedTexture,Il as viewportSize,Pl as viewportTexture,Nl as viewportTopLeft,Rl as viewportUV,Bl as wgsl,kl as wgslFn,Ll as workgroupArray,Al as workgroupBarrier,Gl as workgroupId,Ol as workingToColorSpace,Wl as xor};
6
+ import{TSL as e}from"three/webgpu";const r=e.BRDF_GGX,t=e.BRDF_Lambert,a=e.BasicShadowFilter,o=e.Break,i=e.Continue,n=e.DFGApprox,s=e.D_GGX,l=e.Discard,c=e.EPSILON,m=e.F_Schlick,p=e.Fn,d=e.INFINITY,u=e.If,g=e.Loop,h=e.NodeShaderStage,f=e.NodeType,x=e.NodeUpdateType,b=e.NodeAccess,w=e.PCFShadowFilter,v=e.PCFSoftShadowFilter,S=e.PI,T=e.PI2,_=e.Return,V=e.Schlick_to_F0,y=e.ScriptableNodeResources,D=e.ShaderNode,M=e.TBNViewMatrix,F=e.VSMShadowFilter,C=e.V_GGX_SmithCorrelated,I=e.abs,N=e.acesFilmicToneMapping,P=e.acos,R=e.add,B=e.addNodeElement,L=e.agxToneMapping,k=e.all,A=e.alphaT,G=e.and,O=e.anisotropy,W=e.anisotropyB,j=e.anisotropyT,U=e.any,z=e.append,q=e.array,E=e.arrayBuffer,Z=e.asin,X=e.assign,Y=e.atan,H=e.atan2,J=e.atomicAdd,K=e.atomicAnd,Q=e.atomicFunc,$=e.atomicMax,ee=e.atomicMin,re=e.atomicOr,te=e.atomicStore,ae=e.atomicSub,oe=e.atomicXor,ie=e.atomicLoad,ne=e.attenuationColor,se=e.attenuationDistance,le=e.attribute,ce=e.attributeArray,me=e.backgroundBlurriness,pe=e.backgroundIntensity,de=e.backgroundRotation,ue=e.batch,ge=e.billboarding,he=e.bitAnd,fe=e.bitNot,xe=e.bitOr,be=e.bitXor,we=e.bitangentGeometry,ve=e.bitangentLocal,Se=e.bitangentView,Te=e.bitangentWorld,_e=e.bitcast,Ve=e.blendBurn,ye=e.blendColor,De=e.blendDodge,Me=e.blendOverlay,Fe=e.blendScreen,Ce=e.blur,Ie=e.bool,Ne=e.buffer,Pe=e.bufferAttribute,Re=e.bumpMap,Be=e.burn,Le=e.bvec2,ke=e.bvec3,Ae=e.bvec4,Ge=e.bypass,Oe=e.cache,We=e.call,je=e.cameraFar,Ue=e.cameraIndex,ze=e.cameraNear,qe=e.cameraNormalMatrix,Ee=e.cameraPosition,Ze=e.cameraProjectionMatrix,Xe=e.cameraProjectionMatrixInverse,Ye=e.cameraViewMatrix,He=e.cameraWorldMatrix,Je=e.cbrt,Ke=e.cdl,Qe=e.ceil,$e=e.checker,er=e.cineonToneMapping,rr=e.clamp,tr=e.clearcoat,ar=e.clearcoatRoughness,or=e.code,ir=e.color,nr=e.colorSpaceToWorking,sr=e.colorToDirection,lr=e.compute,cr=e.cond,mr=e.Const,pr=e.context,dr=e.convert,ur=e.convertColorSpace,gr=e.convertToTexture,hr=e.cos,fr=e.cross,xr=e.cubeTexture,br=e.dFdx,wr=e.dFdy,vr=e.dashSize,Sr=e.defaultBuildStages,Tr=e.defaultShaderStages,_r=e.defined,Vr=e.degrees,yr=e.deltaTime,Dr=e.densityFog,Mr=e.densityFogFactor,Fr=e.depth,Cr=e.depthPass,Ir=e.difference,Nr=e.diffuseColor,Pr=e.directPointLight,Rr=e.directionToColor,Br=e.dispersion,Lr=e.distance,kr=e.div,Ar=e.dodge,Gr=e.dot,Or=e.drawIndex,Wr=e.dynamicBufferAttribute,jr=e.element,Ur=e.emissive,zr=e.equal,qr=e.equals,Er=e.equirectUV,Zr=e.exp,Xr=e.exp2,Yr=e.expression,Hr=e.faceDirection,Jr=e.faceForward,Kr=e.faceforward,Qr=e.float,$r=e.floor,et=e.fog,rt=e.fract,tt=e.frameGroup,at=e.frameId,ot=e.frontFacing,it=e.fwidth,nt=e.gain,st=e.gapSize,lt=e.getConstNodeType,ct=e.getCurrentStack,mt=e.getDirection,pt=e.getDistanceAttenuation,dt=e.getGeometryRoughness,ut=e.getNormalFromDepth,gt=e.getParallaxCorrectNormal,ht=e.getRoughness,ft=e.getScreenPosition,xt=e.getShIrradianceAt,bt=e.getTextureIndex,wt=e.getViewPosition,vt=e.glsl,St=e.glslFn,Tt=e.grayscale,_t=e.greaterThan,Vt=e.greaterThanEqual,yt=e.hash,Dt=e.highpModelNormalViewMatrix,Mt=e.highpModelViewMatrix,Ft=e.hue,Ct=e.instance,It=e.instanceIndex,Nt=e.instancedArray,Pt=e.instancedBufferAttribute,Rt=e.instancedDynamicBufferAttribute,Bt=e.instancedMesh,Lt=e.int,kt=e.inverseSqrt,At=e.inversesqrt,Gt=e.invocationLocalIndex,Ot=e.invocationSubgroupIndex,Wt=e.ior,jt=e.iridescence,Ut=e.iridescenceIOR,zt=e.iridescenceThickness,qt=e.ivec2,Et=e.ivec3,Zt=e.ivec4,Xt=e.js,Yt=e.label,Ht=e.length,Jt=e.lengthSq,Kt=e.lessThan,Qt=e.lessThanEqual,$t=e.lightPosition,ea=e.lightTargetDirection,ra=e.lightTargetPosition,ta=e.lightViewPosition,aa=e.lightingContext,oa=e.lights,ia=e.linearDepth,na=e.linearToneMapping,sa=e.localId,la=e.globalId,ca=e.log,ma=e.log2,pa=e.logarithmicDepthToViewZ,da=e.loop,ua=e.luminance,ga=e.mediumpModelViewMatrix,ha=e.mat2,fa=e.mat3,xa=e.mat4,ba=e.matcapUV,wa=e.materialAO,va=e.materialAlphaTest,Sa=e.materialAnisotropy,Ta=e.materialAnisotropyVector,_a=e.materialAttenuationColor,Va=e.materialAttenuationDistance,ya=e.materialClearcoat,Da=e.materialClearcoatNormal,Ma=e.materialClearcoatRoughness,Fa=e.materialColor,Ca=e.materialDispersion,Ia=e.materialEmissive,Na=e.materialIOR,Pa=e.materialIridescence,Ra=e.materialIridescenceIOR,Ba=e.materialIridescenceThickness,La=e.materialLightMap,ka=e.materialLineDashOffset,Aa=e.materialLineDashSize,Ga=e.materialLineGapSize,Oa=e.materialLineScale,Wa=e.materialLineWidth,ja=e.materialMetalness,Ua=e.materialNormal,za=e.materialOpacity,qa=e.materialPointSize,Ea=e.materialReference,Za=e.materialReflectivity,Xa=e.materialRefractionRatio,Ya=e.materialRotation,Ha=e.materialRoughness,Ja=e.materialSheen,Ka=e.materialSheenRoughness,Qa=e.materialShininess,$a=e.materialSpecular,eo=e.materialSpecularColor,ro=e.materialSpecularIntensity,to=e.materialSpecularStrength,ao=e.materialThickness,oo=e.materialTransmission,io=e.max,no=e.maxMipLevel,so=e.metalness,lo=e.min,co=e.mix,mo=e.mixElement,po=e.mod,uo=e.modInt,go=e.modelDirection,ho=e.modelNormalMatrix,fo=e.modelPosition,xo=e.modelScale,bo=e.modelViewMatrix,wo=e.modelViewPosition,vo=e.modelViewProjection,So=e.modelWorldMatrix,To=e.modelWorldMatrixInverse,_o=e.morphReference,Vo=e.mrt,yo=e.mul,Do=e.mx_aastep,Mo=e.mx_cell_noise_float,Fo=e.mx_contrast,Co=e.mx_fractal_noise_float,Io=e.mx_fractal_noise_vec2,No=e.mx_fractal_noise_vec3,Po=e.mx_fractal_noise_vec4,Ro=e.mx_hsvtorgb,Bo=e.mx_noise_float,Lo=e.mx_noise_vec3,ko=e.mx_noise_vec4,Ao=e.mx_ramplr,Go=e.mx_ramptb,Oo=e.mx_rgbtohsv,Wo=e.mx_safepower,jo=e.mx_splitlr,Uo=e.mx_splittb,zo=e.mx_srgb_texture_to_lin_rec709,qo=e.mx_transform_uv,Eo=e.mx_worley_noise_float,Zo=e.mx_worley_noise_vec2,Xo=e.mx_worley_noise_vec3,Yo=e.negate,Ho=e.neutralToneMapping,Jo=e.nodeArray,Ko=e.nodeImmutable,Qo=e.nodeObject,$o=e.nodeObjects,ei=e.nodeProxy,ri=e.normalFlat,ti=e.normalGeometry,ai=e.normalLocal,oi=e.normalMap,ii=e.normalView,ni=e.normalWorld,si=e.normalize,li=e.not,ci=e.notEqual,mi=e.numWorkgroups,pi=e.objectDirection,di=e.objectGroup,ui=e.objectPosition,gi=e.objectScale,hi=e.objectViewPosition,fi=e.objectWorldMatrix,xi=e.oneMinus,bi=e.or,wi=e.orthographicDepthToViewZ,vi=e.oscSawtooth,Si=e.oscSine,Ti=e.oscSquare,_i=e.oscTriangle,Vi=e.output,yi=e.outputStruct,Di=e.overlay,Mi=e.overloadingFn,Fi=e.parabola,Ci=e.parallaxDirection,Ii=e.parallaxUV,Ni=e.parameter,Pi=e.pass,Ri=e.passTexture,Bi=e.pcurve,Li=e.perspectiveDepthToViewZ,ki=e.pmremTexture,Ai=e.pointUV,Gi=e.pointWidth,Oi=e.positionGeometry,Wi=e.positionLocal,ji=e.positionPrevious,Ui=e.positionView,zi=e.positionViewDirection,qi=e.positionWorld,Ei=e.positionWorldDirection,Zi=e.posterize,Xi=e.pow,Yi=e.pow2,Hi=e.pow3,Ji=e.pow4,Ki=e.property,Qi=e.radians,$i=e.rand,en=e.range,rn=e.rangeFog,tn=e.rangeFogFactor,an=e.reciprocal,on=e.reference,nn=e.referenceBuffer,sn=e.reflect,ln=e.reflectVector,cn=e.reflectView,mn=e.reflector,pn=e.refract,dn=e.refractVector,un=e.refractView,gn=e.reinhardToneMapping,hn=e.remainder,fn=e.remap,xn=e.remapClamp,bn=e.renderGroup,wn=e.renderOutput,vn=e.rendererReference,Sn=e.rotate,Tn=e.rotateUV,_n=e.roughness,Vn=e.round,yn=e.rtt,Dn=e.sRGBTransferEOTF,Mn=e.sRGBTransferOETF,Fn=e.sampler,Cn=e.saturate,In=e.saturation,Nn=e.screen,Pn=e.screenCoordinate,Rn=e.screenSize,Bn=e.screenUV,Ln=e.scriptable,kn=e.scriptableValue,An=e.select,Gn=e.setCurrentStack,On=e.shaderStages,Wn=e.shadow,jn=e.shadowPositionWorld,Un=e.sharedUniformGroup,zn=e.shapeCircle,qn=e.sheen,En=e.sheenRoughness,Zn=e.shiftLeft,Xn=e.shiftRight,Yn=e.shininess,Hn=e.sign,Jn=e.sin,Kn=e.sinc,Qn=e.skinning,$n=e.skinningReference,es=e.smoothstep,rs=e.smoothstepElement,ts=e.specularColor,as=e.specularF90,os=e.spherizeUV,is=e.split,ns=e.spritesheetUV,ss=e.sqrt,ls=e.stack,cs=e.step,ms=e.storage,ps=e.storageBarrier,ds=e.storageObject,us=e.storageTexture,gs=e.string,hs=e.struct,fs=e.sub,xs=e.subgroupIndex,bs=e.subgroupSize,ws=e.tan,vs=e.tangentGeometry,Ss=e.tangentLocal,Ts=e.tangentView,_s=e.tangentWorld,Vs=e.temp,ys=e.texture,Ds=e.texture3D,Ms=e.textureBarrier,Fs=e.textureBicubic,Cs=e.textureCubeUV,Is=e.textureLoad,Ns=e.textureSize,Ps=e.textureStore,Rs=e.thickness,Bs=e.threshold,Ls=e.time,ks=e.timerDelta,As=e.timerGlobal,Gs=e.timerLocal,Os=e.toOutputColorSpace,Ws=e.toWorkingColorSpace,js=e.toneMapping,Us=e.toneMappingExposure,zs=e.toonOutlinePass,qs=e.transformDirection,Es=e.transformNormal,Zs=e.transformNormalToView,Xs=e.transformedBentNormalView,Ys=e.transformedBitangentView,Hs=e.transformedBitangentWorld,Js=e.transformedClearcoatNormalView,Ks=e.transformedNormalView,Qs=e.transformedNormalWorld,$s=e.transformedTangentView,el=e.transformedTangentWorld,rl=e.transmission,tl=e.transpose,al=e.tri,ol=e.tri3,il=e.triNoise3D,nl=e.triplanarTexture,sl=e.triplanarTextures,ll=e.trunc,cl=e.tslFn,ml=e.uint,pl=e.uniform,dl=e.uniformArray,ul=e.uniformGroup,gl=e.uniforms,hl=e.userData,fl=e.uv,xl=e.uvec2,bl=e.uvec3,wl=e.uvec4,vl=e.Var,Sl=e.varying,Tl=e.varyingProperty,_l=e.vec2,Vl=e.vec3,yl=e.vec4,Dl=e.vectorComponents,Ml=e.velocity,Fl=e.vertexColor,Cl=e.vertexIndex,Il=e.vibrance,Nl=e.viewZToLogarithmicDepth,Pl=e.viewZToOrthographicDepth,Rl=e.viewZToPerspectiveDepth,Bl=e.viewport,Ll=e.viewportBottomLeft,kl=e.viewportCoordinate,Al=e.viewportDepthTexture,Gl=e.viewportLinearDepth,Ol=e.viewportMipTexture,Wl=e.viewportResolution,jl=e.viewportSafeUV,Ul=e.viewportSharedTexture,zl=e.viewportSize,ql=e.viewportTexture,El=e.viewportTopLeft,Zl=e.viewportUV,Xl=e.wgsl,Yl=e.wgslFn,Hl=e.workgroupArray,Jl=e.workgroupBarrier,Kl=e.workgroupId,Ql=e.workingToColorSpace,$l=e.xor;export{r as BRDF_GGX,t as BRDF_Lambert,a as BasicShadowFilter,o as Break,mr as Const,i as Continue,n as DFGApprox,s as D_GGX,l as Discard,c as EPSILON,m as F_Schlick,p as Fn,d as INFINITY,u as If,g as Loop,b as NodeAccess,h as NodeShaderStage,f as NodeType,x as NodeUpdateType,w as PCFShadowFilter,v as PCFSoftShadowFilter,S as PI,T as PI2,_ as Return,V as Schlick_to_F0,y as ScriptableNodeResources,D as ShaderNode,M as TBNViewMatrix,F as VSMShadowFilter,C as V_GGX_SmithCorrelated,vl as Var,I as abs,N as acesFilmicToneMapping,P as acos,R as add,B as addNodeElement,L as agxToneMapping,k as all,A as alphaT,G as and,O as anisotropy,W as anisotropyB,j as anisotropyT,U as any,z as append,q as array,E as arrayBuffer,Z as asin,X as assign,Y as atan,H as atan2,J as atomicAdd,K as atomicAnd,Q as atomicFunc,ie as atomicLoad,$ as atomicMax,ee as atomicMin,re as atomicOr,te as atomicStore,ae as atomicSub,oe as atomicXor,ne as attenuationColor,se as attenuationDistance,le as attribute,ce as attributeArray,me as backgroundBlurriness,pe as backgroundIntensity,de as backgroundRotation,ue as batch,ge as billboarding,he as bitAnd,fe as bitNot,xe as bitOr,be as bitXor,we as bitangentGeometry,ve as bitangentLocal,Se as bitangentView,Te as bitangentWorld,_e as bitcast,Ve as blendBurn,ye as blendColor,De as blendDodge,Me as blendOverlay,Fe as blendScreen,Ce as blur,Ie as bool,Ne as buffer,Pe as bufferAttribute,Re as bumpMap,Be as burn,Le as bvec2,ke as bvec3,Ae as bvec4,Ge as bypass,Oe as cache,We as call,je as cameraFar,Ue as cameraIndex,ze as cameraNear,qe as cameraNormalMatrix,Ee as cameraPosition,Ze as cameraProjectionMatrix,Xe as cameraProjectionMatrixInverse,Ye as cameraViewMatrix,He as cameraWorldMatrix,Je as cbrt,Ke as cdl,Qe as ceil,$e as checker,er as cineonToneMapping,rr as clamp,tr as clearcoat,ar as clearcoatRoughness,or as code,ir as color,nr as colorSpaceToWorking,sr as colorToDirection,lr as compute,cr as cond,pr as context,dr as convert,ur as convertColorSpace,gr as convertToTexture,hr as cos,fr as cross,xr as cubeTexture,br as dFdx,wr as dFdy,vr as dashSize,Sr as defaultBuildStages,Tr as defaultShaderStages,_r as defined,Vr as degrees,yr as deltaTime,Dr as densityFog,Mr as densityFogFactor,Fr as depth,Cr as depthPass,Ir as difference,Nr as diffuseColor,Pr as directPointLight,Rr as directionToColor,Br as dispersion,Lr as distance,kr as div,Ar as dodge,Gr as dot,Or as drawIndex,Wr as dynamicBufferAttribute,jr as element,Ur as emissive,zr as equal,qr as equals,Er as equirectUV,Zr as exp,Xr as exp2,Yr as expression,Hr as faceDirection,Jr as faceForward,Kr as faceforward,Qr as float,$r as floor,et as fog,rt as fract,tt as frameGroup,at as frameId,ot as frontFacing,it as fwidth,nt as gain,st as gapSize,lt as getConstNodeType,ct as getCurrentStack,mt as getDirection,pt as getDistanceAttenuation,dt as getGeometryRoughness,ut as getNormalFromDepth,gt as getParallaxCorrectNormal,ht as getRoughness,ft as getScreenPosition,xt as getShIrradianceAt,bt as getTextureIndex,wt as getViewPosition,la as globalId,vt as glsl,St as glslFn,Tt as grayscale,_t as greaterThan,Vt as greaterThanEqual,yt as hash,Dt as highpModelNormalViewMatrix,Mt as highpModelViewMatrix,Ft as hue,Ct as instance,It as instanceIndex,Nt as instancedArray,Pt as instancedBufferAttribute,Rt as instancedDynamicBufferAttribute,Bt as instancedMesh,Lt as int,kt as inverseSqrt,At as inversesqrt,Gt as invocationLocalIndex,Ot as invocationSubgroupIndex,Wt as ior,jt as iridescence,Ut as iridescenceIOR,zt as iridescenceThickness,qt as ivec2,Et as ivec3,Zt as ivec4,Xt as js,Yt as label,Ht as length,Jt as lengthSq,Kt as lessThan,Qt as lessThanEqual,$t as lightPosition,ea as lightTargetDirection,ra as lightTargetPosition,ta as lightViewPosition,aa as lightingContext,oa as lights,ia as linearDepth,na as linearToneMapping,sa as localId,ca as log,ma as log2,pa as logarithmicDepthToViewZ,da as loop,ua as luminance,ha as mat2,fa as mat3,xa as mat4,ba as matcapUV,wa as materialAO,va as materialAlphaTest,Sa as materialAnisotropy,Ta as materialAnisotropyVector,_a as materialAttenuationColor,Va as materialAttenuationDistance,ya as materialClearcoat,Da as materialClearcoatNormal,Ma as materialClearcoatRoughness,Fa as materialColor,Ca as materialDispersion,Ia as materialEmissive,Na as materialIOR,Pa as materialIridescence,Ra as materialIridescenceIOR,Ba as materialIridescenceThickness,La as materialLightMap,ka as materialLineDashOffset,Aa as materialLineDashSize,Ga as materialLineGapSize,Oa as materialLineScale,Wa as materialLineWidth,ja as materialMetalness,Ua as materialNormal,za as materialOpacity,qa as materialPointSize,Ea as materialReference,Za as materialReflectivity,Xa as materialRefractionRatio,Ya as materialRotation,Ha as materialRoughness,Ja as materialSheen,Ka as materialSheenRoughness,Qa as materialShininess,$a as materialSpecular,eo as materialSpecularColor,ro as materialSpecularIntensity,to as materialSpecularStrength,ao as materialThickness,oo as materialTransmission,io as max,no as maxMipLevel,ga as mediumpModelViewMatrix,so as metalness,lo as min,co as mix,mo as mixElement,po as mod,uo as modInt,go as modelDirection,ho as modelNormalMatrix,fo as modelPosition,xo as modelScale,bo as modelViewMatrix,wo as modelViewPosition,vo as modelViewProjection,So as modelWorldMatrix,To as modelWorldMatrixInverse,_o as morphReference,Vo as mrt,yo as mul,Do as mx_aastep,Mo as mx_cell_noise_float,Fo as mx_contrast,Co as mx_fractal_noise_float,Io as mx_fractal_noise_vec2,No as mx_fractal_noise_vec3,Po as mx_fractal_noise_vec4,Ro as mx_hsvtorgb,Bo as mx_noise_float,Lo as mx_noise_vec3,ko as mx_noise_vec4,Ao as mx_ramplr,Go as mx_ramptb,Oo as mx_rgbtohsv,Wo as mx_safepower,jo as mx_splitlr,Uo as mx_splittb,zo as mx_srgb_texture_to_lin_rec709,qo as mx_transform_uv,Eo as mx_worley_noise_float,Zo as mx_worley_noise_vec2,Xo as mx_worley_noise_vec3,Yo as negate,Ho as neutralToneMapping,Jo as nodeArray,Ko as nodeImmutable,Qo as nodeObject,$o as nodeObjects,ei as nodeProxy,ri as normalFlat,ti as normalGeometry,ai as normalLocal,oi as normalMap,ii as normalView,ni as normalWorld,si as normalize,li as not,ci as notEqual,mi as numWorkgroups,pi as objectDirection,di as objectGroup,ui as objectPosition,gi as objectScale,hi as objectViewPosition,fi as objectWorldMatrix,xi as oneMinus,bi as or,wi as orthographicDepthToViewZ,vi as oscSawtooth,Si as oscSine,Ti as oscSquare,_i as oscTriangle,Vi as output,yi as outputStruct,Di as overlay,Mi as overloadingFn,Fi as parabola,Ci as parallaxDirection,Ii as parallaxUV,Ni as parameter,Pi as pass,Ri as passTexture,Bi as pcurve,Li as perspectiveDepthToViewZ,ki as pmremTexture,Ai as pointUV,Gi as pointWidth,Oi as positionGeometry,Wi as positionLocal,ji as positionPrevious,Ui as positionView,zi as positionViewDirection,qi as positionWorld,Ei as positionWorldDirection,Zi as posterize,Xi as pow,Yi as pow2,Hi as pow3,Ji as pow4,Ki as property,Qi as radians,$i as rand,en as range,rn as rangeFog,tn as rangeFogFactor,an as reciprocal,on as reference,nn as referenceBuffer,sn as reflect,ln as reflectVector,cn as reflectView,mn as reflector,pn as refract,dn as refractVector,un as refractView,gn as reinhardToneMapping,hn as remainder,fn as remap,xn as remapClamp,bn as renderGroup,wn as renderOutput,vn as rendererReference,Sn as rotate,Tn as rotateUV,_n as roughness,Vn as round,yn as rtt,Dn as sRGBTransferEOTF,Mn as sRGBTransferOETF,Fn as sampler,Cn as saturate,In as saturation,Nn as screen,Pn as screenCoordinate,Rn as screenSize,Bn as screenUV,Ln as scriptable,kn as scriptableValue,An as select,Gn as setCurrentStack,On as shaderStages,Wn as shadow,jn as shadowPositionWorld,zn as shapeCircle,Un as sharedUniformGroup,qn as sheen,En as sheenRoughness,Zn as shiftLeft,Xn as shiftRight,Yn as shininess,Hn as sign,Jn as sin,Kn as sinc,Qn as skinning,$n as skinningReference,es as smoothstep,rs as smoothstepElement,ts as specularColor,as as specularF90,os as spherizeUV,is as split,ns as spritesheetUV,ss as sqrt,ls as stack,cs as step,ms as storage,ps as storageBarrier,ds as storageObject,us as storageTexture,gs as string,hs as struct,fs as sub,xs as subgroupIndex,bs as subgroupSize,ws as tan,vs as tangentGeometry,Ss as tangentLocal,Ts as tangentView,_s as tangentWorld,Vs as temp,ys as texture,Ds as texture3D,Ms as textureBarrier,Fs as textureBicubic,Cs as textureCubeUV,Is as textureLoad,Ns as textureSize,Ps as textureStore,Rs as thickness,Bs as threshold,Ls as time,ks as timerDelta,As as timerGlobal,Gs as timerLocal,Os as toOutputColorSpace,Ws as toWorkingColorSpace,js as toneMapping,Us as toneMappingExposure,zs as toonOutlinePass,qs as transformDirection,Es as transformNormal,Zs as transformNormalToView,Xs as transformedBentNormalView,Ys as transformedBitangentView,Hs as transformedBitangentWorld,Js as transformedClearcoatNormalView,Ks as transformedNormalView,Qs as transformedNormalWorld,$s as transformedTangentView,el as transformedTangentWorld,rl as transmission,tl as transpose,al as tri,ol as tri3,il as triNoise3D,nl as triplanarTexture,sl as triplanarTextures,ll as trunc,cl as tslFn,ml as uint,pl as uniform,dl as uniformArray,ul as uniformGroup,gl as uniforms,hl as userData,fl as uv,xl as uvec2,bl as uvec3,wl as uvec4,Sl as varying,Tl as varyingProperty,_l as vec2,Vl as vec3,yl as vec4,Dl as vectorComponents,Ml as velocity,Fl as vertexColor,Cl as vertexIndex,Il as vibrance,Nl as viewZToLogarithmicDepth,Pl as viewZToOrthographicDepth,Rl as viewZToPerspectiveDepth,Bl as viewport,Ll as viewportBottomLeft,kl as viewportCoordinate,Al as viewportDepthTexture,Gl as viewportLinearDepth,Ol as viewportMipTexture,Wl as viewportResolution,jl as viewportSafeUV,Ul as viewportSharedTexture,zl as viewportSize,ql as viewportTexture,El as viewportTopLeft,Zl as viewportUV,Xl as wgsl,Yl as wgslFn,Hl as workgroupArray,Jl as workgroupBarrier,Kl as workgroupId,Ql as workingToColorSpace,$l as xor};