super-three 0.177.0 → 0.181.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 (501) hide show
  1. package/README.md +1 -1
  2. package/build/three.cjs +1994 -749
  3. package/build/three.core.js +1358 -506
  4. package/build/three.core.min.js +1 -1
  5. package/build/three.module.js +631 -247
  6. package/build/three.module.min.js +1 -1
  7. package/build/three.tsl.js +113 -33
  8. package/build/three.tsl.min.js +1 -1
  9. package/build/three.webgpu.js +9571 -3424
  10. package/build/three.webgpu.min.js +1 -1
  11. package/build/three.webgpu.nodes.js +9397 -3426
  12. package/build/three.webgpu.nodes.min.js +1 -1
  13. package/examples/fonts/MPLUSRounded1c/MPLUSRounded1c-Regular.typeface.json.zip +0 -0
  14. package/examples/fonts/MPLUSRounded1c/OFL.txt +91 -0
  15. package/examples/jsm/Addons.js +2 -3
  16. package/examples/jsm/animation/CCDIKSolver.js +1 -1
  17. package/examples/jsm/capabilities/WebGL.js +0 -27
  18. package/examples/jsm/capabilities/WebGPU.js +1 -1
  19. package/examples/jsm/controls/ArcballControls.js +9 -9
  20. package/examples/jsm/controls/DragControls.js +7 -57
  21. package/examples/jsm/controls/FirstPersonControls.js +3 -3
  22. package/examples/jsm/controls/FlyControls.js +1 -1
  23. package/examples/jsm/controls/OrbitControls.js +2 -2
  24. package/examples/jsm/controls/PointerLockControls.js +2 -10
  25. package/examples/jsm/controls/TrackballControls.js +1 -1
  26. package/examples/jsm/controls/TransformControls.js +62 -15
  27. package/examples/jsm/csm/CSMShadowNode.js +4 -4
  28. package/examples/jsm/effects/AsciiEffect.js +8 -8
  29. package/examples/jsm/environments/RoomEnvironment.js +8 -3
  30. package/examples/jsm/exporters/DRACOExporter.js +2 -2
  31. package/examples/jsm/exporters/EXRExporter.js +1 -1
  32. package/examples/jsm/exporters/GLTFExporter.js +33 -25
  33. package/examples/jsm/exporters/KTX2Exporter.js +4 -2
  34. package/examples/jsm/exporters/PLYExporter.js +1 -1
  35. package/examples/jsm/exporters/USDZExporter.js +683 -299
  36. package/examples/jsm/geometries/DecalGeometry.js +2 -2
  37. package/examples/jsm/geometries/ParametricGeometry.js +1 -1
  38. package/examples/jsm/geometries/RoundedBoxGeometry.js +47 -8
  39. package/examples/jsm/geometries/TeapotGeometry.js +2 -2
  40. package/examples/jsm/geometries/TextGeometry.js +3 -2
  41. package/examples/jsm/gpgpu/BitonicSort.js +715 -0
  42. package/examples/jsm/helpers/ViewHelper.js +43 -5
  43. package/examples/jsm/inspector/Inspector.js +427 -0
  44. package/examples/jsm/inspector/RendererInspector.js +415 -0
  45. package/examples/jsm/inspector/tabs/Console.js +204 -0
  46. package/examples/jsm/inspector/tabs/Parameters.js +332 -0
  47. package/examples/jsm/inspector/tabs/Performance.js +268 -0
  48. package/examples/jsm/inspector/tabs/Viewer.js +166 -0
  49. package/examples/jsm/inspector/ui/Graph.js +95 -0
  50. package/examples/jsm/inspector/ui/Item.js +170 -0
  51. package/examples/jsm/inspector/ui/List.js +75 -0
  52. package/examples/jsm/inspector/ui/Profiler.js +170 -0
  53. package/examples/jsm/inspector/ui/Style.js +654 -0
  54. package/examples/jsm/inspector/ui/Tab.js +46 -0
  55. package/examples/jsm/inspector/ui/Values.js +423 -0
  56. package/examples/jsm/inspector/ui/utils.js +56 -0
  57. package/examples/jsm/interactive/HTMLMesh.js +11 -13
  58. package/examples/jsm/interactive/InteractiveGroup.js +1 -1
  59. package/examples/jsm/interactive/SelectionBox.js +30 -0
  60. package/examples/jsm/libs/ktx-parse.module.js +1 -1
  61. package/examples/jsm/libs/meshopt_decoder.module.js +75 -58
  62. package/examples/jsm/lights/LightProbeGenerator.js +14 -3
  63. package/examples/jsm/lights/RectAreaLightTexturesLib.js +1 -1
  64. package/examples/jsm/lines/Line2.js +3 -3
  65. package/examples/jsm/lines/LineGeometry.js +1 -1
  66. package/examples/jsm/lines/LineSegments2.js +2 -2
  67. package/examples/jsm/lines/Wireframe.js +2 -2
  68. package/examples/jsm/lines/WireframeGeometry2.js +1 -1
  69. package/examples/jsm/lines/webgpu/LineSegments2.js +1 -1
  70. package/examples/jsm/lines/webgpu/Wireframe.js +1 -1
  71. package/examples/jsm/loaders/3MFLoader.js +1 -1
  72. package/examples/jsm/loaders/ColladaLoader.js +4 -4
  73. package/examples/jsm/loaders/DDSLoader.js +1 -1
  74. package/examples/jsm/loaders/DRACOLoader.js +73 -22
  75. package/examples/jsm/loaders/EXRLoader.js +210 -22
  76. package/examples/jsm/loaders/FBXLoader.js +4 -4
  77. package/examples/jsm/loaders/FontLoader.js +23 -5
  78. package/examples/jsm/loaders/GLTFLoader.js +14 -8
  79. package/examples/jsm/loaders/HDRCubeTextureLoader.js +5 -5
  80. package/examples/jsm/loaders/HDRLoader.js +486 -0
  81. package/examples/jsm/loaders/KTX2Loader.js +136 -49
  82. package/examples/jsm/loaders/KTXLoader.js +2 -2
  83. package/examples/jsm/loaders/LDrawLoader.js +1 -1
  84. package/examples/jsm/loaders/LUT3dlLoader.js +2 -2
  85. package/examples/jsm/loaders/LUTCubeLoader.js +1 -1
  86. package/examples/jsm/loaders/LWOLoader.js +2 -2
  87. package/examples/jsm/loaders/MaterialXLoader.js +233 -34
  88. package/examples/jsm/loaders/OBJLoader.js +1 -1
  89. package/examples/jsm/loaders/PDBLoader.js +1 -1
  90. package/examples/jsm/loaders/RGBELoader.js +7 -473
  91. package/examples/jsm/loaders/SVGLoader.js +2 -2
  92. package/examples/jsm/loaders/TTFLoader.js +13 -1
  93. package/examples/jsm/loaders/USDLoader.js +219 -0
  94. package/examples/jsm/loaders/USDZLoader.js +4 -892
  95. package/examples/jsm/loaders/UltraHDRLoader.js +2 -2
  96. package/examples/jsm/loaders/lwo/IFFParser.js +1 -1
  97. package/examples/jsm/loaders/usd/USDAParser.js +741 -0
  98. package/examples/jsm/loaders/usd/USDCParser.js +17 -0
  99. package/examples/jsm/materials/WoodNodeMaterial.js +533 -0
  100. package/examples/jsm/math/ColorSpaces.js +19 -1
  101. package/examples/jsm/math/ConvexHull.js +3 -3
  102. package/examples/jsm/math/ImprovedNoise.js +1 -1
  103. package/examples/jsm/math/Lut.js +2 -2
  104. package/examples/jsm/math/SimplexNoise.js +1 -1
  105. package/examples/jsm/misc/MD2CharacterComplex.js +1 -1
  106. package/examples/jsm/misc/ProgressiveLightMap.js +9 -3
  107. package/examples/jsm/misc/ProgressiveLightMapGPU.js +7 -1
  108. package/examples/jsm/misc/TubePainter.js +383 -40
  109. package/examples/jsm/misc/Volume.js +1 -1
  110. package/examples/jsm/modifiers/SimplifyModifier.js +1 -1
  111. package/examples/jsm/objects/LensflareMesh.js +3 -3
  112. package/examples/jsm/objects/ReflectorForSSRPass.js +1 -0
  113. package/examples/jsm/objects/Sky.js +1 -1
  114. package/examples/jsm/objects/SkyMesh.js +3 -3
  115. package/examples/jsm/objects/Water.js +3 -3
  116. package/examples/jsm/objects/WaterMesh.js +6 -6
  117. package/examples/jsm/physics/RapierPhysics.js +95 -16
  118. package/examples/jsm/postprocessing/GTAOPass.js +10 -9
  119. package/examples/jsm/postprocessing/GlitchPass.js +2 -2
  120. package/examples/jsm/postprocessing/OutlinePass.js +17 -17
  121. package/examples/jsm/postprocessing/SSAOPass.js +10 -9
  122. package/examples/jsm/postprocessing/SSRPass.js +37 -8
  123. package/examples/jsm/postprocessing/UnrealBloomPass.js +8 -6
  124. package/examples/jsm/renderers/CSS2DRenderer.js +16 -5
  125. package/examples/jsm/renderers/CSS3DRenderer.js +7 -6
  126. package/examples/jsm/renderers/SVGRenderer.js +1 -1
  127. package/examples/jsm/shaders/ACESFilmicToneMappingShader.js +1 -1
  128. package/examples/jsm/shaders/AfterimageShader.js +1 -1
  129. package/examples/jsm/shaders/BleachBypassShader.js +1 -1
  130. package/examples/jsm/shaders/BokehShader.js +1 -1
  131. package/examples/jsm/shaders/BokehShader2.js +1 -1
  132. package/examples/jsm/shaders/DotScreenShader.js +1 -1
  133. package/examples/jsm/shaders/FocusShader.js +1 -1
  134. package/examples/jsm/shaders/GTAOShader.js +2 -2
  135. package/examples/jsm/shaders/GodRaysShader.js +1 -1
  136. package/examples/jsm/shaders/KaleidoShader.js +1 -1
  137. package/examples/jsm/shaders/PoissonDenoiseShader.js +2 -2
  138. package/examples/jsm/shaders/SSRShader.js +1 -1
  139. package/examples/jsm/shaders/SepiaShader.js +1 -1
  140. package/examples/jsm/shaders/SubsurfaceScatteringShader.js +1 -1
  141. package/examples/jsm/shaders/TriangleBlurShader.js +1 -1
  142. package/examples/jsm/shaders/UnpackDepthRGBAShader.js +11 -2
  143. package/examples/jsm/shaders/VignetteShader.js +1 -1
  144. package/examples/jsm/transpiler/AST.js +381 -30
  145. package/examples/jsm/transpiler/GLSLDecoder.js +247 -104
  146. package/examples/jsm/transpiler/Linker.js +327 -0
  147. package/examples/jsm/transpiler/TSLEncoder.js +196 -92
  148. package/examples/jsm/transpiler/Transpiler.js +17 -1
  149. package/examples/jsm/transpiler/TranspilerUtils.js +29 -0
  150. package/examples/jsm/transpiler/WGSLEncoder.js +812 -0
  151. package/examples/jsm/tsl/display/AfterImageNode.js +26 -24
  152. package/examples/jsm/tsl/display/AnamorphicNode.js +28 -4
  153. package/examples/jsm/tsl/display/BloomNode.js +11 -6
  154. package/examples/jsm/tsl/display/ChromaticAberrationNode.js +207 -0
  155. package/examples/jsm/tsl/display/DenoiseNode.js +2 -0
  156. package/examples/jsm/tsl/display/DepthOfFieldNode.js +446 -90
  157. package/examples/jsm/tsl/display/GTAONode.js +53 -5
  158. package/examples/jsm/tsl/display/GaussianBlurNode.js +55 -43
  159. package/examples/jsm/tsl/display/OutlineNode.js +13 -2
  160. package/examples/jsm/tsl/display/SSAAPassNode.js +2 -2
  161. package/examples/jsm/tsl/display/SSGINode.js +654 -0
  162. package/examples/jsm/tsl/display/SSRNode.js +182 -65
  163. package/examples/jsm/tsl/display/SSSNode.js +488 -0
  164. package/examples/jsm/tsl/display/TRAANode.js +578 -0
  165. package/examples/jsm/tsl/display/boxBlur.js +65 -0
  166. package/examples/jsm/tsl/display/hashBlur.js +18 -20
  167. package/examples/jsm/tsl/lighting/TiledLightsNode.js +22 -2
  168. package/examples/jsm/utils/BufferGeometryUtils.js +1 -1
  169. package/examples/jsm/utils/ShadowMapViewerGPU.js +12 -5
  170. package/examples/jsm/webxr/OculusHandModel.js +1 -1
  171. package/examples/jsm/webxr/XRControllerModelFactory.js +1 -1
  172. package/examples/jsm/webxr/XRHandModelFactory.js +2 -6
  173. package/package.json +5 -10
  174. package/src/Three.Core.js +5 -2
  175. package/src/Three.TSL.js +112 -32
  176. package/src/Three.WebGPU.Nodes.js +2 -0
  177. package/src/Three.WebGPU.js +4 -0
  178. package/src/animation/AnimationClip.js +20 -4
  179. package/src/animation/AnimationMixer.js +3 -3
  180. package/src/animation/AnimationObjectGroup.js +2 -1
  181. package/src/animation/KeyframeTrack.js +8 -7
  182. package/src/animation/PropertyBinding.js +12 -11
  183. package/src/animation/tracks/BooleanKeyframeTrack.js +1 -1
  184. package/src/animation/tracks/StringKeyframeTrack.js +1 -1
  185. package/src/audio/Audio.js +10 -9
  186. package/src/audio/PositionalAudio.js +1 -1
  187. package/src/cameras/Camera.js +14 -0
  188. package/src/cameras/OrthographicCamera.js +2 -2
  189. package/src/cameras/PerspectiveCamera.js +2 -2
  190. package/src/cameras/StereoCamera.js +2 -2
  191. package/src/constants.js +13 -5
  192. package/src/core/BufferAttribute.js +3 -3
  193. package/src/core/BufferGeometry.js +10 -10
  194. package/src/core/Clock.js +2 -8
  195. package/src/core/EventDispatcher.js +1 -1
  196. package/src/core/GLBufferAttribute.js +13 -1
  197. package/src/core/InterleavedBuffer.js +1 -1
  198. package/src/core/InterleavedBufferAttribute.js +3 -2
  199. package/src/core/Object3D.js +4 -3
  200. package/src/core/Raycaster.js +2 -1
  201. package/src/core/RenderTarget.js +10 -1
  202. package/{examples/jsm/misc → src/core}/Timer.js +4 -42
  203. package/src/extras/Controls.js +5 -4
  204. package/src/extras/DataUtils.js +2 -1
  205. package/src/extras/Earcut.js +6 -0
  206. package/src/extras/ImageUtils.js +2 -2
  207. package/src/extras/PMREMGenerator.js +279 -55
  208. package/src/extras/TextureUtils.js +2 -1
  209. package/src/extras/core/Curve.js +2 -1
  210. package/src/extras/core/Interpolations.js +7 -1
  211. package/src/extras/core/Path.js +22 -22
  212. package/src/extras/core/ShapePath.js +4 -4
  213. package/src/extras/lib/earcut.js +8 -8
  214. package/src/geometries/BoxGeometry.js +1 -0
  215. package/src/geometries/CapsuleGeometry.js +1 -0
  216. package/src/geometries/CircleGeometry.js +1 -0
  217. package/src/geometries/ConeGeometry.js +1 -0
  218. package/src/geometries/CylinderGeometry.js +1 -0
  219. package/src/geometries/DodecahedronGeometry.js +1 -0
  220. package/src/geometries/ExtrudeGeometry.js +8 -6
  221. package/src/geometries/IcosahedronGeometry.js +1 -0
  222. package/src/geometries/LatheGeometry.js +1 -0
  223. package/src/geometries/OctahedronGeometry.js +1 -0
  224. package/src/geometries/PlaneGeometry.js +1 -0
  225. package/src/geometries/RingGeometry.js +1 -0
  226. package/src/geometries/ShapeGeometry.js +1 -0
  227. package/src/geometries/SphereGeometry.js +1 -0
  228. package/src/geometries/TetrahedronGeometry.js +1 -0
  229. package/src/geometries/TorusGeometry.js +1 -0
  230. package/src/geometries/TorusKnotGeometry.js +1 -0
  231. package/src/geometries/TubeGeometry.js +1 -0
  232. package/src/helpers/CameraHelper.js +42 -12
  233. package/src/helpers/SkeletonHelper.js +35 -6
  234. package/src/lights/LightShadow.js +21 -8
  235. package/src/lights/PointLightShadow.js +1 -1
  236. package/src/lights/webgpu/ProjectorLight.js +1 -1
  237. package/src/loaders/AnimationLoader.js +2 -1
  238. package/src/loaders/AudioLoader.js +2 -1
  239. package/src/loaders/BufferGeometryLoader.js +2 -2
  240. package/src/loaders/Cache.js +2 -2
  241. package/src/loaders/DataTextureLoader.js +1 -1
  242. package/src/loaders/FileLoader.js +29 -5
  243. package/src/loaders/ImageBitmapLoader.js +32 -8
  244. package/src/loaders/ImageLoader.js +56 -9
  245. package/src/loaders/Loader.js +17 -3
  246. package/src/loaders/LoadingManager.js +45 -0
  247. package/src/loaders/MaterialLoader.js +3 -2
  248. package/src/loaders/ObjectLoader.js +13 -13
  249. package/src/loaders/TextureLoader.js +1 -1
  250. package/src/loaders/nodes/NodeLoader.js +3 -2
  251. package/src/materials/Material.js +16 -3
  252. package/src/materials/MeshBasicMaterial.js +2 -1
  253. package/src/materials/MeshDepthMaterial.js +1 -0
  254. package/src/materials/MeshDistanceMaterial.js +1 -1
  255. package/src/materials/MeshLambertMaterial.js +2 -1
  256. package/src/materials/MeshMatcapMaterial.js +22 -0
  257. package/src/materials/MeshNormalMaterial.js +1 -0
  258. package/src/materials/MeshPhongMaterial.js +2 -1
  259. package/src/materials/MeshPhysicalMaterial.js +2 -1
  260. package/src/materials/MeshStandardMaterial.js +8 -7
  261. package/src/materials/MeshToonMaterial.js +1 -0
  262. package/src/materials/PointsMaterial.js +1 -1
  263. package/src/materials/ShaderMaterial.js +2 -2
  264. package/src/materials/nodes/Line2NodeMaterial.js +2 -10
  265. package/src/materials/nodes/MeshBasicNodeMaterial.js +4 -3
  266. package/src/materials/nodes/MeshMatcapNodeMaterial.js +1 -1
  267. package/src/materials/nodes/MeshNormalNodeMaterial.js +2 -2
  268. package/src/materials/nodes/MeshPhysicalNodeMaterial.js +2 -1
  269. package/src/materials/nodes/MeshSSSNodeMaterial.js +3 -3
  270. package/src/materials/nodes/NodeMaterial.js +90 -27
  271. package/src/materials/nodes/PointsNodeMaterial.js +86 -28
  272. package/src/materials/nodes/SpriteNodeMaterial.js +3 -15
  273. package/src/materials/nodes/manager/NodeMaterialObserver.js +89 -3
  274. package/src/math/Color.js +6 -5
  275. package/src/math/ColorManagement.js +9 -3
  276. package/src/math/Cylindrical.js +1 -1
  277. package/src/math/Euler.js +2 -1
  278. package/src/math/Frustum.js +25 -9
  279. package/src/math/FrustumArray.js +10 -5
  280. package/src/math/Line3.js +129 -2
  281. package/src/math/MathUtils.js +13 -11
  282. package/src/math/Matrix2.js +1 -1
  283. package/src/math/Matrix3.js +2 -2
  284. package/src/math/Matrix4.js +55 -34
  285. package/src/math/Plane.js +1 -1
  286. package/src/math/Quaternion.js +69 -67
  287. package/src/math/Spherical.js +3 -3
  288. package/src/nodes/Nodes.js +6 -4
  289. package/src/nodes/TSL.js +9 -4
  290. package/src/nodes/accessors/AccessorsUtils.js +7 -8
  291. package/src/nodes/accessors/Bitangent.js +31 -25
  292. package/src/nodes/accessors/BufferNode.js +1 -1
  293. package/src/nodes/accessors/Camera.js +142 -16
  294. package/src/nodes/accessors/ClippingNode.js +6 -5
  295. package/src/nodes/accessors/CubeTextureNode.js +5 -4
  296. package/src/nodes/accessors/InstanceNode.js +25 -5
  297. package/src/nodes/accessors/Lights.js +10 -0
  298. package/src/nodes/accessors/Normal.js +97 -30
  299. package/src/nodes/accessors/Object3DNode.js +2 -2
  300. package/src/nodes/accessors/Position.js +25 -9
  301. package/src/nodes/accessors/ReferenceBaseNode.js +1 -1
  302. package/src/nodes/accessors/ReferenceNode.js +20 -4
  303. package/src/nodes/accessors/ReflectVector.js +3 -3
  304. package/src/nodes/accessors/SceneNode.js +3 -2
  305. package/src/nodes/accessors/StorageBufferNode.js +2 -1
  306. package/src/nodes/accessors/StorageTextureNode.js +23 -1
  307. package/src/nodes/accessors/Tangent.js +25 -17
  308. package/src/nodes/accessors/TangentUtils.js +46 -0
  309. package/src/nodes/accessors/Texture3DNode.js +14 -1
  310. package/src/nodes/accessors/TextureBicubic.js +21 -3
  311. package/src/nodes/accessors/TextureNode.js +142 -44
  312. package/src/nodes/accessors/UniformArrayNode.js +0 -16
  313. package/src/nodes/code/FunctionCallNode.js +24 -4
  314. package/src/nodes/code/FunctionNode.js +23 -0
  315. package/src/nodes/core/ArrayNode.js +13 -0
  316. package/src/nodes/core/AssignNode.js +6 -2
  317. package/src/nodes/core/AttributeNode.js +2 -1
  318. package/src/nodes/core/ContextNode.js +48 -10
  319. package/src/nodes/core/IndexNode.js +2 -2
  320. package/src/nodes/core/InputNode.js +2 -1
  321. package/src/nodes/core/InspectorNode.js +128 -0
  322. package/src/nodes/core/{CacheNode.js → IsolateNode.js} +36 -17
  323. package/src/nodes/core/Node.js +167 -34
  324. package/src/nodes/core/NodeBuilder.js +404 -120
  325. package/src/nodes/core/NodeFrame.js +21 -21
  326. package/src/nodes/core/NodeFunction.js +2 -1
  327. package/src/nodes/core/NodeParser.js +2 -1
  328. package/src/nodes/core/NodeUniform.js +1 -1
  329. package/src/nodes/core/NodeUtils.js +17 -88
  330. package/src/nodes/core/ParameterNode.js +31 -0
  331. package/src/nodes/core/PropertyNode.js +7 -0
  332. package/src/nodes/core/StackNode.js +77 -30
  333. package/src/nodes/core/StructNode.js +5 -5
  334. package/src/nodes/core/StructTypeNode.js +1 -0
  335. package/src/nodes/core/SubBuildNode.js +89 -0
  336. package/src/nodes/core/UniformNode.js +80 -14
  337. package/src/nodes/core/VarNode.js +142 -16
  338. package/src/nodes/core/VaryingNode.js +9 -6
  339. package/src/nodes/display/BlendModes.js +7 -6
  340. package/src/nodes/display/BumpMapNode.js +1 -1
  341. package/src/nodes/display/ColorAdjustment.js +1 -1
  342. package/src/nodes/display/FrontFacingNode.js +35 -7
  343. package/src/nodes/display/NormalMapNode.js +20 -50
  344. package/src/nodes/display/PassNode.js +206 -17
  345. package/src/nodes/display/RenderOutputNode.js +28 -2
  346. package/src/nodes/display/ScreenNode.js +44 -40
  347. package/src/nodes/display/ToneMappingNode.js +31 -4
  348. package/src/nodes/display/ToonOutlinePassNode.js +8 -0
  349. package/src/nodes/display/ViewportDepthTextureNode.js +16 -4
  350. package/src/nodes/display/ViewportSharedTextureNode.js +12 -0
  351. package/src/nodes/display/ViewportTextureNode.js +94 -4
  352. package/src/nodes/fog/Fog.js +3 -2
  353. package/src/nodes/functions/BSDF/BRDF_GGX.js +2 -6
  354. package/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.js +52 -0
  355. package/src/nodes/functions/BSDF/BRDF_Sheen.js +4 -4
  356. package/src/nodes/functions/BSDF/DFGApprox.js +60 -19
  357. package/src/nodes/functions/BasicLightingModel.js +2 -1
  358. package/src/nodes/functions/PhongLightingModel.js +3 -3
  359. package/src/nodes/functions/PhysicalLightingModel.js +19 -18
  360. package/src/nodes/functions/VolumetricLightingModel.js +5 -5
  361. package/src/nodes/functions/material/getGeometryRoughness.js +2 -2
  362. package/src/nodes/geometry/RangeNode.js +40 -4
  363. package/src/nodes/gpgpu/AtomicFunctionNode.js +1 -1
  364. package/src/nodes/gpgpu/ComputeBuiltinNode.js +2 -1
  365. package/src/nodes/gpgpu/ComputeNode.js +81 -25
  366. package/src/nodes/gpgpu/SubgroupFunctionNode.js +455 -0
  367. package/src/nodes/gpgpu/WorkgroupInfoNode.js +29 -3
  368. package/src/nodes/lighting/EnvironmentNode.js +11 -11
  369. package/src/nodes/lighting/LightsNode.js +7 -8
  370. package/src/nodes/lighting/PointShadowNode.js +6 -0
  371. package/src/nodes/lighting/ProjectorLightNode.js +19 -6
  372. package/src/nodes/lighting/ShadowFilterNode.js +3 -1
  373. package/src/nodes/lighting/ShadowNode.js +77 -10
  374. package/src/nodes/materialx/MaterialXNodes.js +131 -2
  375. package/src/nodes/materialx/lib/mx_noise.js +165 -1
  376. package/src/nodes/math/BitcastNode.js +156 -0
  377. package/src/nodes/math/ConditionalNode.js +25 -27
  378. package/src/nodes/math/MathNode.js +106 -65
  379. package/src/nodes/math/OperatorNode.js +28 -43
  380. package/src/nodes/pmrem/PMREMUtils.js +117 -2
  381. package/src/nodes/shapes/Shapes.js +1 -1
  382. package/src/nodes/tsl/TSLBase.js +6 -2
  383. package/src/nodes/tsl/TSLCore.js +546 -186
  384. package/src/nodes/utils/DebugNode.js +3 -2
  385. package/src/nodes/utils/EquirectUV.js +27 -0
  386. package/src/nodes/utils/EventNode.js +119 -0
  387. package/src/nodes/utils/FunctionOverloadingNode.js +37 -19
  388. package/src/nodes/utils/JoinNode.js +6 -3
  389. package/src/nodes/utils/LoopNode.js +20 -41
  390. package/src/nodes/utils/MatcapUV.js +22 -0
  391. package/src/nodes/utils/MemberNode.js +59 -7
  392. package/src/nodes/utils/PostProcessingUtils.js +28 -1
  393. package/src/nodes/utils/RTTNode.js +33 -6
  394. package/src/nodes/utils/ReflectorNode.js +68 -10
  395. package/src/nodes/utils/SampleNode.js +91 -0
  396. package/src/nodes/utils/SplitNode.js +11 -0
  397. package/src/nodes/utils/Timer.js +0 -47
  398. package/src/nodes/utils/TriplanarTextures.js +65 -0
  399. package/src/objects/BatchedMesh.js +6 -4
  400. package/src/objects/LOD.js +1 -1
  401. package/src/objects/Line.js +2 -1
  402. package/src/objects/LineSegments.js +2 -1
  403. package/src/objects/Skeleton.js +3 -2
  404. package/src/objects/SkinnedMesh.js +3 -1
  405. package/src/objects/Sprite.js +4 -3
  406. package/src/renderers/WebGLRenderer.js +77 -66
  407. package/src/renderers/common/Animation.js +13 -1
  408. package/src/renderers/common/Attributes.js +1 -1
  409. package/src/renderers/common/Backend.js +108 -27
  410. package/src/renderers/common/Background.js +4 -3
  411. package/src/renderers/common/Bindings.js +76 -19
  412. package/src/renderers/common/CanvasTarget.js +341 -0
  413. package/src/renderers/common/ChainMap.js +1 -1
  414. package/src/renderers/common/Color4.js +2 -2
  415. package/src/renderers/common/CubeRenderTarget.js +1 -1
  416. package/src/renderers/common/DataMap.js +1 -1
  417. package/src/renderers/common/Geometries.js +26 -0
  418. package/src/renderers/common/Info.js +4 -2
  419. package/src/renderers/common/InspectorBase.js +146 -0
  420. package/src/renderers/common/Pipelines.js +1 -1
  421. package/src/renderers/common/PostProcessing.js +61 -25
  422. package/src/renderers/common/QuadMesh.js +7 -1
  423. package/src/renderers/common/RenderContext.js +2 -2
  424. package/src/renderers/common/RenderList.js +7 -3
  425. package/src/renderers/common/RenderObject.js +84 -5
  426. package/src/renderers/common/RenderObjects.js +1 -1
  427. package/src/renderers/common/Renderer.js +486 -255
  428. package/src/renderers/common/RendererUtils.js +9 -0
  429. package/src/renderers/common/SampledTexture.js +8 -68
  430. package/src/renderers/common/Sampler.js +117 -0
  431. package/src/renderers/common/Storage3DTexture.js +100 -0
  432. package/src/renderers/common/StorageArrayTexture.js +84 -0
  433. package/src/renderers/common/StorageTexture.js +27 -0
  434. package/src/renderers/common/Textures.js +138 -46
  435. package/src/renderers/common/TimestampQueryPool.js +65 -3
  436. package/src/renderers/common/UniformsGroup.js +2 -1
  437. package/src/renderers/common/XRManager.js +63 -24
  438. package/src/renderers/common/XRRenderTarget.js +21 -4
  439. package/src/renderers/common/extras/PMREMGenerator.js +161 -66
  440. package/src/renderers/common/nodes/NodeBuilderState.js +1 -1
  441. package/src/renderers/common/nodes/NodeLibrary.js +9 -7
  442. package/src/renderers/common/nodes/NodeSampledTexture.js +0 -12
  443. package/src/renderers/common/nodes/NodeSampler.js +13 -1
  444. package/src/renderers/common/nodes/Nodes.js +38 -16
  445. package/src/renderers/shaders/DFGLUTData.js +64 -0
  446. package/src/renderers/shaders/ShaderChunk/common.glsl.js +0 -12
  447. package/src/renderers/shaders/ShaderChunk/envmap_common_pars_fragment.glsl.js +1 -1
  448. package/src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js +1 -1
  449. package/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +52 -18
  450. package/src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js +1 -1
  451. package/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_fragment.glsl.js +1 -1
  452. package/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_vertex.glsl.js +1 -1
  453. package/src/renderers/shaders/ShaderChunk/logdepthbuf_vertex.glsl.js +1 -1
  454. package/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js +21 -11
  455. package/src/renderers/shaders/ShaderLib/depth.glsl.js +11 -2
  456. package/src/renderers/shaders/UniformsLib.js +1 -0
  457. package/src/renderers/shaders/UniformsUtils.js +25 -4
  458. package/src/renderers/webgl/WebGLAttributes.js +4 -0
  459. package/src/renderers/webgl/WebGLCapabilities.js +4 -3
  460. package/src/renderers/webgl/WebGLExtensions.js +2 -25
  461. package/src/renderers/webgl/WebGLInfo.js +3 -1
  462. package/src/renderers/webgl/WebGLProgram.js +25 -18
  463. package/src/renderers/webgl/WebGLPrograms.js +9 -6
  464. package/src/renderers/webgl/WebGLShadowMap.js +13 -2
  465. package/src/renderers/webgl/WebGLState.js +17 -16
  466. package/src/renderers/webgl/WebGLTextures.js +38 -21
  467. package/src/renderers/webgl/WebGLUniformsGroups.js +5 -3
  468. package/src/renderers/webgl/WebGLUtils.js +3 -2
  469. package/src/renderers/webgl-fallback/WebGLBackend.js +245 -182
  470. package/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js +184 -30
  471. package/src/renderers/webgl-fallback/utils/WebGLAttributeUtils.js +4 -0
  472. package/src/renderers/webgl-fallback/utils/WebGLConstants.js +2 -3
  473. package/src/renderers/webgl-fallback/utils/WebGLState.js +9 -8
  474. package/src/renderers/webgl-fallback/utils/WebGLTextureUtils.js +171 -19
  475. package/src/renderers/webgl-fallback/utils/WebGLTimestampQueryPool.js +51 -22
  476. package/src/renderers/webgl-fallback/utils/WebGLUtils.js +3 -2
  477. package/src/renderers/webgpu/WebGPUBackend.js +205 -128
  478. package/src/renderers/webgpu/WebGPURenderer.Nodes.js +2 -1
  479. package/src/renderers/webgpu/WebGPURenderer.js +3 -2
  480. package/src/renderers/webgpu/nodes/WGSLNodeBuilder.js +198 -121
  481. package/src/renderers/webgpu/utils/WebGPUAttributeUtils.js +8 -1
  482. package/src/renderers/webgpu/utils/WebGPUBindingUtils.js +49 -33
  483. package/src/renderers/webgpu/utils/WebGPUConstants.js +14 -3
  484. package/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +56 -37
  485. package/src/renderers/webgpu/utils/WebGPUTexturePassUtils.js +6 -8
  486. package/src/renderers/webgpu/utils/WebGPUTextureUtils.js +266 -158
  487. package/src/renderers/webgpu/utils/WebGPUTimestampQueryPool.js +32 -9
  488. package/src/renderers/webgpu/utils/WebGPUUtils.js +24 -19
  489. package/src/renderers/webxr/WebXRDepthSensing.js +6 -10
  490. package/src/renderers/webxr/WebXRManager.js +89 -13
  491. package/src/textures/ExternalTexture.js +56 -0
  492. package/src/textures/FramebufferTexture.js +2 -2
  493. package/src/textures/Source.js +14 -3
  494. package/src/textures/Texture.js +3 -2
  495. package/src/textures/VideoTexture.js +29 -2
  496. package/src/utils.js +67 -3
  497. package/examples/jsm/loaders/RGBMLoader.js +0 -1148
  498. package/examples/jsm/tsl/display/TRAAPassNode.js +0 -452
  499. package/src/nodes/utils/EquirectUVNode.js +0 -65
  500. package/src/nodes/utils/MatcapUVNode.js +0 -49
  501. package/src/nodes/utils/TriplanarTexturesNode.js +0 -148
