@plastic-software/three 0.167.3 → 0.174.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 (748) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/build/three.cjs +36277 -24023
  4. package/build/three.core.js +48830 -0
  5. package/build/three.core.min.js +6 -0
  6. package/build/three.module.js +10175 -46743
  7. package/build/three.module.min.js +2 -2
  8. package/build/three.tsl.js +550 -0
  9. package/build/three.tsl.min.js +6 -0
  10. package/build/three.webgpu.js +44348 -50670
  11. package/build/three.webgpu.min.js +2 -2
  12. package/build/three.webgpu.nodes.js +70301 -0
  13. package/build/three.webgpu.nodes.min.js +6 -0
  14. package/examples/jsm/Addons.js +3 -15
  15. package/examples/jsm/animation/AnimationClipCreator.js +1 -1
  16. package/examples/jsm/animation/CCDIKSolver.js +61 -11
  17. package/examples/jsm/capabilities/WebGL.js +27 -21
  18. package/examples/jsm/capabilities/WebGPU.js +1 -10
  19. package/examples/jsm/controls/ArcballControls.js +262 -231
  20. package/examples/jsm/controls/DragControls.js +1 -1
  21. package/examples/jsm/controls/FirstPersonControls.js +175 -163
  22. package/examples/jsm/controls/FlyControls.js +194 -188
  23. package/examples/jsm/controls/OrbitControls.js +801 -777
  24. package/examples/jsm/controls/PointerLockControls.js +26 -20
  25. package/examples/jsm/controls/TrackballControls.js +469 -448
  26. package/examples/jsm/controls/TransformControls.js +119 -68
  27. package/examples/jsm/csm/CSM.js +2 -2
  28. package/examples/jsm/csm/CSMFrustum.js +7 -4
  29. package/examples/jsm/csm/CSMHelper.js +2 -0
  30. package/examples/jsm/csm/CSMShadowNode.js +442 -0
  31. package/examples/jsm/curves/NURBSCurve.js +33 -2
  32. package/examples/jsm/curves/NURBSUtils.js +3 -0
  33. package/examples/jsm/effects/AnaglyphEffect.js +6 -13
  34. package/examples/jsm/effects/OutlineEffect.js +1 -1
  35. package/examples/jsm/effects/ParallaxBarrierEffect.js +17 -11
  36. package/examples/jsm/effects/StereoEffect.js +6 -1
  37. package/examples/jsm/exporters/DRACOExporter.js +4 -2
  38. package/examples/jsm/exporters/EXRExporter.js +19 -11
  39. package/examples/jsm/exporters/GLTFExporter.js +181 -109
  40. package/examples/jsm/exporters/KTX2Exporter.js +54 -23
  41. package/examples/jsm/exporters/OBJExporter.js +5 -1
  42. package/examples/jsm/exporters/PLYExporter.js +11 -9
  43. package/examples/jsm/exporters/USDZExporter.js +50 -11
  44. package/examples/jsm/geometries/DecalGeometry.js +73 -21
  45. package/examples/jsm/geometries/TextGeometry.js +1 -12
  46. package/examples/jsm/helpers/LightProbeHelper.js +43 -44
  47. package/examples/jsm/helpers/LightProbeHelperGPU.js +65 -0
  48. package/examples/jsm/helpers/TextureHelperGPU.js +185 -0
  49. package/examples/jsm/helpers/VertexNormalsHelper.js +2 -0
  50. package/examples/jsm/interactive/HTMLMesh.js +1 -0
  51. package/examples/jsm/interactive/InteractiveGroup.js +108 -51
  52. package/examples/jsm/interactive/SelectionHelper.js +3 -1
  53. package/examples/jsm/libs/basis/basis_transcoder.js +8 -10
  54. package/examples/jsm/libs/basis/basis_transcoder.wasm +0 -0
  55. package/examples/jsm/libs/demuxer_mp4.js +109 -0
  56. package/examples/jsm/libs/ktx-parse.module.js +1 -1
  57. package/examples/jsm/lighting/TiledLighting.js +18 -0
  58. package/examples/jsm/lights/LightProbeGenerator.js +26 -12
  59. package/examples/jsm/lights/RectAreaLightTexturesLib.js +1 -1
  60. package/examples/jsm/lines/LineGeometry.js +25 -0
  61. package/examples/jsm/lines/LineMaterial.js +0 -1
  62. package/examples/jsm/lines/LineSegmentsGeometry.js +2 -0
  63. package/examples/jsm/lines/webgpu/Line2.js +2 -1
  64. package/examples/jsm/lines/webgpu/LineSegments2.js +16 -21
  65. package/examples/jsm/lines/webgpu/Wireframe.js +57 -0
  66. package/examples/jsm/loaders/3DMLoader.js +1 -0
  67. package/examples/jsm/loaders/3MFLoader.js +104 -2
  68. package/examples/jsm/loaders/BVHLoader.js +1 -1
  69. package/examples/jsm/loaders/ColladaLoader.js +15 -12
  70. package/examples/jsm/loaders/DDSLoader.js +42 -0
  71. package/examples/jsm/loaders/DRACOLoader.js +3 -1
  72. package/examples/jsm/loaders/FBXLoader.js +71 -22
  73. package/examples/jsm/loaders/GCodeLoader.js +4 -2
  74. package/examples/jsm/loaders/GLTFLoader.js +29 -14
  75. package/examples/jsm/loaders/KTX2Loader.js +160 -58
  76. package/examples/jsm/loaders/KTXLoader.js +4 -4
  77. package/examples/jsm/loaders/LDrawLoader.js +22 -136
  78. package/examples/jsm/loaders/LottieLoader.js +2 -1
  79. package/examples/jsm/loaders/MTLLoader.js +27 -7
  80. package/examples/jsm/loaders/MaterialXLoader.js +40 -14
  81. package/examples/jsm/loaders/NRRDLoader.js +1 -1
  82. package/examples/jsm/loaders/OBJLoader.js +5 -3
  83. package/examples/jsm/loaders/PCDLoader.js +14 -13
  84. package/examples/jsm/loaders/PDBLoader.js +3 -2
  85. package/examples/jsm/loaders/PLYLoader.js +15 -12
  86. package/examples/jsm/loaders/PVRLoader.js +1 -1
  87. package/examples/jsm/loaders/STLLoader.js +3 -2
  88. package/examples/jsm/loaders/SVGLoader.js +2 -2
  89. package/examples/jsm/loaders/TDSLoader.js +17 -18
  90. package/examples/jsm/loaders/VRMLLoader.js +17 -17
  91. package/examples/jsm/loaders/VTKLoader.js +4 -3
  92. package/examples/jsm/loaders/XYZLoader.js +3 -2
  93. package/examples/jsm/loaders/lwo/IFFParser.js +4 -4
  94. package/examples/jsm/materials/LDrawConditionalLineMaterial.js +143 -0
  95. package/examples/jsm/materials/LDrawConditionalLineNodeMaterial.js +114 -0
  96. package/examples/jsm/materials/MeshGouraudMaterial.js +2 -0
  97. package/examples/jsm/math/ColorSpaces.js +76 -0
  98. package/examples/jsm/math/ConvexHull.js +1 -1
  99. package/examples/jsm/math/OBB.js +17 -0
  100. package/examples/jsm/misc/GPUComputationRenderer.js +6 -7
  101. package/examples/jsm/misc/ProgressiveLightMap.js +54 -41
  102. package/examples/jsm/misc/ProgressiveLightMapGPU.js +294 -0
  103. package/examples/jsm/misc/Timer.js +27 -12
  104. package/examples/jsm/misc/Volume.js +28 -18
  105. package/examples/jsm/misc/VolumeSlice.js +19 -16
  106. package/examples/jsm/modifiers/CurveModifier.js +10 -8
  107. package/examples/jsm/modifiers/CurveModifierGPU.js +235 -0
  108. package/examples/jsm/modifiers/SimplifyModifier.js +2 -2
  109. package/examples/jsm/objects/GroundedSkybox.js +4 -4
  110. package/examples/jsm/objects/LensflareMesh.js +324 -0
  111. package/examples/jsm/objects/Reflector.js +5 -2
  112. package/examples/jsm/objects/Sky.js +2 -2
  113. package/examples/jsm/objects/SkyMesh.js +14 -14
  114. package/examples/jsm/objects/Water2.js +1 -1
  115. package/examples/jsm/objects/Water2Mesh.js +11 -9
  116. package/examples/jsm/objects/WaterMesh.js +38 -33
  117. package/examples/jsm/physics/JoltPhysics.js +8 -8
  118. package/examples/jsm/physics/RapierPhysics.js +5 -5
  119. package/examples/jsm/postprocessing/AfterimagePass.js +14 -3
  120. package/examples/jsm/postprocessing/BloomPass.js +2 -2
  121. package/examples/jsm/postprocessing/EffectComposer.js +1 -2
  122. package/examples/jsm/postprocessing/OutlinePass.js +37 -51
  123. package/examples/jsm/postprocessing/OutputPass.js +2 -0
  124. package/examples/jsm/postprocessing/SAOPass.js +1 -2
  125. package/examples/jsm/postprocessing/SMAAPass.js +1 -3
  126. package/examples/jsm/postprocessing/SSAARenderPass.js +3 -1
  127. package/examples/jsm/postprocessing/SSAOPass.js +2 -4
  128. package/examples/jsm/postprocessing/SSRPass.js +8 -4
  129. package/examples/jsm/postprocessing/UnrealBloomPass.js +2 -2
  130. package/examples/jsm/renderers/CSS2DRenderer.js +6 -3
  131. package/examples/jsm/renderers/CSS3DRenderer.js +7 -4
  132. package/examples/jsm/renderers/SVGRenderer.js +6 -4
  133. package/examples/jsm/shaders/BokehShader2.js +1 -1
  134. package/examples/jsm/shaders/FXAAShader.js +225 -224
  135. package/examples/jsm/shaders/GodRaysShader.js +3 -3
  136. package/examples/jsm/shaders/OutputShader.js +6 -2
  137. package/examples/jsm/shaders/SobelOperatorShader.js +1 -1
  138. package/examples/jsm/transpiler/AST.js +12 -2
  139. package/examples/jsm/transpiler/GLSLDecoder.js +77 -31
  140. package/examples/jsm/transpiler/ShaderToyDecoder.js +3 -3
  141. package/examples/jsm/transpiler/TSLEncoder.js +96 -21
  142. package/examples/jsm/tsl/display/AfterImageNode.js +243 -0
  143. package/examples/jsm/tsl/display/AnaglyphPassNode.js +106 -0
  144. package/examples/jsm/tsl/display/AnamorphicNode.js +257 -0
  145. package/{src/nodes/display/BleachBypassNode.js → examples/jsm/tsl/display/BleachBypass.js} +11 -6
  146. package/{src/nodes → examples/jsm/tsl}/display/BloomNode.js +252 -67
  147. package/examples/jsm/tsl/display/DenoiseNode.js +332 -0
  148. package/{src/nodes → examples/jsm/tsl}/display/DepthOfFieldNode.js +92 -14
  149. package/examples/jsm/tsl/display/DotScreenNode.js +103 -0
  150. package/examples/jsm/tsl/display/FXAANode.js +364 -0
  151. package/examples/jsm/tsl/display/FilmNode.js +100 -0
  152. package/examples/jsm/tsl/display/GTAONode.js +521 -0
  153. package/examples/jsm/tsl/display/GaussianBlurNode.js +393 -0
  154. package/examples/jsm/tsl/display/LensflareNode.js +278 -0
  155. package/examples/jsm/tsl/display/Lut3DNode.js +108 -0
  156. package/examples/jsm/tsl/display/MotionBlur.js +33 -0
  157. package/examples/jsm/tsl/display/OutlineNode.js +750 -0
  158. package/examples/jsm/tsl/display/ParallaxBarrierPassNode.js +88 -0
  159. package/{src/nodes → examples/jsm/tsl}/display/PixelationPassNode.js +160 -28
  160. package/examples/jsm/tsl/display/RGBShiftNode.js +95 -0
  161. package/examples/jsm/tsl/display/SMAANode.js +767 -0
  162. package/examples/jsm/tsl/display/SSAAPassNode.js +357 -0
  163. package/examples/jsm/tsl/display/SSRNode.js +538 -0
  164. package/examples/jsm/tsl/display/Sepia.js +24 -0
  165. package/{src/nodes → examples/jsm/tsl}/display/SobelOperatorNode.js +66 -20
  166. package/examples/jsm/tsl/display/StereoCompositePassNode.js +184 -0
  167. package/examples/jsm/tsl/display/StereoPassNode.js +119 -0
  168. package/examples/jsm/tsl/display/TRAAPassNode.js +451 -0
  169. package/examples/jsm/tsl/display/TransitionNode.js +140 -0
  170. package/examples/jsm/tsl/display/hashBlur.js +34 -0
  171. package/examples/jsm/tsl/lighting/TiledLightsNode.js +395 -0
  172. package/examples/jsm/tsl/math/Bayer.js +18 -0
  173. package/examples/jsm/tsl/utils/Raymarching.js +65 -0
  174. package/examples/jsm/utils/BufferGeometryUtils.js +2 -2
  175. package/examples/jsm/utils/CameraUtils.js +4 -1
  176. package/examples/jsm/utils/GeometryCompressionUtils.js +38 -123
  177. package/examples/jsm/utils/GeometryUtils.js +22 -19
  178. package/examples/jsm/utils/SceneOptimizer.js +410 -0
  179. package/examples/jsm/utils/SceneUtils.js +2 -2
  180. package/examples/jsm/utils/ShadowMapViewer.js +3 -8
  181. package/examples/jsm/utils/ShadowMapViewerGPU.js +201 -0
  182. package/examples/jsm/utils/SkeletonUtils.js +84 -66
  183. package/examples/jsm/utils/UVsDebug.js +1 -1
  184. package/examples/jsm/utils/{TextureUtils.js → WebGLTextureUtils.js} +1 -0
  185. package/examples/jsm/utils/WebGPUTextureUtils.js +64 -0
  186. package/examples/jsm/webxr/OculusHandPointerModel.js +21 -21
  187. package/examples/jsm/webxr/Text2D.js +6 -6
  188. package/examples/jsm/webxr/XRControllerModelFactory.js +7 -2
  189. package/examples/jsm/webxr/XREstimatedLight.js +1 -1
  190. package/package.json +14 -9
  191. package/src/Three.Core.js +182 -0
  192. package/src/Three.Legacy.js +0 -21
  193. package/src/Three.TSL.js +543 -0
  194. package/src/Three.WebGPU.Nodes.js +23 -0
  195. package/src/Three.WebGPU.js +13 -184
  196. package/src/Three.js +1 -176
  197. package/src/animation/AnimationClip.js +2 -2
  198. package/src/animation/AnimationObjectGroup.js +2 -2
  199. package/src/animation/AnimationUtils.js +1 -1
  200. package/src/animation/PropertyBinding.js +2 -2
  201. package/src/audio/Audio.js +379 -2
  202. package/src/audio/AudioAnalyser.js +58 -1
  203. package/src/audio/AudioContext.js +15 -0
  204. package/src/audio/AudioListener.js +76 -0
  205. package/src/audio/PositionalAudio.js +107 -0
  206. package/src/cameras/ArrayCamera.js +29 -0
  207. package/src/cameras/Camera.js +47 -0
  208. package/src/cameras/CubeCamera.js +66 -0
  209. package/src/cameras/OrthographicCamera.js +109 -0
  210. package/src/cameras/PerspectiveCamera.js +173 -34
  211. package/src/cameras/StereoCamera.js +48 -2
  212. package/src/constants.js +6 -6
  213. package/src/core/BufferAttribute.js +4 -9
  214. package/src/core/BufferGeometry.js +48 -8
  215. package/src/core/Clock.js +1 -1
  216. package/src/core/EventDispatcher.js +52 -8
  217. package/src/core/InterleavedBuffer.js +4 -13
  218. package/src/core/Object3D.js +573 -3
  219. package/src/core/RenderTarget.js +22 -4
  220. package/src/core/RenderTarget3D.js +22 -0
  221. package/src/core/RenderTargetArray.js +22 -0
  222. package/src/extras/Controls.js +104 -0
  223. package/src/extras/DataUtils.js +48 -8
  224. package/src/extras/Earcut.js +18 -7
  225. package/src/extras/ImageUtils.js +18 -11
  226. package/src/extras/PMREMGenerator.js +40 -9
  227. package/src/extras/ShapeUtils.js +24 -2
  228. package/src/extras/TextureUtils.js +96 -10
  229. package/src/extras/core/Curve.js +153 -53
  230. package/src/extras/core/CurvePath.js +63 -22
  231. package/src/extras/core/Interpolations.js +29 -3
  232. package/src/extras/core/Path.js +134 -1
  233. package/src/extras/core/Shape.js +66 -3
  234. package/src/extras/core/ShapePath.js +76 -0
  235. package/src/extras/curves/ArcCurve.js +22 -0
  236. package/src/extras/curves/CatmullRomCurve3.js +89 -18
  237. package/src/extras/curves/CubicBezierCurve.js +67 -0
  238. package/src/extras/curves/CubicBezierCurve3.js +50 -0
  239. package/src/extras/curves/EllipseCurve.js +102 -0
  240. package/src/extras/curves/LineCurve.js +36 -0
  241. package/src/extras/curves/LineCurve3.js +36 -0
  242. package/src/extras/curves/QuadraticBezierCurve.js +59 -0
  243. package/src/extras/curves/QuadraticBezierCurve3.js +43 -0
  244. package/src/extras/curves/SplineCurve.js +48 -0
  245. package/src/geometries/BoxGeometry.js +38 -0
  246. package/src/geometries/CapsuleGeometry.js +34 -0
  247. package/src/geometries/CircleGeometry.js +40 -0
  248. package/src/geometries/ConeGeometry.js +38 -0
  249. package/src/geometries/CylinderGeometry.js +50 -4
  250. package/src/geometries/DodecahedronGeometry.js +32 -0
  251. package/src/geometries/EdgesGeometry.js +30 -2
  252. package/src/geometries/ExtrudeGeometry.js +52 -0
  253. package/src/geometries/IcosahedronGeometry.js +32 -0
  254. package/src/geometries/LatheGeometry.js +43 -3
  255. package/src/geometries/OctahedronGeometry.js +32 -0
  256. package/src/geometries/PlaneGeometry.js +34 -0
  257. package/src/geometries/PolyhedronGeometry.js +29 -0
  258. package/src/geometries/RingGeometry.js +36 -0
  259. package/src/geometries/ShapeGeometry.js +37 -0
  260. package/src/geometries/SphereGeometry.js +37 -0
  261. package/src/geometries/TetrahedronGeometry.js +32 -0
  262. package/src/geometries/TorusGeometry.js +35 -0
  263. package/src/geometries/TorusKnotGeometry.js +38 -0
  264. package/src/geometries/TubeGeometry.js +49 -0
  265. package/src/geometries/WireframeGeometry.js +32 -0
  266. package/src/helpers/ArrowHelper.js +60 -3
  267. package/src/helpers/AxesHelper.js +28 -0
  268. package/src/helpers/Box3Helper.js +28 -0
  269. package/src/helpers/BoxHelper.js +43 -7
  270. package/src/helpers/CameraHelper.js +61 -18
  271. package/src/helpers/DirectionalLightHelper.js +52 -0
  272. package/src/helpers/GridHelper.js +26 -0
  273. package/src/helpers/HemisphereLightHelper.js +39 -0
  274. package/src/helpers/PlaneHelper.js +33 -0
  275. package/src/helpers/PointLightHelper.js +43 -0
  276. package/src/helpers/PolarGridHelper.js +30 -0
  277. package/src/helpers/SkeletonHelper.js +39 -2
  278. package/src/helpers/SpotLightHelper.js +40 -0
  279. package/src/lights/AmbientLight.js +25 -0
  280. package/src/lights/DirectionalLight.js +57 -0
  281. package/src/lights/DirectionalLightShadow.js +15 -0
  282. package/src/lights/HemisphereLight.js +32 -0
  283. package/src/lights/Light.js +36 -0
  284. package/src/lights/LightProbe.js +43 -0
  285. package/src/lights/LightShadow.js +159 -0
  286. package/src/lights/PointLight.js +59 -0
  287. package/src/lights/PointLightShadow.js +21 -0
  288. package/src/lights/RectAreaLight.js +59 -0
  289. package/src/lights/SpotLight.js +102 -0
  290. package/src/lights/SpotLightShadow.js +24 -2
  291. package/src/lights/webgpu/IESSpotLight.js +21 -0
  292. package/src/loaders/Loader.js +132 -0
  293. package/src/loaders/MaterialLoader.js +7 -1
  294. package/src/loaders/nodes/NodeLoader.js +189 -0
  295. package/src/loaders/nodes/NodeMaterialLoader.js +108 -0
  296. package/src/loaders/nodes/NodeObjectLoader.js +151 -0
  297. package/src/materials/LineDashedMaterial.js +0 -1
  298. package/src/materials/Material.js +469 -7
  299. package/src/materials/MeshPhongMaterial.js +1 -1
  300. package/src/materials/MeshPhysicalMaterial.js +2 -2
  301. package/src/materials/MeshStandardMaterial.js +2 -2
  302. package/src/{nodes/materials → materials/nodes}/Line2NodeMaterial.js +192 -82
  303. package/src/materials/nodes/LineBasicNodeMaterial.js +46 -0
  304. package/src/materials/nodes/LineDashedNodeMaterial.js +132 -0
  305. package/src/materials/nodes/MeshBasicNodeMaterial.js +133 -0
  306. package/src/materials/nodes/MeshLambertNodeMaterial.js +82 -0
  307. package/src/materials/nodes/MeshMatcapNodeMaterial.js +77 -0
  308. package/src/materials/nodes/MeshNormalNodeMaterial.js +67 -0
  309. package/src/materials/nodes/MeshPhongNodeMaterial.js +141 -0
  310. package/src/materials/nodes/MeshPhysicalNodeMaterial.js +517 -0
  311. package/src/materials/nodes/MeshSSSNodeMaterial.js +175 -0
  312. package/src/materials/nodes/MeshStandardNodeMaterial.js +186 -0
  313. package/src/materials/nodes/MeshToonNodeMaterial.js +66 -0
  314. package/src/materials/nodes/NodeMaterial.js +1180 -0
  315. package/src/{nodes/materials/Materials.js → materials/nodes/NodeMaterials.js} +3 -2
  316. package/src/materials/nodes/PointsNodeMaterial.js +153 -0
  317. package/src/materials/nodes/ShadowNodeMaterial.js +67 -0
  318. package/src/materials/nodes/SpriteNodeMaterial.js +198 -0
  319. package/src/materials/nodes/VolumeNodeMaterial.js +72 -0
  320. package/src/materials/nodes/manager/NodeMaterialObserver.js +509 -0
  321. package/src/math/Box2.js +177 -0
  322. package/src/math/Box3.js +243 -0
  323. package/src/math/Color.js +343 -0
  324. package/src/math/ColorManagement.js +143 -102
  325. package/src/math/Cylindrical.js +65 -6
  326. package/src/math/Euler.js +137 -4
  327. package/src/math/Frustum.js +83 -0
  328. package/src/math/Interpolant.js +87 -8
  329. package/src/math/Line3.js +96 -2
  330. package/src/math/MathUtils.js +182 -19
  331. package/src/math/Matrix2.js +70 -0
  332. package/src/math/Matrix3.js +229 -4
  333. package/src/math/Matrix4.js +368 -3
  334. package/src/math/Plane.js +164 -2
  335. package/src/math/Quaternion.js +265 -9
  336. package/src/math/Ray.js +160 -0
  337. package/src/math/Sphere.js +147 -0
  338. package/src/math/Spherical.js +73 -11
  339. package/src/math/SphericalHarmonics3.js +112 -14
  340. package/src/math/Triangle.js +230 -2
  341. package/src/math/Vector2.js +396 -10
  342. package/src/math/Vector3.js +550 -13
  343. package/src/math/Vector4.js +415 -9
  344. package/src/math/interpolants/CubicInterpolant.js +10 -1
  345. package/src/math/interpolants/DiscreteInterpolant.js +10 -2
  346. package/src/math/interpolants/LinearInterpolant.js +13 -0
  347. package/src/math/interpolants/QuaternionLinearInterpolant.js +10 -1
  348. package/src/nodes/Nodes.js +84 -166
  349. package/src/nodes/TSL.js +167 -0
  350. package/src/nodes/accessors/AccessorsUtils.js +39 -10
  351. package/src/nodes/accessors/Arrays.js +68 -0
  352. package/src/nodes/accessors/BatchNode.js +93 -26
  353. package/src/nodes/accessors/Bitangent.js +54 -0
  354. package/src/nodes/accessors/BufferAttributeNode.js +189 -11
  355. package/src/nodes/accessors/BufferNode.js +70 -5
  356. package/src/nodes/accessors/BuiltinNode.js +63 -0
  357. package/src/nodes/accessors/Camera.js +129 -0
  358. package/src/nodes/accessors/ClippingNode.js +152 -43
  359. package/src/nodes/accessors/CubeTextureNode.js +76 -13
  360. package/src/nodes/accessors/InstanceNode.js +118 -35
  361. package/src/nodes/accessors/InstancedMeshNode.js +50 -0
  362. package/src/nodes/accessors/Lights.js +129 -0
  363. package/src/nodes/accessors/MaterialNode.js +394 -58
  364. package/src/nodes/accessors/MaterialProperties.js +57 -1
  365. package/src/nodes/accessors/MaterialReferenceNode.js +60 -18
  366. package/src/nodes/accessors/ModelNode.js +159 -12
  367. package/src/nodes/accessors/ModelViewProjectionNode.js +10 -36
  368. package/src/nodes/accessors/MorphNode.js +60 -13
  369. package/src/nodes/accessors/Normal.js +156 -0
  370. package/src/nodes/accessors/Object3DNode.js +154 -35
  371. package/src/nodes/accessors/PointUVNode.js +35 -6
  372. package/src/nodes/accessors/Position.js +64 -0
  373. package/src/nodes/accessors/ReferenceBaseNode.js +357 -0
  374. package/src/nodes/accessors/ReferenceNode.js +243 -6
  375. package/src/nodes/accessors/ReflectVector.js +36 -0
  376. package/src/nodes/accessors/RendererReferenceNode.js +57 -7
  377. package/src/nodes/accessors/SceneNode.js +98 -6
  378. package/src/nodes/accessors/SkinningNode.js +214 -21
  379. package/src/nodes/accessors/StorageBufferNode.js +288 -28
  380. package/src/nodes/accessors/StorageTextureNode.js +139 -12
  381. package/src/nodes/accessors/Tangent.js +62 -0
  382. package/src/nodes/accessors/Texture3DNode.js +98 -12
  383. package/src/nodes/accessors/{TextureBicubicNode.js → TextureBicubic.js} +14 -34
  384. package/src/nodes/accessors/TextureNode.js +347 -34
  385. package/src/nodes/accessors/TextureSizeNode.js +51 -9
  386. package/src/nodes/accessors/UV.js +11 -0
  387. package/src/nodes/accessors/UniformArrayNode.js +241 -32
  388. package/src/nodes/accessors/UserDataNode.js +55 -7
  389. package/src/nodes/accessors/VelocityNode.js +223 -0
  390. package/src/nodes/accessors/VertexColorNode.js +45 -6
  391. package/src/nodes/code/CodeNode.js +108 -8
  392. package/src/nodes/code/ExpressionNode.js +38 -7
  393. package/src/nodes/code/FunctionCallNode.js +62 -11
  394. package/src/nodes/code/FunctionNode.js +54 -24
  395. package/src/nodes/code/ScriptableNode.js +241 -17
  396. package/src/nodes/code/ScriptableValueNode.js +93 -8
  397. package/src/nodes/core/ArrayNode.js +142 -0
  398. package/src/nodes/core/AssignNode.js +60 -12
  399. package/src/nodes/core/AttributeNode.js +55 -22
  400. package/src/nodes/core/BypassNode.js +59 -11
  401. package/src/nodes/core/CacheNode.js +64 -10
  402. package/src/nodes/core/ConstNode.js +38 -3
  403. package/src/nodes/core/ContextNode.js +87 -12
  404. package/src/nodes/core/IndexNode.js +102 -10
  405. package/src/nodes/core/InputNode.js +55 -3
  406. package/src/nodes/core/LightingModel.js +65 -5
  407. package/src/nodes/core/MRTNode.js +81 -7
  408. package/src/nodes/core/Node.js +368 -50
  409. package/src/nodes/core/NodeAttribute.js +38 -0
  410. package/src/nodes/core/NodeBuilder.js +1317 -83
  411. package/src/nodes/core/NodeCache.js +41 -2
  412. package/src/nodes/core/NodeCode.js +31 -0
  413. package/src/nodes/core/NodeFrame.js +123 -2
  414. package/src/nodes/core/NodeFunction.js +46 -0
  415. package/src/nodes/core/NodeFunctionInput.js +44 -0
  416. package/src/nodes/core/NodeParser.js +11 -0
  417. package/src/nodes/core/NodeUniform.js +52 -0
  418. package/src/nodes/core/NodeUtils.js +226 -6
  419. package/src/nodes/core/NodeVar.js +47 -1
  420. package/src/nodes/core/NodeVarying.js +28 -0
  421. package/src/nodes/core/OutputStructNode.js +61 -17
  422. package/src/nodes/core/ParameterNode.js +34 -4
  423. package/src/nodes/core/PropertyNode.js +296 -32
  424. package/src/nodes/core/StackNode.js +108 -8
  425. package/src/nodes/core/StructNode.js +120 -0
  426. package/src/nodes/core/StructType.js +13 -0
  427. package/src/nodes/core/StructTypeNode.js +116 -9
  428. package/src/nodes/core/TempNode.js +37 -7
  429. package/src/nodes/core/UniformGroupNode.js +98 -17
  430. package/src/nodes/core/UniformNode.js +72 -4
  431. package/src/nodes/core/VarNode.js +170 -13
  432. package/src/nodes/core/VaryingNode.js +109 -8
  433. package/src/nodes/core/constants.js +40 -0
  434. package/src/nodes/display/BlendModes.js +193 -0
  435. package/src/nodes/display/BumpMapNode.js +47 -10
  436. package/src/nodes/display/ColorAdjustment.js +141 -0
  437. package/src/nodes/display/ColorSpaceFunctions.js +54 -0
  438. package/src/nodes/display/ColorSpaceNode.js +147 -68
  439. package/src/nodes/display/FrontFacingNode.js +39 -6
  440. package/src/nodes/display/NormalMapNode.js +55 -13
  441. package/src/nodes/display/PassNode.js +420 -19
  442. package/src/nodes/display/PosterizeNode.js +40 -7
  443. package/src/nodes/display/RenderOutputNode.js +81 -13
  444. package/src/nodes/display/ScreenNode.js +286 -0
  445. package/src/nodes/display/ToneMappingFunctions.js +242 -0
  446. package/src/nodes/display/ToneMappingNode.js +68 -175
  447. package/src/nodes/display/ToonOutlinePassNode.js +183 -0
  448. package/src/nodes/display/ViewportDepthNode.js +210 -36
  449. package/src/nodes/display/ViewportDepthTextureNode.js +32 -9
  450. package/src/nodes/display/ViewportSharedTextureNode.js +32 -9
  451. package/src/nodes/display/ViewportTextureNode.js +68 -11
  452. package/src/nodes/fog/Fog.js +113 -0
  453. package/src/nodes/functions/BSDF/BRDF_GGX.js +4 -4
  454. package/src/nodes/functions/BSDF/BRDF_Lambert.js +2 -2
  455. package/src/nodes/functions/BSDF/BRDF_Sheen.js +6 -6
  456. package/src/nodes/functions/BSDF/DFGApprox.js +2 -2
  457. package/src/nodes/functions/BSDF/D_GGX.js +2 -2
  458. package/src/nodes/functions/BSDF/D_GGX_Anisotropic.js +3 -3
  459. package/src/nodes/functions/BSDF/EnvironmentBRDF.js +2 -2
  460. package/src/nodes/functions/BSDF/F_Schlick.js +2 -2
  461. package/src/nodes/functions/BSDF/LTC.js +50 -6
  462. package/src/nodes/functions/BSDF/Schlick_to_F0.js +2 -2
  463. package/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.js +2 -2
  464. package/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.js +2 -2
  465. package/src/nodes/functions/BasicLightingModel.js +27 -6
  466. package/src/nodes/functions/PhongLightingModel.js +38 -8
  467. package/src/nodes/functions/PhysicalLightingModel.js +215 -51
  468. package/src/nodes/functions/ShadowMaskModel.js +24 -1
  469. package/src/nodes/functions/ToonLightingModel.js +24 -5
  470. package/src/nodes/functions/VolumetricLightingModel.js +183 -0
  471. package/src/nodes/functions/material/getAlphaHashThreshold.js +68 -0
  472. package/src/nodes/functions/material/getGeometryRoughness.js +10 -4
  473. package/src/nodes/functions/material/getParallaxCorrectNormal.js +37 -0
  474. package/src/nodes/functions/material/getRoughness.js +2 -2
  475. package/src/nodes/functions/material/getShIrradianceAt.js +28 -0
  476. package/src/nodes/geometry/RangeNode.js +62 -7
  477. package/src/nodes/gpgpu/AtomicFunctionNode.js +280 -0
  478. package/src/nodes/gpgpu/BarrierNode.js +89 -0
  479. package/src/nodes/gpgpu/ComputeBuiltinNode.js +227 -0
  480. package/src/nodes/gpgpu/ComputeNode.js +124 -9
  481. package/src/nodes/gpgpu/WorkgroupInfoNode.js +208 -0
  482. package/src/nodes/lighting/AONode.js +24 -3
  483. package/src/nodes/lighting/AmbientLightNode.js +16 -8
  484. package/src/nodes/lighting/AnalyticLightNode.js +151 -231
  485. package/src/nodes/lighting/BasicEnvironmentNode.js +25 -3
  486. package/src/nodes/lighting/BasicLightMapNode.js +25 -5
  487. package/src/nodes/lighting/DirectionalLightNode.js +19 -20
  488. package/src/nodes/lighting/EnvironmentNode.js +34 -17
  489. package/src/nodes/lighting/HemisphereLightNode.js +42 -11
  490. package/src/nodes/lighting/IESSpotLightNode.js +18 -9
  491. package/src/nodes/lighting/IrradianceNode.js +23 -3
  492. package/src/nodes/lighting/LightProbeNode.js +29 -36
  493. package/src/nodes/lighting/LightUtils.js +12 -4
  494. package/src/nodes/lighting/LightingContextNode.js +70 -21
  495. package/src/nodes/lighting/LightingNode.js +22 -9
  496. package/src/nodes/lighting/LightsNode.js +309 -86
  497. package/src/nodes/lighting/PointLightNode.js +66 -32
  498. package/src/nodes/lighting/PointShadowNode.js +306 -0
  499. package/src/nodes/lighting/RectAreaLightNode.js +61 -25
  500. package/src/nodes/lighting/ShadowBaseNode.js +92 -0
  501. package/src/nodes/lighting/ShadowNode.js +812 -0
  502. package/src/nodes/lighting/SpotLightNode.js +73 -31
  503. package/src/nodes/materialx/MaterialXNodes.js +2 -2
  504. package/src/nodes/materialx/lib/mx_hsv.js +27 -22
  505. package/src/nodes/materialx/lib/mx_noise.js +70 -70
  506. package/src/nodes/materialx/lib/mx_transform_color.js +2 -2
  507. package/src/nodes/math/ConditionalNode.js +230 -0
  508. package/src/nodes/math/Hash.js +21 -0
  509. package/src/nodes/math/MathNode.js +812 -131
  510. package/src/nodes/math/MathUtils.js +47 -8
  511. package/src/nodes/math/OperatorNode.js +410 -66
  512. package/src/nodes/math/TriNoise3D.js +32 -32
  513. package/src/nodes/parsers/GLSLNodeFunction.js +16 -0
  514. package/src/nodes/parsers/GLSLNodeParser.js +11 -0
  515. package/src/nodes/pmrem/PMREMNode.js +188 -28
  516. package/src/nodes/pmrem/PMREMUtils.js +24 -24
  517. package/src/nodes/procedural/Checker.js +22 -0
  518. package/src/nodes/shapes/Shapes.js +32 -0
  519. package/src/nodes/tsl/TSLBase.js +31 -0
  520. package/src/nodes/{shadernode/ShaderNode.js → tsl/TSLCore.js} +114 -98
  521. package/src/nodes/utils/ArrayElementNode.js +45 -5
  522. package/src/nodes/utils/ConvertNode.js +39 -4
  523. package/src/nodes/utils/CubeMapNode.js +88 -8
  524. package/src/nodes/utils/Discard.js +24 -0
  525. package/src/nodes/utils/EquirectUVNode.js +39 -7
  526. package/src/nodes/utils/FlipNode.js +106 -0
  527. package/src/nodes/utils/FunctionOverloadingNode.js +61 -6
  528. package/src/nodes/utils/JoinNode.js +31 -3
  529. package/src/nodes/utils/LoopNode.js +95 -9
  530. package/src/nodes/utils/MatcapUVNode.js +27 -8
  531. package/src/nodes/utils/MaxMipLevelNode.js +57 -6
  532. package/src/nodes/utils/MemberNode.js +68 -0
  533. package/src/nodes/utils/Oscillators.js +41 -0
  534. package/src/nodes/utils/Packing.js +21 -0
  535. package/src/nodes/utils/PostProcessingUtils.js +95 -0
  536. package/src/nodes/utils/RTTNode.js +141 -9
  537. package/src/nodes/utils/ReflectorNode.js +295 -21
  538. package/src/nodes/utils/RemapNode.js +93 -10
  539. package/src/nodes/utils/RotateNode.js +48 -13
  540. package/src/nodes/utils/SetNode.js +50 -4
  541. package/src/nodes/utils/SplitNode.js +62 -6
  542. package/src/nodes/utils/SpriteSheetUVNode.js +56 -7
  543. package/src/nodes/utils/SpriteUtils.js +21 -5
  544. package/src/nodes/utils/StorageArrayElementNode.js +64 -12
  545. package/src/nodes/utils/Timer.js +73 -0
  546. package/src/nodes/utils/TriplanarTexturesNode.js +96 -10
  547. package/src/nodes/utils/UVUtils.js +27 -9
  548. package/src/nodes/utils/ViewportUtils.js +16 -4
  549. package/src/objects/BatchedMesh.js +808 -281
  550. package/src/objects/Bone.js +24 -0
  551. package/src/objects/ClippingGroup.js +68 -0
  552. package/src/objects/Group.js +24 -0
  553. package/src/objects/InstancedMesh.js +120 -2
  554. package/src/objects/LOD.js +120 -5
  555. package/src/objects/Line.js +89 -6
  556. package/src/objects/LineLoop.js +20 -0
  557. package/src/objects/LineSegments.js +18 -0
  558. package/src/objects/Mesh.js +82 -23
  559. package/src/objects/Points.js +62 -0
  560. package/src/objects/Skeleton.js +107 -2
  561. package/src/objects/SkinnedMesh.js +99 -5
  562. package/src/objects/Sprite.js +54 -0
  563. package/src/renderers/WebGLRenderer.js +274 -157
  564. package/src/renderers/common/Animation.js +109 -12
  565. package/src/renderers/common/Attributes.js +40 -0
  566. package/src/renderers/common/Backend.js +504 -44
  567. package/src/renderers/common/Background.js +67 -9
  568. package/src/renderers/common/BindGroup.js +45 -1
  569. package/src/renderers/common/Binding.js +35 -0
  570. package/src/renderers/common/Bindings.js +136 -19
  571. package/src/renderers/common/Buffer.js +49 -0
  572. package/src/renderers/common/BufferUtils.js +25 -0
  573. package/src/renderers/common/BundleGroup.js +83 -0
  574. package/src/renderers/common/ChainMap.js +45 -6
  575. package/src/renderers/common/ClippingContext.js +175 -80
  576. package/src/renderers/common/Color4.js +40 -0
  577. package/src/renderers/common/ComputePipeline.js +24 -0
  578. package/src/renderers/common/Constants.js +2 -1
  579. package/src/renderers/common/CubeRenderTarget.js +22 -3
  580. package/src/renderers/common/DataMap.js +37 -1
  581. package/src/renderers/common/Geometries.js +111 -14
  582. package/src/renderers/common/IndirectStorageBufferAttribute.js +38 -0
  583. package/src/renderers/common/Info.js +78 -35
  584. package/src/renderers/common/Lighting.js +73 -0
  585. package/src/renderers/common/Pipeline.js +22 -0
  586. package/src/renderers/common/Pipelines.js +148 -5
  587. package/src/renderers/common/PostProcessing.js +112 -11
  588. package/src/renderers/common/ProgrammableStage.js +60 -2
  589. package/src/renderers/common/QuadMesh.js +56 -5
  590. package/src/renderers/common/RenderBundle.js +14 -8
  591. package/src/renderers/common/RenderBundles.js +39 -10
  592. package/src/renderers/common/RenderContext.js +205 -7
  593. package/src/renderers/common/RenderContexts.js +59 -6
  594. package/src/renderers/common/RenderList.js +230 -21
  595. package/src/renderers/common/RenderLists.js +45 -6
  596. package/src/renderers/common/RenderObject.js +552 -41
  597. package/src/renderers/common/RenderObjects.js +118 -9
  598. package/src/renderers/common/RenderPipeline.js +24 -0
  599. package/src/renderers/common/Renderer.js +1537 -239
  600. package/src/renderers/common/RendererUtils.js +191 -0
  601. package/src/renderers/common/SampledTexture.js +132 -3
  602. package/src/renderers/common/Sampler.js +30 -0
  603. package/src/renderers/common/StorageBuffer.js +24 -0
  604. package/src/renderers/common/StorageBufferAttribute.js +31 -2
  605. package/src/renderers/common/StorageInstancedBufferAttribute.js +31 -2
  606. package/src/renderers/common/StorageTexture.js +38 -0
  607. package/src/renderers/common/Textures.js +142 -32
  608. package/src/renderers/common/TimestampQueryPool.js +98 -0
  609. package/src/renderers/common/Uniform.js +225 -3
  610. package/src/renderers/common/UniformBuffer.js +19 -0
  611. package/src/renderers/common/UniformsGroup.js +157 -6
  612. package/src/renderers/common/XRManager.js +1185 -0
  613. package/src/renderers/common/XRRenderTarget.js +74 -0
  614. package/src/renderers/common/extras/PMREMGenerator.js +211 -53
  615. package/src/renderers/common/nodes/NodeBuilderState.js +100 -6
  616. package/src/renderers/common/nodes/NodeLibrary.js +194 -0
  617. package/src/renderers/common/nodes/NodeSampledTexture.js +92 -4
  618. package/src/renderers/common/nodes/NodeSampler.js +28 -0
  619. package/src/renderers/common/nodes/NodeStorageBuffer.js +37 -3
  620. package/src/renderers/common/nodes/NodeUniform.js +285 -2
  621. package/src/renderers/common/nodes/NodeUniformBuffer.js +29 -0
  622. package/src/renderers/common/nodes/NodeUniformsGroup.js +31 -18
  623. package/src/renderers/common/nodes/Nodes.js +390 -70
  624. package/src/renderers/shaders/ShaderChunk/colorspace_pars_fragment.glsl.js +4 -24
  625. package/src/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl.js +8 -0
  626. package/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +2 -2
  627. package/src/renderers/shaders/ShaderChunk/map_fragment.glsl.js +2 -2
  628. package/src/renderers/shaders/ShaderChunk/tonemapping_pars_fragment.glsl.js +2 -2
  629. package/src/renderers/shaders/ShaderChunk/transmission_pars_fragment.glsl.js +7 -7
  630. package/src/renderers/shaders/ShaderLib/points.glsl.js +2 -0
  631. package/src/renderers/shaders/ShaderLib/sprite.glsl.js +2 -4
  632. package/src/renderers/webgl/WebGLAttributes.js +45 -14
  633. package/src/renderers/webgl/WebGLBackground.js +24 -1
  634. package/src/renderers/webgl/WebGLBufferRenderer.js +2 -6
  635. package/src/renderers/webgl/WebGLCapabilities.js +2 -0
  636. package/src/renderers/webgl/WebGLGeometries.js +0 -28
  637. package/src/renderers/webgl/WebGLIndexedBufferRenderer.js +2 -6
  638. package/src/renderers/webgl/WebGLProgram.js +27 -29
  639. package/src/renderers/webgl/WebGLPrograms.js +24 -16
  640. package/src/renderers/webgl/WebGLState.js +68 -11
  641. package/src/renderers/webgl/WebGLTextures.js +49 -10
  642. package/src/renderers/webgl-fallback/WebGLBackend.js +1055 -238
  643. package/src/renderers/webgl-fallback/WebGLBufferRenderer.js +5 -10
  644. package/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js +425 -48
  645. package/src/renderers/webgl-fallback/utils/WebGLAttributeUtils.js +64 -1
  646. package/src/renderers/webgl-fallback/utils/WebGLCapabilities.js +28 -0
  647. package/src/renderers/webgl-fallback/utils/WebGLExtensions.js +45 -0
  648. package/src/renderers/webgl-fallback/utils/WebGLState.js +419 -14
  649. package/src/renderers/webgl-fallback/utils/WebGLTextureUtils.js +281 -59
  650. package/src/renderers/webgl-fallback/utils/WebGLTimestampQueryPool.js +367 -0
  651. package/src/renderers/webgl-fallback/utils/WebGLUtils.js +43 -0
  652. package/src/renderers/webgpu/WebGPUBackend.js +816 -236
  653. package/src/renderers/webgpu/WebGPURenderer.Nodes.js +78 -0
  654. package/src/renderers/webgpu/WebGPURenderer.js +45 -6
  655. package/src/renderers/webgpu/nodes/BasicNodeLibrary.js +63 -0
  656. package/src/renderers/webgpu/nodes/StandardNodeLibrary.js +97 -0
  657. package/src/renderers/webgpu/nodes/WGSLNodeBuilder.js +954 -147
  658. package/src/renderers/webgpu/nodes/WGSLNodeFunction.js +29 -4
  659. package/src/renderers/webgpu/nodes/WGSLNodeParser.js +11 -0
  660. package/src/renderers/webgpu/utils/WebGPUAttributeUtils.js +147 -31
  661. package/src/renderers/webgpu/utils/WebGPUBindingUtils.js +213 -31
  662. package/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +146 -28
  663. package/src/renderers/webgpu/utils/WebGPUTexturePassUtils.js +161 -7
  664. package/src/renderers/webgpu/utils/WebGPUTextureUtils.js +333 -50
  665. package/src/renderers/webgpu/utils/WebGPUTimestampQueryPool.js +287 -0
  666. package/src/renderers/webgpu/utils/WebGPUUtils.js +131 -3
  667. package/src/renderers/webxr/WebXRDepthSensing.js +1 -1
  668. package/src/renderers/webxr/WebXRManager.js +54 -32
  669. package/src/scenes/Fog.js +60 -0
  670. package/src/scenes/FogExp2.js +51 -0
  671. package/src/scenes/Scene.js +87 -0
  672. package/src/textures/Data3DTexture.js +2 -2
  673. package/src/textures/DepthTexture.js +2 -0
  674. package/src/textures/Source.js +2 -2
  675. package/src/textures/Texture.js +368 -5
  676. package/src/textures/VideoFrameTexture.js +35 -0
  677. package/src/utils.js +33 -1
  678. package/examples/jsm/animation/MMDAnimationHelper.js +0 -1207
  679. package/examples/jsm/animation/MMDPhysics.js +0 -1406
  680. package/examples/jsm/cameras/CinematicCamera.js +0 -208
  681. package/examples/jsm/controls/Controls.js +0 -32
  682. package/examples/jsm/exporters/MMDExporter.js +0 -217
  683. package/examples/jsm/geometries/InstancedPointsGeometry.js +0 -174
  684. package/examples/jsm/geometries/SDFGeometryGenerator.js +0 -144
  685. package/examples/jsm/libs/mmdparser.module.js +0 -11530
  686. package/examples/jsm/loaders/LogLuvLoader.js +0 -606
  687. package/examples/jsm/loaders/MMDLoader.js +0 -2295
  688. package/examples/jsm/loaders/TiltLoader.js +0 -520
  689. package/examples/jsm/objects/InstancedPoints.js +0 -21
  690. package/examples/jsm/shaders/MMDToonShader.js +0 -134
  691. package/examples/jsm/utils/GPUStatsPanel.js +0 -95
  692. package/examples/jsm/utils/PackedPhongMaterial.js +0 -178
  693. package/src/nodes/accessors/BitangentNode.js +0 -13
  694. package/src/nodes/accessors/CameraNode.js +0 -19
  695. package/src/nodes/accessors/InstancedPointsMaterialNode.js +0 -21
  696. package/src/nodes/accessors/NormalNode.js +0 -14
  697. package/src/nodes/accessors/PositionNode.js +0 -10
  698. package/src/nodes/accessors/ReflectVectorNode.js +0 -10
  699. package/src/nodes/accessors/TangentNode.js +0 -23
  700. package/src/nodes/accessors/UVNode.js +0 -3
  701. package/src/nodes/core/NodeKeywords.js +0 -80
  702. package/src/nodes/core/UniformGroup.js +0 -13
  703. package/src/nodes/display/AfterImageNode.js +0 -152
  704. package/src/nodes/display/AnamorphicNode.js +0 -145
  705. package/src/nodes/display/BlendModeNode.js +0 -128
  706. package/src/nodes/display/ColorAdjustmentNode.js +0 -104
  707. package/src/nodes/display/DenoiseNode.js +0 -198
  708. package/src/nodes/display/DotScreenNode.js +0 -75
  709. package/src/nodes/display/FXAANode.js +0 -327
  710. package/src/nodes/display/FilmNode.js +0 -52
  711. package/src/nodes/display/GTAONode.js +0 -324
  712. package/src/nodes/display/GaussianBlurNode.js +0 -207
  713. package/src/nodes/display/Lut3DNode.js +0 -53
  714. package/src/nodes/display/RGBShiftNode.js +0 -49
  715. package/src/nodes/display/SepiaNode.js +0 -18
  716. package/src/nodes/display/TransitionNode.js +0 -76
  717. package/src/nodes/display/ViewportNode.js +0 -137
  718. package/src/nodes/fog/FogExp2Node.js +0 -34
  719. package/src/nodes/fog/FogNode.js +0 -48
  720. package/src/nodes/fog/FogRangeNode.js +0 -35
  721. package/src/nodes/lighting/LightNode.js +0 -57
  722. package/src/nodes/loaders/NodeLoader.js +0 -110
  723. package/src/nodes/loaders/NodeMaterialLoader.js +0 -60
  724. package/src/nodes/loaders/NodeObjectLoader.js +0 -71
  725. package/src/nodes/materials/InstancedPointsNodeMaterial.js +0 -162
  726. package/src/nodes/materials/LineBasicNodeMaterial.js +0 -28
  727. package/src/nodes/materials/LineDashedNodeMaterial.js +0 -55
  728. package/src/nodes/materials/MeshBasicNodeMaterial.js +0 -73
  729. package/src/nodes/materials/MeshLambertNodeMaterial.js +0 -43
  730. package/src/nodes/materials/MeshMatcapNodeMaterial.js +0 -53
  731. package/src/nodes/materials/MeshNormalNodeMaterial.js +0 -40
  732. package/src/nodes/materials/MeshPhongNodeMaterial.js +0 -74
  733. package/src/nodes/materials/MeshPhysicalNodeMaterial.js +0 -244
  734. package/src/nodes/materials/MeshSSSNodeMaterial.js +0 -84
  735. package/src/nodes/materials/MeshStandardNodeMaterial.js +0 -104
  736. package/src/nodes/materials/MeshToonNodeMaterial.js +0 -34
  737. package/src/nodes/materials/NodeMaterial.js +0 -680
  738. package/src/nodes/materials/PointsNodeMaterial.js +0 -39
  739. package/src/nodes/materials/ShadowNodeMaterial.js +0 -34
  740. package/src/nodes/materials/SpriteNodeMaterial.js +0 -90
  741. package/src/nodes/materials/VolumeNodeMaterial.js +0 -106
  742. package/src/nodes/math/CondNode.js +0 -139
  743. package/src/nodes/math/HashNode.js +0 -34
  744. package/src/nodes/procedural/CheckerNode.js +0 -42
  745. package/src/nodes/utils/DiscardNode.js +0 -28
  746. package/src/nodes/utils/OscNode.js +0 -81
  747. package/src/nodes/utils/PackingNode.js +0 -55
  748. package/src/nodes/utils/TimerNode.js +0 -94