@@ -7,8 +7,10 @@ import { TSL } from 'three/webgpu';
7
7
 
8
8
  const BRDF_GGX = TSL.BRDF_GGX;
9
9
  const BRDF_Lambert = TSL.BRDF_Lambert;
10
+ const BasicPointShadowFilter = TSL.BasicPointShadowFilter;
10
11
  const BasicShadowFilter = TSL.BasicShadowFilter;
11
12
  const Break = TSL.Break;
13
+ const Const = TSL.Const;
12
14
  const Continue = TSL.Continue;
13
15
  const DFGApprox = TSL.DFGApprox;
14
16
  const D_GGX = TSL.D_GGX;
@@ -18,27 +20,34 @@ const F_Schlick = TSL.F_Schlick;
18
20
  const Fn = TSL.Fn;
19
21
  const INFINITY = TSL.INFINITY;
20
22
  const If = TSL.If;
21
- const Switch = TSL.Switch;
22
23
  const Loop = TSL.Loop;
24
+ const NodeAccess = TSL.NodeAccess;
23
25
  const NodeShaderStage = TSL.NodeShaderStage;
24
26
  const NodeType = TSL.NodeType;
25
27
  const NodeUpdateType = TSL.NodeUpdateType;
26
- const NodeAccess = TSL.NodeAccess;
27
28
  const PCFShadowFilter = TSL.PCFShadowFilter;
28
29
  const PCFSoftShadowFilter = TSL.PCFSoftShadowFilter;
29
30
  const PI = TSL.PI;
30
31
  const PI2 = TSL.PI2;
32
+ const TWO_PI = TSL.TWO_PI;
33
+ const HALF_PI = TSL.HALF_PI;
34
+ const PointShadowFilter = TSL.PointShadowFilter;
31
35
  const Return = TSL.Return;
32
36
  const Schlick_to_F0 = TSL.Schlick_to_F0;
33
37
  const ScriptableNodeResources = TSL.ScriptableNodeResources;
34
38
  const ShaderNode = TSL.ShaderNode;
39
+ const Stack = TSL.Stack;
40
+ const Switch = TSL.Switch;
35
41
  const TBNViewMatrix = TSL.TBNViewMatrix;
36
42
  const VSMShadowFilter = TSL.VSMShadowFilter;
37
43
  const V_GGX_SmithCorrelated = TSL.V_GGX_SmithCorrelated;
44
+ const Var = TSL.Var;
45
+ const VarIntent = TSL.VarIntent;
38
46
  const abs = TSL.abs;
39
47
  const acesFilmicToneMapping = TSL.acesFilmicToneMapping;
40
48
  const acos = TSL.acos;
41
49
  const add = TSL.add;