@@ -0,0 +1,550 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2010-2025 Three.js Authors
4
+ * SPDX-License-Identifier: MIT
5
+ */
6
+ import { TSL } from 'three/webgpu';
7
+
8
+ const BRDF_GGX = TSL.BRDF_GGX;
9
+ const BRDF_Lambert = TSL.BRDF_Lambert;
10
+ const BasicShadowFilter = TSL.BasicShadowFilter;
11
+ const Break = TSL.Break;
12
+ const Continue = TSL.Continue;
13
+ const DFGApprox = TSL.DFGApprox;
14
+ const D_GGX = TSL.D_GGX;
15
+ const Discard = TSL.Discard;
16
+ const EPSILON = TSL.EPSILON;
17
+ const F_Schlick = TSL.F_Schlick;
18
+ const Fn = TSL.Fn;
19
+ const INFINITY = TSL.INFINITY;
20
+ const If = TSL.If;
21
+ const Loop = TSL.Loop;
22
+ const NodeShaderStage = TSL.NodeShaderStage;
23
+ const NodeType = TSL.NodeType;
24
+ const NodeUpdateType = TSL.NodeUpdateType;
25
+ const NodeAccess = TSL.NodeAccess;
26
+ const PCFShadowFilter = TSL.PCFShadowFilter;
27
+ const PCFSoftShadowFilter = TSL.PCFSoftShadowFilter;
28
+ const PI = TSL.PI;
29
+ const PI2 = TSL.PI2;
30
+ const Return = TSL.Return;
31
+ const Schlick_to_F0 = TSL.Schlick_to_F0;
32
+ const ScriptableNodeResources = TSL.ScriptableNodeResources;
33
+ const ShaderNode = TSL.ShaderNode;
34
+ const TBNViewMatrix = TSL.TBNViewMatrix;
35
+ const VSMShadowFilter = TSL.VSMShadowFilter;
36
+ const V_GGX_SmithCorrelated = TSL.V_GGX_SmithCorrelated;
37
+ const abs = TSL.abs;
38
+ const acesFilmicToneMapping = TSL.acesFilmicToneMapping;
39
+ const acos = TSL.acos;
40
+ const add = TSL.add;
41
+ const addNodeElement = TSL.addNodeElement;
42
+ const agxToneMapping = TSL.agxToneMapping;
43
+ const all = TSL.all;
44
+ const alphaT = TSL.alphaT;
45
+ const and = TSL.and;
46
+ const anisotropy = TSL.anisotropy;
47
+ const anisotropyB = TSL.anisotropyB;
48
+ const anisotropyT = TSL.anisotropyT;
49
+ const any = TSL.any;
50
+ const append = TSL.append;
51
+ const array = TSL.array;
52
+ const arrayBuffer = TSL.arrayBuffer;
53
+ const asin = TSL.asin;
54
+ const assign = TSL.assign;
55
+ const atan = TSL.atan;
56
+ const atan2 = TSL.atan2;
57
+ const atomicAdd = TSL.atomicAdd;
58
+ const atomicAnd = TSL.atomicAnd;
59
+ const atomicFunc = TSL.atomicFunc;
60
+ const atomicMax = TSL.atomicMax;
61
+ const atomicMin = TSL.atomicMin;
62
+ const atomicOr = TSL.atomicOr;
63
+ const atomicStore = TSL.atomicStore;
64
+ const atomicSub = TSL.atomicSub;
65
+ const atomicXor = TSL.atomicXor;
66
+ const atomicLoad = TSL.atomicLoad;
67
+ const attenuationColor = TSL.attenuationColor;
68
+ const attenuationDistance = TSL.attenuationDistance;
69
+ const attribute = TSL.attribute;
70
+ const attributeArray = TSL.attributeArray;
71
+ const backgroundBlurriness = TSL.backgroundBlurriness;
72
+ const backgroundIntensity = TSL.backgroundIntensity;
73
+ const backgroundRotation = TSL.backgroundRotation;
74
+ const batch = TSL.batch;
75
+ const billboarding = TSL.billboarding;
76
+ const bitAnd = TSL.bitAnd;
77
+ const bitNot = TSL.bitNot;
78
+ const bitOr = TSL.bitOr;
79
+ const bitXor = TSL.bitXor;
80
+ const bitangentGeometry = TSL.bitangentGeometry;
81
+ const bitangentLocal = TSL.bitangentLocal;
82
+ const bitangentView = TSL.bitangentView;
83
+ const bitangentWorld = TSL.bitangentWorld;
84
+ const bitcast = TSL.bitcast;
85
+ const blendBurn = TSL.blendBurn;
86
+ const blendColor = TSL.blendColor;
87
+ const blendDodge = TSL.blendDodge;
88
+ const blendOverlay = TSL.blendOverlay;
89
+ const blendScreen = TSL.blendScreen;
90
+ const blur = TSL.blur;
91
+ const bool = TSL.bool;
92
+ const buffer = TSL.buffer;
93
+ const bufferAttribute = TSL.bufferAttribute;
94
+ const bumpMap = TSL.bumpMap;
95
+ const burn = TSL.burn;
96
+ const bvec2 = TSL.bvec2;
97
+ const bvec3 = TSL.bvec3;
98
+ const bvec4 = TSL.bvec4;
99
+ const bypass = TSL.bypass;
100
+ const cache = TSL.cache;
101
+ const call = TSL.call;
102
+ const cameraFar = TSL.cameraFar;
103
+ const cameraIndex = TSL.cameraIndex;
104
+ const cameraNear = TSL.cameraNear;
105
+ const cameraNormalMatrix = TSL.cameraNormalMatrix;
106
+ const cameraPosition = TSL.cameraPosition;
107
+ const cameraProjectionMatrix = TSL.cameraProjectionMatrix;
108
+ const cameraProjectionMatrixInverse = TSL.cameraProjectionMatrixInverse;
109
+ const cameraViewMatrix = TSL.cameraViewMatrix;
110
+ const cameraWorldMatrix = TSL.cameraWorldMatrix;
111
+ const cbrt = TSL.cbrt;
112
+ const cdl = TSL.cdl;
113
+ const ceil = TSL.ceil;
114
+ const checker = TSL.checker;
115
+ const cineonToneMapping = TSL.cineonToneMapping;
116
+ const clamp = TSL.clamp;
117
+ const clearcoat = TSL.clearcoat;
118
+ const clearcoatRoughness = TSL.clearcoatRoughness;
119
+ const code = TSL.code;
120
+ const color = TSL.color;
121
+ const colorSpaceToWorking = TSL.colorSpaceToWorking;
122
+ const colorToDirection = TSL.colorToDirection;
123
+ const compute = TSL.compute;
124
+ const cond = TSL.cond;
125
+ const Const = TSL.Const;
126
+ const context = TSL.context;
127
+ const convert = TSL.convert;
128
+ const convertColorSpace = TSL.convertColorSpace;
129
+ const convertToTexture = TSL.convertToTexture;
130
+ const cos = TSL.cos;
131
+ const cross = TSL.cross;
132
+ const cubeTexture = TSL.cubeTexture;
133
+ const dFdx = TSL.dFdx;
134
+ const dFdy = TSL.dFdy;
135
+ const dashSize = TSL.dashSize;
136
+ const defaultBuildStages = TSL.defaultBuildStages;
137
+ const defaultShaderStages = TSL.defaultShaderStages;
138
+ const defined = TSL.defined;
139
+ const degrees = TSL.degrees;
140
+ const deltaTime = TSL.deltaTime;
141
+ const densityFog = TSL.densityFog;
142
+ const densityFogFactor = TSL.densityFogFactor;
143
+ const depth = TSL.depth;
144
+ const depthPass = TSL.depthPass;
145
+ const difference = TSL.difference;
146
+ const diffuseColor = TSL.diffuseColor;
147
+ const directPointLight = TSL.directPointLight;
148
+ const directionToColor = TSL.directionToColor;
149
+ const dispersion = TSL.dispersion;
150
+ const distance = TSL.distance;
151
+ const div = TSL.div;
152
+ const dodge = TSL.dodge;
153
+ const dot = TSL.dot;
154
+ const drawIndex = TSL.drawIndex;
155
+ const dynamicBufferAttribute = TSL.dynamicBufferAttribute;
156
+ const element = TSL.element;
157
+ const emissive = TSL.emissive;
158
+ const equal = TSL.equal;
159
+ const equals = TSL.equals;
160
+ const equirectUV = TSL.equirectUV;
161
+ const exp = TSL.exp;
162
+ const exp2 = TSL.exp2;
163
+ const expression = TSL.expression;
164
+ const faceDirection = TSL.faceDirection;
165
+ const faceForward = TSL.faceForward;
166
+ const faceforward = TSL.faceforward;
167
+ const float = TSL.float;
168
+ const floor = TSL.floor;
169
+ const fog = TSL.fog;
170
+ const fract = TSL.fract;
171
+ const frameGroup = TSL.frameGroup;
172
+ const frameId = TSL.frameId;
173
+ const frontFacing = TSL.frontFacing;
174
+ const fwidth = TSL.fwidth;
175
+ const gain = TSL.gain;
176
+ const gapSize = TSL.gapSize;
177
+ const getConstNodeType = TSL.getConstNodeType;
178
+ const getCurrentStack = TSL.getCurrentStack;
179
+ const getDirection = TSL.getDirection;
180
+ const getDistanceAttenuation = TSL.getDistanceAttenuation;
181
+ const getGeometryRoughness = TSL.getGeometryRoughness;
182
+ const getNormalFromDepth = TSL.getNormalFromDepth;
183
+ const getParallaxCorrectNormal = TSL.getParallaxCorrectNormal;
184
+ const getRoughness = TSL.getRoughness;
185
+ const getScreenPosition = TSL.getScreenPosition;
186
+ const getShIrradianceAt = TSL.getShIrradianceAt;
187
+ const getTextureIndex = TSL.getTextureIndex;
188
+ const getViewPosition = TSL.getViewPosition;
189
+ const glsl = TSL.glsl;
190
+ const glslFn = TSL.glslFn;
191
+ const grayscale = TSL.grayscale;
192
+ const greaterThan = TSL.greaterThan;
193
+ const greaterThanEqual = TSL.greaterThanEqual;
194
+ const hash = TSL.hash;
195
+ const highpModelNormalViewMatrix = TSL.highpModelNormalViewMatrix;
196
+ const highpModelViewMatrix = TSL.highpModelViewMatrix;
197
+ const hue = TSL.hue;
198
+ const instance = TSL.instance;
199
+ const instanceIndex = TSL.instanceIndex;
200
+ const instancedArray = TSL.instancedArray;
201
+ const instancedBufferAttribute = TSL.instancedBufferAttribute;
202
+ const instancedDynamicBufferAttribute = TSL.instancedDynamicBufferAttribute;
203
+ const instancedMesh = TSL.instancedMesh;
204
+ const int = TSL.int;
205
+ const inverseSqrt = TSL.inverseSqrt;
206
+ const inversesqrt = TSL.inversesqrt;
207
+ const invocationLocalIndex = TSL.invocationLocalIndex;
208
+ const invocationSubgroupIndex = TSL.invocationSubgroupIndex;
209
+ const ior = TSL.ior;
210
+ const iridescence = TSL.iridescence;
211
+ const iridescenceIOR = TSL.iridescenceIOR;
212
+ const iridescenceThickness = TSL.iridescenceThickness;
213
+ const ivec2 = TSL.ivec2;
214
+ const ivec3 = TSL.ivec3;
215
+ const ivec4 = TSL.ivec4;
216
+ const js = TSL.js;
217
+ const label = TSL.label;
218
+ const length = TSL.length;
219
+ const lengthSq = TSL.lengthSq;
220
+ const lessThan = TSL.lessThan;
221
+ const lessThanEqual = TSL.lessThanEqual;
222
+ const lightPosition = TSL.lightPosition;
223
+ const lightTargetDirection = TSL.lightTargetDirection;
224
+ const lightTargetPosition = TSL.lightTargetPosition;
225
+ const lightViewPosition = TSL.lightViewPosition;
226
+ const lightingContext = TSL.lightingContext;
227
+ const lights = TSL.lights;
228
+ const linearDepth = TSL.linearDepth;
229
+ const linearToneMapping = TSL.linearToneMapping;
230
+ const localId = TSL.localId;
231
+ const globalId = TSL.globalId;
232
+ const log = TSL.log;
233
+ const log2 = TSL.log2;
234
+ const logarithmicDepthToViewZ = TSL.logarithmicDepthToViewZ;
235
+ const loop = TSL.loop;
236
+ const luminance = TSL.luminance;
237
+ const mediumpModelViewMatrix = TSL.mediumpModelViewMatrix;
238
+ const mat2 = TSL.mat2;
239
+ const mat3 = TSL.mat3;
240
+ const mat4 = TSL.mat4;
241
+ const matcapUV = TSL.matcapUV;
242
+ const materialAO = TSL.materialAO;
243
+ const materialAlphaTest = TSL.materialAlphaTest;
244
+ const materialAnisotropy = TSL.materialAnisotropy;
245
+ const materialAnisotropyVector = TSL.materialAnisotropyVector;
246
+ const materialAttenuationColor = TSL.materialAttenuationColor;
247
+ const materialAttenuationDistance = TSL.materialAttenuationDistance;
248
+ const materialClearcoat = TSL.materialClearcoat;
249
+ const materialClearcoatNormal = TSL.materialClearcoatNormal;
250
+ const materialClearcoatRoughness = TSL.materialClearcoatRoughness;
251
+ const materialColor = TSL.materialColor;
252
+ const materialDispersion = TSL.materialDispersion;
253
+ const materialEmissive = TSL.materialEmissive;
254
+ const materialIOR = TSL.materialIOR;
255
+ const materialIridescence = TSL.materialIridescence;
256
+ const materialIridescenceIOR = TSL.materialIridescenceIOR;
257
+ const materialIridescenceThickness = TSL.materialIridescenceThickness;
258
+ const materialLightMap = TSL.materialLightMap;
259
+ const materialLineDashOffset = TSL.materialLineDashOffset;
260
+ const materialLineDashSize = TSL.materialLineDashSize;
261
+ const materialLineGapSize = TSL.materialLineGapSize;
262
+ const materialLineScale = TSL.materialLineScale;
263
+ const materialLineWidth = TSL.materialLineWidth;
264
+ const materialMetalness = TSL.materialMetalness;
265
+ const materialNormal = TSL.materialNormal;
266
+ const materialOpacity = TSL.materialOpacity;
267
+ const materialPointSize = TSL.materialPointSize;
268
+ const materialReference = TSL.materialReference;
269
+ const materialReflectivity = TSL.materialReflectivity;
270
+ const materialRefractionRatio = TSL.materialRefractionRatio;
271
+ const materialRotation = TSL.materialRotation;
272
+ const materialRoughness = TSL.materialRoughness;
273
+ const materialSheen = TSL.materialSheen;
274
+ const materialSheenRoughness = TSL.materialSheenRoughness;
275
+ const materialShininess = TSL.materialShininess;
276
+ const materialSpecular = TSL.materialSpecular;
277
+ const materialSpecularColor = TSL.materialSpecularColor;
278
+ const materialSpecularIntensity = TSL.materialSpecularIntensity;
279
+ const materialSpecularStrength = TSL.materialSpecularStrength;
280
+ const materialThickness = TSL.materialThickness;
281
+ const materialTransmission = TSL.materialTransmission;
282
+ const max = TSL.max;
283
+ const maxMipLevel = TSL.maxMipLevel;
284
+ const metalness = TSL.metalness;
285
+ const min = TSL.min;
286
+ const mix = TSL.mix;
287
+ const mixElement = TSL.mixElement;
288
+ const mod = TSL.mod;
289
+ const modInt = TSL.modInt;
290
+ const modelDirection = TSL.modelDirection;
291
+ const modelNormalMatrix = TSL.modelNormalMatrix;
292
+ const modelPosition = TSL.modelPosition;
293
+ const modelRadius = TSL.modelRadius;
294
+ const modelScale = TSL.modelScale;
295
+ const modelViewMatrix = TSL.modelViewMatrix;
296
+ const modelViewPosition = TSL.modelViewPosition;
297
+ const modelViewProjection = TSL.modelViewProjection;
298
+ const modelWorldMatrix = TSL.modelWorldMatrix;
299
+ const modelWorldMatrixInverse = TSL.modelWorldMatrixInverse;
300
+ const morphReference = TSL.morphReference;
301
+ const mrt = TSL.mrt;
302
+ const mul = TSL.mul;
303
+ const mx_aastep = TSL.mx_aastep;
304
+ const mx_cell_noise_float = TSL.mx_cell_noise_float;
305
+ const mx_contrast = TSL.mx_contrast;
306
+ const mx_fractal_noise_float = TSL.mx_fractal_noise_float;
307
+ const mx_fractal_noise_vec2 = TSL.mx_fractal_noise_vec2;
308
+ const mx_fractal_noise_vec3 = TSL.mx_fractal_noise_vec3;
309
+ const mx_fractal_noise_vec4 = TSL.mx_fractal_noise_vec4;
310
+ const mx_hsvtorgb = TSL.mx_hsvtorgb;
311
+ const mx_noise_float = TSL.mx_noise_float;
312
+ const mx_noise_vec3 = TSL.mx_noise_vec3;
313
+ const mx_noise_vec4 = TSL.mx_noise_vec4;
314
+ const mx_ramplr = TSL.mx_ramplr;
315
+ const mx_ramptb = TSL.mx_ramptb;
316
+ const mx_rgbtohsv = TSL.mx_rgbtohsv;
317
+ const mx_safepower = TSL.mx_safepower;
318
+ const mx_splitlr = TSL.mx_splitlr;
319
+ const mx_splittb = TSL.mx_splittb;
320
+ const mx_srgb_texture_to_lin_rec709 = TSL.mx_srgb_texture_to_lin_rec709;
321
+ const mx_transform_uv = TSL.mx_transform_uv;
322
+ const mx_worley_noise_float = TSL.mx_worley_noise_float;
323
+ const mx_worley_noise_vec2 = TSL.mx_worley_noise_vec2;
324
+ const mx_worley_noise_vec3 = TSL.mx_worley_noise_vec3;
325
+ const negate = TSL.negate;
326
+ const neutralToneMapping = TSL.neutralToneMapping;
327
+ const nodeArray = TSL.nodeArray;
328
+ const nodeImmutable = TSL.nodeImmutable;
329
+ const nodeObject = TSL.nodeObject;
330
+ const nodeObjects = TSL.nodeObjects;
331
+ const nodeProxy = TSL.nodeProxy;
332
+ const normalFlat = TSL.normalFlat;
333
+ const normalGeometry = TSL.normalGeometry;
334
+ const normalLocal = TSL.normalLocal;
335
+ const normalMap = TSL.normalMap;
336
+ const normalView = TSL.normalView;
337
+ const normalWorld = TSL.normalWorld;
338
+ const normalize = TSL.normalize;
339
+ const not = TSL.not;
340
+ const notEqual = TSL.notEqual;
341
+ const numWorkgroups = TSL.numWorkgroups;
342
+ const objectDirection = TSL.objectDirection;
343
+ const objectGroup = TSL.objectGroup;
344
+ const objectPosition = TSL.objectPosition;
345
+ const objectRadius = TSL.objectRadius;
346
+ const objectScale = TSL.objectScale;
347
+ const objectViewPosition = TSL.objectViewPosition;
348
+ const objectWorldMatrix = TSL.objectWorldMatrix;
349
+ const oneMinus = TSL.oneMinus;
350
+ const or = TSL.or;
351
+ const orthographicDepthToViewZ = TSL.orthographicDepthToViewZ;
352
+ const oscSawtooth = TSL.oscSawtooth;
353
+ const oscSine = TSL.oscSine;
354
+ const oscSquare = TSL.oscSquare;
355
+ const oscTriangle = TSL.oscTriangle;
356
+ const output = TSL.output;
357
+ const outputStruct = TSL.outputStruct;
358
+ const overlay = TSL.overlay;
359
+ const overloadingFn = TSL.overloadingFn;
360
+ const parabola = TSL.parabola;
361
+ const parallaxDirection = TSL.parallaxDirection;
362
+ const parallaxUV = TSL.parallaxUV;
363
+ const parameter = TSL.parameter;
364
+ const pass = TSL.pass;
365
+ const passTexture = TSL.passTexture;
366
+ const pcurve = TSL.pcurve;
367
+ const perspectiveDepthToViewZ = TSL.perspectiveDepthToViewZ;
368
+ const pmremTexture = TSL.pmremTexture;
369
+ const pointUV = TSL.pointUV;
370
+ const pointWidth = TSL.pointWidth;
371
+ const positionGeometry = TSL.positionGeometry;
372
+ const positionLocal = TSL.positionLocal;
373
+ const positionPrevious = TSL.positionPrevious;
374
+ const positionView = TSL.positionView;
375
+ const positionViewDirection = TSL.positionViewDirection;
376
+ const positionWorld = TSL.positionWorld;
377
+ const positionWorldDirection = TSL.positionWorldDirection;
378
+ const posterize = TSL.posterize;
379
+ const pow = TSL.pow;
380
+ const pow2 = TSL.pow2;
381
+ const pow3 = TSL.pow3;
382
+ const pow4 = TSL.pow4;
383
+ const property = TSL.property;
384
+ const radians = TSL.radians;
385
+ const rand = TSL.rand;
386
+ const range = TSL.range;
387
+ const rangeFog = TSL.rangeFog;
388
+ const rangeFogFactor = TSL.rangeFogFactor;
389
+ const reciprocal = TSL.reciprocal;
390
+ const lightProjectionUV = TSL.lightProjectionUV;
391
+ const reference = TSL.reference;
392
+ const referenceBuffer = TSL.referenceBuffer;
393
+ const reflect = TSL.reflect;
394
+ const reflectVector = TSL.reflectVector;
395
+ const reflectView = TSL.reflectView;
396
+ const reflector = TSL.reflector;
397
+ const refract = TSL.refract;
398
+ const refractVector = TSL.refractVector;
399
+ const refractView = TSL.refractView;
400
+ const reinhardToneMapping = TSL.reinhardToneMapping;
401
+ const remainder = TSL.remainder;
402
+ const remap = TSL.remap;
403
+ const remapClamp = TSL.remapClamp;
404
+ const renderGroup = TSL.renderGroup;
405
+ const renderOutput = TSL.renderOutput;
406
+ const rendererReference = TSL.rendererReference;
407
+ const rotate = TSL.rotate;
408
+ const rotateUV = TSL.rotateUV;
409
+ const roughness = TSL.roughness;
410
+ const round = TSL.round;
411
+ const rtt = TSL.rtt;
412
+ const sRGBTransferEOTF = TSL.sRGBTransferEOTF;
413
+ const sRGBTransferOETF = TSL.sRGBTransferOETF;
414
+ const sampler = TSL.sampler;
415
+ const saturate = TSL.saturate;
416
+ const saturation = TSL.saturation;
417
+ const screen = TSL.screen;
418
+ const screenCoordinate = TSL.screenCoordinate;
419
+ const screenSize = TSL.screenSize;
420
+ const screenUV = TSL.screenUV;
421
+ const scriptable = TSL.scriptable;
422
+ const scriptableValue = TSL.scriptableValue;
423
+ const select = TSL.select;
424
+ const setCurrentStack = TSL.setCurrentStack;
425
+ const shaderStages = TSL.shaderStages;
426
+ const shadow = TSL.shadow;
427
+ const pointShadow = TSL.pointShadow;
428
+ const shadowPositionWorld = TSL.shadowPositionWorld;
429
+ const sharedUniformGroup = TSL.sharedUniformGroup;
430
+ const shapeCircle = TSL.shapeCircle;
431
+ const sheen = TSL.sheen;
432
+ const sheenRoughness = TSL.sheenRoughness;
433
+ const shiftLeft = TSL.shiftLeft;
434
+ const shiftRight = TSL.shiftRight;
435
+ const shininess = TSL.shininess;
436
+ const sign = TSL.sign;
437
+ const sin = TSL.sin;
438
+ const sinc = TSL.sinc;
439
+ const skinning = TSL.skinning;
440
+ const skinningReference = TSL.skinningReference;
441
+ const smoothstep = TSL.smoothstep;
442
+ const smoothstepElement = TSL.smoothstepElement;
443
+ const specularColor = TSL.specularColor;
444
+ const specularF90 = TSL.specularF90;
445
+ const spherizeUV = TSL.spherizeUV;
446
+ const split = TSL.split;
447
+ const spritesheetUV = TSL.spritesheetUV;
448
+ const sqrt = TSL.sqrt;
449
+ const stack = TSL.stack;
450
+ const step = TSL.step;
451
+ const storage = TSL.storage;
452
+ const storageBarrier = TSL.storageBarrier;
453
+ const storageObject = TSL.storageObject;
454
+ const storageTexture = TSL.storageTexture;
455
+ const string = TSL.string;
456
+ const struct = TSL.struct;
457
+ const sub = TSL.sub;
458
+ const subgroupIndex = TSL.subgroupIndex;
459
+ const subgroupSize = TSL.subgroupSize;
460
+ const tan = TSL.tan;
461
+ const tangentGeometry = TSL.tangentGeometry;
462
+ const tangentLocal = TSL.tangentLocal;
463
+ const tangentView = TSL.tangentView;
464
+ const tangentWorld = TSL.tangentWorld;
465
+ const temp = TSL.temp;
466
+ const texture = TSL.texture;
467
+ const texture3D = TSL.texture3D;
468
+ const textureBarrier = TSL.textureBarrier;
469
+ const textureBicubic = TSL.textureBicubic;
470
+ const textureCubeUV = TSL.textureCubeUV;
471
+ const textureLoad = TSL.textureLoad;
472
+ const textureSize = TSL.textureSize;
473
+ const textureStore = TSL.textureStore;
474
+ const thickness = TSL.thickness;
475
+ const threshold = TSL.threshold;
476
+ const time = TSL.time;
477
+ const timerDelta = TSL.timerDelta;
478
+ const timerGlobal = TSL.timerGlobal;
479
+ const timerLocal = TSL.timerLocal;
480
+ const toOutputColorSpace = TSL.toOutputColorSpace;
481
+ const toWorkingColorSpace = TSL.toWorkingColorSpace;
482
+ const toneMapping = TSL.toneMapping;
483
+ const toneMappingExposure = TSL.toneMappingExposure;
484
+ const toonOutlinePass = TSL.toonOutlinePass;
485
+ const transformDirection = TSL.transformDirection;
486
+ const transformNormal = TSL.transformNormal;
487
+ const transformNormalToView = TSL.transformNormalToView;
488
+ const transformedBentNormalView = TSL.transformedBentNormalView;
489
+ const transformedBitangentView = TSL.transformedBitangentView;
490
+ const transformedBitangentWorld = TSL.transformedBitangentWorld;
491
+ const transformedClearcoatNormalView = TSL.transformedClearcoatNormalView;
492
+ const transformedNormalView = TSL.transformedNormalView;
493
+ const transformedNormalWorld = TSL.transformedNormalWorld;
494
+ const transformedTangentView = TSL.transformedTangentView;
495
+ const transformedTangentWorld = TSL.transformedTangentWorld;
496
+ const transmission = TSL.transmission;
497
+ const transpose = TSL.transpose;
498
+ const tri = TSL.tri;
499
+ const tri3 = TSL.tri3;
500
+ const triNoise3D = TSL.triNoise3D;
501
+ const triplanarTexture = TSL.triplanarTexture;
502
+ const triplanarTextures = TSL.triplanarTextures;
503
+ const trunc = TSL.trunc;
504
+ const tslFn = TSL.tslFn;
505
+ const uint = TSL.uint;
506
+ const uniform = TSL.uniform;
507
+ const uniformArray = TSL.uniformArray;
508
+ const uniformGroup = TSL.uniformGroup;
509
+ const uniforms = TSL.uniforms;
510
+ const userData = TSL.userData;
511
+ const uv = TSL.uv;
512
+ const uvec2 = TSL.uvec2;
513
+ const uvec3 = TSL.uvec3;
514
+ const uvec4 = TSL.uvec4;
515
+ const Var = TSL.Var;
516
+ const varying = TSL.varying;
517
+ const varyingProperty = TSL.varyingProperty;
518
+ const vec2 = TSL.vec2;
519
+ const vec3 = TSL.vec3;
520
+ const vec4 = TSL.vec4;
521
+ const vectorComponents = TSL.vectorComponents;
522
+ const velocity = TSL.velocity;
523
+ const vertexColor = TSL.vertexColor;
524
+ const vertexIndex = TSL.vertexIndex;
525
+ const vibrance = TSL.vibrance;
526
+ const viewZToLogarithmicDepth = TSL.viewZToLogarithmicDepth;
527
+ const viewZToOrthographicDepth = TSL.viewZToOrthographicDepth;
528
+ const viewZToPerspectiveDepth = TSL.viewZToPerspectiveDepth;
529
+ const viewport = TSL.viewport;
530
+ const viewportBottomLeft = TSL.viewportBottomLeft;
531
+ const viewportCoordinate = TSL.viewportCoordinate;
532
+ const viewportDepthTexture = TSL.viewportDepthTexture;
533
+ const viewportLinearDepth = TSL.viewportLinearDepth;
534
+ const viewportMipTexture = TSL.viewportMipTexture;
535
+ const viewportResolution = TSL.viewportResolution;
536
+ const viewportSafeUV = TSL.viewportSafeUV;
537
+ const viewportSharedTexture = TSL.viewportSharedTexture;
538
+ const viewportSize = TSL.viewportSize;
539
+ const viewportTexture = TSL.viewportTexture;
540
+ const viewportTopLeft = TSL.viewportTopLeft;
541
+ const viewportUV = TSL.viewportUV;
542
+ const wgsl = TSL.wgsl;
543
+ const wgslFn = TSL.wgslFn;
544
+ const workgroupArray = TSL.workgroupArray;
545
+ const workgroupBarrier = TSL.workgroupBarrier;
546
+ const workgroupId = TSL.workgroupId;
547
+ const workingToColorSpace = TSL.workingToColorSpace;
548
+ const xor = TSL.xor;
549
+
550
+ export { BRDF_GGX, BRDF_Lambert, BasicShadowFilter, Break, Const, Continue, DFGApprox, D_GGX, Discard, EPSILON, F_Schlick, Fn, INFINITY, If, Loop, NodeAccess, NodeShaderStage, NodeType, NodeUpdateType, PCFShadowFilter, PCFSoftShadowFilter, PI, PI2, Return, Schlick_to_F0, ScriptableNodeResources, ShaderNode, TBNViewMatrix, VSMShadowFilter, V_GGX_SmithCorrelated, Var, abs, acesFilmicToneMapping, acos, add, addNodeElement, agxToneMapping, all, alphaT, and, anisotropy, anisotropyB, anisotropyT, any, append, array, arrayBuffer, asin, assign, atan, atan2, atomicAdd, atomicAnd, atomicFunc, atomicLoad, atomicMax, atomicMin, atomicOr, atomicStore, atomicSub, atomicXor, attenuationColor, attenuationDistance, attribute, attributeArray, backgroundBlurriness, backgroundIntensity, backgroundRotation, batch, billboarding, bitAnd, bitNot, bitOr, bitXor, bitangentGeometry, bitangentLocal, bitangentView, bitangentWorld, bitcast, blendBurn, blendColor, blendDodge, blendOverlay, blendScreen, blur, bool, buffer, bufferAttribute, bumpMap, burn, bvec2, bvec3, bvec4, bypass, cache, call, cameraFar, cameraIndex, cameraNear, cameraNormalMatrix, cameraPosition, cameraProjectionMatrix, cameraProjectionMatrixInverse, cameraViewMatrix, cameraWorldMatrix, cbrt, cdl, ceil, checker, cineonToneMapping, clamp, clearcoat, clearcoatRoughness, code, color, colorSpaceToWorking, colorToDirection, compute, cond, context, convert, convertColorSpace, convertToTexture, cos, cross, cubeTexture, dFdx, dFdy, dashSize, defaultBuildStages, defaultShaderStages, defined, degrees, deltaTime, densityFog, densityFogFactor, depth, depthPass, difference, diffuseColor, directPointLight, directionToColor, dispersion, distance, div, dodge, dot, drawIndex, dynamicBufferAttribute, element, emissive, equal, equals, equirectUV, exp, exp2, expression, faceDirection, faceForward, faceforward, float, floor, fog, fract, frameGroup, frameId, frontFacing, fwidth, gain, gapSize, getConstNodeType, getCurrentStack, getDirection, getDistanceAttenuation, getGeometryRoughness, getNormalFromDepth, getParallaxCorrectNormal, getRoughness, getScreenPosition, getShIrradianceAt, getTextureIndex, getViewPosition, globalId, glsl, glslFn, grayscale, greaterThan, greaterThanEqual, hash, highpModelNormalViewMatrix, highpModelViewMatrix, hue, instance, instanceIndex, instancedArray, instancedBufferAttribute, instancedDynamicBufferAttribute, instancedMesh, int, inverseSqrt, inversesqrt, invocationLocalIndex, invocationSubgroupIndex, ior, iridescence, iridescenceIOR, iridescenceThickness, ivec2, ivec3, ivec4, js, label, length, lengthSq, lessThan, lessThanEqual, lightPosition, lightProjectionUV, 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, 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, property, radians, rand, range, rangeFog, rangeFogFactor, reciprocal, reference, referenceBuffer, reflect, reflectVector, reflectView, reflector, refract, refractVector, refractView, reinhardToneMapping, remainder, remap, remapClamp, renderGroup, renderOutput, rendererReference, rotate, rotateUV, roughness, round, rtt, sRGBTransferEOTF, sRGBTransferOETF, sampler, saturate, saturation, screen, screenCoordinate, screenSize, screenUV, scriptable, scriptableValue, select, setCurrentStack, shaderStages, shadow, shadowPositionWorld, shapeCircle, sharedUniformGroup, sheen, sheenRoughness, shiftLeft, shiftRight, shininess, sign, sin, sinc, skinning, skinningReference, smoothstep, smoothstepElement, specularColor, specularF90, spherizeUV, split, spritesheetUV, sqrt, stack, step, storage, storageBarrier, storageObject, storageTexture, string, struct, sub, subgroupIndex, subgroupSize, tan, tangentGeometry, tangentLocal, tangentView, tangentWorld, temp, texture, texture3D, textureBarrier, textureBicubic, textureCubeUV, textureLoad, textureSize, textureStore, thickness, threshold, time, timerDelta, timerGlobal, timerLocal, toOutputColorSpace, toWorkingColorSpace, toneMapping, toneMappingExposure, toonOutlinePass, transformDirection, transformNormal, transformNormalToView, transformedBentNormalView, transformedBitangentView, transformedBitangentWorld, transformedClearcoatNormalView, transformedNormalView, transformedNormalWorld, transformedTangentView, transformedTangentWorld, transmission, transpose, tri, tri3, triNoise3D, triplanarTexture, triplanarTextures, trunc, tslFn, uint, uniform, uniformArray, uniformGroup, uniforms, userData, uv, uvec2, uvec3, uvec4, varying, varyingProperty, vec2, vec3, vec4, vectorComponents, velocity, vertexColor, vertexIndex, vibrance, viewZToLogarithmicDepth, viewZToOrthographicDepth, viewZToPerspectiveDepth, viewport, viewportBottomLeft, viewportCoordinate, viewportDepthTexture, viewportLinearDepth, viewportMipTexture, viewportResolution, viewportSafeUV, viewportSharedTexture, viewportSize, viewportTexture, viewportTopLeft, viewportUV, wgsl, wgslFn, workgroupArray, workgroupBarrier, workgroupId, workingToColorSpace, xor };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2010-2025 Three.js Authors
4
+ * SPDX-License-Identifier: MIT
5
+ */
6
+ import{TSL as e}from"three/webgpu";const t=e.BRDF_GGX,r=e.BRDF_Lambert,a=e.BasicShadowFilter,o=e.Break,i=e.Continue,n=e.DFGApprox,s=e.D_GGX,l=e.Discard,c=e.EPSILON,m=e.F_Schlick,p=e.Fn,d=e.INFINITY,u=e.If,g=e.Loop,h=e.NodeShaderStage,f=e.NodeType,x=e.NodeUpdateType,b=e.NodeAccess,w=e.PCFShadowFilter,v=e.PCFSoftShadowFilter,S=e.PI,T=e.PI2,_=e.Return,V=e.Schlick_to_F0,y=e.ScriptableNodeResources,D=e.ShaderNode,M=e.TBNViewMatrix,F=e.VSMShadowFilter,C=e.V_GGX_SmithCorrelated,I=e.abs,P=e.acesFilmicToneMapping,R=e.acos,N=e.add,B=e.addNodeElement,L=e.agxToneMapping,k=e.all,A=e.alphaT,G=e.and,O=e.anisotropy,W=e.anisotropyB,j=e.anisotropyT,U=e.any,z=e.append,q=e.array,E=e.arrayBuffer,Z=e.asin,X=e.assign,Y=e.atan,H=e.atan2,J=e.atomicAdd,K=e.atomicAnd,Q=e.atomicFunc,$=e.atomicMax,ee=e.atomicMin,te=e.atomicOr,re=e.atomicStore,ae=e.atomicSub,oe=e.atomicXor,ie=e.atomicLoad,ne=e.attenuationColor,se=e.attenuationDistance,le=e.attribute,ce=e.attributeArray,me=e.backgroundBlurriness,pe=e.backgroundIntensity,de=e.backgroundRotation,ue=e.batch,ge=e.billboarding,he=e.bitAnd,fe=e.bitNot,xe=e.bitOr,be=e.bitXor,we=e.bitangentGeometry,ve=e.bitangentLocal,Se=e.bitangentView,Te=e.bitangentWorld,_e=e.bitcast,Ve=e.blendBurn,ye=e.blendColor,De=e.blendDodge,Me=e.blendOverlay,Fe=e.blendScreen,Ce=e.blur,Ie=e.bool,Pe=e.buffer,Re=e.bufferAttribute,Ne=e.bumpMap,Be=e.burn,Le=e.bvec2,ke=e.bvec3,Ae=e.bvec4,Ge=e.bypass,Oe=e.cache,We=e.call,je=e.cameraFar,Ue=e.cameraIndex,ze=e.cameraNear,qe=e.cameraNormalMatrix,Ee=e.cameraPosition,Ze=e.cameraProjectionMatrix,Xe=e.cameraProjectionMatrixInverse,Ye=e.cameraViewMatrix,He=e.cameraWorldMatrix,Je=e.cbrt,Ke=e.cdl,Qe=e.ceil,$e=e.checker,et=e.cineonToneMapping,tt=e.clamp,rt=e.clearcoat,at=e.clearcoatRoughness,ot=e.code,it=e.color,nt=e.colorSpaceToWorking,st=e.colorToDirection,lt=e.compute,ct=e.cond,mt=e.Const,pt=e.context,dt=e.convert,ut=e.convertColorSpace,gt=e.convertToTexture,ht=e.cos,ft=e.cross,xt=e.cubeTexture,bt=e.dFdx,wt=e.dFdy,vt=e.dashSize,St=e.defaultBuildStages,Tt=e.defaultShaderStages,_t=e.defined,Vt=e.degrees,yt=e.deltaTime,Dt=e.densityFog,Mt=e.densityFogFactor,Ft=e.depth,Ct=e.depthPass,It=e.difference,Pt=e.diffuseColor,Rt=e.directPointLight,Nt=e.directionToColor,Bt=e.dispersion,Lt=e.distance,kt=e.div,At=e.dodge,Gt=e.dot,Ot=e.drawIndex,Wt=e.dynamicBufferAttribute,jt=e.element,Ut=e.emissive,zt=e.equal,qt=e.equals,Et=e.equirectUV,Zt=e.exp,Xt=e.exp2,Yt=e.expression,Ht=e.faceDirection,Jt=e.faceForward,Kt=e.faceforward,Qt=e.float,$t=e.floor,er=e.fog,tr=e.fract,rr=e.frameGroup,ar=e.frameId,or=e.frontFacing,ir=e.fwidth,nr=e.gain,sr=e.gapSize,lr=e.getConstNodeType,cr=e.getCurrentStack,mr=e.getDirection,pr=e.getDistanceAttenuation,dr=e.getGeometryRoughness,ur=e.getNormalFromDepth,gr=e.getParallaxCorrectNormal,hr=e.getRoughness,fr=e.getScreenPosition,xr=e.getShIrradianceAt,br=e.getTextureIndex,wr=e.getViewPosition,vr=e.glsl,Sr=e.glslFn,Tr=e.grayscale,_r=e.greaterThan,Vr=e.greaterThanEqual,yr=e.hash,Dr=e.highpModelNormalViewMatrix,Mr=e.highpModelViewMatrix,Fr=e.hue,Cr=e.instance,Ir=e.instanceIndex,Pr=e.instancedArray,Rr=e.instancedBufferAttribute,Nr=e.instancedDynamicBufferAttribute,Br=e.instancedMesh,Lr=e.int,kr=e.inverseSqrt,Ar=e.inversesqrt,Gr=e.invocationLocalIndex,Or=e.invocationSubgroupIndex,Wr=e.ior,jr=e.iridescence,Ur=e.iridescenceIOR,zr=e.iridescenceThickness,qr=e.ivec2,Er=e.ivec3,Zr=e.ivec4,Xr=e.js,Yr=e.label,Hr=e.length,Jr=e.lengthSq,Kr=e.lessThan,Qr=e.lessThanEqual,$r=e.lightPosition,ea=e.lightTargetDirection,ta=e.lightTargetPosition,ra=e.lightViewPosition,aa=e.lightingContext,oa=e.lights,ia=e.linearDepth,na=e.linearToneMapping,sa=e.localId,la=e.globalId,ca=e.log,ma=e.log2,pa=e.logarithmicDepthToViewZ,da=e.loop,ua=e.luminance,ga=e.mediumpModelViewMatrix,ha=e.mat2,fa=e.mat3,xa=e.mat4,ba=e.matcapUV,wa=e.materialAO,va=e.materialAlphaTest,Sa=e.materialAnisotropy,Ta=e.materialAnisotropyVector,_a=e.materialAttenuationColor,Va=e.materialAttenuationDistance,ya=e.materialClearcoat,Da=e.materialClearcoatNormal,Ma=e.materialClearcoatRoughness,Fa=e.materialColor,Ca=e.materialDispersion,Ia=e.materialEmissive,Pa=e.materialIOR,Ra=e.materialIridescence,Na=e.materialIridescenceIOR,Ba=e.materialIridescenceThickness,La=e.materialLightMap,ka=e.materialLineDashOffset,Aa=e.materialLineDashSize,Ga=e.materialLineGapSize,Oa=e.materialLineScale,Wa=e.materialLineWidth,ja=e.materialMetalness,Ua=e.materialNormal,za=e.materialOpacity,qa=e.materialPointSize,Ea=e.materialReference,Za=e.materialReflectivity,Xa=e.materialRefractionRatio,Ya=e.materialRotation,Ha=e.materialRoughness,Ja=e.materialSheen,Ka=e.materialSheenRoughness,Qa=e.materialShininess,$a=e.materialSpecular,eo=e.materialSpecularColor,to=e.materialSpecularIntensity,ro=e.materialSpecularStrength,ao=e.materialThickness,oo=e.materialTransmission,io=e.max,no=e.maxMipLevel,so=e.metalness,lo=e.min,co=e.mix,mo=e.mixElement,po=e.mod,uo=e.modInt,go=e.modelDirection,ho=e.modelNormalMatrix,fo=e.modelPosition,xo=e.modelRadius,bo=e.modelScale,wo=e.modelViewMatrix,vo=e.modelViewPosition,So=e.modelViewProjection,To=e.modelWorldMatrix,_o=e.modelWorldMatrixInverse,Vo=e.morphReference,yo=e.mrt,Do=e.mul,Mo=e.mx_aastep,Fo=e.mx_cell_noise_float,Co=e.mx_contrast,Io=e.mx_fractal_noise_float,Po=e.mx_fractal_noise_vec2,Ro=e.mx_fractal_noise_vec3,No=e.mx_fractal_noise_vec4,Bo=e.mx_hsvtorgb,Lo=e.mx_noise_float,ko=e.mx_noise_vec3,Ao=e.mx_noise_vec4,Go=e.mx_ramplr,Oo=e.mx_ramptb,Wo=e.mx_rgbtohsv,jo=e.mx_safepower,Uo=e.mx_splitlr,zo=e.mx_splittb,qo=e.mx_srgb_texture_to_lin_rec709,Eo=e.mx_transform_uv,Zo=e.mx_worley_noise_float,Xo=e.mx_worley_noise_vec2,Yo=e.mx_worley_noise_vec3,Ho=e.negate,Jo=e.neutralToneMapping,Ko=e.nodeArray,Qo=e.nodeImmutable,$o=e.nodeObject,ei=e.nodeObjects,ti=e.nodeProxy,ri=e.normalFlat,ai=e.normalGeometry,oi=e.normalLocal,ii=e.normalMap,ni=e.normalView,si=e.normalWorld,li=e.normalize,ci=e.not,mi=e.notEqual,pi=e.numWorkgroups,di=e.objectDirection,ui=e.objectGroup,gi=e.objectPosition,hi=e.objectRadius,fi=e.objectScale,xi=e.objectViewPosition,bi=e.objectWorldMatrix,wi=e.oneMinus,vi=e.or,Si=e.orthographicDepthToViewZ,Ti=e.oscSawtooth,_i=e.oscSine,Vi=e.oscSquare,yi=e.oscTriangle,Di=e.output,Mi=e.outputStruct,Fi=e.overlay,Ci=e.overloadingFn,Ii=e.parabola,Pi=e.parallaxDirection,Ri=e.parallaxUV,Ni=e.parameter,Bi=e.pass,Li=e.passTexture,ki=e.pcurve,Ai=e.perspectiveDepthToViewZ,Gi=e.pmremTexture,Oi=e.pointUV,Wi=e.pointWidth,ji=e.positionGeometry,Ui=e.positionLocal,zi=e.positionPrevious,qi=e.positionView,Ei=e.positionViewDirection,Zi=e.positionWorld,Xi=e.positionWorldDirection,Yi=e.posterize,Hi=e.pow,Ji=e.pow2,Ki=e.pow3,Qi=e.pow4,$i=e.property,en=e.radians,tn=e.rand,rn=e.range,an=e.rangeFog,on=e.rangeFogFactor,nn=e.reciprocal,sn=e.lightProjectionUV,ln=e.reference,cn=e.referenceBuffer,mn=e.reflect,pn=e.reflectVector,dn=e.reflectView,un=e.reflector,gn=e.refract,hn=e.refractVector,fn=e.refractView,xn=e.reinhardToneMapping,bn=e.remainder,wn=e.remap,vn=e.remapClamp,Sn=e.renderGroup,Tn=e.renderOutput,_n=e.rendererReference,Vn=e.rotate,yn=e.rotateUV,Dn=e.roughness,Mn=e.round,Fn=e.rtt,Cn=e.sRGBTransferEOTF,In=e.sRGBTransferOETF,Pn=e.sampler,Rn=e.saturate,Nn=e.saturation,Bn=e.screen,Ln=e.screenCoordinate,kn=e.screenSize,An=e.screenUV,Gn=e.scriptable,On=e.scriptableValue,Wn=e.select,jn=e.setCurrentStack,Un=e.shaderStages,zn=e.shadow,qn=e.pointShadow,En=e.shadowPositionWorld,Zn=e.sharedUniformGroup,Xn=e.shapeCircle,Yn=e.sheen,Hn=e.sheenRoughness,Jn=e.shiftLeft,Kn=e.shiftRight,Qn=e.shininess,$n=e.sign,es=e.sin,ts=e.sinc,rs=e.skinning,as=e.skinningReference,os=e.smoothstep,is=e.smoothstepElement,ns=e.specularColor,ss=e.specularF90,ls=e.spherizeUV,cs=e.split,ms=e.spritesheetUV,ps=e.sqrt,ds=e.stack,us=e.step,gs=e.storage,hs=e.storageBarrier,fs=e.storageObject,xs=e.storageTexture,bs=e.string,ws=e.struct,vs=e.sub,Ss=e.subgroupIndex,Ts=e.subgroupSize,_s=e.tan,Vs=e.tangentGeometry,ys=e.tangentLocal,Ds=e.tangentView,Ms=e.tangentWorld,Fs=e.temp,Cs=e.texture,Is=e.texture3D,Ps=e.textureBarrier,Rs=e.textureBicubic,Ns=e.textureCubeUV,Bs=e.textureLoad,Ls=e.textureSize,ks=e.textureStore,As=e.thickness,Gs=e.threshold,Os=e.time,Ws=e.timerDelta,js=e.timerGlobal,Us=e.timerLocal,zs=e.toOutputColorSpace,qs=e.toWorkingColorSpace,Es=e.toneMapping,Zs=e.toneMappingExposure,Xs=e.toonOutlinePass,Ys=e.transformDirection,Hs=e.transformNormal,Js=e.transformNormalToView,Ks=e.transformedBentNormalView,Qs=e.transformedBitangentView,$s=e.transformedBitangentWorld,el=e.transformedClearcoatNormalView,tl=e.transformedNormalView,rl=e.transformedNormalWorld,al=e.transformedTangentView,ol=e.transformedTangentWorld,il=e.transmission,nl=e.transpose,sl=e.tri,ll=e.tri3,cl=e.triNoise3D,ml=e.triplanarTexture,pl=e.triplanarTextures,dl=e.trunc,ul=e.tslFn,gl=e.uint,hl=e.uniform,fl=e.uniformArray,xl=e.uniformGroup,bl=e.uniforms,wl=e.userData,vl=e.uv,Sl=e.uvec2,Tl=e.uvec3,_l=e.uvec4,Vl=e.Var,yl=e.varying,Dl=e.varyingProperty,Ml=e.vec2,Fl=e.vec3,Cl=e.vec4,Il=e.vectorComponents,Pl=e.velocity,Rl=e.vertexColor,Nl=e.vertexIndex,Bl=e.vibrance,Ll=e.viewZToLogarithmicDepth,kl=e.viewZToOrthographicDepth,Al=e.viewZToPerspectiveDepth,Gl=e.viewport,Ol=e.viewportBottomLeft,Wl=e.viewportCoordinate,jl=e.viewportDepthTexture,Ul=e.viewportLinearDepth,zl=e.viewportMipTexture,ql=e.viewportResolution,El=e.viewportSafeUV,Zl=e.viewportSharedTexture,Xl=e.viewportSize,Yl=e.viewportTexture,Hl=e.viewportTopLeft,Jl=e.viewportUV,Kl=e.wgsl,Ql=e.wgslFn,$l=e.workgroupArray,ec=e.workgroupBarrier,tc=e.workgroupId,rc=e.workingToColorSpace,ac=e.xor;export{t as BRDF_GGX,r as BRDF_Lambert,a as BasicShadowFilter,o as Break,mt as Const,i as Continue,n as DFGApprox,s as D_GGX,l as Discard,c as EPSILON,m as F_Schlick,p as Fn,d as INFINITY,u as If,g as Loop,b as NodeAccess,h as NodeShaderStage,f as NodeType,x as NodeUpdateType,w as PCFShadowFilter,v as PCFSoftShadowFilter,S as PI,T as PI2,_ as Return,V as Schlick_to_F0,y as ScriptableNodeResources,D as ShaderNode,M as TBNViewMatrix,F as VSMShadowFilter,C as V_GGX_SmithCorrelated,Vl as Var,I as abs,P as acesFilmicToneMapping,R as acos,N as add,B as addNodeElement,L as agxToneMapping,k as all,A as alphaT,G as and,O as anisotropy,W as anisotropyB,j as anisotropyT,U as any,z as append,q as array,E as arrayBuffer,Z as asin,X as assign,Y as atan,H as atan2,J as atomicAdd,K as atomicAnd,Q as atomicFunc,ie as atomicLoad,$ as atomicMax,ee as atomicMin,te as atomicOr,re as atomicStore,ae as atomicSub,oe as atomicXor,ne as attenuationColor,se as attenuationDistance,le as attribute,ce as attributeArray,me as backgroundBlurriness,pe as backgroundIntensity,de as backgroundRotation,ue as batch,ge as billboarding,he as bitAnd,fe as bitNot,xe as bitOr,be as bitXor,we as bitangentGeometry,ve as bitangentLocal,Se as bitangentView,Te as bitangentWorld,_e as bitcast,Ve as blendBurn,ye as blendColor,De as blendDodge,Me as blendOverlay,Fe as blendScreen,Ce as blur,Ie as bool,Pe as buffer,Re as bufferAttribute,Ne as bumpMap,Be as burn,Le as bvec2,ke as bvec3,Ae as bvec4,Ge as bypass,Oe as cache,We as call,je as cameraFar,Ue as cameraIndex,ze as cameraNear,qe as cameraNormalMatrix,Ee as cameraPosition,Ze as cameraProjectionMatrix,Xe as cameraProjectionMatrixInverse,Ye as cameraViewMatrix,He as cameraWorldMatrix,Je as cbrt,Ke as cdl,Qe as ceil,$e as checker,et as cineonToneMapping,tt as clamp,rt as clearcoat,at as clearcoatRoughness,ot as code,it as color,nt as colorSpaceToWorking,st as colorToDirection,lt as compute,ct as cond,pt as context,dt as convert,ut as convertColorSpace,gt as convertToTexture,ht as cos,ft as cross,xt as cubeTexture,bt as dFdx,wt as dFdy,vt as dashSize,St as defaultBuildStages,Tt as defaultShaderStages,_t as defined,Vt as degrees,yt as deltaTime,Dt as densityFog,Mt as densityFogFactor,Ft as depth,Ct as depthPass,It as difference,Pt as diffuseColor,Rt as directPointLight,Nt as directionToColor,Bt as dispersion,Lt as distance,kt as div,At as dodge,Gt as dot,Ot as drawIndex,Wt as dynamicBufferAttribute,jt as element,Ut as emissive,zt as equal,qt as equals,Et as equirectUV,Zt as exp,Xt as exp2,Yt as expression,Ht as faceDirection,Jt as faceForward,Kt as faceforward,Qt as float,$t as floor,er as fog,tr as fract,rr as frameGroup,ar as frameId,or as frontFacing,ir as fwidth,nr as gain,sr as gapSize,lr as getConstNodeType,cr as getCurrentStack,mr as getDirection,pr as getDistanceAttenuation,dr as getGeometryRoughness,ur as getNormalFromDepth,gr as getParallaxCorrectNormal,hr as getRoughness,fr as getScreenPosition,xr as getShIrradianceAt,br as getTextureIndex,wr as getViewPosition,la as globalId,vr as glsl,Sr as glslFn,Tr as grayscale,_r as greaterThan,Vr as greaterThanEqual,yr as hash,Dr as highpModelNormalViewMatrix,Mr as highpModelViewMatrix,Fr as hue,Cr as instance,Ir as instanceIndex,Pr as instancedArray,Rr as instancedBufferAttribute,Nr as instancedDynamicBufferAttribute,Br as instancedMesh,Lr as int,kr as inverseSqrt,Ar as inversesqrt,Gr as invocationLocalIndex,Or as invocationSubgroupIndex,Wr as ior,jr as iridescence,Ur as iridescenceIOR,zr as iridescenceThickness,qr as ivec2,Er as ivec3,Zr as ivec4,Xr as js,Yr as label,Hr as length,Jr as lengthSq,Kr as lessThan,Qr as lessThanEqual,$r as lightPosition,sn as lightProjectionUV,ea as lightTargetDirection,ta as lightTargetPosition,ra as lightViewPosition,aa as lightingContext,oa as lights,ia as linearDepth,na as linearToneMapping,sa as localId,ca as log,ma as log2,pa as logarithmicDepthToViewZ,da as loop,ua as luminance,ha as mat2,fa as mat3,xa as mat4,ba as matcapUV,wa as materialAO,va as materialAlphaTest,Sa as materialAnisotropy,Ta as materialAnisotropyVector,_a as materialAttenuationColor,Va as materialAttenuationDistance,ya as materialClearcoat,Da as materialClearcoatNormal,Ma as materialClearcoatRoughness,Fa as materialColor,Ca as materialDispersion,Ia as materialEmissive,Pa as materialIOR,Ra as materialIridescence,Na as materialIridescenceIOR,Ba as materialIridescenceThickness,La as materialLightMap,ka as materialLineDashOffset,Aa as materialLineDashSize,Ga as materialLineGapSize,Oa as materialLineScale,Wa as materialLineWidth,ja as materialMetalness,Ua as materialNormal,za as materialOpacity,qa as materialPointSize,Ea as materialReference,Za as materialReflectivity,Xa as materialRefractionRatio,Ya as materialRotation,Ha as materialRoughness,Ja as materialSheen,Ka as materialSheenRoughness,Qa as materialShininess,$a as materialSpecular,eo as materialSpecularColor,to as materialSpecularIntensity,ro as materialSpecularStrength,ao as materialThickness,oo as materialTransmission,io as max,no as maxMipLevel,ga as mediumpModelViewMatrix,so as metalness,lo as min,co as mix,mo as mixElement,po as mod,uo as modInt,go as modelDirection,ho as modelNormalMatrix,fo as modelPosition,xo as modelRadius,bo as modelScale,wo as modelViewMatrix,vo as modelViewPosition,So as modelViewProjection,To as modelWorldMatrix,_o as modelWorldMatrixInverse,Vo as morphReference,yo as mrt,Do as mul,Mo as mx_aastep,Fo as mx_cell_noise_float,Co as mx_contrast,Io as mx_fractal_noise_float,Po as mx_fractal_noise_vec2,Ro as mx_fractal_noise_vec3,No as mx_fractal_noise_vec4,Bo as mx_hsvtorgb,Lo as mx_noise_float,ko as mx_noise_vec3,Ao as mx_noise_vec4,Go as mx_ramplr,Oo as mx_ramptb,Wo as mx_rgbtohsv,jo as mx_safepower,Uo as mx_splitlr,zo as mx_splittb,qo as mx_srgb_texture_to_lin_rec709,Eo as mx_transform_uv,Zo as mx_worley_noise_float,Xo as mx_worley_noise_vec2,Yo as mx_worley_noise_vec3,Ho as negate,Jo as neutralToneMapping,Ko as nodeArray,Qo as nodeImmutable,$o as nodeObject,ei as nodeObjects,ti as nodeProxy,ri as normalFlat,ai as normalGeometry,oi as normalLocal,ii as normalMap,ni as normalView,si as normalWorld,li as normalize,ci as not,mi as notEqual,pi as numWorkgroups,di as objectDirection,ui as objectGroup,gi as objectPosition,hi as objectRadius,fi as objectScale,xi as objectViewPosition,bi as objectWorldMatrix,wi as oneMinus,vi as or,Si as orthographicDepthToViewZ,Ti as oscSawtooth,_i as oscSine,Vi as oscSquare,yi as oscTriangle,Di as output,Mi as outputStruct,Fi as overlay,Ci as overloadingFn,Ii as parabola,Pi as parallaxDirection,Ri as parallaxUV,Ni as parameter,Bi as pass,Li as passTexture,ki as pcurve,Ai as perspectiveDepthToViewZ,Gi as pmremTexture,qn as pointShadow,Oi as pointUV,Wi as pointWidth,ji as positionGeometry,Ui as positionLocal,zi as positionPrevious,qi as positionView,Ei as positionViewDirection,Zi as positionWorld,Xi as positionWorldDirection,Yi as posterize,Hi as pow,Ji as pow2,Ki as pow3,Qi as pow4,$i as property,en as radians,tn as rand,rn as range,an as rangeFog,on as rangeFogFactor,nn as reciprocal,ln as reference,cn as referenceBuffer,mn as reflect,pn as reflectVector,dn as reflectView,un as reflector,gn as refract,hn as refractVector,fn as refractView,xn as reinhardToneMapping,bn as remainder,wn as remap,vn as remapClamp,Sn as renderGroup,Tn as renderOutput,_n as rendererReference,Vn as rotate,yn as rotateUV,Dn as roughness,Mn as round,Fn as rtt,Cn as sRGBTransferEOTF,In as sRGBTransferOETF,Pn as sampler,Rn as saturate,Nn as saturation,Bn as screen,Ln as screenCoordinate,kn as screenSize,An as screenUV,Gn as scriptable,On as scriptableValue,Wn as select,jn as setCurrentStack,Un as shaderStages,zn as shadow,En as shadowPositionWorld,Xn as shapeCircle,Zn as sharedUniformGroup,Yn as sheen,Hn as sheenRoughness,Jn as shiftLeft,Kn as shiftRight,Qn as shininess,$n as sign,es as sin,ts as sinc,rs as skinning,as as skinningReference,os as smoothstep,is as smoothstepElement,ns as specularColor,ss as specularF90,ls as spherizeUV,cs as split,ms as spritesheetUV,ps as sqrt,ds as stack,us as step,gs as storage,hs as storageBarrier,fs as storageObject,xs as storageTexture,bs as string,ws as struct,vs as sub,Ss as subgroupIndex,Ts as subgroupSize,_s as tan,Vs as tangentGeometry,ys as tangentLocal,Ds as tangentView,Ms as tangentWorld,Fs as temp,Cs as texture,Is as texture3D,Ps as textureBarrier,Rs as textureBicubic,Ns as textureCubeUV,Bs as textureLoad,Ls as textureSize,ks as textureStore,As as thickness,Gs as threshold,Os as time,Ws as timerDelta,js as timerGlobal,Us as timerLocal,zs as toOutputColorSpace,qs as toWorkingColorSpace,Es as toneMapping,Zs as toneMappingExposure,Xs as toonOutlinePass,Ys as transformDirection,Hs as transformNormal,Js as transformNormalToView,Ks as transformedBentNormalView,Qs as transformedBitangentView,$s as transformedBitangentWorld,el as transformedClearcoatNormalView,tl as transformedNormalView,rl as transformedNormalWorld,al as transformedTangentView,ol as transformedTangentWorld,il as transmission,nl as transpose,sl as tri,ll as tri3,cl as triNoise3D,ml as triplanarTexture,pl as triplanarTextures,dl as trunc,ul as tslFn,gl as uint,hl as uniform,fl as uniformArray,xl as uniformGroup,bl as uniforms,wl as userData,vl as uv,Sl as uvec2,Tl as uvec3,_l as uvec4,yl as varying,Dl as varyingProperty,Ml as vec2,Fl as vec3,Cl as vec4,Il as vectorComponents,Pl as velocity,Rl as vertexColor,Nl as vertexIndex,Bl as vibrance,Ll as viewZToLogarithmicDepth,kl as viewZToOrthographicDepth,Al as viewZToPerspectiveDepth,Gl as viewport,Ol as viewportBottomLeft,Wl as viewportCoordinate,jl as viewportDepthTexture,Ul as viewportLinearDepth,zl as viewportMipTexture,ql as viewportResolution,El as viewportSafeUV,Zl as viewportSharedTexture,Xl as viewportSize,Yl as viewportTexture,Hl as viewportTopLeft,Jl as viewportUV,Kl as wgsl,Ql as wgslFn,$l as workgroupArray,ec as workgroupBarrier,tc as workgroupId,rc as workingToColorSpace,ac as xor};