50
+ const addMethodChaining = TSL.addMethodChaining;
42
51
  const addNodeElement = TSL.addNodeElement;
43
52
  const agxToneMapping = TSL.agxToneMapping;
44
53
  const all = TSL.all;
@@ -58,13 +67,13 @@ const atan2 = TSL.atan2;
58
67
  const atomicAdd = TSL.atomicAdd;
59
68
  const atomicAnd = TSL.atomicAnd;
60
69
  const atomicFunc = TSL.atomicFunc;
70
+ const atomicLoad = TSL.atomicLoad;
61
71
  const atomicMax = TSL.atomicMax;
62
72
  const atomicMin = TSL.atomicMin;
63
73
  const atomicOr = TSL.atomicOr;
64
74
  const atomicStore = TSL.atomicStore;
65
75
  const atomicSub = TSL.atomicSub;
66
76
  const atomicXor = TSL.atomicXor;
67
- const atomicLoad = TSL.atomicLoad;
68
77
  const attenuationColor = TSL.attenuationColor;
69
78
  const attenuationDistance = TSL.attenuationDistance;
70
79
  const attribute = TSL.attribute;
@@ -73,6 +82,7 @@ const backgroundBlurriness = TSL.backgroundBlurriness;
73
82
  const backgroundIntensity = TSL.backgroundIntensity;
74
83
  const backgroundRotation = TSL.backgroundRotation;
75
84
  const batch = TSL.batch;
85
+ const bentNormalView = TSL.bentNormalView;
76
86
  const billboarding = TSL.billboarding;
77
87
  const bitAnd = TSL.bitAnd;
78
88
  const bitNot = TSL.bitNot;
@@ -94,6 +104,7 @@ const buffer = TSL.buffer;
94
104
  const bufferAttribute = TSL.bufferAttribute;
95
105
  const bumpMap = TSL.bumpMap;
96
106
  const burn = TSL.burn;
107
+ const builtin = TSL.builtin;
97
108
  const bvec2 = TSL.bvec2;
98
109
  const bvec3 = TSL.bvec3;
99
110
  const bvec4 = TSL.bvec4;
@@ -108,6 +119,7 @@ const cameraPosition = TSL.cameraPosition;
108
119
  const cameraProjectionMatrix = TSL.cameraProjectionMatrix;
109
120
  const cameraProjectionMatrixInverse = TSL.cameraProjectionMatrixInverse;
110
121
  const cameraViewMatrix = TSL.cameraViewMatrix;
122
+ const cameraViewport = TSL.cameraViewport;
111
123
  const cameraWorldMatrix = TSL.cameraWorldMatrix;
112
124
  const cbrt = TSL.cbrt;
113
125
  const cdl = TSL.cdl;
@@ -116,15 +128,15 @@ const checker = TSL.checker;
116
128
  const cineonToneMapping = TSL.cineonToneMapping;
117
129
  const clamp = TSL.clamp;
118
130
  const clearcoat = TSL.clearcoat;
131
+ const clearcoatNormalView = TSL.clearcoatNormalView;
119
132
  const clearcoatRoughness = TSL.clearcoatRoughness;
120
133
  const code = TSL.code;
121
134
  const color = TSL.color;
122
135
  const colorSpaceToWorking = TSL.colorSpaceToWorking;
123
136
  const colorToDirection = TSL.colorToDirection;
124
137
  const compute = TSL.compute;
138
+ const computeKernel = TSL.computeKernel;
125
139
  const computeSkinning = TSL.computeSkinning;
126
- const cond = TSL.cond;
127
- const Const = TSL.Const;
128
140
  const context = TSL.context;
129
141
  const convert = TSL.convert;
130
142
  const convertColorSpace = TSL.convertColorSpace;
@@ -132,6 +144,8 @@ const convertToTexture = TSL.convertToTexture;
132
144
  const cos = TSL.cos;
133
145
  const cross = TSL.cross;
134
146
  const cubeTexture = TSL.cubeTexture;
147
+ const cubeTextureBase = TSL.cubeTextureBase;
148
+ const cubeToUV = TSL.cubeToUV;
135
149
  const dFdx = TSL.dFdx;
136
150
  const dFdy = TSL.dFdy;
137
151
  const dashSize = TSL.dashSize;
@@ -147,10 +161,12 @@ const densityFog = TSL.densityFog;
147
161
  const densityFogFactor = TSL.densityFogFactor;
148
162
  const depth = TSL.depth;
149
163
  const depthPass = TSL.depthPass;
164
+ const determinant = TSL.determinant;
150
165
  const difference = TSL.difference;
151
166
  const diffuseColor = TSL.diffuseColor;
152
167
  const directPointLight = TSL.directPointLight;
153
168
  const directionToColor = TSL.directionToColor;
169
+ const directionToFaceDirection = TSL.directionToFaceDirection;
154
170
  const dispersion = TSL.dispersion;
155
171
  const distance = TSL.distance;
156
172
  const div = TSL.div;
@@ -170,6 +186,8 @@ const faceDirection = TSL.faceDirection;
170
186
  const faceForward = TSL.faceForward;
171
187
  const faceforward = TSL.faceforward;
172
188
  const float = TSL.float;
189
+ const floatBitsToInt = TSL.floatBitsToInt;
190
+ const floatBitsToUint = TSL.floatBitsToUint;
173
191
  const floor = TSL.floor;
174
192
  const fog = TSL.fog;
175
193
  const fract = TSL.fract;
@@ -185,14 +203,16 @@ const getDirection = TSL.getDirection;
185
203
  const getDistanceAttenuation = TSL.getDistanceAttenuation;
186
204
  const getGeometryRoughness = TSL.getGeometryRoughness;
187
205
  const getNormalFromDepth = TSL.getNormalFromDepth;
206
+ const interleavedGradientNoise = TSL.interleavedGradientNoise;
188
207
  const getParallaxCorrectNormal = TSL.getParallaxCorrectNormal;
189
208
  const getRoughness = TSL.getRoughness;
190
209
  const getScreenPosition = TSL.getScreenPosition;
191
210
  const getShIrradianceAt = TSL.getShIrradianceAt;
192
- const getTextureIndex = TSL.getTextureIndex;
193
- const getViewPosition = TSL.getViewPosition;
194
211
  const getShadowMaterial = TSL.getShadowMaterial;
195
212
  const getShadowRenderObjectFunction = TSL.getShadowRenderObjectFunction;
213
+ const getTextureIndex = TSL.getTextureIndex;
214
+ const getViewPosition = TSL.getViewPosition;
215
+ const globalId = TSL.globalId;
196
216
  const glsl = TSL.glsl;
197
217
  const glslFn = TSL.glslFn;
198
218
  const grayscale = TSL.grayscale;
@@ -211,6 +231,8 @@ const instancedBufferAttribute = TSL.instancedBufferAttribute;
211
231
  const instancedDynamicBufferAttribute = TSL.instancedDynamicBufferAttribute;
212
232
  const instancedMesh = TSL.instancedMesh;
213
233
  const int = TSL.int;
234
+ const intBitsToFloat = TSL.intBitsToFloat;
235
+ const inverse = TSL.inverse;
214
236
  const inverseSqrt = TSL.inverseSqrt;
215
237
  const inversesqrt = TSL.inversesqrt;
216
238
  const invocationLocalIndex = TSL.invocationLocalIndex;
@@ -229,6 +251,7 @@ const lengthSq = TSL.lengthSq;
229
251
  const lessThan = TSL.lessThan;
230
252
  const lessThanEqual = TSL.lessThanEqual;
231
253
  const lightPosition = TSL.lightPosition;
254
+ const lightProjectionUV = TSL.lightProjectionUV;
232
255
  const lightShadowMatrix = TSL.lightShadowMatrix;
233
256
  const lightTargetDirection = TSL.lightTargetDirection;
234
257
  const lightTargetPosition = TSL.lightTargetPosition;
@@ -238,13 +261,10 @@ const lights = TSL.lights;
238
261
  const linearDepth = TSL.linearDepth;
239
262
  const linearToneMapping = TSL.linearToneMapping;
240
263
  const localId = TSL.localId;
241
- const globalId = TSL.globalId;
242
264
  const log = TSL.log;
243
265
  const log2 = TSL.log2;
244
266
  const logarithmicDepthToViewZ = TSL.logarithmicDepthToViewZ;
245
- const loop = TSL.loop;
246
267
  const luminance = TSL.luminance;
247
- const mediumpModelViewMatrix = TSL.mediumpModelViewMatrix;
248
268
  const mat2 = TSL.mat2;
249
269
  const mat3 = TSL.mat3;
250
270
  const mat4 = TSL.mat4;
@@ -261,6 +281,8 @@ const materialClearcoatRoughness = TSL.materialClearcoatRoughness;
261
281
  const materialColor = TSL.materialColor;
262
282
  const materialDispersion = TSL.materialDispersion;
263
283
  const materialEmissive = TSL.materialEmissive;
284
+ const materialEnvIntensity = TSL.materialEnvIntensity;
285
+ const materialEnvRotation = TSL.materialEnvRotation;
264
286
  const materialIOR = TSL.materialIOR;
265
287
  const materialIridescence = TSL.materialIridescence;
266
288
  const materialIridescenceIOR = TSL.materialIridescenceIOR;
@@ -291,6 +313,7 @@ const materialThickness = TSL.materialThickness;
291
313
  const materialTransmission = TSL.materialTransmission;
292
314
  const max = TSL.max;
293
315
  const maxMipLevel = TSL.maxMipLevel;
316
+ const mediumpModelViewMatrix = TSL.mediumpModelViewMatrix;
294
317
  const metalness = TSL.metalness;
295
318
  const min = TSL.min;
296
319
  const mix = TSL.mix;
@@ -311,41 +334,65 @@ const morphReference = TSL.morphReference;
311
334
  const mrt = TSL.mrt;
312
335
  const mul = TSL.mul;
313
336
  const mx_aastep = TSL.mx_aastep;
337
+ const mx_add = TSL.mx_add;
338
+ const mx_atan2 = TSL.mx_atan2;
314
339
  const mx_cell_noise_float = TSL.mx_cell_noise_float;
315
340
  const mx_contrast = TSL.mx_contrast;
341
+ const mx_divide = TSL.mx_divide;
316
342
  const mx_fractal_noise_float = TSL.mx_fractal_noise_float;
317
343
  const mx_fractal_noise_vec2 = TSL.mx_fractal_noise_vec2;
318
344
  const mx_fractal_noise_vec3 = TSL.mx_fractal_noise_vec3;
319
345
  const mx_fractal_noise_vec4 = TSL.mx_fractal_noise_vec4;
346
+ const mx_frame = TSL.mx_frame;
347
+ const mx_heighttonormal = TSL.mx_heighttonormal;
320
348
  const mx_hsvtorgb = TSL.mx_hsvtorgb;
349
+ const mx_ifequal = TSL.mx_ifequal;
350
+ const mx_ifgreater = TSL.mx_ifgreater;
351
+ const mx_ifgreatereq = TSL.mx_ifgreatereq;
352
+ const mx_invert = TSL.mx_invert;
353
+ const mx_modulo = TSL.mx_modulo;
354
+ const mx_multiply = TSL.mx_multiply;
321
355
  const mx_noise_float = TSL.mx_noise_float;
322
356
  const mx_noise_vec3 = TSL.mx_noise_vec3;
323
357
  const mx_noise_vec4 = TSL.mx_noise_vec4;
358
+ const mx_place2d = TSL.mx_place2d;
359
+ const mx_power = TSL.mx_power;
360
+ const mx_ramp4 = TSL.mx_ramp4;
324
361
  const mx_ramplr = TSL.mx_ramplr;
325
362
  const mx_ramptb = TSL.mx_ramptb;
326
363
  const mx_rgbtohsv = TSL.mx_rgbtohsv;
364
+ const mx_rotate2d = TSL.mx_rotate2d;
365
+ const mx_rotate3d = TSL.mx_rotate3d;
327
366
  const mx_safepower = TSL.mx_safepower;
367
+ const mx_separate = TSL.mx_separate;
328
368
  const mx_splitlr = TSL.mx_splitlr;
329
369
  const mx_splittb = TSL.mx_splittb;
330
370
  const mx_srgb_texture_to_lin_rec709 = TSL.mx_srgb_texture_to_lin_rec709;
371
+ const mx_subtract = TSL.mx_subtract;
372
+ const mx_timer = TSL.mx_timer;
331
373
  const mx_transform_uv = TSL.mx_transform_uv;
374
+ const mx_unifiednoise2d = TSL.mx_unifiednoise2d;
375
+ const mx_unifiednoise3d = TSL.mx_unifiednoise3d;
332
376
  const mx_worley_noise_float = TSL.mx_worley_noise_float;
333
377
  const mx_worley_noise_vec2 = TSL.mx_worley_noise_vec2;
334
378
  const mx_worley_noise_vec3 = TSL.mx_worley_noise_vec3;
335
- const namespace = TSL.namespace;
336
379
  const negate = TSL.negate;
337
380
  const neutralToneMapping = TSL.neutralToneMapping;
338
381
  const nodeArray = TSL.nodeArray;
339
382
  const nodeImmutable = TSL.nodeImmutable;
340
383
  const nodeObject = TSL.nodeObject;
384
+ const nodeObjectIntent = TSL.nodeObjectIntent;
341
385
  const nodeObjects = TSL.nodeObjects;
342
386
  const nodeProxy = TSL.nodeProxy;
387
+ const nodeProxyIntent = TSL.nodeProxyIntent;
343
388
  const normalFlat = TSL.normalFlat;
344
389
  const normalGeometry = TSL.normalGeometry;
345
390
  const normalLocal = TSL.normalLocal;
346
391
  const normalMap = TSL.normalMap;
347
392
  const normalView = TSL.normalView;
393
+ const normalViewGeometry = TSL.normalViewGeometry;
348
394
  const normalWorld = TSL.normalWorld;
395
+ const normalWorldGeometry = TSL.normalWorldGeometry;
349
396
  const normalize = TSL.normalize;
350
397
  const not = TSL.not;
351
398
  const notEqual = TSL.notEqual;
@@ -357,6 +404,10 @@ const objectRadius = TSL.objectRadius;
357
404
  const objectScale = TSL.objectScale;
358
405
  const objectViewPosition = TSL.objectViewPosition;
359
406
  const objectWorldMatrix = TSL.objectWorldMatrix;
407
+ const OnBeforeObjectUpdate = TSL.OnBeforeObjectUpdate;
408
+ const OnBeforeMaterialUpdate = TSL.OnBeforeMaterialUpdate;
409
+ const OnObjectUpdate = TSL.OnObjectUpdate;
410
+ const OnMaterialUpdate = TSL.OnMaterialUpdate;
360
411
  const oneMinus = TSL.oneMinus;
361
412
  const or = TSL.or;
362
413
  const orthographicDepthToViewZ = TSL.orthographicDepthToViewZ;
@@ -377,6 +428,7 @@ const passTexture = TSL.passTexture;
377
428
  const pcurve = TSL.pcurve;
378
429
  const perspectiveDepthToViewZ = TSL.perspectiveDepthToViewZ;
379
430
  const pmremTexture = TSL.pmremTexture;
431
+ const pointShadow = TSL.pointShadow;
380
432
  const pointUV = TSL.pointUV;
381
433
  const pointWidth = TSL.pointWidth;
382
434
  const positionGeometry = TSL.positionGeometry;
@@ -391,7 +443,7 @@ const pow = TSL.pow;
391
443
  const pow2 = TSL.pow2;
392
444
  const pow3 = TSL.pow3;
393
445
  const pow4 = TSL.pow4;
394
- const premult = TSL.premult;
446
+ const premultiplyAlpha = TSL.premultiplyAlpha;
395
447
  const property = TSL.property;
396
448
  const radians = TSL.radians;
397
449
  const rand = TSL.rand;
@@ -399,7 +451,6 @@ const range = TSL.range;
399
451
  const rangeFog = TSL.rangeFog;
400
452
  const rangeFogFactor = TSL.rangeFogFactor;
401
453
  const reciprocal = TSL.reciprocal;
402
- const lightProjectionUV = TSL.lightProjectionUV;
403
454
  const reference = TSL.reference;
404
455
  const referenceBuffer = TSL.referenceBuffer;
405
456
  const reflect = TSL.reflect;
@@ -410,7 +461,6 @@ const refract = TSL.refract;
410
461
  const refractVector = TSL.refractVector;
411
462
  const refractView = TSL.refractView;
412
463
  const reinhardToneMapping = TSL.reinhardToneMapping;
413
- const remainder = TSL.remainder;
414
464
  const remap = TSL.remap;
415
465
  const remapClamp = TSL.remapClamp;
416
466
  const renderGroup = TSL.renderGroup;
@@ -423,24 +473,26 @@ const round = TSL.round;
423
473
  const rtt = TSL.rtt;
424
474
  const sRGBTransferEOTF = TSL.sRGBTransferEOTF;
425
475
  const sRGBTransferOETF = TSL.sRGBTransferOETF;
476
+ const sample = TSL.sample;
426
477
  const sampler = TSL.sampler;
427
478
  const samplerComparison = TSL.samplerComparison;
428
479
  const saturate = TSL.saturate;
429
480
  const saturation = TSL.saturation;
430
481
  const screen = TSL.screen;
431
482
  const screenCoordinate = TSL.screenCoordinate;
483
+ const screenDPR = TSL.screenDPR;
432
484
  const screenSize = TSL.screenSize;
433
485
  const screenUV = TSL.screenUV;
434
486
  const scriptable = TSL.scriptable;
435
487
  const scriptableValue = TSL.scriptableValue;
436
488
  const select = TSL.select;
437
489
  const setCurrentStack = TSL.setCurrentStack;
490
+ const setName = TSL.setName;
438
491
  const shaderStages = TSL.shaderStages;
439
492
  const shadow = TSL.shadow;
440
- const pointShadow = TSL.pointShadow;
441
493
  const shadowPositionWorld = TSL.shadowPositionWorld;
442
- const sharedUniformGroup = TSL.sharedUniformGroup;
443
494
  const shapeCircle = TSL.shapeCircle;
495
+ const sharedUniformGroup = TSL.sharedUniformGroup;
444
496
  const sheen = TSL.sheen;
445
497
  const sheenRoughness = TSL.sheenRoughness;
446
498
  const shiftLeft = TSL.shiftLeft;
@@ -460,6 +512,7 @@ const spritesheetUV = TSL.spritesheetUV;
460
512
  const sqrt = TSL.sqrt;
461
513
  const stack = TSL.stack;
462
514
  const step = TSL.step;
515
+ const stepElement = TSL.stepElement;
463
516
  const storage = TSL.storage;
464
517
  const storageBarrier = TSL.storageBarrier;
465
518
  const storageObject = TSL.storageObject;
@@ -467,62 +520,76 @@ const storageTexture = TSL.storageTexture;
467
520
  const string = TSL.string;
468
521
  const struct = TSL.struct;
469
522
  const sub = TSL.sub;
523
+ const subgroupAdd = TSL.subgroupAdd;
524
+ const subgroupAll = TSL.subgroupAll;
525
+ const subgroupAnd = TSL.subgroupAnd;
526
+ const subgroupAny = TSL.subgroupAny;
527
+ const subgroupBallot = TSL.subgroupBallot;
528
+ const subgroupBroadcast = TSL.subgroupBroadcast;
529
+ const subgroupBroadcastFirst = TSL.subgroupBroadcastFirst;
530
+ const subBuild = TSL.subBuild;
531
+ const subgroupElect = TSL.subgroupElect;
532
+ const subgroupExclusiveAdd = TSL.subgroupExclusiveAdd;
533
+ const subgroupExclusiveMul = TSL.subgroupExclusiveMul;
534
+ const subgroupInclusiveAdd = TSL.subgroupInclusiveAdd;
535
+ const subgroupInclusiveMul = TSL.subgroupInclusiveMul;
470
536
  const subgroupIndex = TSL.subgroupIndex;
537
+ const subgroupMax = TSL.subgroupMax;
538
+ const subgroupMin = TSL.subgroupMin;
539
+ const subgroupMul = TSL.subgroupMul;
540
+ const subgroupOr = TSL.subgroupOr;
541
+ const subgroupShuffle = TSL.subgroupShuffle;
542
+ const subgroupShuffleDown = TSL.subgroupShuffleDown;
543
+ const subgroupShuffleUp = TSL.subgroupShuffleUp;
544
+ const subgroupShuffleXor = TSL.subgroupShuffleXor;
471
545
  const subgroupSize = TSL.subgroupSize;
546
+ const subgroupXor = TSL.subgroupXor;
472
547
  const tan = TSL.tan;
473
548
  const tangentGeometry = TSL.tangentGeometry;
474
549
  const tangentLocal = TSL.tangentLocal;
475
550
  const tangentView = TSL.tangentView;
476
551
  const tangentWorld = TSL.tangentWorld;
477
- const temp = TSL.temp;
478
552
  const texture = TSL.texture;
479
553
  const texture3D = TSL.texture3D;
480
554
  const textureBarrier = TSL.textureBarrier;
481
555
  const textureBicubic = TSL.textureBicubic;
556
+ const textureBicubicLevel = TSL.textureBicubicLevel;
482
557
  const textureCubeUV = TSL.textureCubeUV;
483
558
  const textureLoad = TSL.textureLoad;
484
559
  const textureSize = TSL.textureSize;
560
+ const textureLevel = TSL.textureLevel;
485
561
  const textureStore = TSL.textureStore;
486
562
  const thickness = TSL.thickness;
487
563
  const time = TSL.time;
488
- const timerDelta = TSL.timerDelta;
489
- const timerGlobal = TSL.timerGlobal;
490
- const timerLocal = TSL.timerLocal;
491
564
  const toneMapping = TSL.toneMapping;
492
565
  const toneMappingExposure = TSL.toneMappingExposure;
493
566
  const toonOutlinePass = TSL.toonOutlinePass;
494
567
  const transformDirection = TSL.transformDirection;
495
568
  const transformNormal = TSL.transformNormal;
496
569
  const transformNormalToView = TSL.transformNormalToView;
497
- const transformedBentNormalView = TSL.transformedBentNormalView;
498
- const transformedBitangentView = TSL.transformedBitangentView;
499
- const transformedBitangentWorld = TSL.transformedBitangentWorld;
500
570
  const transformedClearcoatNormalView = TSL.transformedClearcoatNormalView;
501
571
  const transformedNormalView = TSL.transformedNormalView;
502
572
  const transformedNormalWorld = TSL.transformedNormalWorld;
503
- const transformedTangentView = TSL.transformedTangentView;
504
- const transformedTangentWorld = TSL.transformedTangentWorld;
505
573
  const transmission = TSL.transmission;
506
574
  const transpose = TSL.transpose;
507
575
  const triNoise3D = TSL.triNoise3D;
508
576
  const triplanarTexture = TSL.triplanarTexture;
509
577
  const triplanarTextures = TSL.triplanarTextures;
510
578
  const trunc = TSL.trunc;
511
- const tslFn = TSL.tslFn;
512
579
  const uint = TSL.uint;
580
+ const uintBitsToFloat = TSL.uintBitsToFloat;
513
581
  const uniform = TSL.uniform;
514
- const uniformCubeTexture = TSL.uniformCubeTexture;
515
582
  const uniformArray = TSL.uniformArray;
583
+ const uniformCubeTexture = TSL.uniformCubeTexture;
516
584
  const uniformGroup = TSL.uniformGroup;
585
+ const uniformFlow = TSL.uniformFlow;
517
586
  const uniformTexture = TSL.uniformTexture;
518
- const uniforms = TSL.uniforms;
519
- const unpremult = TSL.unpremult;
587
+ const unpremultiplyAlpha = TSL.unpremultiplyAlpha;
520
588
  const userData = TSL.userData;
521
589
  const uv = TSL.uv;
522
590
  const uvec2 = TSL.uvec2;
523
591
  const uvec3 = TSL.uvec3;
524
592
  const uvec4 = TSL.uvec4;
525
- const Var = TSL.Var;
526
593
  const varying = TSL.varying;
527
594
  const varyingProperty = TSL.varyingProperty;
528
595
  const vec2 = TSL.vec2;
@@ -532,12 +599,12 @@ const vectorComponents = TSL.vectorComponents;
532
599
  const velocity = TSL.velocity;
533
600
  const vertexColor = TSL.vertexColor;
534
601
  const vertexIndex = TSL.vertexIndex;
602
+ const vertexStage = TSL.vertexStage;
535
603
  const vibrance = TSL.vibrance;
536
604
  const viewZToLogarithmicDepth = TSL.viewZToLogarithmicDepth;
537
605
  const viewZToOrthographicDepth = TSL.viewZToOrthographicDepth;
538
606
  const viewZToPerspectiveDepth = TSL.viewZToPerspectiveDepth;
539
607
  const viewport = TSL.viewport;
540
- const viewportBottomLeft = TSL.viewportBottomLeft;
541
608
  const viewportCoordinate = TSL.viewportCoordinate;
542
609
  const viewportDepthTexture = TSL.viewportDepthTexture;
543
610
  const viewportLinearDepth = TSL.viewportLinearDepth;
@@ -547,7 +614,6 @@ const viewportSafeUV = TSL.viewportSafeUV;
547
614
  const viewportSharedTexture = TSL.viewportSharedTexture;
548
615
  const viewportSize = TSL.viewportSize;
549
616
  const viewportTexture = TSL.viewportTexture;
550
- const viewportTopLeft = TSL.viewportTopLeft;
551
617
  const viewportUV = TSL.viewportUV;
552
618
  const wgsl = TSL.wgsl;
553
619
  const wgslFn = TSL.wgslFn;
@@ -557,4 +623,18 @@ const workgroupId = TSL.workgroupId;
557
623
  const workingToColorSpace = TSL.workingToColorSpace;
558
624
  const xor = TSL.xor;
559
625
 
560
- 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, Switch, 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, computeSkinning, cond, context, convert, convertColorSpace, convertToTexture, cos, cross, cubeTexture, dFdx, dFdy, dashSize, debug, decrement, decrementBefore, 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, getShadowMaterial, getShadowRenderObjectFunction, getTextureIndex, getViewPosition, globalId, glsl, glslFn, grayscale, greaterThan, greaterThanEqual, hash, highpModelNormalViewMatrix, highpModelViewMatrix, hue, increment, incrementBefore, 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, lightProjectionUV, lightShadowMatrix, 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, modelRadius, 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, namespace, negate, neutralToneMapping, nodeArray, nodeImmutable, nodeObject, nodeObjects, nodeProxy, normalFlat, normalGeometry, normalLocal, normalMap, normalView, normalWorld, normalize, not, notEqual, numWorkgroups, objectDirection, objectGroup, objectPosition, objectRadius, objectScale, objectViewPosition, objectWorldMatrix, oneMinus, or, orthographicDepthToViewZ, oscSawtooth, oscSine, oscSquare, oscTriangle, output, outputStruct, overlay, overloadingFn, parabola, parallaxDirection, parallaxUV, parameter, pass, passTexture, pcurve, perspectiveDepthToViewZ, pmremTexture, pointShadow, pointUV, pointWidth, positionGeometry, positionLocal, positionPrevious, positionView, positionViewDirection, positionWorld, positionWorldDirection, posterize, pow, pow2, pow3, pow4, premult, 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, samplerComparison, saturate, saturation, screen, screenCoordinate, screenSize, screenUV, scriptable, scriptableValue, select, setCurrentStack, shaderStages, shadow, shadowPositionWorld, shapeCircle, sharedUniformGroup, sheen, sheenRoughness, shiftLeft, shiftRight, shininess, sign, sin, sinc, skinning, 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, time, timerDelta, timerGlobal, timerLocal, toneMapping, toneMappingExposure, toonOutlinePass, transformDirection, transformNormal, transformNormalToView, transformedBentNormalView, transformedBitangentView, transformedBitangentWorld, transformedClearcoatNormalView, transformedNormalView, transformedNormalWorld, transformedTangentView, transformedTangentWorld, transmission, transpose, triNoise3D, triplanarTexture, triplanarTextures, trunc, tslFn, uint, uniform, uniformArray, uniformCubeTexture, uniformGroup, uniformTexture, uniforms, unpremult, 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 };
626
+ /*
627
+ // Use this code to generate the export statements dynamically
628
+
629
+ let code = '';
630
+
631
+ for ( const key of Object.keys( THREE.TSL ) ) {
632
+
633
+ code += `export const ${ key } = TSL.${ key };\n`;
634
+
635
+ }
636
+
637
+ log( code );
638
+ //*/
639
+
640
+ export { BRDF_GGX, BRDF_Lambert, BasicPointShadowFilter, BasicShadowFilter, Break, Const, Continue, DFGApprox, 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, ScriptableNodeResources, 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, atan2, 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, bumpMap, burn, 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, code, color, colorSpaceToWorking, colorToDirection, compute, computeKernel, computeSkinning, context, convert, convertColorSpace, convertToTexture, cos, cross, cubeTexture, cubeTextureBase, cubeToUV, dFdx, dFdy, dashSize, debug, decrement, decrementBefore, defaultBuildStages, defaultShaderStages, defined, degrees, deltaTime, densityFog, densityFogFactor, depth, depthPass, determinant, difference, diffuseColor, directPointLight, directionToColor, directionToFaceDirection, dispersion, distance, div, dodge, dot, drawIndex, dynamicBufferAttribute, element, emissive, equal, equals, equirectUV, exp, exp2, 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, overlay, overloadingFn, 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, rotate, rotateUV, roughness, round, rtt, sRGBTransferEOTF, sRGBTransferOETF, sample, sampler, samplerComparison, saturate, saturation, screen, screenCoordinate, screenDPR, screenSize, screenUV, scriptable, scriptableValue, 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, storageObject, 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, unpremultiplyAlpha, userData, uv, uvec2, uvec3, uvec4, varying, varyingProperty, vec2, vec3, vec4, vectorComponents, velocity, vertexColor, vertexIndex, vertexStage, vibrance, viewZToLogarithmicDepth, viewZToOrthographicDepth, viewZToPerspectiveDepth, viewport, viewportCoordinate, viewportDepthTexture, viewportLinearDepth, viewportMipTexture, viewportResolution, viewportSafeUV, viewportSharedTexture, viewportSize, viewportTexture, viewportUV, wgsl, wgslFn, workgroupArray, workgroupBarrier, workgroupId, workingToColorSpace, xor };
@@ -3,4 +3,4 @@
3
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.Switch,h=e.Loop,f=e.NodeShaderStage,x=e.NodeType,b=e.NodeUpdateType,w=e.NodeAccess,v=e.PCFShadowFilter,S=e.PCFSoftShadowFilter,T=e.PI,_=e.PI2,V=e.Return,y=e.Schlick_to_F0,M=e.ScriptableNodeResources,D=e.ShaderNode,F=e.TBNViewMatrix,C=e.VSMShadowFilter,I=e.V_GGX_SmithCorrelated,P=e.abs,R=e.acesFilmicToneMapping,N=e.acos,B=e.add,L=e.addNodeElement,k=e.agxToneMapping,A=e.all,G=e.alphaT,O=e.and,W=e.anisotropy,j=e.anisotropyB,U=e.anisotropyT,z=e.any,q=e.append,E=e.array,Z=e.arrayBuffer,X=e.asin,Y=e.assign,H=e.atan,J=e.atan2,K=e.atomicAdd,Q=e.atomicAnd,$=e.atomicFunc,ee=e.atomicMax,te=e.atomicMin,re=e.atomicOr,ae=e.atomicStore,oe=e.atomicSub,ie=e.atomicXor,ne=e.atomicLoad,se=e.attenuationColor,le=e.attenuationDistance,ce=e.attribute,me=e.attributeArray,pe=e.backgroundBlurriness,de=e.backgroundIntensity,ue=e.backgroundRotation,ge=e.batch,he=e.billboarding,fe=e.bitAnd,xe=e.bitNot,be=e.bitOr,we=e.bitXor,ve=e.bitangentGeometry,Se=e.bitangentLocal,Te=e.bitangentView,_e=e.bitangentWorld,Ve=e.bitcast,ye=e.blendBurn,Me=e.blendColor,De=e.blendDodge,Fe=e.blendOverlay,Ce=e.blendScreen,Ie=e.blur,Pe=e.bool,Re=e.buffer,Ne=e.bufferAttribute,Be=e.bumpMap,Le=e.burn,ke=e.bvec2,Ae=e.bvec3,Ge=e.bvec4,Oe=e.bypass,We=e.cache,je=e.call,Ue=e.cameraFar,ze=e.cameraIndex,qe=e.cameraNear,Ee=e.cameraNormalMatrix,Ze=e.cameraPosition,Xe=e.cameraProjectionMatrix,Ye=e.cameraProjectionMatrixInverse,He=e.cameraViewMatrix,Je=e.cameraWorldMatrix,Ke=e.cbrt,Qe=e.cdl,$e=e.ceil,et=e.checker,tt=e.cineonToneMapping,rt=e.clamp,at=e.clearcoat,ot=e.clearcoatRoughness,it=e.code,nt=e.color,st=e.colorSpaceToWorking,lt=e.colorToDirection,ct=e.compute,mt=e.computeSkinning,pt=e.cond,dt=e.Const,ut=e.context,gt=e.convert,ht=e.convertColorSpace,ft=e.convertToTexture,xt=e.cos,bt=e.cross,wt=e.cubeTexture,vt=e.dFdx,St=e.dFdy,Tt=e.dashSize,_t=e.debug,Vt=e.decrement,yt=e.decrementBefore,Mt=e.defaultBuildStages,Dt=e.defaultShaderStages,Ft=e.defined,Ct=e.degrees,It=e.deltaTime,Pt=e.densityFog,Rt=e.densityFogFactor,Nt=e.depth,Bt=e.depthPass,Lt=e.difference,kt=e.diffuseColor,At=e.directPointLight,Gt=e.directionToColor,Ot=e.dispersion,Wt=e.distance,jt=e.div,Ut=e.dodge,zt=e.dot,qt=e.drawIndex,Et=e.dynamicBufferAttribute,Zt=e.element,Xt=e.emissive,Yt=e.equal,Ht=e.equals,Jt=e.equirectUV,Kt=e.exp,Qt=e.exp2,$t=e.expression,er=e.faceDirection,tr=e.faceForward,rr=e.faceforward,ar=e.float,or=e.floor,ir=e.fog,nr=e.fract,sr=e.frameGroup,lr=e.frameId,cr=e.frontFacing,mr=e.fwidth,pr=e.gain,dr=e.gapSize,ur=e.getConstNodeType,gr=e.getCurrentStack,hr=e.getDirection,fr=e.getDistanceAttenuation,xr=e.getGeometryRoughness,br=e.getNormalFromDepth,wr=e.getParallaxCorrectNormal,vr=e.getRoughness,Sr=e.getScreenPosition,Tr=e.getShIrradianceAt,_r=e.getTextureIndex,Vr=e.getViewPosition,yr=e.getShadowMaterial,Mr=e.getShadowRenderObjectFunction,Dr=e.glsl,Fr=e.glslFn,Cr=e.grayscale,Ir=e.greaterThan,Pr=e.greaterThanEqual,Rr=e.hash,Nr=e.highpModelNormalViewMatrix,Br=e.highpModelViewMatrix,Lr=e.hue,kr=e.increment,Ar=e.incrementBefore,Gr=e.instance,Or=e.instanceIndex,Wr=e.instancedArray,jr=e.instancedBufferAttribute,Ur=e.instancedDynamicBufferAttribute,zr=e.instancedMesh,qr=e.int,Er=e.inverseSqrt,Zr=e.inversesqrt,Xr=e.invocationLocalIndex,Yr=e.invocationSubgroupIndex,Hr=e.ior,Jr=e.iridescence,Kr=e.iridescenceIOR,Qr=e.iridescenceThickness,$r=e.ivec2,ea=e.ivec3,ta=e.ivec4,ra=e.js,aa=e.label,oa=e.length,ia=e.lengthSq,na=e.lessThan,sa=e.lessThanEqual,la=e.lightPosition,ca=e.lightShadowMatrix,ma=e.lightTargetDirection,pa=e.lightTargetPosition,da=e.lightViewPosition,ua=e.lightingContext,ga=e.lights,ha=e.linearDepth,fa=e.linearToneMapping,xa=e.localId,ba=e.globalId,wa=e.log,va=e.log2,Sa=e.logarithmicDepthToViewZ,Ta=e.loop,_a=e.luminance,Va=e.mediumpModelViewMatrix,ya=e.mat2,Ma=e.mat3,Da=e.mat4,Fa=e.matcapUV,Ca=e.materialAO,Ia=e.materialAlphaTest,Pa=e.materialAnisotropy,Ra=e.materialAnisotropyVector,Na=e.materialAttenuationColor,Ba=e.materialAttenuationDistance,La=e.materialClearcoat,ka=e.materialClearcoatNormal,Aa=e.materialClearcoatRoughness,Ga=e.materialColor,Oa=e.materialDispersion,Wa=e.materialEmissive,ja=e.materialIOR,Ua=e.materialIridescence,za=e.materialIridescenceIOR,qa=e.materialIridescenceThickness,Ea=e.materialLightMap,Za=e.materialLineDashOffset,Xa=e.materialLineDashSize,Ya=e.materialLineGapSize,Ha=e.materialLineScale,Ja=e.materialLineWidth,Ka=e.materialMetalness,Qa=e.materialNormal,$a=e.materialOpacity,eo=e.materialPointSize,to=e.materialReference,ro=e.materialReflectivity,ao=e.materialRefractionRatio,oo=e.materialRotation,io=e.materialRoughness,no=e.materialSheen,so=e.materialSheenRoughness,lo=e.materialShininess,co=e.materialSpecular,mo=e.materialSpecularColor,po=e.materialSpecularIntensity,uo=e.materialSpecularStrength,go=e.materialThickness,ho=e.materialTransmission,fo=e.max,xo=e.maxMipLevel,bo=e.metalness,wo=e.min,vo=e.mix,So=e.mixElement,To=e.mod,_o=e.modInt,Vo=e.modelDirection,yo=e.modelNormalMatrix,Mo=e.modelPosition,Do=e.modelRadius,Fo=e.modelScale,Co=e.modelViewMatrix,Io=e.modelViewPosition,Po=e.modelViewProjection,Ro=e.modelWorldMatrix,No=e.modelWorldMatrixInverse,Bo=e.morphReference,Lo=e.mrt,ko=e.mul,Ao=e.mx_aastep,Go=e.mx_cell_noise_float,Oo=e.mx_contrast,Wo=e.mx_fractal_noise_float,jo=e.mx_fractal_noise_vec2,Uo=e.mx_fractal_noise_vec3,zo=e.mx_fractal_noise_vec4,qo=e.mx_hsvtorgb,Eo=e.mx_noise_float,Zo=e.mx_noise_vec3,Xo=e.mx_noise_vec4,Yo=e.mx_ramplr,Ho=e.mx_ramptb,Jo=e.mx_rgbtohsv,Ko=e.mx_safepower,Qo=e.mx_splitlr,$o=e.mx_splittb,ei=e.mx_srgb_texture_to_lin_rec709,ti=e.mx_transform_uv,ri=e.mx_worley_noise_float,ai=e.mx_worley_noise_vec2,oi=e.mx_worley_noise_vec3,ii=e.namespace,ni=e.negate,si=e.neutralToneMapping,li=e.nodeArray,ci=e.nodeImmutable,mi=e.nodeObject,pi=e.nodeObjects,di=e.nodeProxy,ui=e.normalFlat,gi=e.normalGeometry,hi=e.normalLocal,fi=e.normalMap,xi=e.normalView,bi=e.normalWorld,wi=e.normalize,vi=e.not,Si=e.notEqual,Ti=e.numWorkgroups,_i=e.objectDirection,Vi=e.objectGroup,yi=e.objectPosition,Mi=e.objectRadius,Di=e.objectScale,Fi=e.objectViewPosition,Ci=e.objectWorldMatrix,Ii=e.oneMinus,Pi=e.or,Ri=e.orthographicDepthToViewZ,Ni=e.oscSawtooth,Bi=e.oscSine,Li=e.oscSquare,ki=e.oscTriangle,Ai=e.output,Gi=e.outputStruct,Oi=e.overlay,Wi=e.overloadingFn,ji=e.parabola,Ui=e.parallaxDirection,zi=e.parallaxUV,qi=e.parameter,Ei=e.pass,Zi=e.passTexture,Xi=e.pcurve,Yi=e.perspectiveDepthToViewZ,Hi=e.pmremTexture,Ji=e.pointUV,Ki=e.pointWidth,Qi=e.positionGeometry,$i=e.positionLocal,en=e.positionPrevious,tn=e.positionView,rn=e.positionViewDirection,an=e.positionWorld,on=e.positionWorldDirection,nn=e.posterize,sn=e.pow,ln=e.pow2,cn=e.pow3,mn=e.pow4,pn=e.premult,dn=e.property,un=e.radians,gn=e.rand,hn=e.range,fn=e.rangeFog,xn=e.rangeFogFactor,bn=e.reciprocal,wn=e.lightProjectionUV,vn=e.reference,Sn=e.referenceBuffer,Tn=e.reflect,_n=e.reflectVector,Vn=e.reflectView,yn=e.reflector,Mn=e.refract,Dn=e.refractVector,Fn=e.refractView,Cn=e.reinhardToneMapping,In=e.remainder,Pn=e.remap,Rn=e.remapClamp,Nn=e.renderGroup,Bn=e.renderOutput,Ln=e.rendererReference,kn=e.rotate,An=e.rotateUV,Gn=e.roughness,On=e.round,Wn=e.rtt,jn=e.sRGBTransferEOTF,Un=e.sRGBTransferOETF,zn=e.sampler,qn=e.samplerComparison,En=e.saturate,Zn=e.saturation,Xn=e.screen,Yn=e.screenCoordinate,Hn=e.screenSize,Jn=e.screenUV,Kn=e.scriptable,Qn=e.scriptableValue,$n=e.select,es=e.setCurrentStack,ts=e.shaderStages,rs=e.shadow,as=e.pointShadow,os=e.shadowPositionWorld,is=e.sharedUniformGroup,ns=e.shapeCircle,ss=e.sheen,ls=e.sheenRoughness,cs=e.shiftLeft,ms=e.shiftRight,ps=e.shininess,ds=e.sign,us=e.sin,gs=e.sinc,hs=e.skinning,fs=e.smoothstep,xs=e.smoothstepElement,bs=e.specularColor,ws=e.specularF90,vs=e.spherizeUV,Ss=e.split,Ts=e.spritesheetUV,_s=e.sqrt,Vs=e.stack,ys=e.step,Ms=e.storage,Ds=e.storageBarrier,Fs=e.storageObject,Cs=e.storageTexture,Is=e.string,Ps=e.struct,Rs=e.sub,Ns=e.subgroupIndex,Bs=e.subgroupSize,Ls=e.tan,ks=e.tangentGeometry,As=e.tangentLocal,Gs=e.tangentView,Os=e.tangentWorld,Ws=e.temp,js=e.texture,Us=e.texture3D,zs=e.textureBarrier,qs=e.textureBicubic,Es=e.textureCubeUV,Zs=e.textureLoad,Xs=e.textureSize,Ys=e.textureStore,Hs=e.thickness,Js=e.time,Ks=e.timerDelta,Qs=e.timerGlobal,$s=e.timerLocal,el=e.toneMapping,tl=e.toneMappingExposure,rl=e.toonOutlinePass,al=e.transformDirection,ol=e.transformNormal,il=e.transformNormalToView,nl=e.transformedBentNormalView,sl=e.transformedBitangentView,ll=e.transformedBitangentWorld,cl=e.transformedClearcoatNormalView,ml=e.transformedNormalView,pl=e.transformedNormalWorld,dl=e.transformedTangentView,ul=e.transformedTangentWorld,gl=e.transmission,hl=e.transpose,fl=e.triNoise3D,xl=e.triplanarTexture,bl=e.triplanarTextures,wl=e.trunc,vl=e.tslFn,Sl=e.uint,Tl=e.uniform,_l=e.uniformCubeTexture,Vl=e.uniformArray,yl=e.uniformGroup,Ml=e.uniformTexture,Dl=e.uniforms,Fl=e.unpremult,Cl=e.userData,Il=e.uv,Pl=e.uvec2,Rl=e.uvec3,Nl=e.uvec4,Bl=e.Var,Ll=e.varying,kl=e.varyingProperty,Al=e.vec2,Gl=e.vec3,Ol=e.vec4,Wl=e.vectorComponents,jl=e.velocity,Ul=e.vertexColor,zl=e.vertexIndex,ql=e.vibrance,El=e.viewZToLogarithmicDepth,Zl=e.viewZToOrthographicDepth,Xl=e.viewZToPerspectiveDepth,Yl=e.viewport,Hl=e.viewportBottomLeft,Jl=e.viewportCoordinate,Kl=e.viewportDepthTexture,Ql=e.viewportLinearDepth,$l=e.viewportMipTexture,ec=e.viewportResolution,tc=e.viewportSafeUV,rc=e.viewportSharedTexture,ac=e.viewportSize,oc=e.viewportTexture,ic=e.viewportTopLeft,nc=e.viewportUV,sc=e.wgsl,lc=e.wgslFn,cc=e.workgroupArray,mc=e.workgroupBarrier,pc=e.workgroupId,dc=e.workingToColorSpace,uc=e.xor;export{t as BRDF_GGX,r as BRDF_Lambert,a as BasicShadowFilter,o as Break,dt 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,h as Loop,w as NodeAccess,f as NodeShaderStage,x as NodeType,b as NodeUpdateType,v as PCFShadowFilter,S as PCFSoftShadowFilter,T as PI,_ as PI2,V as Return,y as Schlick_to_F0,M as ScriptableNodeResources,D as ShaderNode,g as Switch,F as TBNViewMatrix,C as VSMShadowFilter,I as V_GGX_SmithCorrelated,Bl as Var,P as abs,R as acesFilmicToneMapping,N as acos,B as add,L as addNodeElement,k as agxToneMapping,A as all,G as alphaT,O as and,W as anisotropy,j as anisotropyB,U as anisotropyT,z as any,q as append,E as array,Z as arrayBuffer,X as asin,Y as assign,H as atan,J as atan2,K as atomicAdd,Q as atomicAnd,$ as atomicFunc,ne as atomicLoad,ee as atomicMax,te as atomicMin,re as atomicOr,ae as atomicStore,oe as atomicSub,ie as atomicXor,se as attenuationColor,le as attenuationDistance,ce as attribute,me as attributeArray,pe as backgroundBlurriness,de as backgroundIntensity,ue as backgroundRotation,ge as batch,he as billboarding,fe as bitAnd,xe as bitNot,be as bitOr,we as bitXor,ve as bitangentGeometry,Se as bitangentLocal,Te as bitangentView,_e as bitangentWorld,Ve as bitcast,ye as blendBurn,Me as blendColor,De as blendDodge,Fe as blendOverlay,Ce as blendScreen,Ie as blur,Pe as bool,Re as buffer,Ne as bufferAttribute,Be as bumpMap,Le as burn,ke as bvec2,Ae as bvec3,Ge as bvec4,Oe as bypass,We as cache,je as call,Ue as cameraFar,ze as cameraIndex,qe as cameraNear,Ee as cameraNormalMatrix,Ze as cameraPosition,Xe as cameraProjectionMatrix,Ye as cameraProjectionMatrixInverse,He as cameraViewMatrix,Je as cameraWorldMatrix,Ke as cbrt,Qe as cdl,$e as ceil,et as checker,tt as cineonToneMapping,rt as clamp,at as clearcoat,ot as clearcoatRoughness,it as code,nt as color,st as colorSpaceToWorking,lt as colorToDirection,ct as compute,mt as computeSkinning,pt as cond,ut as context,gt as convert,ht as convertColorSpace,ft as convertToTexture,xt as cos,bt as cross,wt as cubeTexture,vt as dFdx,St as dFdy,Tt as dashSize,_t as debug,Vt as decrement,yt as decrementBefore,Mt as defaultBuildStages,Dt as defaultShaderStages,Ft as defined,Ct as degrees,It as deltaTime,Pt as densityFog,Rt as densityFogFactor,Nt as depth,Bt as depthPass,Lt as difference,kt as diffuseColor,At as directPointLight,Gt as directionToColor,Ot as dispersion,Wt as distance,jt as div,Ut as dodge,zt as dot,qt as drawIndex,Et as dynamicBufferAttribute,Zt as element,Xt as emissive,Yt as equal,Ht as equals,Jt as equirectUV,Kt as exp,Qt as exp2,$t as expression,er as faceDirection,tr as faceForward,rr as faceforward,ar as float,or as floor,ir as fog,nr as fract,sr as frameGroup,lr as frameId,cr as frontFacing,mr as fwidth,pr as gain,dr as gapSize,ur as getConstNodeType,gr as getCurrentStack,hr as getDirection,fr as getDistanceAttenuation,xr as getGeometryRoughness,br as getNormalFromDepth,wr as getParallaxCorrectNormal,vr as getRoughness,Sr as getScreenPosition,Tr as getShIrradianceAt,yr as getShadowMaterial,Mr as getShadowRenderObjectFunction,_r as getTextureIndex,Vr as getViewPosition,ba as globalId,Dr as glsl,Fr as glslFn,Cr as grayscale,Ir as greaterThan,Pr as greaterThanEqual,Rr as hash,Nr as highpModelNormalViewMatrix,Br as highpModelViewMatrix,Lr as hue,kr as increment,Ar as incrementBefore,Gr as instance,Or as instanceIndex,Wr as instancedArray,jr as instancedBufferAttribute,Ur as instancedDynamicBufferAttribute,zr as instancedMesh,qr as int,Er as inverseSqrt,Zr as inversesqrt,Xr as invocationLocalIndex,Yr as invocationSubgroupIndex,Hr as ior,Jr as iridescence,Kr as iridescenceIOR,Qr as iridescenceThickness,$r as ivec2,ea as ivec3,ta as ivec4,ra as js,aa as label,oa as length,ia as lengthSq,na as lessThan,sa as lessThanEqual,la as lightPosition,wn as lightProjectionUV,ca as lightShadowMatrix,ma as lightTargetDirection,pa as lightTargetPosition,da as lightViewPosition,ua as lightingContext,ga as lights,ha as linearDepth,fa as linearToneMapping,xa as localId,wa as log,va as log2,Sa as logarithmicDepthToViewZ,Ta as loop,_a as luminance,ya as mat2,Ma as mat3,Da as mat4,Fa as matcapUV,Ca as materialAO,Ia as materialAlphaTest,Pa as materialAnisotropy,Ra as materialAnisotropyVector,Na as materialAttenuationColor,Ba as materialAttenuationDistance,La as materialClearcoat,ka as materialClearcoatNormal,Aa as materialClearcoatRoughness,Ga as materialColor,Oa as materialDispersion,Wa as materialEmissive,ja as materialIOR,Ua as materialIridescence,za as materialIridescenceIOR,qa as materialIridescenceThickness,Ea as materialLightMap,Za as materialLineDashOffset,Xa as materialLineDashSize,Ya as materialLineGapSize,Ha as materialLineScale,Ja as materialLineWidth,Ka as materialMetalness,Qa as materialNormal,$a as materialOpacity,eo as materialPointSize,to as materialReference,ro as materialReflectivity,ao as materialRefractionRatio,oo as materialRotation,io as materialRoughness,no as materialSheen,so as materialSheenRoughness,lo as materialShininess,co as materialSpecular,mo as materialSpecularColor,po as materialSpecularIntensity,uo as materialSpecularStrength,go as materialThickness,ho as materialTransmission,fo as max,xo as maxMipLevel,Va as mediumpModelViewMatrix,bo as metalness,wo as min,vo as mix,So as mixElement,To as mod,_o as modInt,Vo as modelDirection,yo as modelNormalMatrix,Mo as modelPosition,Do as modelRadius,Fo as modelScale,Co as modelViewMatrix,Io as modelViewPosition,Po as modelViewProjection,Ro as modelWorldMatrix,No as modelWorldMatrixInverse,Bo as morphReference,Lo as mrt,ko as mul,Ao as mx_aastep,Go as mx_cell_noise_float,Oo as mx_contrast,Wo as mx_fractal_noise_float,jo as mx_fractal_noise_vec2,Uo as mx_fractal_noise_vec3,zo as mx_fractal_noise_vec4,qo as mx_hsvtorgb,Eo as mx_noise_float,Zo as mx_noise_vec3,Xo as mx_noise_vec4,Yo as mx_ramplr,Ho as mx_ramptb,Jo as mx_rgbtohsv,Ko as mx_safepower,Qo as mx_splitlr,$o as mx_splittb,ei as mx_srgb_texture_to_lin_rec709,ti as mx_transform_uv,ri as mx_worley_noise_float,ai as mx_worley_noise_vec2,oi as mx_worley_noise_vec3,ii as namespace,ni as negate,si as neutralToneMapping,li as nodeArray,ci as nodeImmutable,mi as nodeObject,pi as nodeObjects,di as nodeProxy,ui as normalFlat,gi as normalGeometry,hi as normalLocal,fi as normalMap,xi as normalView,bi as normalWorld,wi as normalize,vi as not,Si as notEqual,Ti as numWorkgroups,_i as objectDirection,Vi as objectGroup,yi as objectPosition,Mi as objectRadius,Di as objectScale,Fi as objectViewPosition,Ci as objectWorldMatrix,Ii as oneMinus,Pi as or,Ri as orthographicDepthToViewZ,Ni as oscSawtooth,Bi as oscSine,Li as oscSquare,ki as oscTriangle,Ai as output,Gi as outputStruct,Oi as overlay,Wi as overloadingFn,ji as parabola,Ui as parallaxDirection,zi as parallaxUV,qi as parameter,Ei as pass,Zi as passTexture,Xi as pcurve,Yi as perspectiveDepthToViewZ,Hi as pmremTexture,as as pointShadow,Ji as pointUV,Ki as pointWidth,Qi as positionGeometry,$i as positionLocal,en as positionPrevious,tn as positionView,rn as positionViewDirection,an as positionWorld,on as positionWorldDirection,nn as posterize,sn as pow,ln as pow2,cn as pow3,mn as pow4,pn as premult,dn as property,un as radians,gn as rand,hn as range,fn as rangeFog,xn as rangeFogFactor,bn as reciprocal,vn as reference,Sn as referenceBuffer,Tn as reflect,_n as reflectVector,Vn as reflectView,yn as reflector,Mn as refract,Dn as refractVector,Fn as refractView,Cn as reinhardToneMapping,In as remainder,Pn as remap,Rn as remapClamp,Nn as renderGroup,Bn as renderOutput,Ln as rendererReference,kn as rotate,An as rotateUV,Gn as roughness,On as round,Wn as rtt,jn as sRGBTransferEOTF,Un as sRGBTransferOETF,zn as sampler,qn as samplerComparison,En as saturate,Zn as saturation,Xn as screen,Yn as screenCoordinate,Hn as screenSize,Jn as screenUV,Kn as scriptable,Qn as scriptableValue,$n as select,es as setCurrentStack,ts as shaderStages,rs as shadow,os as shadowPositionWorld,ns as shapeCircle,is as sharedUniformGroup,ss as sheen,ls as sheenRoughness,cs as shiftLeft,ms as shiftRight,ps as shininess,ds as sign,us as sin,gs as sinc,hs as skinning,fs as smoothstep,xs as smoothstepElement,bs as specularColor,ws as specularF90,vs as spherizeUV,Ss as split,Ts as spritesheetUV,_s as sqrt,Vs as stack,ys as step,Ms as storage,Ds as storageBarrier,Fs as storageObject,Cs as storageTexture,Is as string,Ps as struct,Rs as sub,Ns as subgroupIndex,Bs as subgroupSize,Ls as tan,ks as tangentGeometry,As as tangentLocal,Gs as tangentView,Os as tangentWorld,Ws as temp,js as texture,Us as texture3D,zs as textureBarrier,qs as textureBicubic,Es as textureCubeUV,Zs as textureLoad,Xs as textureSize,Ys as textureStore,Hs as thickness,Js as time,Ks as timerDelta,Qs as timerGlobal,$s as timerLocal,el as toneMapping,tl as toneMappingExposure,rl as toonOutlinePass,al as transformDirection,ol as transformNormal,il as transformNormalToView,nl as transformedBentNormalView,sl as transformedBitangentView,ll as transformedBitangentWorld,cl as transformedClearcoatNormalView,ml as transformedNormalView,pl as transformedNormalWorld,dl as transformedTangentView,ul as transformedTangentWorld,gl as transmission,hl as transpose,fl as triNoise3D,xl as triplanarTexture,bl as triplanarTextures,wl as trunc,vl as tslFn,Sl as uint,Tl as uniform,Vl as uniformArray,_l as uniformCubeTexture,yl as uniformGroup,Ml as uniformTexture,Dl as uniforms,Fl as unpremult,Cl as userData,Il as uv,Pl as uvec2,Rl as uvec3,Nl as uvec4,Ll as varying,kl as varyingProperty,Al as vec2,Gl as vec3,Ol as vec4,Wl as vectorComponents,jl as velocity,Ul as vertexColor,zl as vertexIndex,ql as vibrance,El as viewZToLogarithmicDepth,Zl as viewZToOrthographicDepth,Xl as viewZToPerspectiveDepth,Yl as viewport,Hl as viewportBottomLeft,Jl as viewportCoordinate,Kl as viewportDepthTexture,Ql as viewportLinearDepth,$l as viewportMipTexture,ec as viewportResolution,tc as viewportSafeUV,rc as viewportSharedTexture,ac as viewportSize,oc as viewportTexture,ic as viewportTopLeft,nc as viewportUV,sc as wgsl,lc as wgslFn,cc as workgroupArray,mc as workgroupBarrier,pc as workgroupId,dc as workingToColorSpace,uc 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.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};