@playdrop/playdrop-cli 0.3.5-build.1 → 0.3.8-build.2

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 (1288) hide show
  1. package/config/client-meta.json +5 -5
  2. package/dist/apps/upload.js +1 -0
  3. package/dist/catalogue.d.ts +7 -0
  4. package/dist/catalogue.js +70 -33
  5. package/dist/commands/create.js +129 -70
  6. package/dist/commands/createRemixContent.d.ts +3 -0
  7. package/dist/commands/createRemixContent.js +310 -0
  8. package/dist/commands/generation.d.ts +0 -1
  9. package/dist/commands/generation.js +0 -18
  10. package/dist/commands/init.js +3 -3
  11. package/dist/commands/upload.js +11 -0
  12. package/dist/index.js +17 -4
  13. package/node_modules/@playdrop/ai-client/dist/index.d.ts +1 -1
  14. package/node_modules/@playdrop/ai-client/dist/index.d.ts.map +1 -1
  15. package/node_modules/@playdrop/ai-client/dist/index.js +1 -1
  16. package/node_modules/@playdrop/api-client/dist/client.d.ts +8 -2
  17. package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
  18. package/node_modules/@playdrop/api-client/dist/client.js +2 -0
  19. package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts +3 -2
  20. package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts.map +1 -1
  21. package/node_modules/@playdrop/api-client/dist/domains/apps.js +24 -2
  22. package/node_modules/@playdrop/api-client/dist/domains/asset-packs.d.ts +3 -1
  23. package/node_modules/@playdrop/api-client/dist/domains/asset-packs.d.ts.map +1 -1
  24. package/node_modules/@playdrop/api-client/dist/domains/asset-packs.js +19 -1
  25. package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts +3 -1
  26. package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts.map +1 -1
  27. package/node_modules/@playdrop/api-client/dist/domains/assets.js +19 -1
  28. package/node_modules/@playdrop/api-client/dist/index.d.ts +3 -0
  29. package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
  30. package/node_modules/@playdrop/api-client/dist/index.js +9 -0
  31. package/node_modules/@playdrop/config/client-meta.json +5 -5
  32. package/node_modules/@playdrop/types/dist/api.d.ts +22 -1
  33. package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
  34. package/node_modules/@playdrop/types/dist/asset-pack.d.ts +1 -0
  35. package/node_modules/@playdrop/types/dist/asset-pack.d.ts.map +1 -1
  36. package/node_modules/@playdrop/types/dist/asset.d.ts +27 -0
  37. package/node_modules/@playdrop/types/dist/asset.d.ts.map +1 -1
  38. package/node_modules/@playdrop/types/dist/graph.d.ts +21 -0
  39. package/node_modules/@playdrop/types/dist/graph.d.ts.map +1 -1
  40. package/node_modules/@playdrop/types/dist/graph.js +66 -0
  41. package/node_modules/@playdrop/types/dist/version.d.ts +1 -0
  42. package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
  43. package/node_modules/@playdrop/vox-three/dist/src/index.d.ts +1 -0
  44. package/node_modules/@playdrop/vox-three/dist/src/index.js +18 -0
  45. package/node_modules/@playdrop/vox-three/dist/src/index.js.map +1 -0
  46. package/node_modules/@playdrop/vox-three/dist/src/vox.d.ts +25 -0
  47. package/node_modules/@playdrop/vox-three/dist/src/vox.js +425 -0
  48. package/node_modules/@playdrop/vox-three/dist/src/vox.js.map +1 -0
  49. package/node_modules/@playdrop/vox-three/dist/test/vox.test.d.ts +1 -0
  50. package/node_modules/@playdrop/vox-three/dist/test/vox.test.js +79 -0
  51. package/node_modules/@playdrop/vox-three/dist/test/vox.test.js.map +1 -0
  52. package/node_modules/@playdrop/vox-three/package.json +25 -0
  53. package/node_modules/three/LICENSE +1 -1
  54. package/node_modules/three/README.md +7 -7
  55. package/node_modules/three/build/three.cjs +49655 -25499
  56. package/node_modules/three/build/three.core.js +58952 -0
  57. package/node_modules/three/build/three.core.min.js +6 -0
  58. package/node_modules/three/build/three.module.js +11162 -45962
  59. package/node_modules/three/build/three.module.min.js +2 -2
  60. package/node_modules/three/build/three.tsl.js +640 -0
  61. package/node_modules/three/build/three.tsl.min.js +6 -0
  62. package/node_modules/three/build/three.webgpu.js +79685 -0
  63. package/node_modules/three/build/three.webgpu.min.js +6 -0
  64. package/node_modules/three/build/three.webgpu.nodes.js +79456 -0
  65. package/node_modules/three/build/three.webgpu.nodes.min.js +6 -0
  66. package/node_modules/three/examples/fonts/MPLUSRounded1c/MPLUSRounded1c-Regular.typeface.json.zip +0 -0
  67. package/node_modules/three/examples/fonts/MPLUSRounded1c/OFL.txt +91 -0
  68. package/node_modules/three/examples/jsm/Addons.js +8 -18
  69. package/node_modules/three/examples/jsm/animation/AnimationClipCreator.js +59 -7
  70. package/node_modules/three/examples/jsm/animation/CCDIKSolver.js +154 -45
  71. package/node_modules/three/examples/jsm/capabilities/WebGL.js +28 -23
  72. package/node_modules/three/examples/jsm/capabilities/WebGPU.js +19 -17
  73. package/node_modules/three/examples/jsm/controls/ArcballControls.js +636 -324
  74. package/node_modules/three/examples/jsm/controls/DragControls.js +332 -101
  75. package/node_modules/three/examples/jsm/controls/FirstPersonControls.js +291 -169
  76. package/node_modules/three/examples/jsm/controls/FlyControls.js +245 -191
  77. package/node_modules/three/examples/jsm/controls/MapControls.js +43 -9
  78. package/node_modules/three/examples/jsm/controls/OrbitControls.js +1156 -802
  79. package/node_modules/three/examples/jsm/controls/PointerLockControls.js +137 -35
  80. package/node_modules/three/examples/jsm/controls/TrackballControls.js +629 -456
  81. package/node_modules/three/examples/jsm/controls/TransformControls.js +442 -97
  82. package/node_modules/three/examples/jsm/csm/CSM.js +230 -17
  83. package/node_modules/three/examples/jsm/csm/CSMFrustum.js +61 -4
  84. package/node_modules/three/examples/jsm/csm/CSMHelper.js +50 -0
  85. package/node_modules/three/examples/jsm/csm/CSMShader.js +17 -5
  86. package/node_modules/three/examples/jsm/csm/CSMShadowNode.js +599 -0
  87. package/node_modules/three/examples/jsm/curves/CurveExtras.js +303 -31
  88. package/node_modules/three/examples/jsm/curves/NURBSCurve.js +91 -16
  89. package/node_modules/three/examples/jsm/curves/NURBSSurface.js +52 -6
  90. package/node_modules/three/examples/jsm/curves/NURBSUtils.js +102 -112
  91. package/node_modules/three/examples/jsm/curves/NURBSVolume.js +24 -4
  92. package/node_modules/three/examples/jsm/effects/AnaglyphEffect.js +39 -14
  93. package/node_modules/three/examples/jsm/effects/AsciiEffect.js +69 -22
  94. package/node_modules/three/examples/jsm/effects/OutlineEffect.js +61 -111
  95. package/node_modules/three/examples/jsm/effects/ParallaxBarrierEffect.js +48 -12
  96. package/node_modules/three/examples/jsm/effects/StereoEffect.js +37 -1
  97. package/node_modules/three/examples/jsm/environments/DebugEnvironment.js +50 -0
  98. package/node_modules/three/examples/jsm/environments/RoomEnvironment.js +82 -48
  99. package/node_modules/three/examples/jsm/exporters/DRACOExporter.js +59 -15
  100. package/node_modules/three/examples/jsm/exporters/EXRExporter.js +58 -19
  101. package/node_modules/three/examples/jsm/exporters/GLTFExporter.js +460 -174
  102. package/node_modules/three/examples/jsm/exporters/KTX2Exporter.js +80 -25
  103. package/node_modules/three/examples/jsm/exporters/OBJExporter.js +25 -1
  104. package/node_modules/three/examples/jsm/exporters/PLYExporter.js +51 -17
  105. package/node_modules/three/examples/jsm/exporters/STLExporter.js +27 -5
  106. package/node_modules/three/examples/jsm/exporters/USDZExporter.js +783 -268
  107. package/node_modules/three/examples/jsm/geometries/BoxLineGeometry.js +23 -0
  108. package/node_modules/three/examples/jsm/geometries/ConvexGeometry.js +19 -0
  109. package/node_modules/three/examples/jsm/geometries/DecalGeometry.js +94 -30
  110. package/node_modules/three/examples/jsm/geometries/ParametricFunctions.js +100 -0
  111. package/node_modules/three/examples/jsm/geometries/ParametricGeometry.js +38 -5
  112. package/node_modules/three/examples/jsm/geometries/RoundedBoxGeometry.js +68 -7
  113. package/node_modules/three/examples/jsm/geometries/TeapotGeometry.js +23 -38
  114. package/node_modules/three/examples/jsm/geometries/TextGeometry.js +48 -21
  115. package/node_modules/three/examples/jsm/gpgpu/BitonicSort.js +715 -0
  116. package/node_modules/three/examples/jsm/helpers/LightProbeHelper.js +79 -44
  117. package/node_modules/three/examples/jsm/helpers/LightProbeHelperGPU.js +102 -0
  118. package/node_modules/three/examples/jsm/helpers/OctreeHelper.js +36 -0
  119. package/node_modules/three/examples/jsm/helpers/PositionalAudioHelper.js +60 -0
  120. package/node_modules/three/examples/jsm/helpers/RapierHelper.js +59 -0
  121. package/node_modules/three/examples/jsm/helpers/RectAreaLightHelper.js +36 -3
  122. package/node_modules/three/examples/jsm/helpers/TextureHelper.js +28 -0
  123. package/node_modules/three/examples/jsm/helpers/TextureHelperGPU.js +214 -0
  124. package/node_modules/three/examples/jsm/helpers/VertexNormalsHelper.js +61 -2
  125. package/node_modules/three/examples/jsm/helpers/VertexTangentsHelper.js +47 -2
  126. package/node_modules/three/examples/jsm/helpers/ViewHelper.js +192 -65
  127. package/node_modules/three/examples/jsm/inspector/Inspector.js +427 -0
  128. package/node_modules/three/examples/jsm/inspector/RendererInspector.js +415 -0
  129. package/node_modules/three/examples/jsm/inspector/tabs/Console.js +204 -0
  130. package/node_modules/three/examples/jsm/inspector/tabs/Parameters.js +332 -0
  131. package/node_modules/three/examples/jsm/inspector/tabs/Performance.js +268 -0
  132. package/node_modules/three/examples/jsm/inspector/tabs/Viewer.js +166 -0
  133. package/node_modules/three/examples/jsm/inspector/ui/Graph.js +95 -0
  134. package/node_modules/three/examples/jsm/inspector/ui/Item.js +170 -0
  135. package/node_modules/three/examples/jsm/inspector/ui/List.js +75 -0
  136. package/node_modules/three/examples/jsm/inspector/ui/Profiler.js +170 -0
  137. package/node_modules/three/examples/jsm/inspector/ui/Style.js +654 -0
  138. package/node_modules/three/examples/jsm/inspector/ui/Tab.js +46 -0
  139. package/node_modules/three/examples/jsm/inspector/ui/Values.js +423 -0
  140. package/node_modules/three/examples/jsm/inspector/ui/utils.js +56 -0
  141. package/node_modules/three/examples/jsm/interactive/HTMLMesh.js +50 -21
  142. package/node_modules/three/examples/jsm/interactive/InteractiveGroup.js +170 -62
  143. package/node_modules/three/examples/jsm/interactive/SelectionBox.js +106 -9
  144. package/node_modules/three/examples/jsm/interactive/SelectionHelper.js +76 -30
  145. package/node_modules/three/examples/jsm/libs/basis/basis_transcoder.js +8 -10
  146. package/node_modules/three/examples/jsm/libs/basis/basis_transcoder.wasm +0 -0
  147. package/node_modules/three/examples/jsm/libs/demuxer_mp4.js +109 -0
  148. package/node_modules/three/examples/jsm/libs/draco/README.md +2 -2
  149. package/node_modules/three/examples/jsm/libs/fflate.module.js +694 -496
  150. package/node_modules/three/examples/jsm/libs/ktx-parse.module.js +1 -1
  151. package/node_modules/three/examples/jsm/libs/meshopt_decoder.module.js +75 -58
  152. package/node_modules/three/examples/jsm/libs/motion-controllers.module.js +1 -1
  153. package/node_modules/three/examples/jsm/libs/rhino3dm/rhino3dm.js +1 -8723
  154. package/node_modules/three/examples/jsm/libs/rhino3dm/rhino3dm.module.js +1 -8734
  155. package/node_modules/three/examples/jsm/libs/rhino3dm/rhino3dm.wasm +0 -0
  156. package/node_modules/three/examples/jsm/libs/tween.module.js +32 -14
  157. package/node_modules/three/examples/jsm/lighting/TiledLighting.js +42 -0
  158. package/node_modules/three/examples/jsm/lights/LightProbeGenerator.js +65 -14
  159. package/node_modules/three/examples/jsm/lights/RectAreaLightTexturesLib.js +127 -0
  160. package/node_modules/three/examples/jsm/lights/RectAreaLightUniformsLib.js +20 -59
  161. package/node_modules/three/examples/jsm/lines/Line2.js +41 -4
  162. package/node_modules/three/examples/jsm/lines/LineGeometry.js +80 -2
  163. package/node_modules/three/examples/jsm/lines/LineMaterial.js +100 -22
  164. package/node_modules/three/examples/jsm/lines/LineSegments2.js +69 -4
  165. package/node_modules/three/examples/jsm/lines/LineSegmentsGeometry.js +65 -8
  166. package/node_modules/three/examples/jsm/lines/Wireframe.js +58 -6
  167. package/node_modules/three/examples/jsm/lines/WireframeGeometry2.js +27 -2
  168. package/node_modules/three/examples/jsm/lines/webgpu/Line2.js +46 -0
  169. package/node_modules/three/examples/jsm/lines/webgpu/LineSegments2.js +411 -0
  170. package/node_modules/three/examples/jsm/lines/webgpu/Wireframe.js +86 -0
  171. package/node_modules/three/examples/jsm/loaders/3DMLoader.js +86 -23
  172. package/node_modules/three/examples/jsm/loaders/3MFLoader.js +148 -5
  173. package/node_modules/three/examples/jsm/loaders/AMFLoader.js +32 -12
  174. package/node_modules/three/examples/jsm/loaders/BVHLoader.js +59 -12
  175. package/node_modules/three/examples/jsm/loaders/ColladaLoader.js +51 -12
  176. package/node_modules/three/examples/jsm/loaders/DDSLoader.js +68 -1
  177. package/node_modules/three/examples/jsm/loaders/DRACOLoader.js +149 -23
  178. package/node_modules/three/examples/jsm/loaders/EXRLoader.js +584 -109
  179. package/node_modules/three/examples/jsm/loaders/FBXLoader.js +165 -97
  180. package/node_modules/three/examples/jsm/loaders/FontLoader.js +83 -6
  181. package/node_modules/three/examples/jsm/loaders/GCodeLoader.js +37 -6
  182. package/node_modules/three/examples/jsm/loaders/GLTFLoader.js +337 -108
  183. package/node_modules/three/examples/jsm/loaders/HDRCubeTextureLoader.js +52 -3
  184. package/node_modules/three/examples/jsm/loaders/HDRLoader.js +486 -0
  185. package/node_modules/three/examples/jsm/loaders/IESLoader.js +42 -0
  186. package/node_modules/three/examples/jsm/loaders/KMZLoader.js +33 -0
  187. package/node_modules/three/examples/jsm/loaders/KTX2Loader.js +441 -138
  188. package/node_modules/three/examples/jsm/loaders/KTXLoader.js +31 -10
  189. package/node_modules/three/examples/jsm/loaders/LDrawLoader.js +194 -145
  190. package/node_modules/three/examples/jsm/loaders/LUT3dlLoader.js +47 -25
  191. package/node_modules/three/examples/jsm/loaders/LUTCubeLoader.js +46 -23
  192. package/node_modules/three/examples/jsm/loaders/LUTImageLoader.js +79 -52
  193. package/node_modules/three/examples/jsm/loaders/LWOLoader.js +47 -20
  194. package/node_modules/three/examples/jsm/loaders/LottieLoader.js +54 -1
  195. package/node_modules/three/examples/jsm/loaders/MD2Loader.js +37 -1
  196. package/node_modules/three/examples/jsm/loaders/MDDLoader.js +57 -12
  197. package/node_modules/three/examples/jsm/loaders/MTLLoader.js +61 -35
  198. package/node_modules/three/examples/jsm/loaders/MaterialXLoader.js +291 -39
  199. package/node_modules/three/examples/jsm/loaders/NRRDLoader.js +38 -6
  200. package/node_modules/three/examples/jsm/loaders/OBJLoader.js +54 -4
  201. package/node_modules/three/examples/jsm/loaders/PCDLoader.js +183 -32
  202. package/node_modules/three/examples/jsm/loaders/PDBLoader.js +44 -4
  203. package/node_modules/three/examples/jsm/loaders/PLYLoader.js +78 -44
  204. package/node_modules/three/examples/jsm/loaders/PVRLoader.js +25 -6
  205. package/node_modules/three/examples/jsm/loaders/RGBELoader.js +6 -438
  206. package/node_modules/three/examples/jsm/loaders/STLLoader.js +51 -40
  207. package/node_modules/three/examples/jsm/loaders/SVGLoader.js +118 -24
  208. package/node_modules/three/examples/jsm/loaders/TDSLoader.js +92 -72
  209. package/node_modules/three/examples/jsm/loaders/TGALoader.js +23 -0
  210. package/node_modules/three/examples/jsm/loaders/TIFFLoader.js +23 -0
  211. package/node_modules/three/examples/jsm/loaders/TTFLoader.js +50 -3
  212. package/node_modules/three/examples/jsm/loaders/USDLoader.js +219 -0
  213. package/node_modules/three/examples/jsm/loaders/USDZLoader.js +4 -810
  214. package/node_modules/three/examples/jsm/loaders/UltraHDRLoader.js +630 -0
  215. package/node_modules/three/examples/jsm/loaders/VOXLoader.js +67 -2
  216. package/node_modules/three/examples/jsm/loaders/VRMLLoader.js +57 -21
  217. package/node_modules/three/examples/jsm/loaders/VTKLoader.js +119 -6
  218. package/node_modules/three/examples/jsm/loaders/XYZLoader.js +39 -2
  219. package/node_modules/three/examples/jsm/loaders/lwo/IFFParser.js +81 -78
  220. package/node_modules/three/examples/jsm/loaders/usd/USDAParser.js +741 -0
  221. package/node_modules/three/examples/jsm/loaders/usd/USDCParser.js +17 -0
  222. package/node_modules/three/examples/jsm/materials/LDrawConditionalLineMaterial.js +183 -0
  223. package/node_modules/three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.js +154 -0
  224. package/node_modules/three/examples/jsm/materials/MeshGouraudMaterial.js +9 -1
  225. package/node_modules/three/examples/jsm/materials/MeshPostProcessingMaterial.js +25 -2
  226. package/node_modules/three/examples/jsm/materials/WoodNodeMaterial.js +533 -0
  227. package/node_modules/three/examples/jsm/math/Capsule.js +91 -14
  228. package/node_modules/three/examples/jsm/math/ColorConverter.js +22 -0
  229. package/node_modules/three/examples/jsm/math/ColorSpaces.js +147 -0
  230. package/node_modules/three/examples/jsm/math/ConvexHull.js +517 -93
  231. package/node_modules/three/examples/jsm/math/ImprovedNoise.js +32 -15
  232. package/node_modules/three/examples/jsm/math/Lut.js +113 -0
  233. package/node_modules/three/examples/jsm/math/MeshSurfaceSampler.js +78 -13
  234. package/node_modules/three/examples/jsm/math/OBB.js +141 -29
  235. package/node_modules/three/examples/jsm/math/Octree.js +177 -25
  236. package/node_modules/three/examples/jsm/math/SimplexNoise.js +68 -42
  237. package/node_modules/three/examples/jsm/misc/ConvexObjectBreaker.js +45 -25
  238. package/node_modules/three/examples/jsm/misc/GPUComputationRenderer.js +105 -45
  239. package/node_modules/three/examples/jsm/misc/Gyroscope.js +12 -0
  240. package/node_modules/three/examples/jsm/misc/MD2Character.js +117 -2
  241. package/node_modules/three/examples/jsm/misc/MD2CharacterComplex.js +175 -11
  242. package/node_modules/three/examples/jsm/misc/MorphAnimMesh.js +44 -0
  243. package/node_modules/three/examples/jsm/misc/MorphBlendMesh.js +103 -0
  244. package/node_modules/three/examples/jsm/misc/ProgressiveLightMap.js +101 -54
  245. package/node_modules/three/examples/jsm/misc/ProgressiveLightMapGPU.js +322 -0
  246. package/node_modules/three/examples/jsm/misc/RollerCoaster.js +57 -0
  247. package/node_modules/three/examples/jsm/misc/TubePainter.js +437 -40
  248. package/node_modules/three/examples/jsm/misc/Volume.js +123 -75
  249. package/node_modules/three/examples/jsm/misc/VolumeSlice.js +95 -48
  250. package/node_modules/three/examples/jsm/modifiers/CurveModifier.js +77 -47
  251. package/node_modules/three/examples/jsm/modifiers/CurveModifierGPU.js +256 -0
  252. package/node_modules/three/examples/jsm/modifiers/EdgeSplitModifier.js +20 -0
  253. package/node_modules/three/examples/jsm/modifiers/SimplifyModifier.js +26 -11
  254. package/node_modules/three/examples/jsm/modifiers/TessellateModifier.js +35 -2
  255. package/node_modules/three/examples/jsm/objects/GroundedSkybox.js +25 -6
  256. package/node_modules/three/examples/jsm/objects/Lensflare.js +96 -4
  257. package/node_modules/three/examples/jsm/objects/LensflareMesh.js +376 -0
  258. package/node_modules/three/examples/jsm/objects/MarchingCubes.js +90 -5
  259. package/node_modules/three/examples/jsm/objects/Reflector.js +76 -2
  260. package/node_modules/three/examples/jsm/objects/ReflectorForSSRPass.js +41 -0
  261. package/node_modules/three/examples/jsm/objects/Refractor.js +62 -0
  262. package/node_modules/three/examples/jsm/objects/ShadowMesh.js +54 -4
  263. package/node_modules/three/examples/jsm/objects/Sky.js +30 -12
  264. package/node_modules/three/examples/jsm/objects/SkyMesh.js +243 -0
  265. package/node_modules/three/examples/jsm/objects/Water.js +45 -5
  266. package/node_modules/three/examples/jsm/objects/Water2.js +44 -4
  267. package/node_modules/three/examples/jsm/objects/Water2Mesh.js +199 -0
  268. package/node_modules/three/examples/jsm/objects/WaterMesh.js +196 -0
  269. package/node_modules/three/examples/jsm/physics/AmmoPhysics.js +48 -0
  270. package/node_modules/three/examples/jsm/physics/JoltPhysics.js +330 -0
  271. package/node_modules/three/examples/jsm/physics/RapierPhysics.js +231 -19
  272. package/node_modules/three/examples/jsm/postprocessing/AfterimagePass.js +110 -29
  273. package/node_modules/three/examples/jsm/postprocessing/BloomPass.js +128 -26
  274. package/node_modules/three/examples/jsm/postprocessing/BokehPass.js +99 -22
  275. package/node_modules/three/examples/jsm/postprocessing/ClearPass.js +54 -3
  276. package/node_modules/three/examples/jsm/postprocessing/CubeTexturePass.js +82 -21
  277. package/node_modules/three/examples/jsm/postprocessing/DotScreenPass.js +59 -10
  278. package/node_modules/three/examples/jsm/postprocessing/EffectComposer.js +135 -3
  279. package/node_modules/three/examples/jsm/postprocessing/FXAAPass.js +40 -0
  280. package/node_modules/three/examples/jsm/postprocessing/FilmPass.js +54 -5
  281. package/node_modules/three/examples/jsm/postprocessing/GTAOPass.js +202 -57
  282. package/node_modules/three/examples/jsm/postprocessing/GlitchPass.js +86 -37
  283. package/node_modules/three/examples/jsm/postprocessing/HalftonePass.js +65 -10
  284. package/node_modules/three/examples/jsm/postprocessing/LUTPass.js +43 -79
  285. package/node_modules/three/examples/jsm/postprocessing/MaskPass.js +91 -0
  286. package/node_modules/three/examples/jsm/postprocessing/OutlinePass.js +277 -155
  287. package/node_modules/three/examples/jsm/postprocessing/OutputPass.js +58 -14
  288. package/node_modules/three/examples/jsm/postprocessing/Pass.js +100 -4
  289. package/node_modules/three/examples/jsm/postprocessing/RenderPass.js +85 -1
  290. package/node_modules/three/examples/jsm/postprocessing/RenderPixelatedPass.js +124 -45
  291. package/node_modules/three/examples/jsm/postprocessing/RenderTransitionPass.js +267 -0
  292. package/node_modules/three/examples/jsm/postprocessing/SAOPass.js +128 -56
  293. package/node_modules/three/examples/jsm/postprocessing/SMAAPass.js +106 -75
  294. package/node_modules/three/examples/jsm/postprocessing/SSAARenderPass.js +120 -35
  295. package/node_modules/three/examples/jsm/postprocessing/SSAOPass.js +174 -67
  296. package/node_modules/three/examples/jsm/postprocessing/SSRPass.js +268 -53
  297. package/node_modules/three/examples/jsm/postprocessing/SavePass.js +69 -16
  298. package/node_modules/three/examples/jsm/postprocessing/ShaderPass.js +65 -7
  299. package/node_modules/three/examples/jsm/postprocessing/TAARenderPass.js +79 -24
  300. package/node_modules/three/examples/jsm/postprocessing/TexturePass.js +72 -8
  301. package/node_modules/three/examples/jsm/postprocessing/UnrealBloomPass.js +125 -46
  302. package/node_modules/three/examples/jsm/renderers/CSS2DRenderer.js +122 -9
  303. package/node_modules/three/examples/jsm/renderers/CSS3DRenderer.js +133 -8
  304. package/node_modules/three/examples/jsm/renderers/Projector.js +20 -2
  305. package/node_modules/three/examples/jsm/renderers/SVGRenderer.js +134 -5
  306. package/node_modules/three/examples/jsm/shaders/ACESFilmicToneMappingShader.js +12 -5
  307. package/node_modules/three/examples/jsm/shaders/AfterimageShader.js +8 -3
  308. package/node_modules/three/examples/jsm/shaders/BasicShader.js +8 -1
  309. package/node_modules/three/examples/jsm/shaders/BleachBypassShader.js +11 -5
  310. package/node_modules/three/examples/jsm/shaders/BlendShader.js +8 -1
  311. package/node_modules/three/examples/jsm/shaders/BokehShader.js +9 -3
  312. package/node_modules/three/examples/jsm/shaders/BokehShader2.js +11 -4
  313. package/node_modules/three/examples/jsm/shaders/BrightnessContrastShader.js +10 -4
  314. package/node_modules/three/examples/jsm/shaders/ColorCorrectionShader.js +8 -1
  315. package/node_modules/three/examples/jsm/shaders/ColorifyShader.js +9 -3
  316. package/node_modules/three/examples/jsm/shaders/ConvolutionShader.js +9 -38
  317. package/node_modules/three/examples/jsm/shaders/CopyShader.js +8 -1
  318. package/node_modules/three/examples/jsm/shaders/DOFMipMapShader.js +10 -3
  319. package/node_modules/three/examples/jsm/shaders/DepthLimitedBlurShader.js +10 -1
  320. package/node_modules/three/examples/jsm/shaders/DigitalGlitch.js +10 -7
  321. package/node_modules/three/examples/jsm/shaders/DotScreenShader.js +8 -3
  322. package/node_modules/three/examples/jsm/shaders/ExposureShader.js +8 -1
  323. package/node_modules/three/examples/jsm/shaders/FXAAShader.js +243 -233
  324. package/node_modules/three/examples/jsm/shaders/FilmShader.js +13 -0
  325. package/node_modules/three/examples/jsm/shaders/FocusShader.js +8 -3
  326. package/node_modules/three/examples/jsm/shaders/FreiChenShader.js +10 -3
  327. package/node_modules/three/examples/jsm/shaders/GTAOShader.js +37 -40
  328. package/node_modules/three/examples/jsm/shaders/GammaCorrectionShader.js +11 -2
  329. package/node_modules/three/examples/jsm/shaders/GodRaysShader.js +20 -8
  330. package/node_modules/three/examples/jsm/shaders/HalftoneShader.js +13 -4
  331. package/node_modules/three/examples/jsm/shaders/HorizontalBlurShader.js +12 -3
  332. package/node_modules/three/examples/jsm/shaders/HorizontalTiltShiftShader.js +9 -2
  333. package/node_modules/three/examples/jsm/shaders/HueSaturationShader.js +10 -3
  334. package/node_modules/three/examples/jsm/shaders/KaleidoShader.js +11 -4
  335. package/node_modules/three/examples/jsm/shaders/LuminosityHighPassShader.js +9 -7
  336. package/node_modules/three/examples/jsm/shaders/LuminosityShader.js +8 -2
  337. package/node_modules/three/examples/jsm/shaders/MirrorShader.js +10 -4
  338. package/node_modules/three/examples/jsm/shaders/NormalMapShader.js +7 -2
  339. package/node_modules/three/examples/jsm/shaders/OutputShader.js +24 -2
  340. package/node_modules/three/examples/jsm/shaders/PoissonDenoiseShader.js +24 -15
  341. package/node_modules/three/examples/jsm/shaders/RGBShiftShader.js +8 -1
  342. package/node_modules/three/examples/jsm/shaders/SAOShader.js +10 -1
  343. package/node_modules/three/examples/jsm/shaders/SMAAShader.js +24 -1
  344. package/node_modules/three/examples/jsm/shaders/SSAOShader.js +26 -5
  345. package/node_modules/three/examples/jsm/shaders/SSRShader.js +26 -1
  346. package/node_modules/three/examples/jsm/shaders/SepiaShader.js +8 -3
  347. package/node_modules/three/examples/jsm/shaders/SobelOperatorShader.js +9 -3
  348. package/node_modules/three/examples/jsm/shaders/SubsurfaceScatteringShader.js +13 -8
  349. package/node_modules/three/examples/jsm/shaders/TechnicolorShader.js +10 -4
  350. package/node_modules/three/examples/jsm/shaders/ToonShader.js +29 -6
  351. package/node_modules/three/examples/jsm/shaders/TriangleBlurShader.js +9 -4
  352. package/node_modules/three/examples/jsm/shaders/UnpackDepthRGBAShader.js +19 -4
  353. package/node_modules/three/examples/jsm/shaders/VelocityShader.js +8 -1
  354. package/node_modules/three/examples/jsm/shaders/VerticalBlurShader.js +9 -2
  355. package/node_modules/three/examples/jsm/shaders/VerticalTiltShiftShader.js +8 -1
  356. package/node_modules/three/examples/jsm/shaders/VignetteShader.js +8 -3
  357. package/node_modules/three/examples/jsm/shaders/VolumeShader.js +11 -2
  358. package/node_modules/three/examples/jsm/shaders/WaterRefractionShader.js +11 -0
  359. package/node_modules/three/examples/jsm/textures/FlakesTexture.js +14 -0
  360. package/node_modules/three/examples/jsm/transpiler/AST.js +392 -31
  361. package/node_modules/three/examples/jsm/transpiler/GLSLDecoder.js +366 -136
  362. package/node_modules/three/examples/jsm/transpiler/Linker.js +327 -0
  363. package/node_modules/three/examples/jsm/transpiler/ShaderToyDecoder.js +3 -3
  364. package/node_modules/three/examples/jsm/transpiler/TSLEncoder.js +336 -111
  365. package/node_modules/three/examples/jsm/transpiler/Transpiler.js +50 -1
  366. package/node_modules/three/examples/jsm/transpiler/TranspilerUtils.js +29 -0
  367. package/node_modules/three/examples/jsm/transpiler/WGSLEncoder.js +812 -0
  368. package/node_modules/three/examples/jsm/tsl/display/AfterImageNode.js +244 -0
  369. package/node_modules/three/examples/jsm/tsl/display/AnaglyphPassNode.js +107 -0
  370. package/node_modules/three/examples/jsm/tsl/display/AnamorphicNode.js +282 -0
  371. package/node_modules/three/examples/jsm/tsl/display/BleachBypass.js +33 -0
  372. package/node_modules/three/examples/jsm/tsl/display/BloomNode.js +524 -0
  373. package/node_modules/three/examples/jsm/tsl/display/ChromaticAberrationNode.js +207 -0
  374. package/node_modules/three/examples/jsm/tsl/display/DenoiseNode.js +334 -0
  375. package/node_modules/three/examples/jsm/tsl/display/DepthOfFieldNode.js +554 -0
  376. package/node_modules/three/examples/jsm/tsl/display/DotScreenNode.js +104 -0
  377. package/node_modules/three/examples/jsm/tsl/display/FXAANode.js +365 -0
  378. package/node_modules/three/examples/jsm/tsl/display/FilmNode.js +101 -0
  379. package/node_modules/three/examples/jsm/tsl/display/GTAONode.js +570 -0
  380. package/node_modules/three/examples/jsm/tsl/display/GaussianBlurNode.js +380 -0
  381. package/node_modules/three/examples/jsm/tsl/display/LensflareNode.js +279 -0
  382. package/node_modules/three/examples/jsm/tsl/display/Lut3DNode.js +109 -0
  383. package/node_modules/three/examples/jsm/tsl/display/MotionBlur.js +33 -0
  384. package/node_modules/three/examples/jsm/tsl/display/OutlineNode.js +762 -0
  385. package/node_modules/three/examples/jsm/tsl/display/ParallaxBarrierPassNode.js +89 -0
  386. package/node_modules/three/examples/jsm/tsl/display/PixelationPassNode.js +334 -0
  387. package/node_modules/three/examples/jsm/tsl/display/RGBShiftNode.js +96 -0
  388. package/node_modules/three/examples/jsm/tsl/display/SMAANode.js +768 -0
  389. package/node_modules/three/examples/jsm/tsl/display/SSAAPassNode.js +358 -0
  390. package/node_modules/three/examples/jsm/tsl/display/SSGINode.js +654 -0
  391. package/node_modules/three/examples/jsm/tsl/display/SSRNode.js +656 -0
  392. package/node_modules/three/examples/jsm/tsl/display/SSSNode.js +488 -0
  393. package/node_modules/three/examples/jsm/tsl/display/Sepia.js +24 -0
  394. package/node_modules/three/examples/jsm/tsl/display/SobelOperatorNode.js +168 -0
  395. package/node_modules/three/examples/jsm/tsl/display/StereoCompositePassNode.js +185 -0
  396. package/node_modules/three/examples/jsm/tsl/display/StereoPassNode.js +120 -0
  397. package/node_modules/three/examples/jsm/tsl/display/TRAANode.js +578 -0
  398. package/node_modules/three/examples/jsm/tsl/display/TransitionNode.js +141 -0
  399. package/node_modules/three/examples/jsm/tsl/display/boxBlur.js +65 -0
  400. package/node_modules/three/examples/jsm/tsl/display/hashBlur.js +54 -0
  401. package/node_modules/three/examples/jsm/tsl/lighting/TiledLightsNode.js +442 -0
  402. package/node_modules/three/examples/jsm/tsl/math/Bayer.js +34 -0
  403. package/node_modules/three/examples/jsm/tsl/shadows/TileShadowNode.js +456 -0
  404. package/node_modules/three/examples/jsm/tsl/shadows/TileShadowNodeHelper.js +212 -0
  405. package/node_modules/three/examples/jsm/tsl/utils/Raymarching.js +70 -0
  406. package/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +109 -45
  407. package/node_modules/three/examples/jsm/utils/CameraUtils.js +15 -6
  408. package/node_modules/three/examples/jsm/utils/GeometryCompressionUtils.js +54 -146
  409. package/node_modules/three/examples/jsm/utils/GeometryUtils.js +32 -27
  410. package/node_modules/three/examples/jsm/utils/LDrawUtils.js +13 -4
  411. package/node_modules/three/examples/jsm/utils/SceneOptimizer.js +458 -0
  412. package/node_modules/three/examples/jsm/utils/SceneUtils.js +112 -3
  413. package/node_modules/three/examples/jsm/utils/ShadowMapViewer.js +51 -31
  414. package/node_modules/three/examples/jsm/utils/ShadowMapViewerGPU.js +233 -0
  415. package/node_modules/three/examples/jsm/utils/SkeletonUtils.js +145 -68
  416. package/node_modules/three/examples/jsm/utils/SortUtils.js +23 -8
  417. package/node_modules/three/examples/jsm/utils/UVsDebug.js +12 -4
  418. package/node_modules/three/examples/jsm/utils/{TextureUtils.js → WebGLTextureUtils.js} +19 -2
  419. package/node_modules/three/examples/jsm/utils/WebGPUTextureUtils.js +81 -0
  420. package/node_modules/three/examples/jsm/utils/WorkerPool.js +67 -2
  421. package/node_modules/three/examples/jsm/webxr/ARButton.js +19 -0
  422. package/node_modules/three/examples/jsm/webxr/OculusHandModel.js +87 -2
  423. package/node_modules/three/examples/jsm/webxr/OculusHandPointerModel.js +148 -22
  424. package/node_modules/three/examples/jsm/webxr/Text2D.js +20 -6
  425. package/node_modules/three/examples/jsm/webxr/VRButton.js +44 -5
  426. package/node_modules/three/examples/jsm/webxr/XRButton.js +23 -1
  427. package/node_modules/three/examples/jsm/webxr/XRControllerModelFactory.js +103 -4
  428. package/node_modules/three/examples/jsm/webxr/XREstimatedLight.js +35 -4
  429. package/node_modules/three/examples/jsm/webxr/XRHandMeshModel.js +37 -0
  430. package/node_modules/three/examples/jsm/webxr/XRHandModelFactory.js +101 -9
  431. package/node_modules/three/examples/jsm/webxr/XRHandPrimitiveModel.js +44 -0
  432. package/node_modules/three/examples/jsm/webxr/XRPlanes.js +18 -0
  433. package/node_modules/three/package.json +25 -20
  434. package/node_modules/three/src/Three.Core.js +185 -0
  435. package/node_modules/three/src/Three.Legacy.js +0 -1
  436. package/node_modules/three/src/Three.TSL.js +633 -0
  437. package/node_modules/three/src/Three.WebGPU.Nodes.js +26 -0
  438. package/node_modules/three/src/Three.WebGPU.js +28 -0
  439. package/node_modules/three/src/Three.js +1 -176
  440. package/node_modules/three/src/animation/AnimationAction.js +262 -30
  441. package/node_modules/three/src/animation/AnimationClip.js +164 -9
  442. package/node_modules/three/src/animation/AnimationMixer.js +99 -15
  443. package/node_modules/three/src/animation/AnimationObjectGroup.js +45 -21
  444. package/node_modules/three/src/animation/AnimationUtils.js +169 -19
  445. package/node_modules/three/src/animation/KeyframeTrack.js +151 -16
  446. package/node_modules/three/src/animation/PropertyBinding.js +91 -16
  447. package/node_modules/three/src/animation/PropertyMixer.js +72 -5
  448. package/node_modules/three/src/animation/tracks/BooleanKeyframeTrack.js +42 -6
  449. package/node_modules/three/src/animation/tracks/ColorKeyframeTrack.js +26 -5
  450. package/node_modules/three/src/animation/tracks/NumberKeyframeTrack.js +26 -2
  451. package/node_modules/three/src/animation/tracks/QuaternionKeyframeTrack.js +31 -3
  452. package/node_modules/three/src/animation/tracks/StringKeyframeTrack.js +42 -2
  453. package/node_modules/three/src/animation/tracks/VectorKeyframeTrack.js +26 -2
  454. package/node_modules/three/src/audio/Audio.js +388 -10
  455. package/node_modules/three/src/audio/AudioAnalyser.js +58 -1
  456. package/node_modules/three/src/audio/AudioContext.js +15 -0
  457. package/node_modules/three/src/audio/AudioListener.js +89 -10
  458. package/node_modules/three/src/audio/PositionalAudio.js +107 -0
  459. package/node_modules/three/src/cameras/ArrayCamera.js +37 -0
  460. package/node_modules/three/src/cameras/Camera.js +61 -0
  461. package/node_modules/three/src/cameras/CubeCamera.js +66 -0
  462. package/node_modules/three/src/cameras/OrthographicCamera.js +110 -1
  463. package/node_modules/three/src/cameras/PerspectiveCamera.js +174 -35
  464. package/node_modules/three/src/cameras/StereoCamera.js +48 -2
  465. package/node_modules/three/src/constants.js +1477 -18
  466. package/node_modules/three/src/core/BufferAttribute.js +417 -23
  467. package/node_modules/three/src/core/BufferGeometry.js +416 -49
  468. package/node_modules/three/src/core/Clock.js +62 -8
  469. package/node_modules/three/src/core/EventDispatcher.js +52 -8
  470. package/node_modules/three/src/core/GLBufferAttribute.js +113 -2
  471. package/node_modules/three/src/core/InstancedBufferAttribute.js +29 -0
  472. package/node_modules/three/src/core/InstancedBufferGeometry.js +20 -0
  473. package/node_modules/three/src/core/InstancedInterleavedBuffer.js +26 -0
  474. package/node_modules/three/src/core/InterleavedBuffer.js +141 -16
  475. package/node_modules/three/src/core/InterleavedBufferAttribute.js +200 -2
  476. package/node_modules/three/src/core/Layers.js +71 -10
  477. package/node_modules/three/src/core/Object3D.js +665 -54
  478. package/node_modules/three/src/core/Raycaster.js +160 -8
  479. package/node_modules/three/src/core/RenderTarget.js +297 -36
  480. package/node_modules/three/src/core/RenderTarget3D.js +48 -0
  481. package/node_modules/three/src/core/Timer.js +184 -0
  482. package/node_modules/three/src/core/Uniform.js +29 -0
  483. package/node_modules/three/src/core/UniformsGroup.js +84 -2
  484. package/node_modules/three/src/extras/Controls.js +120 -0
  485. package/node_modules/three/src/extras/DataUtils.js +50 -9
  486. package/node_modules/three/src/extras/Earcut.js +18 -779
  487. package/node_modules/three/src/extras/ImageUtils.js +22 -14
  488. package/node_modules/three/src/extras/PMREMGenerator.js +329 -64
  489. package/node_modules/three/src/extras/ShapeUtils.js +24 -2
  490. package/node_modules/three/src/extras/TextureUtils.js +293 -0
  491. package/node_modules/three/src/extras/core/Curve.js +156 -55
  492. package/node_modules/three/src/extras/core/CurvePath.js +63 -22
  493. package/node_modules/three/src/extras/core/Interpolations.js +34 -2
  494. package/node_modules/three/src/extras/core/Path.js +134 -1
  495. package/node_modules/three/src/extras/core/Shape.js +66 -3
  496. package/node_modules/three/src/extras/core/ShapePath.js +80 -4
  497. package/node_modules/three/src/extras/curves/ArcCurve.js +22 -0
  498. package/node_modules/three/src/extras/curves/CatmullRomCurve3.js +89 -18
  499. package/node_modules/three/src/extras/curves/CubicBezierCurve.js +67 -0
  500. package/node_modules/three/src/extras/curves/CubicBezierCurve3.js +50 -0
  501. package/node_modules/three/src/extras/curves/EllipseCurve.js +104 -2
  502. package/node_modules/three/src/extras/curves/LineCurve.js +36 -0
  503. package/node_modules/three/src/extras/curves/LineCurve3.js +36 -0
  504. package/node_modules/three/src/extras/curves/QuadraticBezierCurve.js +59 -0
  505. package/node_modules/three/src/extras/curves/QuadraticBezierCurve3.js +43 -0
  506. package/node_modules/three/src/extras/curves/SplineCurve.js +48 -0
  507. package/node_modules/three/src/extras/lib/earcut.js +685 -0
  508. package/node_modules/three/src/geometries/BoxGeometry.js +39 -0
  509. package/node_modules/three/src/geometries/CapsuleGeometry.js +196 -11
  510. package/node_modules/three/src/geometries/CircleGeometry.js +41 -0
  511. package/node_modules/three/src/geometries/ConeGeometry.js +39 -0
  512. package/node_modules/three/src/geometries/CylinderGeometry.js +51 -4
  513. package/node_modules/three/src/geometries/DodecahedronGeometry.js +33 -0
  514. package/node_modules/three/src/geometries/EdgesGeometry.js +30 -2
  515. package/node_modules/three/src/geometries/ExtrudeGeometry.js +146 -50
  516. package/node_modules/three/src/geometries/IcosahedronGeometry.js +33 -0
  517. package/node_modules/three/src/geometries/LatheGeometry.js +44 -3
  518. package/node_modules/three/src/geometries/OctahedronGeometry.js +33 -0
  519. package/node_modules/three/src/geometries/PlaneGeometry.js +35 -0
  520. package/node_modules/three/src/geometries/PolyhedronGeometry.js +29 -0
  521. package/node_modules/three/src/geometries/RingGeometry.js +37 -0
  522. package/node_modules/three/src/geometries/ShapeGeometry.js +38 -0
  523. package/node_modules/three/src/geometries/SphereGeometry.js +38 -0
  524. package/node_modules/three/src/geometries/TetrahedronGeometry.js +33 -0
  525. package/node_modules/three/src/geometries/TorusGeometry.js +36 -0
  526. package/node_modules/three/src/geometries/TorusKnotGeometry.js +39 -0
  527. package/node_modules/three/src/geometries/TubeGeometry.js +50 -0
  528. package/node_modules/three/src/geometries/WireframeGeometry.js +32 -0
  529. package/node_modules/three/src/helpers/ArrowHelper.js +62 -5
  530. package/node_modules/three/src/helpers/AxesHelper.js +28 -0
  531. package/node_modules/three/src/helpers/Box3Helper.js +28 -0
  532. package/node_modules/three/src/helpers/BoxHelper.js +43 -7
  533. package/node_modules/three/src/helpers/CameraHelper.js +100 -27
  534. package/node_modules/three/src/helpers/DirectionalLightHelper.js +52 -0
  535. package/node_modules/three/src/helpers/GridHelper.js +26 -0
  536. package/node_modules/three/src/helpers/HemisphereLightHelper.js +39 -0
  537. package/node_modules/three/src/helpers/PlaneHelper.js +33 -0
  538. package/node_modules/three/src/helpers/PointLightHelper.js +43 -0
  539. package/node_modules/three/src/helpers/PolarGridHelper.js +30 -0
  540. package/node_modules/three/src/helpers/SkeletonHelper.js +73 -7
  541. package/node_modules/three/src/helpers/SpotLightHelper.js +58 -1
  542. package/node_modules/three/src/lights/AmbientLight.js +25 -0
  543. package/node_modules/three/src/lights/DirectionalLight.js +57 -0
  544. package/node_modules/three/src/lights/DirectionalLightShadow.js +15 -0
  545. package/node_modules/three/src/lights/HemisphereLight.js +32 -0
  546. package/node_modules/three/src/lights/Light.js +37 -0
  547. package/node_modules/three/src/lights/LightProbe.js +43 -0
  548. package/node_modules/three/src/lights/LightShadow.js +198 -7
  549. package/node_modules/three/src/lights/PointLight.js +59 -0
  550. package/node_modules/three/src/lights/PointLightShadow.js +22 -1
  551. package/node_modules/three/src/lights/RectAreaLight.js +59 -0
  552. package/node_modules/three/src/lights/SpotLight.js +102 -0
  553. package/node_modules/three/src/lights/SpotLightShadow.js +33 -3
  554. package/node_modules/three/src/lights/webgpu/IESSpotLight.js +46 -0
  555. package/node_modules/three/src/lights/webgpu/ProjectorLight.js +46 -0
  556. package/node_modules/three/src/loaders/AnimationLoader.js +34 -2
  557. package/node_modules/three/src/loaders/AudioLoader.js +34 -2
  558. package/node_modules/three/src/loaders/BufferGeometryLoader.js +38 -13
  559. package/node_modules/three/src/loaders/Cache.js +47 -2
  560. package/node_modules/three/src/loaders/CompressedTextureLoader.js +36 -3
  561. package/node_modules/three/src/loaders/CubeTextureLoader.js +45 -0
  562. package/node_modules/three/src/loaders/DataTextureLoader.js +45 -8
  563. package/node_modules/three/src/loaders/FileLoader.js +90 -6
  564. package/node_modules/three/src/loaders/ImageBitmapLoader.js +108 -11
  565. package/node_modules/three/src/loaders/ImageLoader.js +85 -8
  566. package/node_modules/three/src/loaders/Loader.js +144 -0
  567. package/node_modules/three/src/loaders/LoaderUtils.js +18 -34
  568. package/node_modules/three/src/loaders/LoadingManager.js +187 -0
  569. package/node_modules/three/src/loaders/MaterialLoader.js +70 -4
  570. package/node_modules/three/src/loaders/ObjectLoader.js +146 -30
  571. package/node_modules/three/src/loaders/TextureLoader.js +33 -0
  572. package/node_modules/three/src/loaders/nodes/NodeLoader.js +194 -0
  573. package/node_modules/three/src/loaders/nodes/NodeMaterialLoader.js +108 -0
  574. package/node_modules/three/src/loaders/nodes/NodeObjectLoader.js +151 -0
  575. package/node_modules/three/src/materials/LineBasicMaterial.js +74 -1
  576. package/node_modules/three/src/materials/LineDashedMaterial.js +52 -1
  577. package/node_modules/three/src/materials/Material.js +504 -11
  578. package/node_modules/three/src/materials/MeshBasicMaterial.js +172 -3
  579. package/node_modules/three/src/materials/MeshDepthMaterial.js +94 -0
  580. package/node_modules/three/src/materials/MeshDistanceMaterial.js +76 -0
  581. package/node_modules/three/src/materials/MeshLambertMaterial.js +278 -1
  582. package/node_modules/three/src/materials/MeshMatcapMaterial.js +164 -0
  583. package/node_modules/three/src/materials/MeshNormalMaterial.js +114 -0
  584. package/node_modules/three/src/materials/MeshPhongMaterial.js +293 -1
  585. package/node_modules/three/src/materials/MeshPhysicalMaterial.js +316 -4
  586. package/node_modules/three/src/materials/MeshStandardMaterial.js +304 -3
  587. package/node_modules/three/src/materials/MeshToonMaterial.js +219 -0
  588. package/node_modules/three/src/materials/PointsMaterial.js +89 -0
  589. package/node_modules/three/src/materials/RawShaderMaterial.js +25 -0
  590. package/node_modules/three/src/materials/ShaderMaterial.js +215 -10
  591. package/node_modules/three/src/materials/ShadowMaterial.js +54 -0
  592. package/node_modules/three/src/materials/SpriteMaterial.js +82 -0
  593. package/node_modules/three/{examples/jsm/nodes/materials → src/materials/nodes}/Line2NodeMaterial.js +206 -100
  594. package/node_modules/three/src/materials/nodes/LineBasicNodeMaterial.js +46 -0
  595. package/node_modules/three/src/materials/nodes/LineDashedNodeMaterial.js +132 -0
  596. package/node_modules/three/src/materials/nodes/MeshBasicNodeMaterial.js +134 -0
  597. package/node_modules/three/src/materials/nodes/MeshLambertNodeMaterial.js +82 -0
  598. package/node_modules/three/src/materials/nodes/MeshMatcapNodeMaterial.js +77 -0
  599. package/node_modules/three/src/materials/nodes/MeshNormalNodeMaterial.js +67 -0
  600. package/node_modules/three/src/materials/nodes/MeshPhongNodeMaterial.js +141 -0
  601. package/node_modules/three/src/materials/nodes/MeshPhysicalNodeMaterial.js +518 -0
  602. package/node_modules/three/src/materials/nodes/MeshSSSNodeMaterial.js +175 -0
  603. package/node_modules/three/src/materials/nodes/MeshStandardNodeMaterial.js +186 -0
  604. package/node_modules/three/src/materials/nodes/MeshToonNodeMaterial.js +66 -0
  605. package/node_modules/three/src/materials/nodes/NodeMaterial.js +1310 -0
  606. package/node_modules/three/{examples/jsm/nodes/materials/Materials.js → src/materials/nodes/NodeMaterials.js} +7 -2
  607. package/node_modules/three/src/materials/nodes/PointsNodeMaterial.js +211 -0
  608. package/node_modules/three/src/materials/nodes/ShadowNodeMaterial.js +76 -0
  609. package/node_modules/three/src/materials/nodes/SpriteNodeMaterial.js +186 -0
  610. package/node_modules/three/src/materials/nodes/VolumeNodeMaterial.js +81 -0
  611. package/node_modules/three/src/materials/nodes/manager/NodeMaterialObserver.js +613 -0
  612. package/node_modules/three/src/math/Box2.js +181 -4
  613. package/node_modules/three/src/math/Box3.js +277 -6
  614. package/node_modules/three/src/math/Color.js +355 -11
  615. package/node_modules/three/src/math/ColorManagement.js +161 -85
  616. package/node_modules/three/src/math/Cylindrical.js +65 -6
  617. package/node_modules/three/src/math/Euler.js +139 -5
  618. package/node_modules/three/src/math/Frustum.js +108 -9
  619. package/node_modules/three/src/math/FrustumArray.js +258 -0
  620. package/node_modules/three/src/math/Interpolant.js +87 -8
  621. package/node_modules/three/src/math/Line3.js +223 -2
  622. package/node_modules/three/src/math/MathUtils.js +408 -20
  623. package/node_modules/three/src/math/Matrix2.js +124 -0
  624. package/node_modules/three/src/math/Matrix3.js +229 -4
  625. package/node_modules/three/src/math/Matrix4.js +416 -30
  626. package/node_modules/three/src/math/Plane.js +164 -2
  627. package/node_modules/three/src/math/Quaternion.js +345 -86
  628. package/node_modules/three/src/math/Ray.js +162 -0
  629. package/node_modules/three/src/math/Sphere.js +175 -0
  630. package/node_modules/three/src/math/Spherical.js +74 -13
  631. package/node_modules/three/src/math/SphericalHarmonics3.js +112 -14
  632. package/node_modules/three/src/math/Triangle.js +230 -2
  633. package/node_modules/three/src/math/Vector2.js +396 -10
  634. package/node_modules/three/src/math/Vector3.js +557 -20
  635. package/node_modules/three/src/math/Vector4.js +428 -9
  636. package/node_modules/three/src/math/interpolants/CubicInterpolant.js +10 -1
  637. package/node_modules/three/src/math/interpolants/DiscreteInterpolant.js +10 -2
  638. package/node_modules/three/src/math/interpolants/LinearInterpolant.js +13 -0
  639. package/node_modules/three/src/math/interpolants/QuaternionLinearInterpolant.js +10 -1
  640. package/node_modules/three/src/nodes/Nodes.js +148 -0
  641. package/node_modules/three/src/nodes/TSL.js +173 -0
  642. package/node_modules/three/src/nodes/accessors/AccessorsUtils.js +53 -0
  643. package/node_modules/three/src/nodes/accessors/Arrays.js +68 -0
  644. package/node_modules/three/src/nodes/accessors/BatchNode.js +163 -0
  645. package/node_modules/three/src/nodes/accessors/Bitangent.js +82 -0
  646. package/node_modules/three/src/nodes/accessors/BufferAttributeNode.js +340 -0
  647. package/node_modules/three/src/nodes/accessors/BufferNode.js +101 -0
  648. package/node_modules/three/src/nodes/accessors/BuiltinNode.js +63 -0
  649. package/node_modules/three/src/nodes/accessors/Camera.js +282 -0
  650. package/node_modules/three/src/nodes/accessors/ClippingNode.js +255 -0
  651. package/node_modules/three/src/nodes/accessors/CubeTextureNode.js +190 -0
  652. package/node_modules/three/src/nodes/accessors/InstanceNode.js +244 -0
  653. package/node_modules/three/src/nodes/accessors/InstancedMeshNode.js +50 -0
  654. package/node_modules/three/src/nodes/accessors/Lights.js +139 -0
  655. package/node_modules/three/src/nodes/accessors/MaterialNode.js +775 -0
  656. package/node_modules/three/src/nodes/accessors/MaterialProperties.js +59 -0
  657. package/node_modules/three/src/nodes/accessors/MaterialReferenceNode.js +85 -0
  658. package/node_modules/three/src/nodes/accessors/ModelNode.js +184 -0
  659. package/node_modules/three/src/nodes/accessors/ModelViewProjectionNode.js +13 -0
  660. package/node_modules/three/{examples/jsm → src}/nodes/accessors/MorphNode.js +122 -57
  661. package/node_modules/three/src/nodes/accessors/Normal.js +243 -0
  662. package/node_modules/three/src/nodes/accessors/Object3DNode.js +268 -0
  663. package/node_modules/three/src/nodes/accessors/PointUVNode.js +55 -0
  664. package/node_modules/three/src/nodes/accessors/Position.js +90 -0
  665. package/node_modules/three/src/nodes/accessors/ReferenceBaseNode.js +357 -0
  666. package/node_modules/three/src/nodes/accessors/ReferenceNode.js +424 -0
  667. package/node_modules/three/src/nodes/accessors/ReflectVector.js +36 -0
  668. package/node_modules/three/src/nodes/accessors/RendererReferenceNode.js +79 -0
  669. package/node_modules/three/src/nodes/accessors/SceneNode.js +145 -0
  670. package/node_modules/three/src/nodes/accessors/SkinningNode.js +327 -0
  671. package/node_modules/three/src/nodes/accessors/StorageBufferNode.js +416 -0
  672. package/node_modules/three/src/nodes/accessors/StorageTextureNode.js +264 -0
  673. package/node_modules/three/src/nodes/accessors/Tangent.js +70 -0
  674. package/node_modules/three/src/nodes/accessors/TangentUtils.js +46 -0
  675. package/node_modules/three/src/nodes/accessors/Texture3DNode.js +199 -0
  676. package/node_modules/three/{examples/jsm/nodes/accessors/TextureBicubicNode.js → src/nodes/accessors/TextureBicubic.js} +28 -30
  677. package/node_modules/three/src/nodes/accessors/TextureNode.js +927 -0
  678. package/node_modules/three/src/nodes/accessors/TextureSizeNode.js +77 -0
  679. package/node_modules/three/src/nodes/accessors/UV.js +11 -0
  680. package/node_modules/three/src/nodes/accessors/UniformArrayNode.js +348 -0
  681. package/node_modules/three/src/nodes/accessors/UserDataNode.js +77 -0
  682. package/node_modules/three/src/nodes/accessors/VelocityNode.js +224 -0
  683. package/node_modules/three/src/nodes/accessors/VertexColorNode.js +110 -0
  684. package/node_modules/three/src/nodes/code/CodeNode.js +181 -0
  685. package/node_modules/three/src/nodes/code/ExpressionNode.js +68 -0
  686. package/node_modules/three/src/nodes/code/FunctionCallNode.js +187 -0
  687. package/node_modules/three/src/nodes/code/FunctionNode.js +183 -0
  688. package/node_modules/three/{examples/jsm → src}/nodes/code/ScriptableNode.js +253 -15
  689. package/node_modules/three/{examples/jsm → src}/nodes/code/ScriptableValueNode.js +95 -9
  690. package/node_modules/three/src/nodes/core/ArrayNode.js +155 -0
  691. package/node_modules/three/src/nodes/core/AssignNode.js +202 -0
  692. package/node_modules/three/src/nodes/core/AttributeNode.js +168 -0
  693. package/node_modules/three/src/nodes/core/BypassNode.js +93 -0
  694. package/node_modules/three/src/nodes/core/ConstNode.js +67 -0
  695. package/node_modules/three/src/nodes/core/ContextNode.js +184 -0
  696. package/node_modules/three/src/nodes/core/IndexNode.js +164 -0
  697. package/node_modules/three/src/nodes/core/InputNode.js +136 -0
  698. package/node_modules/three/src/nodes/core/InspectorNode.js +128 -0
  699. package/node_modules/three/src/nodes/core/IsolateNode.js +133 -0
  700. package/node_modules/three/src/nodes/core/LightingModel.js +77 -0
  701. package/node_modules/three/src/nodes/core/MRTNode.js +150 -0
  702. package/node_modules/three/src/nodes/core/Node.js +1083 -0
  703. package/node_modules/three/src/nodes/core/NodeAttribute.js +53 -0
  704. package/node_modules/three/src/nodes/core/NodeBuilder.js +3081 -0
  705. package/node_modules/three/src/nodes/core/NodeCache.js +75 -0
  706. package/node_modules/three/src/nodes/core/NodeCode.js +46 -0
  707. package/node_modules/three/src/nodes/core/NodeFrame.js +306 -0
  708. package/node_modules/three/src/nodes/core/NodeFunction.js +69 -0
  709. package/node_modules/three/src/nodes/core/NodeFunctionInput.js +61 -0
  710. package/node_modules/three/src/nodes/core/NodeParser.js +23 -0
  711. package/node_modules/three/src/nodes/core/NodeUniform.js +91 -0
  712. package/node_modules/three/src/nodes/core/NodeUtils.js +406 -0
  713. package/node_modules/three/src/nodes/core/NodeVar.js +60 -0
  714. package/node_modules/three/src/nodes/core/NodeVarying.js +63 -0
  715. package/node_modules/three/src/nodes/core/OutputStructNode.js +103 -0
  716. package/node_modules/three/src/nodes/core/ParameterNode.js +94 -0
  717. package/node_modules/three/src/nodes/core/PropertyNode.js +351 -0
  718. package/node_modules/three/src/nodes/core/StackNode.js +377 -0
  719. package/node_modules/three/src/nodes/core/StructNode.js +120 -0
  720. package/node_modules/three/src/nodes/core/StructType.js +13 -0
  721. package/node_modules/three/src/nodes/core/StructTypeNode.js +154 -0
  722. package/node_modules/three/src/nodes/core/SubBuildNode.js +89 -0
  723. package/node_modules/three/src/nodes/core/TempNode.js +88 -0
  724. package/node_modules/three/src/nodes/core/UniformGroupNode.js +137 -0
  725. package/node_modules/three/src/nodes/core/UniformNode.js +243 -0
  726. package/node_modules/three/src/nodes/core/VarNode.js +342 -0
  727. package/node_modules/three/src/nodes/core/VaryingNode.js +227 -0
  728. package/node_modules/three/src/nodes/core/constants.js +68 -0
  729. package/node_modules/three/src/nodes/display/BlendModes.js +235 -0
  730. package/node_modules/three/src/nodes/display/BumpMapNode.js +117 -0
  731. package/node_modules/three/src/nodes/display/ColorAdjustment.js +141 -0
  732. package/node_modules/three/src/nodes/display/ColorSpaceFunctions.js +54 -0
  733. package/node_modules/three/src/nodes/display/ColorSpaceNode.js +164 -0
  734. package/node_modules/three/src/nodes/display/FrontFacingNode.js +102 -0
  735. package/node_modules/three/src/nodes/display/NormalMapNode.js +118 -0
  736. package/node_modules/three/src/nodes/display/PassNode.js +946 -0
  737. package/node_modules/three/src/nodes/display/PosterizeNode.js +65 -0
  738. package/node_modules/three/src/nodes/display/RenderOutputNode.js +150 -0
  739. package/node_modules/three/src/nodes/display/ScreenNode.js +290 -0
  740. package/node_modules/three/src/nodes/display/ToneMappingFunctions.js +242 -0
  741. package/node_modules/three/src/nodes/display/ToneMappingNode.js +147 -0
  742. package/node_modules/three/src/nodes/display/ToonOutlinePassNode.js +191 -0
  743. package/node_modules/three/src/nodes/display/ViewportDepthNode.js +294 -0
  744. package/node_modules/three/src/nodes/display/ViewportDepthTextureNode.js +67 -0
  745. package/node_modules/three/src/nodes/display/ViewportSharedTextureNode.js +73 -0
  746. package/node_modules/three/src/nodes/display/ViewportTextureNode.js +228 -0
  747. package/node_modules/three/src/nodes/fog/Fog.js +114 -0
  748. package/node_modules/three/src/nodes/functions/BSDF/BRDF_GGX.js +55 -0
  749. package/node_modules/three/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.js +52 -0
  750. package/node_modules/three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Lambert.js +2 -2
  751. package/node_modules/three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Sheen.js +9 -9
  752. package/node_modules/three/src/nodes/functions/BSDF/DFGApprox.js +71 -0
  753. package/node_modules/three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX.js +2 -2
  754. package/node_modules/three/src/nodes/functions/BSDF/D_GGX_Anisotropic.js +28 -0
  755. package/node_modules/three/{examples/jsm → src}/nodes/functions/BSDF/EnvironmentBRDF.js +2 -2
  756. package/node_modules/three/{examples/jsm → src}/nodes/functions/BSDF/F_Schlick.js +2 -2
  757. package/node_modules/three/src/nodes/functions/BSDF/LTC.js +175 -0
  758. package/node_modules/three/{examples/jsm → src}/nodes/functions/BSDF/Schlick_to_F0.js +2 -2
  759. package/node_modules/three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated.js +2 -4
  760. package/node_modules/three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.js +29 -0
  761. package/node_modules/three/src/nodes/functions/BasicLightingModel.js +100 -0
  762. package/node_modules/three/src/nodes/functions/PhongLightingModel.js +99 -0
  763. package/node_modules/three/src/nodes/functions/PhysicalLightingModel.js +797 -0
  764. package/node_modules/three/src/nodes/functions/ShadowMaskModel.js +58 -0
  765. package/node_modules/three/src/nodes/functions/ToonLightingModel.js +70 -0
  766. package/node_modules/three/src/nodes/functions/VolumetricLightingModel.js +183 -0
  767. package/node_modules/three/src/nodes/functions/material/getAlphaHashThreshold.js +68 -0
  768. package/node_modules/three/src/nodes/functions/material/getGeometryRoughness.js +19 -0
  769. package/node_modules/three/src/nodes/functions/material/getParallaxCorrectNormal.js +37 -0
  770. package/node_modules/three/{examples/jsm → src}/nodes/functions/material/getRoughness.js +2 -2
  771. package/node_modules/three/src/nodes/functions/material/getShIrradianceAt.js +28 -0
  772. package/node_modules/three/src/nodes/geometry/RangeNode.js +208 -0
  773. package/node_modules/three/src/nodes/gpgpu/AtomicFunctionNode.js +274 -0
  774. package/node_modules/three/src/nodes/gpgpu/BarrierNode.js +89 -0
  775. package/node_modules/three/src/nodes/gpgpu/ComputeBuiltinNode.js +228 -0
  776. package/node_modules/three/src/nodes/gpgpu/ComputeNode.js +284 -0
  777. package/node_modules/three/src/nodes/gpgpu/SubgroupFunctionNode.js +455 -0
  778. package/node_modules/three/src/nodes/gpgpu/WorkgroupInfoNode.js +234 -0
  779. package/node_modules/three/src/nodes/lighting/AONode.js +45 -0
  780. package/node_modules/three/{examples/jsm → src}/nodes/lighting/AmbientLightNode.js +16 -8
  781. package/node_modules/three/src/nodes/lighting/AnalyticLightNode.js +256 -0
  782. package/node_modules/three/src/nodes/lighting/BasicEnvironmentNode.js +49 -0
  783. package/node_modules/three/src/nodes/lighting/BasicLightMapNode.js +49 -0
  784. package/node_modules/three/src/nodes/lighting/DirectionalLightNode.js +39 -0
  785. package/node_modules/three/src/nodes/lighting/EnvironmentNode.js +153 -0
  786. package/node_modules/three/src/nodes/lighting/HemisphereLightNode.js +87 -0
  787. package/node_modules/three/{examples/jsm → src}/nodes/lighting/IESSpotLightNode.js +20 -10
  788. package/node_modules/three/src/nodes/lighting/IrradianceNode.js +44 -0
  789. package/node_modules/three/src/nodes/lighting/LightProbeNode.js +73 -0
  790. package/node_modules/three/src/nodes/lighting/LightUtils.js +25 -0
  791. package/node_modules/three/src/nodes/lighting/LightingContextNode.js +115 -0
  792. package/node_modules/three/src/nodes/lighting/LightingNode.js +36 -0
  793. package/node_modules/three/src/nodes/lighting/LightsNode.js +453 -0
  794. package/node_modules/three/src/nodes/lighting/PointLightNode.js +102 -0
  795. package/node_modules/three/src/nodes/lighting/PointShadowNode.js +312 -0
  796. package/node_modules/three/src/nodes/lighting/ProjectorLightNode.js +91 -0
  797. package/node_modules/three/src/nodes/lighting/RectAreaLightNode.js +133 -0
  798. package/node_modules/three/src/nodes/lighting/ShadowBaseNode.js +81 -0
  799. package/node_modules/three/src/nodes/lighting/ShadowFilterNode.js +276 -0
  800. package/node_modules/three/src/nodes/lighting/ShadowNode.js +811 -0
  801. package/node_modules/three/src/nodes/lighting/SpotLightNode.js +168 -0
  802. package/node_modules/three/src/nodes/materialx/MaterialXNodes.js +197 -0
  803. package/node_modules/three/{examples/jsm → src}/nodes/materialx/lib/mx_hsv.js +43 -46
  804. package/node_modules/three/{examples/jsm → src}/nodes/materialx/lib/mx_noise.js +625 -564
  805. package/node_modules/three/{examples/jsm → src}/nodes/materialx/lib/mx_transform_color.js +3 -9
  806. package/node_modules/three/src/nodes/math/BitcastNode.js +156 -0
  807. package/node_modules/three/src/nodes/math/ConditionalNode.js +245 -0
  808. package/node_modules/three/src/nodes/math/Hash.js +21 -0
  809. package/node_modules/three/src/nodes/math/MathNode.js +1167 -0
  810. package/node_modules/three/src/nodes/math/MathUtils.js +54 -0
  811. package/node_modules/three/src/nodes/math/OperatorNode.js +751 -0
  812. package/node_modules/three/{examples/jsm → src}/nodes/math/TriNoise3D.js +34 -34
  813. package/node_modules/three/{examples/jsm → src}/nodes/parsers/GLSLNodeFunction.js +23 -7
  814. package/node_modules/three/{examples/jsm → src}/nodes/parsers/GLSLNodeParser.js +11 -0
  815. package/node_modules/three/src/nodes/pmrem/PMREMNode.js +397 -0
  816. package/node_modules/three/src/nodes/pmrem/PMREMUtils.js +403 -0
  817. package/node_modules/three/src/nodes/procedural/Checker.js +22 -0
  818. package/node_modules/three/src/nodes/shapes/Shapes.js +33 -0
  819. package/node_modules/three/src/nodes/tsl/TSLBase.js +36 -0
  820. package/node_modules/three/src/nodes/tsl/TSLCore.js +1229 -0
  821. package/node_modules/three/src/nodes/utils/ArrayElementNode.js +77 -0
  822. package/node_modules/three/src/nodes/utils/ConvertNode.js +100 -0
  823. package/node_modules/three/src/nodes/utils/CubeMapNode.js +237 -0
  824. package/node_modules/three/src/nodes/utils/DebugNode.js +83 -0
  825. package/node_modules/three/src/nodes/utils/Discard.js +24 -0
  826. package/node_modules/three/src/nodes/utils/EquirectUV.js +27 -0
  827. package/node_modules/three/src/nodes/utils/EventNode.js +119 -0
  828. package/node_modules/three/src/nodes/utils/FlipNode.js +106 -0
  829. package/node_modules/three/src/nodes/utils/FunctionOverloadingNode.js +170 -0
  830. package/node_modules/three/src/nodes/utils/JoinNode.js +117 -0
  831. package/node_modules/three/src/nodes/utils/LoopNode.js +349 -0
  832. package/node_modules/three/src/nodes/utils/MatcapUV.js +22 -0
  833. package/node_modules/three/src/nodes/utils/MaxMipLevelNode.js +103 -0
  834. package/node_modules/three/src/nodes/utils/MemberNode.js +120 -0
  835. package/node_modules/three/src/nodes/utils/Oscillators.js +41 -0
  836. package/node_modules/three/src/nodes/utils/Packing.js +21 -0
  837. package/node_modules/three/src/nodes/utils/PostProcessingUtils.js +122 -0
  838. package/node_modules/three/src/nodes/utils/RTTNode.js +289 -0
  839. package/node_modules/three/src/nodes/utils/ReflectorNode.js +630 -0
  840. package/node_modules/three/src/nodes/utils/RemapNode.js +125 -0
  841. package/node_modules/three/{examples/jsm → src}/nodes/utils/RotateNode.js +48 -13
  842. package/node_modules/three/src/nodes/utils/SampleNode.js +91 -0
  843. package/node_modules/three/{examples/jsm → src}/nodes/utils/SetNode.js +50 -4
  844. package/node_modules/three/{examples/jsm → src}/nodes/utils/SplitNode.js +73 -6
  845. package/node_modules/three/src/nodes/utils/SpriteSheetUVNode.js +90 -0
  846. package/node_modules/three/src/nodes/utils/SpriteUtils.js +63 -0
  847. package/node_modules/three/src/nodes/utils/StorageArrayElementNode.js +143 -0
  848. package/node_modules/three/src/nodes/utils/Timer.js +26 -0
  849. package/node_modules/three/src/nodes/utils/TriplanarTextures.js +65 -0
  850. package/node_modules/three/src/nodes/utils/UVUtils.js +39 -0
  851. package/node_modules/three/src/nodes/utils/ViewportUtils.js +26 -0
  852. package/node_modules/three/src/objects/BatchedMesh.js +940 -305
  853. package/node_modules/three/src/objects/Bone.js +24 -0
  854. package/node_modules/three/src/objects/ClippingGroup.js +68 -0
  855. package/node_modules/three/src/objects/Group.js +24 -0
  856. package/node_modules/three/src/objects/InstancedMesh.js +182 -1
  857. package/node_modules/three/src/objects/LOD.js +120 -5
  858. package/node_modules/three/src/objects/Line.js +151 -44
  859. package/node_modules/three/src/objects/LineLoop.js +20 -0
  860. package/node_modules/three/src/objects/LineSegments.js +20 -1
  861. package/node_modules/three/src/objects/Mesh.js +91 -24
  862. package/node_modules/three/src/objects/Points.js +62 -0
  863. package/node_modules/three/src/objects/Skeleton.js +111 -5
  864. package/node_modules/three/src/objects/SkinnedMesh.js +102 -6
  865. package/node_modules/three/src/objects/Sprite.js +65 -1
  866. package/node_modules/three/src/renderers/WebGL3DRenderTarget.js +26 -0
  867. package/node_modules/three/src/renderers/WebGLArrayRenderTarget.js +26 -0
  868. package/node_modules/three/src/renderers/WebGLCubeRenderTarget.js +42 -15
  869. package/node_modules/three/src/renderers/WebGLRenderTarget.js +19 -0
  870. package/node_modules/three/src/renderers/WebGLRenderer.js +1222 -318
  871. package/node_modules/three/src/renderers/common/Animation.js +159 -0
  872. package/node_modules/three/{examples/jsm → src}/renderers/common/Attributes.js +45 -2
  873. package/node_modules/three/src/renderers/common/Backend.js +748 -0
  874. package/node_modules/three/src/renderers/common/Background.js +212 -0
  875. package/node_modules/three/src/renderers/common/BindGroup.js +61 -0
  876. package/node_modules/three/src/renderers/common/Binding.js +60 -0
  877. package/node_modules/three/src/renderers/common/Bindings.js +379 -0
  878. package/node_modules/three/src/renderers/common/Buffer.js +87 -0
  879. package/node_modules/three/src/renderers/common/BufferUtils.js +58 -0
  880. package/node_modules/three/src/renderers/common/BundleGroup.js +83 -0
  881. package/node_modules/three/src/renderers/common/CanvasTarget.js +341 -0
  882. package/node_modules/three/src/renderers/common/ChainMap.js +98 -0
  883. package/node_modules/three/src/renderers/common/ClippingContext.js +262 -0
  884. package/node_modules/three/src/renderers/common/Color4.js +77 -0
  885. package/node_modules/three/src/renderers/common/ComputePipeline.js +41 -0
  886. package/node_modules/three/{examples/jsm → src}/renderers/common/Constants.js +2 -1
  887. package/node_modules/three/{examples/jsm → src}/renderers/common/CubeRenderTarget.js +43 -5
  888. package/node_modules/three/src/renderers/common/DataMap.js +90 -0
  889. package/node_modules/three/src/renderers/common/Geometries.js +370 -0
  890. package/node_modules/three/src/renderers/common/IndirectStorageBufferAttribute.js +38 -0
  891. package/node_modules/three/src/renderers/common/Info.js +172 -0
  892. package/node_modules/three/src/renderers/common/InspectorBase.js +146 -0
  893. package/node_modules/three/src/renderers/common/Lighting.js +73 -0
  894. package/node_modules/three/src/renderers/common/Pipeline.js +35 -0
  895. package/node_modules/three/{examples/jsm → src}/renderers/common/Pipelines.js +150 -7
  896. package/node_modules/three/src/renderers/common/PostProcessing.js +226 -0
  897. package/node_modules/three/src/renderers/common/ProgrammableStage.js +78 -0
  898. package/node_modules/three/src/renderers/common/QuadMesh.js +112 -0
  899. package/node_modules/three/src/renderers/common/RenderBundle.js +24 -0
  900. package/node_modules/three/src/renderers/common/RenderBundles.js +67 -0
  901. package/node_modules/three/src/renderers/common/RenderContext.js +265 -0
  902. package/node_modules/three/src/renderers/common/RenderContexts.js +116 -0
  903. package/node_modules/three/src/renderers/common/RenderList.js +404 -0
  904. package/node_modules/three/src/renderers/common/RenderLists.js +77 -0
  905. package/node_modules/three/src/renderers/common/RenderObject.js +903 -0
  906. package/node_modules/three/src/renderers/common/RenderObjects.js +202 -0
  907. package/node_modules/three/src/renderers/common/RenderPipeline.js +40 -0
  908. package/node_modules/three/src/renderers/common/Renderer.js +3290 -0
  909. package/node_modules/three/src/renderers/common/RendererUtils.js +200 -0
  910. package/node_modules/three/src/renderers/common/SampledTexture.js +152 -0
  911. package/node_modules/three/src/renderers/common/Sampler.js +165 -0
  912. package/node_modules/three/src/renderers/common/Storage3DTexture.js +100 -0
  913. package/node_modules/three/src/renderers/common/StorageArrayTexture.js +84 -0
  914. package/node_modules/three/src/renderers/common/StorageBuffer.js +41 -0
  915. package/node_modules/three/src/renderers/common/StorageBufferAttribute.js +46 -0
  916. package/node_modules/three/src/renderers/common/StorageInstancedBufferAttribute.js +46 -0
  917. package/node_modules/three/src/renderers/common/StorageTexture.js +86 -0
  918. package/node_modules/three/src/renderers/common/Textures.js +544 -0
  919. package/node_modules/three/src/renderers/common/TimestampQueryPool.js +161 -0
  920. package/node_modules/three/src/renderers/common/Uniform.js +367 -0
  921. package/node_modules/three/src/renderers/common/UniformBuffer.js +34 -0
  922. package/node_modules/three/src/renderers/common/UniformsGroup.js +487 -0
  923. package/node_modules/three/src/renderers/common/XRManager.js +1676 -0
  924. package/node_modules/three/src/renderers/common/XRRenderTarget.js +91 -0
  925. package/node_modules/three/src/renderers/common/extras/PMREMGenerator.js +1034 -0
  926. package/node_modules/three/src/renderers/common/nodes/NodeBuilderState.js +152 -0
  927. package/node_modules/three/src/renderers/common/nodes/NodeLibrary.js +196 -0
  928. package/node_modules/three/src/renderers/common/nodes/NodeSampledTexture.js +140 -0
  929. package/node_modules/three/src/renderers/common/nodes/NodeSampler.js +62 -0
  930. package/node_modules/three/src/renderers/common/nodes/NodeStorageBuffer.js +61 -0
  931. package/node_modules/three/src/renderers/common/nodes/NodeUniform.js +418 -0
  932. package/node_modules/three/src/renderers/common/nodes/NodeUniformBuffer.js +53 -0
  933. package/node_modules/three/src/renderers/common/nodes/NodeUniformsGroup.js +51 -0
  934. package/node_modules/three/src/renderers/common/nodes/Nodes.js +840 -0
  935. package/node_modules/three/src/renderers/shaders/DFGLUTData.js +64 -0
  936. package/node_modules/three/src/renderers/shaders/ShaderChunk/batching_pars_vertex.glsl.js +31 -1
  937. package/node_modules/three/src/renderers/shaders/ShaderChunk/batching_vertex.glsl.js +1 -1
  938. package/node_modules/three/src/renderers/shaders/ShaderChunk/color_pars_vertex.glsl.js +1 -1
  939. package/node_modules/three/src/renderers/shaders/ShaderChunk/color_vertex.glsl.js +9 -1
  940. package/node_modules/three/src/renderers/shaders/ShaderChunk/colorspace_pars_fragment.glsl.js +4 -33
  941. package/node_modules/three/src/renderers/shaders/ShaderChunk/common.glsl.js +0 -22
  942. package/node_modules/three/src/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl.js +8 -0
  943. package/node_modules/three/src/renderers/shaders/ShaderChunk/envmap_common_pars_fragment.glsl.js +2 -1
  944. package/node_modules/three/src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js +1 -1
  945. package/node_modules/three/src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js +3 -3
  946. package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js +3 -3
  947. package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_pars_begin.glsl.js +8 -22
  948. package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js +6 -0
  949. package/node_modules/three/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +55 -20
  950. package/node_modules/three/src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js +2 -2
  951. package/node_modules/three/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_fragment.glsl.js +1 -1
  952. package/node_modules/three/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_vertex.glsl.js +3 -11
  953. package/node_modules/three/src/renderers/shaders/ShaderChunk/logdepthbuf_vertex.glsl.js +3 -17
  954. package/node_modules/three/src/renderers/shaders/ShaderChunk/map_fragment.glsl.js +3 -3
  955. package/node_modules/three/src/renderers/shaders/ShaderChunk/morphcolor_vertex.glsl.js +1 -1
  956. package/node_modules/three/src/renderers/shaders/ShaderChunk/morphinstance_vertex.glsl.js +14 -0
  957. package/node_modules/three/src/renderers/shaders/ShaderChunk/morphnormal_vertex.glsl.js +3 -14
  958. package/node_modules/three/src/renderers/shaders/ShaderChunk/morphtarget_pars_vertex.glsl.js +12 -24
  959. package/node_modules/three/src/renderers/shaders/ShaderChunk/morphtarget_vertex.glsl.js +3 -23
  960. package/node_modules/three/src/renderers/shaders/ShaderChunk/packing.glsl.js +45 -13
  961. package/node_modules/three/src/renderers/shaders/ShaderChunk/premultiplied_alpha_fragment.glsl.js +1 -1
  962. package/node_modules/three/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js +59 -36
  963. package/node_modules/three/src/renderers/shaders/ShaderChunk/shadowmap_pars_vertex.glsl.js +3 -0
  964. package/node_modules/three/src/renderers/shaders/ShaderChunk/shadowmask_pars_fragment.glsl.js +3 -3
  965. package/node_modules/three/src/renderers/shaders/ShaderChunk/tonemapping_pars_fragment.glsl.js +33 -2
  966. package/node_modules/three/src/renderers/shaders/ShaderChunk/transmission_fragment.glsl.js +1 -1
  967. package/node_modules/three/src/renderers/shaders/ShaderChunk/transmission_pars_fragment.glsl.js +47 -13
  968. package/node_modules/three/src/renderers/shaders/ShaderChunk.js +2 -2
  969. package/node_modules/three/src/renderers/shaders/ShaderLib/background.glsl.js +1 -1
  970. package/node_modules/three/src/renderers/shaders/ShaderLib/backgroundCube.glsl.js +3 -2
  971. package/node_modules/three/src/renderers/shaders/ShaderLib/depth.glsl.js +21 -2
  972. package/node_modules/three/src/renderers/shaders/ShaderLib/distanceRGBA.glsl.js +2 -0
  973. package/node_modules/three/src/renderers/shaders/ShaderLib/linedashed.glsl.js +1 -0
  974. package/node_modules/three/src/renderers/shaders/ShaderLib/meshbasic.glsl.js +1 -0
  975. package/node_modules/three/src/renderers/shaders/ShaderLib/meshlambert.glsl.js +1 -0
  976. package/node_modules/three/src/renderers/shaders/ShaderLib/meshmatcap.glsl.js +1 -0
  977. package/node_modules/three/src/renderers/shaders/ShaderLib/meshnormal.glsl.js +1 -0
  978. package/node_modules/three/src/renderers/shaders/ShaderLib/meshphong.glsl.js +1 -0
  979. package/node_modules/three/src/renderers/shaders/ShaderLib/meshphysical.glsl.js +5 -0
  980. package/node_modules/three/src/renderers/shaders/ShaderLib/meshtoon.glsl.js +1 -0
  981. package/node_modules/three/src/renderers/shaders/ShaderLib/points.glsl.js +1 -0
  982. package/node_modules/three/src/renderers/shaders/ShaderLib/shadow.glsl.js +1 -0
  983. package/node_modules/three/src/renderers/shaders/ShaderLib/sprite.glsl.js +2 -4
  984. package/node_modules/three/src/renderers/shaders/ShaderLib.js +4 -2
  985. package/node_modules/three/src/renderers/shaders/UniformsLib.js +6 -4
  986. package/node_modules/three/src/renderers/shaders/UniformsUtils.js +31 -3
  987. package/node_modules/three/src/renderers/webgl/WebGLAttributes.js +46 -38
  988. package/node_modules/three/src/renderers/webgl/WebGLBackground.js +69 -5
  989. package/node_modules/three/src/renderers/webgl/WebGLBindingStates.js +14 -51
  990. package/node_modules/three/src/renderers/webgl/WebGLBufferRenderer.js +19 -22
  991. package/node_modules/three/src/renderers/webgl/WebGLCapabilities.js +39 -14
  992. package/node_modules/three/src/renderers/webgl/WebGLCubeUVMaps.js +10 -6
  993. package/node_modules/three/src/renderers/webgl/WebGLExtensions.js +8 -44
  994. package/node_modules/three/src/renderers/webgl/WebGLGeometries.js +0 -28
  995. package/node_modules/three/src/renderers/webgl/WebGLIndexedBufferRenderer.js +19 -21
  996. package/node_modules/three/src/renderers/webgl/WebGLInfo.js +3 -1
  997. package/node_modules/three/src/renderers/webgl/WebGLLights.js +21 -44
  998. package/node_modules/three/src/renderers/webgl/WebGLMaterials.js +33 -9
  999. package/node_modules/three/src/renderers/webgl/WebGLMorphtargets.js +78 -210
  1000. package/node_modules/three/src/renderers/webgl/WebGLProgram.js +103 -121
  1001. package/node_modules/three/src/renderers/webgl/WebGLPrograms.js +32 -26
  1002. package/node_modules/three/src/renderers/webgl/WebGLProperties.js +7 -0
  1003. package/node_modules/three/src/renderers/webgl/WebGLRenderStates.js +15 -9
  1004. package/node_modules/three/src/renderers/webgl/WebGLShadowMap.js +41 -29
  1005. package/node_modules/three/src/renderers/webgl/WebGLState.js +104 -100
  1006. package/node_modules/three/src/renderers/webgl/WebGLTextures.js +567 -408
  1007. package/node_modules/three/src/renderers/webgl/WebGLUniforms.js +12 -2
  1008. package/node_modules/three/src/renderers/webgl/WebGLUniformsGroups.js +13 -11
  1009. package/node_modules/three/src/renderers/webgl/WebGLUtils.js +11 -81
  1010. package/node_modules/three/src/renderers/webgl-fallback/WebGLBackend.js +2612 -0
  1011. package/node_modules/three/src/renderers/webgl-fallback/WebGLBufferRenderer.js +140 -0
  1012. package/node_modules/three/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js +1577 -0
  1013. package/node_modules/three/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/utils/WebGLAttributeUtils.js +76 -3
  1014. package/node_modules/three/src/renderers/webgl-fallback/utils/WebGLCapabilities.js +64 -0
  1015. package/node_modules/three/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/utils/WebGLConstants.js +5 -3
  1016. package/node_modules/three/src/renderers/webgl-fallback/utils/WebGLExtensions.js +83 -0
  1017. package/node_modules/three/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/utils/WebGLState.js +427 -21
  1018. package/node_modules/three/src/renderers/webgl-fallback/utils/WebGLTextureUtils.js +1309 -0
  1019. package/node_modules/three/src/renderers/webgl-fallback/utils/WebGLTimestampQueryPool.js +396 -0
  1020. package/node_modules/three/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/utils/WebGLUtils.js +72 -43
  1021. package/node_modules/three/src/renderers/webgpu/WebGPUBackend.js +2482 -0
  1022. package/node_modules/three/src/renderers/webgpu/WebGPURenderer.Nodes.js +69 -0
  1023. package/node_modules/three/src/renderers/webgpu/WebGPURenderer.js +106 -0
  1024. package/node_modules/three/src/renderers/webgpu/nodes/BasicNodeLibrary.js +66 -0
  1025. package/node_modules/three/src/renderers/webgpu/nodes/StandardNodeLibrary.js +100 -0
  1026. package/node_modules/three/src/renderers/webgpu/nodes/WGSLNodeBuilder.js +2247 -0
  1027. package/node_modules/three/src/renderers/webgpu/nodes/WGSLNodeFunction.js +187 -0
  1028. package/node_modules/three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeParser.js +11 -0
  1029. package/node_modules/three/src/renderers/webgpu/utils/WebGPUAttributeUtils.js +449 -0
  1030. package/node_modules/three/src/renderers/webgpu/utils/WebGPUBindingUtils.js +485 -0
  1031. package/node_modules/three/{examples/jsm → src}/renderers/webgpu/utils/WebGPUConstants.js +24 -4
  1032. package/node_modules/three/{examples/jsm → src}/renderers/webgpu/utils/WebGPUPipelineUtils.js +289 -72
  1033. package/node_modules/three/{examples/jsm → src}/renderers/webgpu/utils/WebGPUTexturePassUtils.js +160 -8
  1034. package/node_modules/three/src/renderers/webgpu/utils/WebGPUTextureUtils.js +1576 -0
  1035. package/node_modules/three/src/renderers/webgpu/utils/WebGPUTimestampQueryPool.js +310 -0
  1036. package/node_modules/three/src/renderers/webgpu/utils/WebGPUUtils.js +247 -0
  1037. package/node_modules/three/src/renderers/webxr/WebXRController.js +87 -2
  1038. package/node_modules/three/src/renderers/webxr/WebXRDepthSensing.js +63 -13
  1039. package/node_modules/three/src/renderers/webxr/WebXRManager.js +323 -44
  1040. package/node_modules/three/src/scenes/Fog.js +60 -0
  1041. package/node_modules/three/src/scenes/FogExp2.js +51 -0
  1042. package/node_modules/three/src/scenes/Scene.js +103 -1
  1043. package/node_modules/three/src/textures/CanvasTexture.js +28 -0
  1044. package/node_modules/three/src/textures/CompressedArrayTexture.js +71 -0
  1045. package/node_modules/three/src/textures/CompressedCubeTexture.js +29 -0
  1046. package/node_modules/three/src/textures/CompressedTexture.js +64 -6
  1047. package/node_modules/three/src/textures/CubeTexture.js +52 -4
  1048. package/node_modules/three/src/textures/Data3DTexture.js +79 -2
  1049. package/node_modules/three/src/textures/DataArrayTexture.js +107 -0
  1050. package/node_modules/three/src/textures/DataTexture.js +65 -0
  1051. package/node_modules/three/src/textures/DepthTexture.js +59 -13
  1052. package/node_modules/three/src/textures/ExternalTexture.js +56 -0
  1053. package/node_modules/three/src/textures/FramebufferTexture.js +62 -0
  1054. package/node_modules/three/src/textures/Source.js +106 -4
  1055. package/node_modules/three/src/textures/Texture.js +490 -27
  1056. package/node_modules/three/src/textures/VideoFrameTexture.js +72 -0
  1057. package/node_modules/three/src/textures/VideoTexture.js +78 -6
  1058. package/node_modules/three/src/utils.js +128 -3
  1059. package/package.json +3 -2
  1060. package/node_modules/three/examples/jsm/animation/MMDAnimationHelper.js +0 -1207
  1061. package/node_modules/three/examples/jsm/animation/MMDPhysics.js +0 -1406
  1062. package/node_modules/three/examples/jsm/cameras/CinematicCamera.js +0 -208
  1063. package/node_modules/three/examples/jsm/effects/PeppersGhostEffect.js +0 -153
  1064. package/node_modules/three/examples/jsm/exporters/MMDExporter.js +0 -217
  1065. package/node_modules/three/examples/jsm/geometries/InstancedPointsGeometry.js +0 -174
  1066. package/node_modules/three/examples/jsm/geometries/ParametricGeometries.js +0 -254
  1067. package/node_modules/three/examples/jsm/geometries/SDFGeometryGenerator.js +0 -144
  1068. package/node_modules/three/examples/jsm/libs/mmdparser.module.js +0 -11530
  1069. package/node_modules/three/examples/jsm/lights/IESSpotLight.js +0 -25
  1070. package/node_modules/three/examples/jsm/loaders/LogLuvLoader.js +0 -606
  1071. package/node_modules/three/examples/jsm/loaders/MMDLoader.js +0 -2276
  1072. package/node_modules/three/examples/jsm/loaders/RGBMLoader.js +0 -1065
  1073. package/node_modules/three/examples/jsm/loaders/TiltLoader.js +0 -520
  1074. package/node_modules/three/examples/jsm/misc/Timer.js +0 -128
  1075. package/node_modules/three/examples/jsm/nodes/Nodes.js +0 -193
  1076. package/node_modules/three/examples/jsm/nodes/accessors/BitangentNode.js +0 -89
  1077. package/node_modules/three/examples/jsm/nodes/accessors/BufferAttributeNode.js +0 -127
  1078. package/node_modules/three/examples/jsm/nodes/accessors/BufferNode.js +0 -30
  1079. package/node_modules/three/examples/jsm/nodes/accessors/CameraNode.js +0 -119
  1080. package/node_modules/three/examples/jsm/nodes/accessors/CubeTextureNode.js +0 -61
  1081. package/node_modules/three/examples/jsm/nodes/accessors/InstanceNode.js +0 -71
  1082. package/node_modules/three/examples/jsm/nodes/accessors/InstancedPointsMaterialNode.js +0 -21
  1083. package/node_modules/three/examples/jsm/nodes/accessors/MaterialNode.js +0 -314
  1084. package/node_modules/three/examples/jsm/nodes/accessors/MaterialReferenceNode.js +0 -51
  1085. package/node_modules/three/examples/jsm/nodes/accessors/ModelNode.js +0 -33
  1086. package/node_modules/three/examples/jsm/nodes/accessors/ModelViewProjectionNode.js +0 -39
  1087. package/node_modules/three/examples/jsm/nodes/accessors/NormalNode.js +0 -96
  1088. package/node_modules/three/examples/jsm/nodes/accessors/Object3DNode.js +0 -150
  1089. package/node_modules/three/examples/jsm/nodes/accessors/PointUVNode.js +0 -26
  1090. package/node_modules/three/examples/jsm/nodes/accessors/PositionNode.js +0 -104
  1091. package/node_modules/three/examples/jsm/nodes/accessors/ReferenceNode.js +0 -102
  1092. package/node_modules/three/examples/jsm/nodes/accessors/ReflectVectorNode.js +0 -35
  1093. package/node_modules/three/examples/jsm/nodes/accessors/SceneNode.js +0 -52
  1094. package/node_modules/three/examples/jsm/nodes/accessors/SkinningNode.js +0 -103
  1095. package/node_modules/three/examples/jsm/nodes/accessors/StorageBufferNode.js +0 -54
  1096. package/node_modules/three/examples/jsm/nodes/accessors/TangentNode.js +0 -103
  1097. package/node_modules/three/examples/jsm/nodes/accessors/TextureNode.js +0 -367
  1098. package/node_modules/three/examples/jsm/nodes/accessors/TextureSizeNode.js +0 -35
  1099. package/node_modules/three/examples/jsm/nodes/accessors/TextureStoreNode.js +0 -82
  1100. package/node_modules/three/examples/jsm/nodes/accessors/UVNode.js +0 -47
  1101. package/node_modules/three/examples/jsm/nodes/accessors/UserDataNode.js +0 -29
  1102. package/node_modules/three/examples/jsm/nodes/accessors/VertexColorNode.js +0 -70
  1103. package/node_modules/three/examples/jsm/nodes/code/CodeNode.js +0 -78
  1104. package/node_modules/three/examples/jsm/nodes/code/ExpressionNode.js +0 -37
  1105. package/node_modules/three/examples/jsm/nodes/code/FunctionCallNode.js +0 -96
  1106. package/node_modules/three/examples/jsm/nodes/code/FunctionNode.js +0 -138
  1107. package/node_modules/three/examples/jsm/nodes/core/ArrayUniformNode.js +0 -26
  1108. package/node_modules/three/examples/jsm/nodes/core/AssignNode.js +0 -72
  1109. package/node_modules/three/examples/jsm/nodes/core/AttributeNode.js +0 -108
  1110. package/node_modules/three/examples/jsm/nodes/core/BypassNode.js +0 -45
  1111. package/node_modules/three/examples/jsm/nodes/core/CacheNode.js +0 -49
  1112. package/node_modules/three/examples/jsm/nodes/core/ConstNode.js +0 -32
  1113. package/node_modules/three/examples/jsm/nodes/core/ContextNode.js +0 -61
  1114. package/node_modules/three/examples/jsm/nodes/core/IndexNode.js +0 -66
  1115. package/node_modules/three/examples/jsm/nodes/core/InputNode.js +0 -83
  1116. package/node_modules/three/examples/jsm/nodes/core/LightingModel.js +0 -17
  1117. package/node_modules/three/examples/jsm/nodes/core/Node.js +0 -483
  1118. package/node_modules/three/examples/jsm/nodes/core/NodeAttribute.js +0 -15
  1119. package/node_modules/three/examples/jsm/nodes/core/NodeBuilder.js +0 -1256
  1120. package/node_modules/three/examples/jsm/nodes/core/NodeCache.js +0 -26
  1121. package/node_modules/three/examples/jsm/nodes/core/NodeCode.js +0 -15
  1122. package/node_modules/three/examples/jsm/nodes/core/NodeFrame.js +0 -143
  1123. package/node_modules/three/examples/jsm/nodes/core/NodeFunction.js +0 -22
  1124. package/node_modules/three/examples/jsm/nodes/core/NodeFunctionInput.js +0 -17
  1125. package/node_modules/three/examples/jsm/nodes/core/NodeKeywords.js +0 -80
  1126. package/node_modules/three/examples/jsm/nodes/core/NodeParser.js +0 -11
  1127. package/node_modules/three/examples/jsm/nodes/core/NodeUniform.js +0 -40
  1128. package/node_modules/three/examples/jsm/nodes/core/NodeUtils.js +0 -210
  1129. package/node_modules/three/examples/jsm/nodes/core/NodeVar.js +0 -14
  1130. package/node_modules/three/examples/jsm/nodes/core/NodeVarying.js +0 -17
  1131. package/node_modules/three/examples/jsm/nodes/core/OutputStructNode.js +0 -62
  1132. package/node_modules/three/examples/jsm/nodes/core/ParameterNode.js +0 -33
  1133. package/node_modules/three/examples/jsm/nodes/core/PropertyNode.js +0 -72
  1134. package/node_modules/three/examples/jsm/nodes/core/StackNode.js +0 -89
  1135. package/node_modules/three/examples/jsm/nodes/core/StructTypeNode.js +0 -24
  1136. package/node_modules/three/examples/jsm/nodes/core/TempNode.js +0 -58
  1137. package/node_modules/three/examples/jsm/nodes/core/UniformGroup.js +0 -13
  1138. package/node_modules/three/examples/jsm/nodes/core/UniformGroupNode.js +0 -36
  1139. package/node_modules/three/examples/jsm/nodes/core/UniformNode.js +0 -80
  1140. package/node_modules/three/examples/jsm/nodes/core/VarNode.js +0 -60
  1141. package/node_modules/three/examples/jsm/nodes/core/VaryingNode.js +0 -65
  1142. package/node_modules/three/examples/jsm/nodes/core/constants.js +0 -28
  1143. package/node_modules/three/examples/jsm/nodes/display/AfterImageNode.js +0 -148
  1144. package/node_modules/three/examples/jsm/nodes/display/AnamorphicNode.js +0 -148
  1145. package/node_modules/three/examples/jsm/nodes/display/BlendModeNode.js +0 -99
  1146. package/node_modules/three/examples/jsm/nodes/display/BumpMapNode.js +0 -99
  1147. package/node_modules/three/examples/jsm/nodes/display/ColorAdjustmentNode.js +0 -99
  1148. package/node_modules/three/examples/jsm/nodes/display/ColorSpaceNode.js +0 -108
  1149. package/node_modules/three/examples/jsm/nodes/display/FrontFacingNode.js +0 -27
  1150. package/node_modules/three/examples/jsm/nodes/display/GaussianBlurNode.js +0 -190
  1151. package/node_modules/three/examples/jsm/nodes/display/NormalMapNode.js +0 -108
  1152. package/node_modules/three/examples/jsm/nodes/display/PassNode.js +0 -183
  1153. package/node_modules/three/examples/jsm/nodes/display/PosterizeNode.js +0 -32
  1154. package/node_modules/three/examples/jsm/nodes/display/ToneMappingNode.js +0 -184
  1155. package/node_modules/three/examples/jsm/nodes/display/ViewportDepthNode.js +0 -97
  1156. package/node_modules/three/examples/jsm/nodes/display/ViewportDepthTextureNode.js +0 -31
  1157. package/node_modules/three/examples/jsm/nodes/display/ViewportNode.js +0 -134
  1158. package/node_modules/three/examples/jsm/nodes/display/ViewportSharedTextureNode.js +0 -31
  1159. package/node_modules/three/examples/jsm/nodes/display/ViewportTextureNode.js +0 -75
  1160. package/node_modules/three/examples/jsm/nodes/fog/FogExp2Node.js +0 -35
  1161. package/node_modules/three/examples/jsm/nodes/fog/FogNode.js +0 -38
  1162. package/node_modules/three/examples/jsm/nodes/fog/FogRangeNode.js +0 -34
  1163. package/node_modules/three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.js +0 -40
  1164. package/node_modules/three/examples/jsm/nodes/functions/BSDF/DFGApprox.js +0 -30
  1165. package/node_modules/three/examples/jsm/nodes/functions/PhongLightingModel.js +0 -67
  1166. package/node_modules/three/examples/jsm/nodes/functions/PhysicalLightingModel.js +0 -393
  1167. package/node_modules/three/examples/jsm/nodes/functions/material/getGeometryRoughness.js +0 -13
  1168. package/node_modules/three/examples/jsm/nodes/geometry/RangeNode.js +0 -104
  1169. package/node_modules/three/examples/jsm/nodes/gpgpu/ComputeNode.js +0 -85
  1170. package/node_modules/three/examples/jsm/nodes/lighting/AONode.js +0 -27
  1171. package/node_modules/three/examples/jsm/nodes/lighting/AnalyticLightNode.js +0 -241
  1172. package/node_modules/three/examples/jsm/nodes/lighting/DirectionalLightNode.js +0 -40
  1173. package/node_modules/three/examples/jsm/nodes/lighting/EnvironmentNode.js +0 -181
  1174. package/node_modules/three/examples/jsm/nodes/lighting/HemisphereLightNode.js +0 -55
  1175. package/node_modules/three/examples/jsm/nodes/lighting/LightNode.js +0 -57
  1176. package/node_modules/three/examples/jsm/nodes/lighting/LightUtils.js +0 -17
  1177. package/node_modules/three/examples/jsm/nodes/lighting/LightingContextNode.js +0 -66
  1178. package/node_modules/three/examples/jsm/nodes/lighting/LightingNode.js +0 -21
  1179. package/node_modules/three/examples/jsm/nodes/lighting/LightsNode.js +0 -188
  1180. package/node_modules/three/examples/jsm/nodes/lighting/PointLightNode.js +0 -68
  1181. package/node_modules/three/examples/jsm/nodes/lighting/SpotLightNode.js +0 -89
  1182. package/node_modules/three/examples/jsm/nodes/loaders/NodeLoader.js +0 -108
  1183. package/node_modules/three/examples/jsm/nodes/loaders/NodeMaterialLoader.js +0 -59
  1184. package/node_modules/three/examples/jsm/nodes/loaders/NodeObjectLoader.js +0 -70
  1185. package/node_modules/three/examples/jsm/nodes/materials/InstancedPointsNodeMaterial.js +0 -162
  1186. package/node_modules/three/examples/jsm/nodes/materials/LineBasicNodeMaterial.js +0 -28
  1187. package/node_modules/three/examples/jsm/nodes/materials/LineDashedNodeMaterial.js +0 -54
  1188. package/node_modules/three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.js +0 -28
  1189. package/node_modules/three/examples/jsm/nodes/materials/MeshLambertNodeMaterial.js +0 -34
  1190. package/node_modules/three/examples/jsm/nodes/materials/MeshNormalNodeMaterial.js +0 -40
  1191. package/node_modules/three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.js +0 -65
  1192. package/node_modules/three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.js +0 -155
  1193. package/node_modules/three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.js +0 -84
  1194. package/node_modules/three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.js +0 -80
  1195. package/node_modules/three/examples/jsm/nodes/materials/NodeMaterial.js +0 -570
  1196. package/node_modules/three/examples/jsm/nodes/materials/PointsNodeMaterial.js +0 -39
  1197. package/node_modules/three/examples/jsm/nodes/materials/SpriteNodeMaterial.js +0 -90
  1198. package/node_modules/three/examples/jsm/nodes/materialx/MaterialXNodes.js +0 -68
  1199. package/node_modules/three/examples/jsm/nodes/math/CondNode.js +0 -86
  1200. package/node_modules/three/examples/jsm/nodes/math/HashNode.js +0 -34
  1201. package/node_modules/three/examples/jsm/nodes/math/MathNode.js +0 -371
  1202. package/node_modules/three/examples/jsm/nodes/math/MathUtils.js +0 -15
  1203. package/node_modules/three/examples/jsm/nodes/math/OperatorNode.js +0 -274
  1204. package/node_modules/three/examples/jsm/nodes/procedural/CheckerNode.js +0 -42
  1205. package/node_modules/three/examples/jsm/nodes/shadernode/ShaderNode.js +0 -634
  1206. package/node_modules/three/examples/jsm/nodes/utils/ArrayElementNode.js +0 -41
  1207. package/node_modules/three/examples/jsm/nodes/utils/ConvertNode.js +0 -65
  1208. package/node_modules/three/examples/jsm/nodes/utils/DiscardNode.js +0 -27
  1209. package/node_modules/three/examples/jsm/nodes/utils/EquirectUVNode.js +0 -33
  1210. package/node_modules/three/examples/jsm/nodes/utils/FunctionOverloadingNode.js +0 -95
  1211. package/node_modules/three/examples/jsm/nodes/utils/JoinNode.js +0 -61
  1212. package/node_modules/three/examples/jsm/nodes/utils/LoopNode.js +0 -198
  1213. package/node_modules/three/examples/jsm/nodes/utils/MatcapUVNode.js +0 -30
  1214. package/node_modules/three/examples/jsm/nodes/utils/MaxMipLevelNode.js +0 -46
  1215. package/node_modules/three/examples/jsm/nodes/utils/OscNode.js +0 -81
  1216. package/node_modules/three/examples/jsm/nodes/utils/PackingNode.js +0 -55
  1217. package/node_modules/three/examples/jsm/nodes/utils/ReflectorNode.js +0 -227
  1218. package/node_modules/three/examples/jsm/nodes/utils/RemapNode.js +0 -42
  1219. package/node_modules/three/examples/jsm/nodes/utils/RotateUVNode.js +0 -35
  1220. package/node_modules/three/examples/jsm/nodes/utils/SpecularMIPLevelNode.js +0 -37
  1221. package/node_modules/three/examples/jsm/nodes/utils/SpriteSheetUVNode.js +0 -41
  1222. package/node_modules/three/examples/jsm/nodes/utils/TimerNode.js +0 -94
  1223. package/node_modules/three/examples/jsm/nodes/utils/TriplanarTexturesNode.js +0 -62
  1224. package/node_modules/three/examples/jsm/objects/InstancedPoints.js +0 -21
  1225. package/node_modules/three/examples/jsm/objects/QuadMesh.js +0 -66
  1226. package/node_modules/three/examples/jsm/renderers/common/Animation.js +0 -47
  1227. package/node_modules/three/examples/jsm/renderers/common/Backend.js +0 -195
  1228. package/node_modules/three/examples/jsm/renderers/common/Background.js +0 -134
  1229. package/node_modules/three/examples/jsm/renderers/common/Binding.js +0 -25
  1230. package/node_modules/three/examples/jsm/renderers/common/Bindings.js +0 -173
  1231. package/node_modules/three/examples/jsm/renderers/common/Buffer.js +0 -38
  1232. package/node_modules/three/examples/jsm/renderers/common/BufferUtils.js +0 -33
  1233. package/node_modules/three/examples/jsm/renderers/common/ChainMap.js +0 -89
  1234. package/node_modules/three/examples/jsm/renderers/common/Color4.js +0 -37
  1235. package/node_modules/three/examples/jsm/renderers/common/ComputePipeline.js +0 -17
  1236. package/node_modules/three/examples/jsm/renderers/common/DataMap.js +0 -54
  1237. package/node_modules/three/examples/jsm/renderers/common/Geometries.js +0 -215
  1238. package/node_modules/three/examples/jsm/renderers/common/Info.js +0 -107
  1239. package/node_modules/three/examples/jsm/renderers/common/Pipeline.js +0 -13
  1240. package/node_modules/three/examples/jsm/renderers/common/PostProcessing.js +0 -25
  1241. package/node_modules/three/examples/jsm/renderers/common/ProgrammableStage.js +0 -20
  1242. package/node_modules/three/examples/jsm/renderers/common/RenderContext.js +0 -41
  1243. package/node_modules/three/examples/jsm/renderers/common/RenderContexts.js +0 -74
  1244. package/node_modules/three/examples/jsm/renderers/common/RenderList.js +0 -186
  1245. package/node_modules/three/examples/jsm/renderers/common/RenderLists.js +0 -38
  1246. package/node_modules/three/examples/jsm/renderers/common/RenderObject.js +0 -178
  1247. package/node_modules/three/examples/jsm/renderers/common/RenderObjects.js +0 -91
  1248. package/node_modules/three/examples/jsm/renderers/common/RenderPipeline.js +0 -16
  1249. package/node_modules/three/examples/jsm/renderers/common/Renderer.js +0 -1247
  1250. package/node_modules/three/examples/jsm/renderers/common/SampledTexture.js +0 -83
  1251. package/node_modules/three/examples/jsm/renderers/common/Sampler.js +0 -18
  1252. package/node_modules/three/examples/jsm/renderers/common/StorageBuffer.js +0 -17
  1253. package/node_modules/three/examples/jsm/renderers/common/StorageBufferAttribute.js +0 -17
  1254. package/node_modules/three/examples/jsm/renderers/common/StorageTexture.js +0 -20
  1255. package/node_modules/three/examples/jsm/renderers/common/Textures.js +0 -354
  1256. package/node_modules/three/examples/jsm/renderers/common/Uniform.js +0 -140
  1257. package/node_modules/three/examples/jsm/renderers/common/UniformBuffer.js +0 -15
  1258. package/node_modules/three/examples/jsm/renderers/common/UniformsGroup.js +0 -299
  1259. package/node_modules/three/examples/jsm/renderers/common/nodes/NodeBuilderState.js +0 -44
  1260. package/node_modules/three/examples/jsm/renderers/common/nodes/NodeSampledTexture.js +0 -49
  1261. package/node_modules/three/examples/jsm/renderers/common/nodes/NodeSampler.js +0 -15
  1262. package/node_modules/three/examples/jsm/renderers/common/nodes/NodeUniform.js +0 -135
  1263. package/node_modules/three/examples/jsm/renderers/common/nodes/NodeUniformsGroup.js +0 -44
  1264. package/node_modules/three/examples/jsm/renderers/common/nodes/Nodes.js +0 -495
  1265. package/node_modules/three/examples/jsm/renderers/webgl/WebGLBackend.js +0 -1362
  1266. package/node_modules/three/examples/jsm/renderers/webgl/nodes/GLSLNodeBuilder.js +0 -679
  1267. package/node_modules/three/examples/jsm/renderers/webgl/utils/WebGLCapabilities.js +0 -36
  1268. package/node_modules/three/examples/jsm/renderers/webgl/utils/WebGLExtensions.js +0 -36
  1269. package/node_modules/three/examples/jsm/renderers/webgl/utils/WebGLTextureUtils.js +0 -647
  1270. package/node_modules/three/examples/jsm/renderers/webgl-legacy/nodes/GLSL1NodeBuilder.js +0 -320
  1271. package/node_modules/three/examples/jsm/renderers/webgl-legacy/nodes/SlotNode.js +0 -26
  1272. package/node_modules/three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodeBuilder.js +0 -794
  1273. package/node_modules/three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.js +0 -51
  1274. package/node_modules/three/examples/jsm/renderers/webgpu/WebGPUBackend.js +0 -1321
  1275. package/node_modules/three/examples/jsm/renderers/webgpu/WebGPURenderer.js +0 -53
  1276. package/node_modules/three/examples/jsm/renderers/webgpu/nodes/WGSLNodeBuilder.js +0 -1103
  1277. package/node_modules/three/examples/jsm/renderers/webgpu/nodes/WGSLNodeFunction.js +0 -104
  1278. package/node_modules/three/examples/jsm/renderers/webgpu/utils/WebGPUAttributeUtils.js +0 -287
  1279. package/node_modules/three/examples/jsm/renderers/webgpu/utils/WebGPUBindingUtils.js +0 -244
  1280. package/node_modules/three/examples/jsm/renderers/webgpu/utils/WebGPUTextureUtils.js +0 -1040
  1281. package/node_modules/three/examples/jsm/renderers/webgpu/utils/WebGPUUtils.js +0 -93
  1282. package/node_modules/three/examples/jsm/shaders/MMDToonShader.js +0 -134
  1283. package/node_modules/three/examples/jsm/utils/GPUStatsPanel.js +0 -128
  1284. package/node_modules/three/examples/jsm/utils/PackedPhongMaterial.js +0 -178
  1285. package/node_modules/three/src/renderers/WebGL1Renderer.js +0 -7
  1286. package/node_modules/three/src/renderers/WebGLMultipleRenderTargets.js +0 -82
  1287. package/node_modules/three/src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl.js +0 -10
  1288. /package/node_modules/three/{examples/jsm → src}/nodes/materialx/DISCLAIMER.md +0 -0
@@ -1,41 +1,63 @@
1
1
  // Three.js Transpiler
2
2
  // https://raw.githubusercontent.com/AcademySoftwareFoundation/MaterialX/main/libraries/stdlib/genglsl/lib/mx_noise.glsl
3
3
 
4
- import { int, uint, float, vec3, bool, uvec3, vec2, vec4, If, tslFn } from '../../shadernode/ShaderNode.js';
5
- import { cond } from '../../math/CondNode.js';
4
+ import { int, uint, float, vec3, bool, uvec3, vec2, vec4, If, Fn } from '../../tsl/TSLBase.js';
5
+ import { select } from '../../math/ConditionalNode.js';
6
6
  import { sub, mul } from '../../math/OperatorNode.js';
7
- import { floor, abs, max, dot, min, sqrt } from '../../math/MathNode.js';
7
+ import { floor, abs, max, dot, min, sqrt, clamp } from '../../math/MathNode.js';
8
8
  import { overloadingFn } from '../../utils/FunctionOverloadingNode.js';
9
- import { loop } from '../../utils/LoopNode.js';
9
+ import { Loop } from '../../utils/LoopNode.js';
10
10
 
11
- const mx_select = tslFn( ( [ b_immutable, t_immutable, f_immutable ] ) => {
11
+
12
+ export const mx_select = /*@__PURE__*/ Fn( ( [ b_immutable, t_immutable, f_immutable ] ) => {
12
13
 
13
14
  const f = float( f_immutable ).toVar();
14
15
  const t = float( t_immutable ).toVar();
15
16
  const b = bool( b_immutable ).toVar();
16
17
 
17
- return cond( b, t, f );
18
+ return select( b, t, f );
18
19
 
20
+ } ).setLayout( {
21
+ name: 'mx_select',
22
+ type: 'float',
23
+ inputs: [
24
+ { name: 'b', type: 'bool' },
25
+ { name: 't', type: 'float' },
26
+ { name: 'f', type: 'float' }
27
+ ]
19
28
  } );
20
29
 
21
- const mx_negate_if = tslFn( ( [ val_immutable, b_immutable ] ) => {
30
+ export const mx_negate_if = /*@__PURE__*/ Fn( ( [ val_immutable, b_immutable ] ) => {
22
31
 
23
32
  const b = bool( b_immutable ).toVar();
24
33
  const val = float( val_immutable ).toVar();
25
34
 
26
- return cond( b, val.negate(), val );
35
+ return select( b, val.negate(), val );
27
36
 
37
+ } ).setLayout( {
38
+ name: 'mx_negate_if',
39
+ type: 'float',
40
+ inputs: [
41
+ { name: 'val', type: 'float' },
42
+ { name: 'b', type: 'bool' }
43
+ ]
28
44
  } );
29
45
 
30
- const mx_floor = tslFn( ( [ x_immutable ] ) => {
46
+ export const mx_floor = /*@__PURE__*/ Fn( ( [ x_immutable ] ) => {
31
47
 
32
48
  const x = float( x_immutable ).toVar();
33
49
 
34
50
  return int( floor( x ) );
35
51
 
52
+ } ).setLayout( {
53
+ name: 'mx_floor',
54
+ type: 'int',
55
+ inputs: [
56
+ { name: 'x', type: 'float' }
57
+ ]
36
58
  } );
37
59
 
38
- const mx_floorfrac = tslFn( ( [ x_immutable, i ] ) => {
60
+ export const mx_floorfrac = /*@__PURE__*/ Fn( ( [ x_immutable, i ] ) => {
39
61
 
40
62
  const x = float( x_immutable ).toVar();
41
63
  i.assign( mx_floor( x ) );
@@ -44,7 +66,7 @@ const mx_floorfrac = tslFn( ( [ x_immutable, i ] ) => {
44
66
 
45
67
  } );
46
68
 
47
- const mx_bilerp_0 = tslFn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_immutable, s_immutable, t_immutable ] ) => {
69
+ export const mx_bilerp_0 = /*@__PURE__*/ Fn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_immutable, s_immutable, t_immutable ] ) => {
48
70
 
49
71
  const t = float( t_immutable ).toVar();
50
72
  const s = float( s_immutable ).toVar();
@@ -56,9 +78,20 @@ const mx_bilerp_0 = tslFn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_immu
56
78
 
57
79
  return sub( 1.0, t ).mul( v0.mul( s1 ).add( v1.mul( s ) ) ).add( t.mul( v2.mul( s1 ).add( v3.mul( s ) ) ) );
58
80
 
81
+ } ).setLayout( {
82
+ name: 'mx_bilerp_0',
83
+ type: 'float',
84
+ inputs: [
85
+ { name: 'v0', type: 'float' },
86
+ { name: 'v1', type: 'float' },
87
+ { name: 'v2', type: 'float' },
88
+ { name: 'v3', type: 'float' },
89
+ { name: 's', type: 'float' },
90
+ { name: 't', type: 'float' }
91
+ ]
59
92
  } );
60
93
 
61
- const mx_bilerp_1 = tslFn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_immutable, s_immutable, t_immutable ] ) => {
94
+ export const mx_bilerp_1 = /*@__PURE__*/ Fn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_immutable, s_immutable, t_immutable ] ) => {
62
95
 
63
96
  const t = float( t_immutable ).toVar();
64
97
  const s = float( s_immutable ).toVar();
@@ -70,11 +103,22 @@ const mx_bilerp_1 = tslFn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_immu
70
103
 
71
104
  return sub( 1.0, t ).mul( v0.mul( s1 ).add( v1.mul( s ) ) ).add( t.mul( v2.mul( s1 ).add( v3.mul( s ) ) ) );
72
105
 
106
+ } ).setLayout( {
107
+ name: 'mx_bilerp_1',
108
+ type: 'vec3',
109
+ inputs: [
110
+ { name: 'v0', type: 'vec3' },
111
+ { name: 'v1', type: 'vec3' },
112
+ { name: 'v2', type: 'vec3' },
113
+ { name: 'v3', type: 'vec3' },
114
+ { name: 's', type: 'float' },
115
+ { name: 't', type: 'float' }
116
+ ]
73
117
  } );
74
118
 
75
- const mx_bilerp = overloadingFn( [ mx_bilerp_0, mx_bilerp_1 ] );
119
+ export const mx_bilerp = /*@__PURE__*/ overloadingFn( [ mx_bilerp_0, mx_bilerp_1 ] );
76
120
 
77
- const mx_trilerp_0 = tslFn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_immutable, v4_immutable, v5_immutable, v6_immutable, v7_immutable, s_immutable, t_immutable, r_immutable ] ) => {
121
+ export const mx_trilerp_0 = /*@__PURE__*/ Fn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_immutable, v4_immutable, v5_immutable, v6_immutable, v7_immutable, s_immutable, t_immutable, r_immutable ] ) => {
78
122
 
79
123
  const r = float( r_immutable ).toVar();
80
124
  const t = float( t_immutable ).toVar();
@@ -93,9 +137,25 @@ const mx_trilerp_0 = tslFn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_imm
93
137
 
94
138
  return r1.mul( t1.mul( v0.mul( s1 ).add( v1.mul( s ) ) ).add( t.mul( v2.mul( s1 ).add( v3.mul( s ) ) ) ) ).add( r.mul( t1.mul( v4.mul( s1 ).add( v5.mul( s ) ) ).add( t.mul( v6.mul( s1 ).add( v7.mul( s ) ) ) ) ) );
95
139
 
140
+ } ).setLayout( {
141
+ name: 'mx_trilerp_0',
142
+ type: 'float',
143
+ inputs: [
144
+ { name: 'v0', type: 'float' },
145
+ { name: 'v1', type: 'float' },
146
+ { name: 'v2', type: 'float' },
147
+ { name: 'v3', type: 'float' },
148
+ { name: 'v4', type: 'float' },
149
+ { name: 'v5', type: 'float' },
150
+ { name: 'v6', type: 'float' },
151
+ { name: 'v7', type: 'float' },
152
+ { name: 's', type: 'float' },
153
+ { name: 't', type: 'float' },
154
+ { name: 'r', type: 'float' }
155
+ ]
96
156
  } );
97
157
 
98
- const mx_trilerp_1 = tslFn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_immutable, v4_immutable, v5_immutable, v6_immutable, v7_immutable, s_immutable, t_immutable, r_immutable ] ) => {
158
+ export const mx_trilerp_1 = /*@__PURE__*/ Fn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_immutable, v4_immutable, v5_immutable, v6_immutable, v7_immutable, s_immutable, t_immutable, r_immutable ] ) => {
99
159
 
100
160
  const r = float( r_immutable ).toVar();
101
161
  const t = float( t_immutable ).toVar();
@@ -114,11 +174,27 @@ const mx_trilerp_1 = tslFn( ( [ v0_immutable, v1_immutable, v2_immutable, v3_imm
114
174
 
115
175
  return r1.mul( t1.mul( v0.mul( s1 ).add( v1.mul( s ) ) ).add( t.mul( v2.mul( s1 ).add( v3.mul( s ) ) ) ) ).add( r.mul( t1.mul( v4.mul( s1 ).add( v5.mul( s ) ) ).add( t.mul( v6.mul( s1 ).add( v7.mul( s ) ) ) ) ) );
116
176
 
177
+ } ).setLayout( {
178
+ name: 'mx_trilerp_1',
179
+ type: 'vec3',
180
+ inputs: [
181
+ { name: 'v0', type: 'vec3' },
182
+ { name: 'v1', type: 'vec3' },
183
+ { name: 'v2', type: 'vec3' },
184
+ { name: 'v3', type: 'vec3' },
185
+ { name: 'v4', type: 'vec3' },
186
+ { name: 'v5', type: 'vec3' },
187
+ { name: 'v6', type: 'vec3' },
188
+ { name: 'v7', type: 'vec3' },
189
+ { name: 's', type: 'float' },
190
+ { name: 't', type: 'float' },
191
+ { name: 'r', type: 'float' }
192
+ ]
117
193
  } );
118
194
 
119
- const mx_trilerp = overloadingFn( [ mx_trilerp_0, mx_trilerp_1 ] );
195
+ export const mx_trilerp = /*@__PURE__*/ overloadingFn( [ mx_trilerp_0, mx_trilerp_1 ] );
120
196
 
121
- const mx_gradient_float_0 = tslFn( ( [ hash_immutable, x_immutable, y_immutable ] ) => {
197
+ export const mx_gradient_float_0 = /*@__PURE__*/ Fn( ( [ hash_immutable, x_immutable, y_immutable ] ) => {
122
198
 
123
199
  const y = float( y_immutable ).toVar();
124
200
  const x = float( x_immutable ).toVar();
@@ -129,9 +205,17 @@ const mx_gradient_float_0 = tslFn( ( [ hash_immutable, x_immutable, y_immutable
129
205
 
130
206
  return mx_negate_if( u, bool( h.bitAnd( uint( 1 ) ) ) ).add( mx_negate_if( v, bool( h.bitAnd( uint( 2 ) ) ) ) );
131
207
 
208
+ } ).setLayout( {
209
+ name: 'mx_gradient_float_0',
210
+ type: 'float',
211
+ inputs: [
212
+ { name: 'hash', type: 'uint' },
213
+ { name: 'x', type: 'float' },
214
+ { name: 'y', type: 'float' }
215
+ ]
132
216
  } );
133
217
 
134
- const mx_gradient_float_1 = tslFn( ( [ hash_immutable, x_immutable, y_immutable, z_immutable ] ) => {
218
+ export const mx_gradient_float_1 = /*@__PURE__*/ Fn( ( [ hash_immutable, x_immutable, y_immutable, z_immutable ] ) => {
135
219
 
136
220
  const z = float( z_immutable ).toVar();
137
221
  const y = float( y_immutable ).toVar();
@@ -143,11 +227,20 @@ const mx_gradient_float_1 = tslFn( ( [ hash_immutable, x_immutable, y_immutable,
143
227
 
144
228
  return mx_negate_if( u, bool( h.bitAnd( uint( 1 ) ) ) ).add( mx_negate_if( v, bool( h.bitAnd( uint( 2 ) ) ) ) );
145
229
 
230
+ } ).setLayout( {
231
+ name: 'mx_gradient_float_1',
232
+ type: 'float',
233
+ inputs: [
234
+ { name: 'hash', type: 'uint' },
235
+ { name: 'x', type: 'float' },
236
+ { name: 'y', type: 'float' },
237
+ { name: 'z', type: 'float' }
238
+ ]
146
239
  } );
147
240
 
148
- const mx_gradient_float = overloadingFn( [ mx_gradient_float_0, mx_gradient_float_1 ] );
241
+ export const mx_gradient_float = /*@__PURE__*/ overloadingFn( [ mx_gradient_float_0, mx_gradient_float_1 ] );
149
242
 
150
- const mx_gradient_vec3_0 = tslFn( ( [ hash_immutable, x_immutable, y_immutable ] ) => {
243
+ export const mx_gradient_vec3_0 = /*@__PURE__*/ Fn( ( [ hash_immutable, x_immutable, y_immutable ] ) => {
151
244
 
152
245
  const y = float( y_immutable ).toVar();
153
246
  const x = float( x_immutable ).toVar();
@@ -155,9 +248,17 @@ const mx_gradient_vec3_0 = tslFn( ( [ hash_immutable, x_immutable, y_immutable ]
155
248
 
156
249
  return vec3( mx_gradient_float( hash.x, x, y ), mx_gradient_float( hash.y, x, y ), mx_gradient_float( hash.z, x, y ) );
157
250
 
251
+ } ).setLayout( {
252
+ name: 'mx_gradient_vec3_0',
253
+ type: 'vec3',
254
+ inputs: [
255
+ { name: 'hash', type: 'uvec3' },
256
+ { name: 'x', type: 'float' },
257
+ { name: 'y', type: 'float' }
258
+ ]
158
259
  } );
159
260
 
160
- const mx_gradient_vec3_1 = tslFn( ( [ hash_immutable, x_immutable, y_immutable, z_immutable ] ) => {
261
+ export const mx_gradient_vec3_1 = /*@__PURE__*/ Fn( ( [ hash_immutable, x_immutable, y_immutable, z_immutable ] ) => {
161
262
 
162
263
  const z = float( z_immutable ).toVar();
163
264
  const y = float( y_immutable ).toVar();
@@ -166,56 +267,96 @@ const mx_gradient_vec3_1 = tslFn( ( [ hash_immutable, x_immutable, y_immutable,
166
267
 
167
268
  return vec3( mx_gradient_float( hash.x, x, y, z ), mx_gradient_float( hash.y, x, y, z ), mx_gradient_float( hash.z, x, y, z ) );
168
269
 
270
+ } ).setLayout( {
271
+ name: 'mx_gradient_vec3_1',
272
+ type: 'vec3',
273
+ inputs: [
274
+ { name: 'hash', type: 'uvec3' },
275
+ { name: 'x', type: 'float' },
276
+ { name: 'y', type: 'float' },
277
+ { name: 'z', type: 'float' }
278
+ ]
169
279
  } );
170
280
 
171
- const mx_gradient_vec3 = overloadingFn( [ mx_gradient_vec3_0, mx_gradient_vec3_1 ] );
281
+ export const mx_gradient_vec3 = /*@__PURE__*/ overloadingFn( [ mx_gradient_vec3_0, mx_gradient_vec3_1 ] );
172
282
 
173
- const mx_gradient_scale2d_0 = tslFn( ( [ v_immutable ] ) => {
283
+ export const mx_gradient_scale2d_0 = /*@__PURE__*/ Fn( ( [ v_immutable ] ) => {
174
284
 
175
285
  const v = float( v_immutable ).toVar();
176
286
 
177
287
  return mul( 0.6616, v );
178
288
 
289
+ } ).setLayout( {
290
+ name: 'mx_gradient_scale2d_0',
291
+ type: 'float',
292
+ inputs: [
293
+ { name: 'v', type: 'float' }
294
+ ]
179
295
  } );
180
296
 
181
- const mx_gradient_scale3d_0 = tslFn( ( [ v_immutable ] ) => {
297
+ export const mx_gradient_scale3d_0 = /*@__PURE__*/ Fn( ( [ v_immutable ] ) => {
182
298
 
183
299
  const v = float( v_immutable ).toVar();
184
300
 
185
301
  return mul( 0.9820, v );
186
302
 
303
+ } ).setLayout( {
304
+ name: 'mx_gradient_scale3d_0',
305
+ type: 'float',
306
+ inputs: [
307
+ { name: 'v', type: 'float' }
308
+ ]
187
309
  } );
188
310
 
189
- const mx_gradient_scale2d_1 = tslFn( ( [ v_immutable ] ) => {
311
+ export const mx_gradient_scale2d_1 = /*@__PURE__*/ Fn( ( [ v_immutable ] ) => {
190
312
 
191
313
  const v = vec3( v_immutable ).toVar();
192
314
 
193
315
  return mul( 0.6616, v );
194
316
 
317
+ } ).setLayout( {
318
+ name: 'mx_gradient_scale2d_1',
319
+ type: 'vec3',
320
+ inputs: [
321
+ { name: 'v', type: 'vec3' }
322
+ ]
195
323
  } );
196
324
 
197
- const mx_gradient_scale2d = overloadingFn( [ mx_gradient_scale2d_0, mx_gradient_scale2d_1 ] );
325
+ export const mx_gradient_scale2d = /*@__PURE__*/ overloadingFn( [ mx_gradient_scale2d_0, mx_gradient_scale2d_1 ] );
198
326
 
199
- const mx_gradient_scale3d_1 = tslFn( ( [ v_immutable ] ) => {
327
+ export const mx_gradient_scale3d_1 = /*@__PURE__*/ Fn( ( [ v_immutable ] ) => {
200
328
 
201
329
  const v = vec3( v_immutable ).toVar();
202
330
 
203
331
  return mul( 0.9820, v );
204
332
 
333
+ } ).setLayout( {
334
+ name: 'mx_gradient_scale3d_1',
335
+ type: 'vec3',
336
+ inputs: [
337
+ { name: 'v', type: 'vec3' }
338
+ ]
205
339
  } );
206
340
 
207
- const mx_gradient_scale3d = overloadingFn( [ mx_gradient_scale3d_0, mx_gradient_scale3d_1 ] );
341
+ export const mx_gradient_scale3d = /*@__PURE__*/ overloadingFn( [ mx_gradient_scale3d_0, mx_gradient_scale3d_1 ] );
208
342
 
209
- const mx_rotl32 = tslFn( ( [ x_immutable, k_immutable ] ) => {
343
+ export const mx_rotl32 = /*@__PURE__*/ Fn( ( [ x_immutable, k_immutable ] ) => {
210
344
 
211
345
  const k = int( k_immutable ).toVar();
212
346
  const x = uint( x_immutable ).toVar();
213
347
 
214
348
  return x.shiftLeft( k ).bitOr( x.shiftRight( int( 32 ).sub( k ) ) );
215
349
 
350
+ } ).setLayout( {
351
+ name: 'mx_rotl32',
352
+ type: 'uint',
353
+ inputs: [
354
+ { name: 'x', type: 'uint' },
355
+ { name: 'k', type: 'int' }
356
+ ]
216
357
  } );
217
358
 
218
- const mx_bjmix = tslFn( ( [ a, b, c ] ) => {
359
+ export const mx_bjmix = /*@__PURE__*/ Fn( ( [ a, b, c ] ) => {
219
360
 
220
361
  a.subAssign( c );
221
362
  a.bitXorAssign( mx_rotl32( c, int( 4 ) ) );
@@ -238,7 +379,7 @@ const mx_bjmix = tslFn( ( [ a, b, c ] ) => {
238
379
 
239
380
  } );
240
381
 
241
- const mx_bjfinal = tslFn( ( [ a_immutable, b_immutable, c_immutable ] ) => {
382
+ export const mx_bjfinal = /*@__PURE__*/ Fn( ( [ a_immutable, b_immutable, c_immutable ] ) => {
242
383
 
243
384
  const c = uint( c_immutable ).toVar();
244
385
  const b = uint( b_immutable ).toVar();
@@ -260,65 +401,106 @@ const mx_bjfinal = tslFn( ( [ a_immutable, b_immutable, c_immutable ] ) => {
260
401
 
261
402
  return c;
262
403
 
404
+ } ).setLayout( {
405
+ name: 'mx_bjfinal',
406
+ type: 'uint',
407
+ inputs: [
408
+ { name: 'a', type: 'uint' },
409
+ { name: 'b', type: 'uint' },
410
+ { name: 'c', type: 'uint' }
411
+ ]
263
412
  } );
264
413
 
265
- const mx_bits_to_01 = tslFn( ( [ bits_immutable ] ) => {
414
+ export const mx_bits_to_01 = /*@__PURE__*/ Fn( ( [ bits_immutable ] ) => {
266
415
 
267
416
  const bits = uint( bits_immutable ).toVar();
268
417
 
269
418
  return float( bits ).div( float( uint( int( 0xffffffff ) ) ) );
270
419
 
420
+ } ).setLayout( {
421
+ name: 'mx_bits_to_01',
422
+ type: 'float',
423
+ inputs: [
424
+ { name: 'bits', type: 'uint' }
425
+ ]
271
426
  } );
272
427
 
273
- const mx_fade = tslFn( ( [ t_immutable ] ) => {
428
+ export const mx_fade = /*@__PURE__*/ Fn( ( [ t_immutable ] ) => {
274
429
 
275
430
  const t = float( t_immutable ).toVar();
276
431
 
277
- return t.mul( t.mul( t.mul( t.mul( t.mul( 6.0 ).sub( 15.0 ) ).add( 10.0 ) ) ) );
432
+ return t.mul( t ).mul( t ).mul( t.mul( t.mul( 6.0 ).sub( 15.0 ) ).add( 10.0 ) );
278
433
 
434
+ } ).setLayout( {
435
+ name: 'mx_fade',
436
+ type: 'float',
437
+ inputs: [
438
+ { name: 't', type: 'float' }
439
+ ]
279
440
  } );
280
441
 
281
- const mx_hash_int_0 = tslFn( ( [ x_immutable ] ) => {
442
+ export const mx_hash_int_0 = /*@__PURE__*/ Fn( ( [ x_immutable ] ) => {
282
443
 
283
444
  const x = int( x_immutable ).toVar();
284
445
  const len = uint( uint( 1 ) ).toVar();
285
- const seed = uint( uint( int( 0xdeadbeef ) ).add( len.shiftLeft( uint( 2 ) ).add( uint( 13 ) ) ) ).toVar();
446
+ const seed = uint( uint( int( 0xdeadbeef ) ).add( len.shiftLeft( uint( 2 ) ) ).add( uint( 13 ) ) ).toVar();
286
447
 
287
448
  return mx_bjfinal( seed.add( uint( x ) ), seed, seed );
288
449
 
450
+ } ).setLayout( {
451
+ name: 'mx_hash_int_0',
452
+ type: 'uint',
453
+ inputs: [
454
+ { name: 'x', type: 'int' }
455
+ ]
289
456
  } );
290
457
 
291
- const mx_hash_int_1 = tslFn( ( [ x_immutable, y_immutable ] ) => {
458
+ export const mx_hash_int_1 = /*@__PURE__*/ Fn( ( [ x_immutable, y_immutable ] ) => {
292
459
 
293
460
  const y = int( y_immutable ).toVar();
294
461
  const x = int( x_immutable ).toVar();
295
462
  const len = uint( uint( 2 ) ).toVar();
296
463
  const a = uint().toVar(), b = uint().toVar(), c = uint().toVar();
297
- a.assign( b.assign( c.assign( uint( int( 0xdeadbeef ) ).add( len.shiftLeft( uint( 2 ) ).add( uint( 13 ) ) ) ) ) );
464
+ a.assign( b.assign( c.assign( uint( int( 0xdeadbeef ) ).add( len.shiftLeft( uint( 2 ) ) ).add( uint( 13 ) ) ) ) );
298
465
  a.addAssign( uint( x ) );
299
466
  b.addAssign( uint( y ) );
300
467
 
301
468
  return mx_bjfinal( a, b, c );
302
469
 
470
+ } ).setLayout( {
471
+ name: 'mx_hash_int_1',
472
+ type: 'uint',
473
+ inputs: [
474
+ { name: 'x', type: 'int' },
475
+ { name: 'y', type: 'int' }
476
+ ]
303
477
  } );
304
478
 
305
- const mx_hash_int_2 = tslFn( ( [ x_immutable, y_immutable, z_immutable ] ) => {
479
+ export const mx_hash_int_2 = /*@__PURE__*/ Fn( ( [ x_immutable, y_immutable, z_immutable ] ) => {
306
480
 
307
481
  const z = int( z_immutable ).toVar();
308
482
  const y = int( y_immutable ).toVar();
309
483
  const x = int( x_immutable ).toVar();
310
484
  const len = uint( uint( 3 ) ).toVar();
311
485
  const a = uint().toVar(), b = uint().toVar(), c = uint().toVar();
312
- a.assign( b.assign( c.assign( uint( int( 0xdeadbeef ) ).add( len.shiftLeft( uint( 2 ) ).add( uint( 13 ) ) ) ) ) );
486
+ a.assign( b.assign( c.assign( uint( int( 0xdeadbeef ) ).add( len.shiftLeft( uint( 2 ) ) ).add( uint( 13 ) ) ) ) );
313
487
  a.addAssign( uint( x ) );
314
488
  b.addAssign( uint( y ) );
315
489
  c.addAssign( uint( z ) );
316
490
 
317
491
  return mx_bjfinal( a, b, c );
318
492
 
493
+ } ).setLayout( {
494
+ name: 'mx_hash_int_2',
495
+ type: 'uint',
496
+ inputs: [
497
+ { name: 'x', type: 'int' },
498
+ { name: 'y', type: 'int' },
499
+ { name: 'z', type: 'int' }
500
+ ]
319
501
  } );
320
502
 
321
- const mx_hash_int_3 = tslFn( ( [ x_immutable, y_immutable, z_immutable, xx_immutable ] ) => {
503
+ export const mx_hash_int_3 = /*@__PURE__*/ Fn( ( [ x_immutable, y_immutable, z_immutable, xx_immutable ] ) => {
322
504
 
323
505
  const xx = int( xx_immutable ).toVar();
324
506
  const z = int( z_immutable ).toVar();
@@ -326,7 +508,7 @@ const mx_hash_int_3 = tslFn( ( [ x_immutable, y_immutable, z_immutable, xx_immut
326
508
  const x = int( x_immutable ).toVar();
327
509
  const len = uint( uint( 4 ) ).toVar();
328
510
  const a = uint().toVar(), b = uint().toVar(), c = uint().toVar();
329
- a.assign( b.assign( c.assign( uint( int( 0xdeadbeef ) ).add( len.shiftLeft( uint( 2 ) ).add( uint( 13 ) ) ) ) ) );
511
+ a.assign( b.assign( c.assign( uint( int( 0xdeadbeef ) ).add( len.shiftLeft( uint( 2 ) ) ).add( uint( 13 ) ) ) ) );
330
512
  a.addAssign( uint( x ) );
331
513
  b.addAssign( uint( y ) );
332
514
  c.addAssign( uint( z ) );
@@ -335,9 +517,18 @@ const mx_hash_int_3 = tslFn( ( [ x_immutable, y_immutable, z_immutable, xx_immut
335
517
 
336
518
  return mx_bjfinal( a, b, c );
337
519
 
520
+ } ).setLayout( {
521
+ name: 'mx_hash_int_3',
522
+ type: 'uint',
523
+ inputs: [
524
+ { name: 'x', type: 'int' },
525
+ { name: 'y', type: 'int' },
526
+ { name: 'z', type: 'int' },
527
+ { name: 'xx', type: 'int' }
528
+ ]
338
529
  } );
339
530
 
340
- const mx_hash_int_4 = tslFn( ( [ x_immutable, y_immutable, z_immutable, xx_immutable, yy_immutable ] ) => {
531
+ export const mx_hash_int_4 = /*@__PURE__*/ Fn( ( [ x_immutable, y_immutable, z_immutable, xx_immutable, yy_immutable ] ) => {
341
532
 
342
533
  const yy = int( yy_immutable ).toVar();
343
534
  const xx = int( xx_immutable ).toVar();
@@ -346,7 +537,7 @@ const mx_hash_int_4 = tslFn( ( [ x_immutable, y_immutable, z_immutable, xx_immut
346
537
  const x = int( x_immutable ).toVar();
347
538
  const len = uint( uint( 5 ) ).toVar();
348
539
  const a = uint().toVar(), b = uint().toVar(), c = uint().toVar();
349
- a.assign( b.assign( c.assign( uint( int( 0xdeadbeef ) ).add( len.shiftLeft( uint( 2 ) ).add( uint( 13 ) ) ) ) ) );
540
+ a.assign( b.assign( c.assign( uint( int( 0xdeadbeef ) ).add( len.shiftLeft( uint( 2 ) ) ).add( uint( 13 ) ) ) ) );
350
541
  a.addAssign( uint( x ) );
351
542
  b.addAssign( uint( y ) );
352
543
  c.addAssign( uint( z ) );
@@ -356,11 +547,21 @@ const mx_hash_int_4 = tslFn( ( [ x_immutable, y_immutable, z_immutable, xx_immut
356
547
 
357
548
  return mx_bjfinal( a, b, c );
358
549
 
550
+ } ).setLayout( {
551
+ name: 'mx_hash_int_4',
552
+ type: 'uint',
553
+ inputs: [
554
+ { name: 'x', type: 'int' },
555
+ { name: 'y', type: 'int' },
556
+ { name: 'z', type: 'int' },
557
+ { name: 'xx', type: 'int' },
558
+ { name: 'yy', type: 'int' }
559
+ ]
359
560
  } );
360
561
 
361
- const mx_hash_int = overloadingFn( [ mx_hash_int_0, mx_hash_int_1, mx_hash_int_2, mx_hash_int_3, mx_hash_int_4 ] );
562
+ export const mx_hash_int = /*@__PURE__*/ overloadingFn( [ mx_hash_int_0, mx_hash_int_1, mx_hash_int_2, mx_hash_int_3, mx_hash_int_4 ] );
362
563
 
363
- const mx_hash_vec3_0 = tslFn( ( [ x_immutable, y_immutable ] ) => {
564
+ export const mx_hash_vec3_0 = /*@__PURE__*/ Fn( ( [ x_immutable, y_immutable ] ) => {
364
565
 
365
566
  const y = int( y_immutable ).toVar();
366
567
  const x = int( x_immutable ).toVar();
@@ -372,9 +573,16 @@ const mx_hash_vec3_0 = tslFn( ( [ x_immutable, y_immutable ] ) => {
372
573
 
373
574
  return result;
374
575
 
576
+ } ).setLayout( {
577
+ name: 'mx_hash_vec3_0',
578
+ type: 'uvec3',
579
+ inputs: [
580
+ { name: 'x', type: 'int' },
581
+ { name: 'y', type: 'int' }
582
+ ]
375
583
  } );
376
584
 
377
- const mx_hash_vec3_1 = tslFn( ( [ x_immutable, y_immutable, z_immutable ] ) => {
585
+ export const mx_hash_vec3_1 = /*@__PURE__*/ Fn( ( [ x_immutable, y_immutable, z_immutable ] ) => {
378
586
 
379
587
  const z = int( z_immutable ).toVar();
380
588
  const y = int( y_immutable ).toVar();
@@ -387,11 +595,19 @@ const mx_hash_vec3_1 = tslFn( ( [ x_immutable, y_immutable, z_immutable ] ) => {
387
595
 
388
596
  return result;
389
597
 
598
+ } ).setLayout( {
599
+ name: 'mx_hash_vec3_1',
600
+ type: 'uvec3',
601
+ inputs: [
602
+ { name: 'x', type: 'int' },
603
+ { name: 'y', type: 'int' },
604
+ { name: 'z', type: 'int' }
605
+ ]
390
606
  } );
391
607
 
392
- const mx_hash_vec3 = overloadingFn( [ mx_hash_vec3_0, mx_hash_vec3_1 ] );
608
+ export const mx_hash_vec3 = /*@__PURE__*/ overloadingFn( [ mx_hash_vec3_0, mx_hash_vec3_1 ] );
393
609
 
394
- const mx_perlin_noise_float_0 = tslFn( ( [ p_immutable ] ) => {
610
+ export const mx_perlin_noise_float_0 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
395
611
 
396
612
  const p = vec2( p_immutable ).toVar();
397
613
  const X = int().toVar(), Y = int().toVar();
@@ -403,9 +619,15 @@ const mx_perlin_noise_float_0 = tslFn( ( [ p_immutable ] ) => {
403
619
 
404
620
  return mx_gradient_scale2d( result );
405
621
 
622
+ } ).setLayout( {
623
+ name: 'mx_perlin_noise_float_0',
624
+ type: 'float',
625
+ inputs: [
626
+ { name: 'p', type: 'vec2' }
627
+ ]
406
628
  } );
407
629
 
408
- const mx_perlin_noise_float_1 = tslFn( ( [ p_immutable ] ) => {
630
+ export const mx_perlin_noise_float_1 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
409
631
 
410
632
  const p = vec3( p_immutable ).toVar();
411
633
  const X = int().toVar(), Y = int().toVar(), Z = int().toVar();
@@ -419,11 +641,17 @@ const mx_perlin_noise_float_1 = tslFn( ( [ p_immutable ] ) => {
419
641
 
420
642
  return mx_gradient_scale3d( result );
421
643
 
644
+ } ).setLayout( {
645
+ name: 'mx_perlin_noise_float_1',
646
+ type: 'float',
647
+ inputs: [
648
+ { name: 'p', type: 'vec3' }
649
+ ]
422
650
  } );
423
651
 
424
- const mx_perlin_noise_float = overloadingFn( [ mx_perlin_noise_float_0, mx_perlin_noise_float_1 ] );
652
+ export const mx_perlin_noise_float = /*@__PURE__*/ overloadingFn( [ mx_perlin_noise_float_0, mx_perlin_noise_float_1 ] );
425
653
 
426
- const mx_perlin_noise_vec3_0 = tslFn( ( [ p_immutable ] ) => {
654
+ export const mx_perlin_noise_vec3_0 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
427
655
 
428
656
  const p = vec2( p_immutable ).toVar();
429
657
  const X = int().toVar(), Y = int().toVar();
@@ -435,9 +663,15 @@ const mx_perlin_noise_vec3_0 = tslFn( ( [ p_immutable ] ) => {
435
663
 
436
664
  return mx_gradient_scale2d( result );
437
665
 
666
+ } ).setLayout( {
667
+ name: 'mx_perlin_noise_vec3_0',
668
+ type: 'vec3',
669
+ inputs: [
670
+ { name: 'p', type: 'vec2' }
671
+ ]
438
672
  } );
439
673
 
440
- const mx_perlin_noise_vec3_1 = tslFn( ( [ p_immutable ] ) => {
674
+ export const mx_perlin_noise_vec3_1 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
441
675
 
442
676
  const p = vec3( p_immutable ).toVar();
443
677
  const X = int().toVar(), Y = int().toVar(), Z = int().toVar();
@@ -451,20 +685,32 @@ const mx_perlin_noise_vec3_1 = tslFn( ( [ p_immutable ] ) => {
451
685
 
452
686
  return mx_gradient_scale3d( result );
453
687
 
688
+ } ).setLayout( {
689
+ name: 'mx_perlin_noise_vec3_1',
690
+ type: 'vec3',
691
+ inputs: [
692
+ { name: 'p', type: 'vec3' }
693
+ ]
454
694
  } );
455
695
 
456
- const mx_perlin_noise_vec3 = overloadingFn( [ mx_perlin_noise_vec3_0, mx_perlin_noise_vec3_1 ] );
696
+ export const mx_perlin_noise_vec3 = /*@__PURE__*/ overloadingFn( [ mx_perlin_noise_vec3_0, mx_perlin_noise_vec3_1 ] );
457
697
 
458
- const mx_cell_noise_float_0 = tslFn( ( [ p_immutable ] ) => {
698
+ export const mx_cell_noise_float_0 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
459
699
 
460
700
  const p = float( p_immutable ).toVar();
461
701
  const ix = int( mx_floor( p ) ).toVar();
462
702
 
463
703
  return mx_bits_to_01( mx_hash_int( ix ) );
464
704
 
705
+ } ).setLayout( {
706
+ name: 'mx_cell_noise_float_0',
707
+ type: 'float',
708
+ inputs: [
709
+ { name: 'p', type: 'float' }
710
+ ]
465
711
  } );
466
712
 
467
- const mx_cell_noise_float_1 = tslFn( ( [ p_immutable ] ) => {
713
+ export const mx_cell_noise_float_1 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
468
714
 
469
715
  const p = vec2( p_immutable ).toVar();
470
716
  const ix = int( mx_floor( p.x ) ).toVar();
@@ -472,9 +718,15 @@ const mx_cell_noise_float_1 = tslFn( ( [ p_immutable ] ) => {
472
718
 
473
719
  return mx_bits_to_01( mx_hash_int( ix, iy ) );
474
720
 
721
+ } ).setLayout( {
722
+ name: 'mx_cell_noise_float_1',
723
+ type: 'float',
724
+ inputs: [
725
+ { name: 'p', type: 'vec2' }
726
+ ]
475
727
  } );
476
728
 
477
- const mx_cell_noise_float_2 = tslFn( ( [ p_immutable ] ) => {
729
+ export const mx_cell_noise_float_2 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
478
730
 
479
731
  const p = vec3( p_immutable ).toVar();
480
732
  const ix = int( mx_floor( p.x ) ).toVar();
@@ -483,9 +735,15 @@ const mx_cell_noise_float_2 = tslFn( ( [ p_immutable ] ) => {
483
735
 
484
736
  return mx_bits_to_01( mx_hash_int( ix, iy, iz ) );
485
737
 
738
+ } ).setLayout( {
739
+ name: 'mx_cell_noise_float_2',
740
+ type: 'float',
741
+ inputs: [
742
+ { name: 'p', type: 'vec3' }
743
+ ]
486
744
  } );
487
745
 
488
- const mx_cell_noise_float_3 = tslFn( ( [ p_immutable ] ) => {
746
+ export const mx_cell_noise_float_3 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
489
747
 
490
748
  const p = vec4( p_immutable ).toVar();
491
749
  const ix = int( mx_floor( p.x ) ).toVar();
@@ -495,20 +753,32 @@ const mx_cell_noise_float_3 = tslFn( ( [ p_immutable ] ) => {
495
753
 
496
754
  return mx_bits_to_01( mx_hash_int( ix, iy, iz, iw ) );
497
755
 
756
+ } ).setLayout( {
757
+ name: 'mx_cell_noise_float_3',
758
+ type: 'float',
759
+ inputs: [
760
+ { name: 'p', type: 'vec4' }
761
+ ]
498
762
  } );
499
763
 
500
- const mx_cell_noise_float = overloadingFn( [ mx_cell_noise_float_0, mx_cell_noise_float_1, mx_cell_noise_float_2, mx_cell_noise_float_3 ] );
764
+ export const mx_cell_noise_float = /*@__PURE__*/ overloadingFn( [ mx_cell_noise_float_0, mx_cell_noise_float_1, mx_cell_noise_float_2, mx_cell_noise_float_3 ] );
501
765
 
502
- const mx_cell_noise_vec3_0 = tslFn( ( [ p_immutable ] ) => {
766
+ export const mx_cell_noise_vec3_0 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
503
767
 
504
768
  const p = float( p_immutable ).toVar();
505
769
  const ix = int( mx_floor( p ) ).toVar();
506
770
 
507
771
  return vec3( mx_bits_to_01( mx_hash_int( ix, int( 0 ) ) ), mx_bits_to_01( mx_hash_int( ix, int( 1 ) ) ), mx_bits_to_01( mx_hash_int( ix, int( 2 ) ) ) );
508
772
 
773
+ } ).setLayout( {
774
+ name: 'mx_cell_noise_vec3_0',
775
+ type: 'vec3',
776
+ inputs: [
777
+ { name: 'p', type: 'float' }
778
+ ]
509
779
  } );
510
780
 
511
- const mx_cell_noise_vec3_1 = tslFn( ( [ p_immutable ] ) => {
781
+ export const mx_cell_noise_vec3_1 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
512
782
 
513
783
  const p = vec2( p_immutable ).toVar();
514
784
  const ix = int( mx_floor( p.x ) ).toVar();
@@ -516,9 +786,15 @@ const mx_cell_noise_vec3_1 = tslFn( ( [ p_immutable ] ) => {
516
786
 
517
787
  return vec3( mx_bits_to_01( mx_hash_int( ix, iy, int( 0 ) ) ), mx_bits_to_01( mx_hash_int( ix, iy, int( 1 ) ) ), mx_bits_to_01( mx_hash_int( ix, iy, int( 2 ) ) ) );
518
788
 
789
+ } ).setLayout( {
790
+ name: 'mx_cell_noise_vec3_1',
791
+ type: 'vec3',
792
+ inputs: [
793
+ { name: 'p', type: 'vec2' }
794
+ ]
519
795
  } );
520
796
 
521
- const mx_cell_noise_vec3_2 = tslFn( ( [ p_immutable ] ) => {
797
+ export const mx_cell_noise_vec3_2 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
522
798
 
523
799
  const p = vec3( p_immutable ).toVar();
524
800
  const ix = int( mx_floor( p.x ) ).toVar();
@@ -527,9 +803,15 @@ const mx_cell_noise_vec3_2 = tslFn( ( [ p_immutable ] ) => {
527
803
 
528
804
  return vec3( mx_bits_to_01( mx_hash_int( ix, iy, iz, int( 0 ) ) ), mx_bits_to_01( mx_hash_int( ix, iy, iz, int( 1 ) ) ), mx_bits_to_01( mx_hash_int( ix, iy, iz, int( 2 ) ) ) );
529
805
 
806
+ } ).setLayout( {
807
+ name: 'mx_cell_noise_vec3_2',
808
+ type: 'vec3',
809
+ inputs: [
810
+ { name: 'p', type: 'vec3' }
811
+ ]
530
812
  } );
531
813
 
532
- const mx_cell_noise_vec3_3 = tslFn( ( [ p_immutable ] ) => {
814
+ export const mx_cell_noise_vec3_3 = /*@__PURE__*/ Fn( ( [ p_immutable ] ) => {
533
815
 
534
816
  const p = vec4( p_immutable ).toVar();
535
817
  const ix = int( mx_floor( p.x ) ).toVar();
@@ -539,11 +821,17 @@ const mx_cell_noise_vec3_3 = tslFn( ( [ p_immutable ] ) => {
539
821
 
540
822
  return vec3( mx_bits_to_01( mx_hash_int( ix, iy, iz, iw, int( 0 ) ) ), mx_bits_to_01( mx_hash_int( ix, iy, iz, iw, int( 1 ) ) ), mx_bits_to_01( mx_hash_int( ix, iy, iz, iw, int( 2 ) ) ) );
541
823
 
824
+ } ).setLayout( {
825
+ name: 'mx_cell_noise_vec3_3',
826
+ type: 'vec3',
827
+ inputs: [
828
+ { name: 'p', type: 'vec4' }
829
+ ]
542
830
  } );
543
831
 
544
- const mx_cell_noise_vec3 = overloadingFn( [ mx_cell_noise_vec3_0, mx_cell_noise_vec3_1, mx_cell_noise_vec3_2, mx_cell_noise_vec3_3 ] );
832
+ export const mx_cell_noise_vec3 = /*@__PURE__*/ overloadingFn( [ mx_cell_noise_vec3_0, mx_cell_noise_vec3_1, mx_cell_noise_vec3_2, mx_cell_noise_vec3_3 ] );
545
833
 
546
- const mx_fractal_noise_float = tslFn( ( [ p_immutable, octaves_immutable, lacunarity_immutable, diminish_immutable ] ) => {
834
+ export const mx_fractal_noise_float = /*@__PURE__*/ Fn( ( [ p_immutable, octaves_immutable, lacunarity_immutable, diminish_immutable ] ) => {
547
835
 
548
836
  const diminish = float( diminish_immutable ).toVar();
549
837
  const lacunarity = float( lacunarity_immutable ).toVar();
@@ -552,7 +840,7 @@ const mx_fractal_noise_float = tslFn( ( [ p_immutable, octaves_immutable, lacuna
552
840
  const result = float( 0.0 ).toVar();
553
841
  const amplitude = float( 1.0 ).toVar();
554
842
 
555
- loop( { start: int( 0 ), end: octaves }, ( { i } ) => {
843
+ Loop( octaves, () => {
556
844
 
557
845
  result.addAssign( amplitude.mul( mx_perlin_noise_float( p ) ) );
558
846
  amplitude.mulAssign( diminish );
@@ -562,18 +850,27 @@ const mx_fractal_noise_float = tslFn( ( [ p_immutable, octaves_immutable, lacuna
562
850
 
563
851
  return result;
564
852
 
565
- } );
566
-
567
- const mx_fractal_noise_vec3 = tslFn( ( [ p_immutable, octaves_immutable, lacunarity_immutable, diminish_immutable ] ) => {
568
-
569
- const diminish = float( diminish_immutable ).toVar();
570
- const lacunarity = float( lacunarity_immutable ).toVar();
571
- const octaves = int( octaves_immutable ).toVar();
853
+ } ).setLayout( {
854
+ name: 'mx_fractal_noise_float',
855
+ type: 'float',
856
+ inputs: [
857
+ { name: 'p', type: 'vec3' },
858
+ { name: 'octaves', type: 'int' },
859
+ { name: 'lacunarity', type: 'float' },
860
+ { name: 'diminish', type: 'float' }
861
+ ]
862
+ } );
863
+
864
+ export const mx_fractal_noise_vec3 = /*@__PURE__*/ Fn( ( [ p_immutable, octaves_immutable, lacunarity_immutable, diminish_immutable ] ) => {
865
+
866
+ const diminish = float( diminish_immutable ).toVar();
867
+ const lacunarity = float( lacunarity_immutable ).toVar();
868
+ const octaves = int( octaves_immutable ).toVar();
572
869
  const p = vec3( p_immutable ).toVar();
573
870
  const result = vec3( 0.0 ).toVar();
574
871
  const amplitude = float( 1.0 ).toVar();
575
872
 
576
- loop( { start: int( 0 ), end: octaves }, ( { i } ) => {
873
+ Loop( octaves, () => {
577
874
 
578
875
  result.addAssign( amplitude.mul( mx_perlin_noise_vec3( p ) ) );
579
876
  amplitude.mulAssign( diminish );
@@ -583,9 +880,18 @@ const mx_fractal_noise_vec3 = tslFn( ( [ p_immutable, octaves_immutable, lacunar
583
880
 
584
881
  return result;
585
882
 
883
+ } ).setLayout( {
884
+ name: 'mx_fractal_noise_vec3',
885
+ type: 'vec3',
886
+ inputs: [
887
+ { name: 'p', type: 'vec3' },
888
+ { name: 'octaves', type: 'int' },
889
+ { name: 'lacunarity', type: 'float' },
890
+ { name: 'diminish', type: 'float' }
891
+ ]
586
892
  } );
587
893
 
588
- const mx_fractal_noise_vec2 = tslFn( ( [ p_immutable, octaves_immutable, lacunarity_immutable, diminish_immutable ] ) => {
894
+ export const mx_fractal_noise_vec2 = /*@__PURE__*/ Fn( ( [ p_immutable, octaves_immutable, lacunarity_immutable, diminish_immutable ] ) => {
589
895
 
590
896
  const diminish = float( diminish_immutable ).toVar();
591
897
  const lacunarity = float( lacunarity_immutable ).toVar();
@@ -594,9 +900,18 @@ const mx_fractal_noise_vec2 = tslFn( ( [ p_immutable, octaves_immutable, lacunar
594
900
 
595
901
  return vec2( mx_fractal_noise_float( p, octaves, lacunarity, diminish ), mx_fractal_noise_float( p.add( vec3( int( 19 ), int( 193 ), int( 17 ) ) ), octaves, lacunarity, diminish ) );
596
902
 
903
+ } ).setLayout( {
904
+ name: 'mx_fractal_noise_vec2',
905
+ type: 'vec2',
906
+ inputs: [
907
+ { name: 'p', type: 'vec3' },
908
+ { name: 'octaves', type: 'int' },
909
+ { name: 'lacunarity', type: 'float' },
910
+ { name: 'diminish', type: 'float' }
911
+ ]
597
912
  } );
598
913
 
599
- const mx_fractal_noise_vec4 = tslFn( ( [ p_immutable, octaves_immutable, lacunarity_immutable, diminish_immutable ] ) => {
914
+ export const mx_fractal_noise_vec4 = /*@__PURE__*/ Fn( ( [ p_immutable, octaves_immutable, lacunarity_immutable, diminish_immutable ] ) => {
600
915
 
601
916
  const diminish = float( diminish_immutable ).toVar();
602
917
  const lacunarity = float( lacunarity_immutable ).toVar();
@@ -607,9 +922,18 @@ const mx_fractal_noise_vec4 = tslFn( ( [ p_immutable, octaves_immutable, lacunar
607
922
 
608
923
  return vec4( c, f );
609
924
 
925
+ } ).setLayout( {
926
+ name: 'mx_fractal_noise_vec4',
927
+ type: 'vec4',
928
+ inputs: [
929
+ { name: 'p', type: 'vec3' },
930
+ { name: 'octaves', type: 'int' },
931
+ { name: 'lacunarity', type: 'float' },
932
+ { name: 'diminish', type: 'float' }
933
+ ]
610
934
  } );
611
935
 
612
- const mx_worley_distance_0 = tslFn( ( [ p_immutable, x_immutable, y_immutable, xoff_immutable, yoff_immutable, jitter_immutable, metric_immutable ] ) => {
936
+ export const mx_worley_distance_0 = /*@__PURE__*/ Fn( ( [ p_immutable, x_immutable, y_immutable, xoff_immutable, yoff_immutable, jitter_immutable, metric_immutable ] ) => {
613
937
 
614
938
  const metric = int( metric_immutable ).toVar();
615
939
  const jitter = float( jitter_immutable ).toVar();
@@ -640,9 +964,21 @@ const mx_worley_distance_0 = tslFn( ( [ p_immutable, x_immutable, y_immutable, x
640
964
 
641
965
  return dot( diff, diff );
642
966
 
967
+ } ).setLayout( {
968
+ name: 'mx_worley_distance_0',
969
+ type: 'float',
970
+ inputs: [
971
+ { name: 'p', type: 'vec2' },
972
+ { name: 'x', type: 'int' },
973
+ { name: 'y', type: 'int' },
974
+ { name: 'xoff', type: 'int' },
975
+ { name: 'yoff', type: 'int' },
976
+ { name: 'jitter', type: 'float' },
977
+ { name: 'metric', type: 'int' }
978
+ ]
643
979
  } );
644
980
 
645
- const mx_worley_distance_1 = tslFn( ( [ p_immutable, x_immutable, y_immutable, z_immutable, xoff_immutable, yoff_immutable, zoff_immutable, jitter_immutable, metric_immutable ] ) => {
981
+ export const mx_worley_distance_1 = /*@__PURE__*/ Fn( ( [ p_immutable, x_immutable, y_immutable, z_immutable, xoff_immutable, yoff_immutable, zoff_immutable, jitter_immutable, metric_immutable ] ) => {
646
982
 
647
983
  const metric = int( metric_immutable ).toVar();
648
984
  const jitter = float( jitter_immutable ).toVar();
@@ -662,23 +998,37 @@ const mx_worley_distance_1 = tslFn( ( [ p_immutable, x_immutable, y_immutable, z
662
998
 
663
999
  If( metric.equal( int( 2 ) ), () => {
664
1000
 
665
- return abs( diff.x ).add( abs( diff.y ).add( abs( diff.z ) ) );
1001
+ return abs( diff.x ).add( abs( diff.y ) ).add( abs( diff.z ) );
666
1002
 
667
1003
  } );
668
1004
 
669
1005
  If( metric.equal( int( 3 ) ), () => {
670
1006
 
671
- return max( max( abs( diff.x ), abs( diff.y ) ), abs( diff.z ) );
1007
+ return max( abs( diff.x ), abs( diff.y ), abs( diff.z ) );
672
1008
 
673
1009
  } );
674
1010
 
675
1011
  return dot( diff, diff );
676
1012
 
1013
+ } ).setLayout( {
1014
+ name: 'mx_worley_distance_1',
1015
+ type: 'float',
1016
+ inputs: [
1017
+ { name: 'p', type: 'vec3' },
1018
+ { name: 'x', type: 'int' },
1019
+ { name: 'y', type: 'int' },
1020
+ { name: 'z', type: 'int' },
1021
+ { name: 'xoff', type: 'int' },
1022
+ { name: 'yoff', type: 'int' },
1023
+ { name: 'zoff', type: 'int' },
1024
+ { name: 'jitter', type: 'float' },
1025
+ { name: 'metric', type: 'int' }
1026
+ ]
677
1027
  } );
678
1028
 
679
- const mx_worley_distance = overloadingFn( [ mx_worley_distance_0, mx_worley_distance_1 ] );
1029
+ export const mx_worley_distance = /*@__PURE__*/ overloadingFn( [ mx_worley_distance_0, mx_worley_distance_1 ] );
680
1030
 
681
- const mx_worley_noise_float_0 = tslFn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
1031
+ export const mx_worley_noise_float_0 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
682
1032
 
683
1033
  const metric = int( metric_immutable ).toVar();
684
1034
  const jitter = float( jitter_immutable ).toVar();
@@ -687,9 +1037,9 @@ const mx_worley_noise_float_0 = tslFn( ( [ p_immutable, jitter_immutable, metric
687
1037
  const localpos = vec2( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ) ).toVar();
688
1038
  const sqdist = float( 1e6 ).toVar();
689
1039
 
690
- loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
1040
+ Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
691
1041
 
692
- loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
1042
+ Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
693
1043
 
694
1044
  const dist = float( mx_worley_distance( localpos, x, y, X, Y, jitter, metric ) ).toVar();
695
1045
  sqdist.assign( min( sqdist, dist ) );
@@ -706,9 +1056,17 @@ const mx_worley_noise_float_0 = tslFn( ( [ p_immutable, jitter_immutable, metric
706
1056
 
707
1057
  return sqdist;
708
1058
 
1059
+ } ).setLayout( {
1060
+ name: 'mx_worley_noise_float_0',
1061
+ type: 'float',
1062
+ inputs: [
1063
+ { name: 'p', type: 'vec2' },
1064
+ { name: 'jitter', type: 'float' },
1065
+ { name: 'metric', type: 'int' }
1066
+ ]
709
1067
  } );
710
1068
 
711
- const mx_worley_noise_vec2_0 = tslFn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
1069
+ export const mx_worley_noise_vec2_0 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
712
1070
 
713
1071
  const metric = int( metric_immutable ).toVar();
714
1072
  const jitter = float( jitter_immutable ).toVar();
@@ -717,9 +1075,9 @@ const mx_worley_noise_vec2_0 = tslFn( ( [ p_immutable, jitter_immutable, metric_
717
1075
  const localpos = vec2( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ) ).toVar();
718
1076
  const sqdist = vec2( 1e6, 1e6 ).toVar();
719
1077
 
720
- loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
1078
+ Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
721
1079
 
722
- loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
1080
+ Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
723
1081
 
724
1082
  const dist = float( mx_worley_distance( localpos, x, y, X, Y, jitter, metric ) ).toVar();
725
1083
 
@@ -728,7 +1086,7 @@ const mx_worley_noise_vec2_0 = tslFn( ( [ p_immutable, jitter_immutable, metric_
728
1086
  sqdist.y.assign( sqdist.x );
729
1087
  sqdist.x.assign( dist );
730
1088
 
731
- } ).elseif( dist.lessThan( sqdist.y ), () => {
1089
+ } ).ElseIf( dist.lessThan( sqdist.y ), () => {
732
1090
 
733
1091
  sqdist.y.assign( dist );
734
1092
 
@@ -746,9 +1104,17 @@ const mx_worley_noise_vec2_0 = tslFn( ( [ p_immutable, jitter_immutable, metric_
746
1104
 
747
1105
  return sqdist;
748
1106
 
1107
+ } ).setLayout( {
1108
+ name: 'mx_worley_noise_vec2_0',
1109
+ type: 'vec2',
1110
+ inputs: [
1111
+ { name: 'p', type: 'vec2' },
1112
+ { name: 'jitter', type: 'float' },
1113
+ { name: 'metric', type: 'int' }
1114
+ ]
749
1115
  } );
750
1116
 
751
- const mx_worley_noise_vec3_0 = tslFn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
1117
+ export const mx_worley_noise_vec3_0 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
752
1118
 
753
1119
  const metric = int( metric_immutable ).toVar();
754
1120
  const jitter = float( jitter_immutable ).toVar();
@@ -757,9 +1123,9 @@ const mx_worley_noise_vec3_0 = tslFn( ( [ p_immutable, jitter_immutable, metric_
757
1123
  const localpos = vec2( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ) ).toVar();
758
1124
  const sqdist = vec3( 1e6, 1e6, 1e6 ).toVar();
759
1125
 
760
- loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
1126
+ Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
761
1127
 
762
- loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
1128
+ Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
763
1129
 
764
1130
  const dist = float( mx_worley_distance( localpos, x, y, X, Y, jitter, metric ) ).toVar();
765
1131
 
@@ -769,12 +1135,12 @@ const mx_worley_noise_vec3_0 = tslFn( ( [ p_immutable, jitter_immutable, metric_
769
1135
  sqdist.y.assign( sqdist.x );
770
1136
  sqdist.x.assign( dist );
771
1137
 
772
- } ).elseif( dist.lessThan( sqdist.y ), () => {
1138
+ } ).ElseIf( dist.lessThan( sqdist.y ), () => {
773
1139
 
774
1140
  sqdist.z.assign( sqdist.y );
775
1141
  sqdist.y.assign( dist );
776
1142
 
777
- } ).elseif( dist.lessThan( sqdist.z ), () => {
1143
+ } ).ElseIf( dist.lessThan( sqdist.z ), () => {
778
1144
 
779
1145
  sqdist.z.assign( dist );
780
1146
 
@@ -792,9 +1158,17 @@ const mx_worley_noise_vec3_0 = tslFn( ( [ p_immutable, jitter_immutable, metric_
792
1158
 
793
1159
  return sqdist;
794
1160
 
1161
+ } ).setLayout( {
1162
+ name: 'mx_worley_noise_vec3_0',
1163
+ type: 'vec3',
1164
+ inputs: [
1165
+ { name: 'p', type: 'vec2' },
1166
+ { name: 'jitter', type: 'float' },
1167
+ { name: 'metric', type: 'int' }
1168
+ ]
795
1169
  } );
796
1170
 
797
- const mx_worley_noise_float_1 = tslFn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
1171
+ export const mx_worley_noise_float_1 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
798
1172
 
799
1173
  const metric = int( metric_immutable ).toVar();
800
1174
  const jitter = float( jitter_immutable ).toVar();
@@ -803,11 +1177,11 @@ const mx_worley_noise_float_1 = tslFn( ( [ p_immutable, jitter_immutable, metric
803
1177
  const localpos = vec3( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ), mx_floorfrac( p.z, Z ) ).toVar();
804
1178
  const sqdist = float( 1e6 ).toVar();
805
1179
 
806
- loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
1180
+ Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
807
1181
 
808
- loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
1182
+ Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
809
1183
 
810
- loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
1184
+ Loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
811
1185
 
812
1186
  const dist = float( mx_worley_distance( localpos, x, y, z, X, Y, Z, jitter, metric ) ).toVar();
813
1187
  sqdist.assign( min( sqdist, dist ) );
@@ -826,11 +1200,19 @@ const mx_worley_noise_float_1 = tslFn( ( [ p_immutable, jitter_immutable, metric
826
1200
 
827
1201
  return sqdist;
828
1202
 
1203
+ } ).setLayout( {
1204
+ name: 'mx_worley_noise_float_1',
1205
+ type: 'float',
1206
+ inputs: [
1207
+ { name: 'p', type: 'vec3' },
1208
+ { name: 'jitter', type: 'float' },
1209
+ { name: 'metric', type: 'int' }
1210
+ ]
829
1211
  } );
830
1212
 
831
- const mx_worley_noise_float = overloadingFn( [ mx_worley_noise_float_0, mx_worley_noise_float_1 ] );
1213
+ export const mx_worley_noise_float = /*@__PURE__*/ overloadingFn( [ mx_worley_noise_float_0, mx_worley_noise_float_1 ] );
832
1214
 
833
- const mx_worley_noise_vec2_1 = tslFn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
1215
+ export const mx_worley_noise_vec2_1 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
834
1216
 
835
1217
  const metric = int( metric_immutable ).toVar();
836
1218
  const jitter = float( jitter_immutable ).toVar();
@@ -839,11 +1221,11 @@ const mx_worley_noise_vec2_1 = tslFn( ( [ p_immutable, jitter_immutable, metric_
839
1221
  const localpos = vec3( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ), mx_floorfrac( p.z, Z ) ).toVar();
840
1222
  const sqdist = vec2( 1e6, 1e6 ).toVar();
841
1223
 
842
- loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
1224
+ Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
843
1225
 
844
- loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
1226
+ Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
845
1227
 
846
- loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
1228
+ Loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
847
1229
 
848
1230
  const dist = float( mx_worley_distance( localpos, x, y, z, X, Y, Z, jitter, metric ) ).toVar();
849
1231
 
@@ -852,7 +1234,7 @@ const mx_worley_noise_vec2_1 = tslFn( ( [ p_immutable, jitter_immutable, metric_
852
1234
  sqdist.y.assign( sqdist.x );
853
1235
  sqdist.x.assign( dist );
854
1236
 
855
- } ).elseif( dist.lessThan( sqdist.y ), () => {
1237
+ } ).ElseIf( dist.lessThan( sqdist.y ), () => {
856
1238
 
857
1239
  sqdist.y.assign( dist );
858
1240
 
@@ -872,11 +1254,19 @@ const mx_worley_noise_vec2_1 = tslFn( ( [ p_immutable, jitter_immutable, metric_
872
1254
 
873
1255
  return sqdist;
874
1256
 
1257
+ } ).setLayout( {
1258
+ name: 'mx_worley_noise_vec2_1',
1259
+ type: 'vec2',
1260
+ inputs: [
1261
+ { name: 'p', type: 'vec3' },
1262
+ { name: 'jitter', type: 'float' },
1263
+ { name: 'metric', type: 'int' }
1264
+ ]
875
1265
  } );
876
1266
 
877
- const mx_worley_noise_vec2 = overloadingFn( [ mx_worley_noise_vec2_0, mx_worley_noise_vec2_1 ] );
1267
+ export const mx_worley_noise_vec2 = /*@__PURE__*/ overloadingFn( [ mx_worley_noise_vec2_0, mx_worley_noise_vec2_1 ] );
878
1268
 
879
- const mx_worley_noise_vec3_1 = tslFn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
1269
+ export const mx_worley_noise_vec3_1 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutable, metric_immutable ] ) => {
880
1270
 
881
1271
  const metric = int( metric_immutable ).toVar();
882
1272
  const jitter = float( jitter_immutable ).toVar();
@@ -885,11 +1275,11 @@ const mx_worley_noise_vec3_1 = tslFn( ( [ p_immutable, jitter_immutable, metric_
885
1275
  const localpos = vec3( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ), mx_floorfrac( p.z, Z ) ).toVar();
886
1276
  const sqdist = vec3( 1e6, 1e6, 1e6 ).toVar();
887
1277
 
888
- loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
1278
+ Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
889
1279
 
890
- loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
1280
+ Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
891
1281
 
892
- loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
1282
+ Loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
893
1283
 
894
1284
  const dist = float( mx_worley_distance( localpos, x, y, z, X, Y, Z, jitter, metric ) ).toVar();
895
1285
 
@@ -899,12 +1289,12 @@ const mx_worley_noise_vec3_1 = tslFn( ( [ p_immutable, jitter_immutable, metric_
899
1289
  sqdist.y.assign( sqdist.x );
900
1290
  sqdist.x.assign( dist );
901
1291
 
902
- } ).elseif( dist.lessThan( sqdist.y ), () => {
1292
+ } ).ElseIf( dist.lessThan( sqdist.y ), () => {
903
1293
 
904
1294
  sqdist.z.assign( sqdist.y );
905
1295
  sqdist.y.assign( dist );
906
1296
 
907
- } ).elseif( dist.lessThan( sqdist.z ), () => {
1297
+ } ).ElseIf( dist.lessThan( sqdist.z ), () => {
908
1298
 
909
1299
  sqdist.z.assign( dist );
910
1300
 
@@ -924,507 +1314,178 @@ const mx_worley_noise_vec3_1 = tslFn( ( [ p_immutable, jitter_immutable, metric_
924
1314
 
925
1315
  return sqdist;
926
1316
 
1317
+ } ).setLayout( {
1318
+ name: 'mx_worley_noise_vec3_1',
1319
+ type: 'vec3',
1320
+ inputs: [
1321
+ { name: 'p', type: 'vec3' },
1322
+ { name: 'jitter', type: 'float' },
1323
+ { name: 'metric', type: 'int' }
1324
+ ]
927
1325
  } );
928
1326
 
929
- const mx_worley_noise_vec3 = overloadingFn( [ mx_worley_noise_vec3_0, mx_worley_noise_vec3_1 ] );
1327
+ export const mx_worley_noise_vec3 = /*@__PURE__*/ overloadingFn( [ mx_worley_noise_vec3_0, mx_worley_noise_vec3_1 ] );
930
1328
 
931
- // layouts
1329
+ // Unified Noise 2D
1330
+ export const mx_unifiednoise2d = /*@__PURE__*/ Fn( ( [
1331
+ noiseType_immutable, texcoord_immutable, freq_immutable, offset_immutable,
1332
+ jitter_immutable, outmin_immutable, outmax_immutable, clampoutput_immutable,
1333
+ octaves_immutable, lacunarity_immutable, diminish_immutable
1334
+ ] ) => {
932
1335
 
933
- mx_select.setLayout( {
934
- name: 'mx_select',
935
- type: 'float',
936
- inputs: [
937
- { name: 'b', type: 'bool' },
938
- { name: 't', type: 'float' },
939
- { name: 'f', type: 'float' }
940
- ]
941
- } );
1336
+ const noiseType = int( noiseType_immutable ).toVar();
1337
+ const texcoord = vec2( texcoord_immutable ).toVar();
1338
+ const freq = vec2( freq_immutable ).toVar();
1339
+ const offset = vec2( offset_immutable ).toVar();
1340
+ const jitter = float( jitter_immutable ).toVar();
1341
+ const outmin = float( outmin_immutable ).toVar();
1342
+ const outmax = float( outmax_immutable ).toVar();
1343
+ const clampoutput = bool( clampoutput_immutable ).toVar();
1344
+ const octaves = int( octaves_immutable ).toVar();
1345
+ const lacunarity = float( lacunarity_immutable ).toVar();
1346
+ const diminish = float( diminish_immutable ).toVar();
942
1347
 
943
- mx_negate_if.setLayout( {
944
- name: 'mx_negate_if',
945
- type: 'float',
946
- inputs: [
947
- { name: 'val', type: 'float' },
948
- { name: 'b', type: 'bool' }
949
- ]
950
- } );
1348
+ // Compute input position
1349
+ const p = texcoord.mul( freq ).add( offset );
951
1350
 
952
- mx_floor.setLayout( {
953
- name: 'mx_floor',
954
- type: 'int',
955
- inputs: [
956
- { name: 'x', type: 'float' }
957
- ]
958
- } );
1351
+ const result = float( 0.0 ).toVar();
959
1352
 
960
- mx_bilerp_0.setLayout( {
961
- name: 'mx_bilerp_0',
962
- type: 'float',
963
- inputs: [
964
- { name: 'v0', type: 'float' },
965
- { name: 'v1', type: 'float' },
966
- { name: 'v2', type: 'float' },
967
- { name: 'v3', type: 'float' },
968
- { name: 's', type: 'float' },
969
- { name: 't', type: 'float' }
970
- ]
971
- } );
1353
+ // Perlin
1354
+ If( noiseType.equal( int( 0 ) ), () => {
972
1355
 
973
- mx_bilerp_1.setLayout( {
974
- name: 'mx_bilerp_1',
975
- type: 'vec3',
976
- inputs: [
977
- { name: 'v0', type: 'vec3' },
978
- { name: 'v1', type: 'vec3' },
979
- { name: 'v2', type: 'vec3' },
980
- { name: 'v3', type: 'vec3' },
981
- { name: 's', type: 'float' },
982
- { name: 't', type: 'float' }
983
- ]
984
- } );
1356
+ result.assign( mx_perlin_noise_vec3( p ) );
985
1357
 
986
- mx_trilerp_0.setLayout( {
987
- name: 'mx_trilerp_0',
988
- type: 'float',
989
- inputs: [
990
- { name: 'v0', type: 'float' },
991
- { name: 'v1', type: 'float' },
992
- { name: 'v2', type: 'float' },
993
- { name: 'v3', type: 'float' },
994
- { name: 'v4', type: 'float' },
995
- { name: 'v5', type: 'float' },
996
- { name: 'v6', type: 'float' },
997
- { name: 'v7', type: 'float' },
998
- { name: 's', type: 'float' },
999
- { name: 't', type: 'float' },
1000
- { name: 'r', type: 'float' }
1001
- ]
1002
- } );
1358
+ } );
1003
1359
 
1004
- mx_trilerp_1.setLayout( {
1005
- name: 'mx_trilerp_1',
1006
- type: 'vec3',
1007
- inputs: [
1008
- { name: 'v0', type: 'vec3' },
1009
- { name: 'v1', type: 'vec3' },
1010
- { name: 'v2', type: 'vec3' },
1011
- { name: 'v3', type: 'vec3' },
1012
- { name: 'v4', type: 'vec3' },
1013
- { name: 'v5', type: 'vec3' },
1014
- { name: 'v6', type: 'vec3' },
1015
- { name: 'v7', type: 'vec3' },
1016
- { name: 's', type: 'float' },
1017
- { name: 't', type: 'float' },
1018
- { name: 'r', type: 'float' }
1019
- ]
1020
- } );
1360
+ // Cell
1361
+ If( noiseType.equal( int( 1 ) ), () => {
1021
1362
 
1022
- mx_gradient_float_0.setLayout( {
1023
- name: 'mx_gradient_float_0',
1024
- type: 'float',
1025
- inputs: [
1026
- { name: 'hash', type: 'uint' },
1027
- { name: 'x', type: 'float' },
1028
- { name: 'y', type: 'float' }
1029
- ]
1030
- } );
1363
+ result.assign( mx_cell_noise_vec3( p ) );
1031
1364
 
1032
- mx_gradient_float_1.setLayout( {
1033
- name: 'mx_gradient_float_1',
1034
- type: 'float',
1035
- inputs: [
1036
- { name: 'hash', type: 'uint' },
1037
- { name: 'x', type: 'float' },
1038
- { name: 'y', type: 'float' },
1039
- { name: 'z', type: 'float' }
1040
- ]
1041
- } );
1365
+ } );
1042
1366
 
1043
- mx_gradient_vec3_0.setLayout( {
1044
- name: 'mx_gradient_vec3_0',
1045
- type: 'vec3',
1046
- inputs: [
1047
- { name: 'hash', type: 'uvec3' },
1048
- { name: 'x', type: 'float' },
1049
- { name: 'y', type: 'float' }
1050
- ]
1051
- } );
1367
+ // Worley (metric=0 = euclidean)
1368
+ If( noiseType.equal( int( 2 ) ), () => {
1052
1369
 
1053
- mx_gradient_vec3_1.setLayout( {
1054
- name: 'mx_gradient_vec3_1',
1055
- type: 'vec3',
1056
- inputs: [
1057
- { name: 'hash', type: 'uvec3' },
1058
- { name: 'x', type: 'float' },
1059
- { name: 'y', type: 'float' },
1060
- { name: 'z', type: 'float' }
1061
- ]
1062
- } );
1370
+ result.assign( mx_worley_noise_vec3( p, jitter, int( 0 ) ) );
1063
1371
 
1064
- mx_gradient_scale2d_0.setLayout( {
1065
- name: 'mx_gradient_scale2d_0',
1066
- type: 'float',
1067
- inputs: [
1068
- { name: 'v', type: 'float' }
1069
- ]
1070
- } );
1372
+ } );
1071
1373
 
1072
- mx_gradient_scale3d_0.setLayout( {
1073
- name: 'mx_gradient_scale3d_0',
1074
- type: 'float',
1075
- inputs: [
1076
- { name: 'v', type: 'float' }
1077
- ]
1078
- } );
1374
+ // Fractal (use vec3(p, 0.0) for 2D input)
1375
+ If( noiseType.equal( int( 3 ) ), () => {
1079
1376
 
1080
- mx_gradient_scale2d_1.setLayout( {
1081
- name: 'mx_gradient_scale2d_1',
1082
- type: 'vec3',
1083
- inputs: [
1084
- { name: 'v', type: 'vec3' }
1085
- ]
1086
- } );
1377
+ result.assign( mx_fractal_noise_vec3( vec3( p, 0.0 ), octaves, lacunarity, diminish ) );
1087
1378
 
1088
- mx_gradient_scale3d_1.setLayout( {
1089
- name: 'mx_gradient_scale3d_1',
1090
- type: 'vec3',
1379
+ } );
1380
+
1381
+ // Remap output to [outmin, outmax]
1382
+ result.assign( result.mul( outmax.sub( outmin ) ).add( outmin ) );
1383
+
1384
+ // Clamp if requested
1385
+ If( clampoutput, () => {
1386
+
1387
+ result.assign( clamp( result, outmin, outmax ) );
1388
+
1389
+ } );
1390
+
1391
+ return result;
1392
+
1393
+ } ).setLayout( {
1394
+ name: 'mx_unifiednoise2d',
1395
+ type: 'float',
1091
1396
  inputs: [
1092
- { name: 'v', type: 'vec3' }
1397
+ { name: 'noiseType', type: 'int' },
1398
+ { name: 'texcoord', type: 'vec2' },
1399
+ { name: 'freq', type: 'vec2' },
1400
+ { name: 'offset', type: 'vec2' },
1401
+ { name: 'jitter', type: 'float' },
1402
+ { name: 'outmin', type: 'float' },
1403
+ { name: 'outmax', type: 'float' },
1404
+ { name: 'clampoutput', type: 'bool' },
1405
+ { name: 'octaves', type: 'int' },
1406
+ { name: 'lacunarity', type: 'float' },
1407
+ { name: 'diminish', type: 'float' }
1093
1408
  ]
1094
1409
  } );
1095
1410
 
1096
- mx_rotl32.setLayout( {
1097
- name: 'mx_rotl32',
1098
- type: 'uint',
1099
- inputs: [
1100
- { name: 'x', type: 'uint' },
1101
- { name: 'k', type: 'int' }
1102
- ]
1103
- } );
1411
+ // Unified Noise 3D
1412
+ export const mx_unifiednoise3d = /*@__PURE__*/ Fn( ( [
1413
+ noiseType_immutable, position_immutable, freq_immutable, offset_immutable,
1414
+ jitter_immutable, outmin_immutable, outmax_immutable, clampoutput_immutable,
1415
+ octaves_immutable, lacunarity_immutable, diminish_immutable
1416
+ ] ) => {
1104
1417
 
1105
- mx_bjfinal.setLayout( {
1106
- name: 'mx_bjfinal',
1107
- type: 'uint',
1108
- inputs: [
1109
- { name: 'a', type: 'uint' },
1110
- { name: 'b', type: 'uint' },
1111
- { name: 'c', type: 'uint' }
1112
- ]
1113
- } );
1418
+ const noiseType = int( noiseType_immutable ).toVar();
1419
+ const position = vec3( position_immutable ).toVar();
1420
+ const freq = vec3( freq_immutable ).toVar();
1421
+ const offset = vec3( offset_immutable ).toVar();
1422
+ const jitter = float( jitter_immutable ).toVar();
1423
+ const outmin = float( outmin_immutable ).toVar();
1424
+ const outmax = float( outmax_immutable ).toVar();
1425
+ const clampoutput = bool( clampoutput_immutable ).toVar();
1426
+ const octaves = int( octaves_immutable ).toVar();
1427
+ const lacunarity = float( lacunarity_immutable ).toVar();
1428
+ const diminish = float( diminish_immutable ).toVar();
1114
1429
 
1115
- mx_bits_to_01.setLayout( {
1116
- name: 'mx_bits_to_01',
1117
- type: 'float',
1118
- inputs: [
1119
- { name: 'bits', type: 'uint' }
1120
- ]
1121
- } );
1430
+ // Compute input position
1431
+ const p = position.mul( freq ).add( offset );
1122
1432
 
1123
- mx_fade.setLayout( {
1124
- name: 'mx_fade',
1125
- type: 'float',
1126
- inputs: [
1127
- { name: 't', type: 'float' }
1128
- ]
1129
- } );
1433
+ const result = float( 0.0 ).toVar();
1130
1434
 
1131
- mx_hash_int_0.setLayout( {
1132
- name: 'mx_hash_int_0',
1133
- type: 'uint',
1134
- inputs: [
1135
- { name: 'x', type: 'int' }
1136
- ]
1137
- } );
1435
+ // Perlin
1436
+ If( noiseType.equal( int( 0 ) ), () => {
1138
1437
 
1139
- mx_hash_int_1.setLayout( {
1140
- name: 'mx_hash_int_1',
1141
- type: 'uint',
1142
- inputs: [
1143
- { name: 'x', type: 'int' },
1144
- { name: 'y', type: 'int' }
1145
- ]
1146
- } );
1438
+ result.assign( mx_perlin_noise_vec3( p ) );
1147
1439
 
1148
- mx_hash_int_2.setLayout( {
1149
- name: 'mx_hash_int_2',
1150
- type: 'uint',
1151
- inputs: [
1152
- { name: 'x', type: 'int' },
1153
- { name: 'y', type: 'int' },
1154
- { name: 'z', type: 'int' }
1155
- ]
1156
- } );
1440
+ } );
1157
1441
 
1158
- mx_hash_int_3.setLayout( {
1159
- name: 'mx_hash_int_3',
1160
- type: 'uint',
1161
- inputs: [
1162
- { name: 'x', type: 'int' },
1163
- { name: 'y', type: 'int' },
1164
- { name: 'z', type: 'int' },
1165
- { name: 'xx', type: 'int' }
1166
- ]
1167
- } );
1442
+ // Cell
1443
+ If( noiseType.equal( int( 1 ) ), () => {
1168
1444
 
1169
- mx_hash_int_4.setLayout( {
1170
- name: 'mx_hash_int_4',
1171
- type: 'uint',
1172
- inputs: [
1173
- { name: 'x', type: 'int' },
1174
- { name: 'y', type: 'int' },
1175
- { name: 'z', type: 'int' },
1176
- { name: 'xx', type: 'int' },
1177
- { name: 'yy', type: 'int' }
1178
- ]
1179
- } );
1445
+ result.assign( mx_cell_noise_vec3( p ) );
1180
1446
 
1181
- mx_hash_vec3_0.setLayout( {
1182
- name: 'mx_hash_vec3_0',
1183
- type: 'uvec3',
1184
- inputs: [
1185
- { name: 'x', type: 'int' },
1186
- { name: 'y', type: 'int' }
1187
- ]
1188
- } );
1447
+ } );
1189
1448
 
1190
- mx_hash_vec3_1.setLayout( {
1191
- name: 'mx_hash_vec3_1',
1192
- type: 'uvec3',
1193
- inputs: [
1194
- { name: 'x', type: 'int' },
1195
- { name: 'y', type: 'int' },
1196
- { name: 'z', type: 'int' }
1197
- ]
1198
- } );
1449
+ // Worley (metric=0 = euclidean)
1450
+ If( noiseType.equal( int( 2 ) ), () => {
1199
1451
 
1200
- mx_perlin_noise_float_0.setLayout( {
1201
- name: 'mx_perlin_noise_float_0',
1202
- type: 'float',
1203
- inputs: [
1204
- { name: 'p', type: 'vec2' }
1205
- ]
1206
- } );
1452
+ result.assign( mx_worley_noise_vec3( p, jitter, int( 0 ) ) );
1207
1453
 
1208
- mx_perlin_noise_float_1.setLayout( {
1209
- name: 'mx_perlin_noise_float_1',
1210
- type: 'float',
1211
- inputs: [
1212
- { name: 'p', type: 'vec3' }
1213
- ]
1214
- } );
1454
+ } );
1215
1455
 
1216
- mx_perlin_noise_vec3_0.setLayout( {
1217
- name: 'mx_perlin_noise_vec3_0',
1218
- type: 'vec3',
1219
- inputs: [
1220
- { name: 'p', type: 'vec2' }
1221
- ]
1222
- } );
1456
+ // Fractal
1457
+ If( noiseType.equal( int( 3 ) ), () => {
1223
1458
 
1224
- mx_perlin_noise_vec3_1.setLayout( {
1225
- name: 'mx_perlin_noise_vec3_1',
1226
- type: 'vec3',
1227
- inputs: [
1228
- { name: 'p', type: 'vec3' }
1229
- ]
1230
- } );
1459
+ result.assign( mx_fractal_noise_vec3( p, octaves, lacunarity, diminish ) );
1231
1460
 
1232
- mx_cell_noise_float_0.setLayout( {
1233
- name: 'mx_cell_noise_float_0',
1234
- type: 'float',
1235
- inputs: [
1236
- { name: 'p', type: 'float' }
1237
- ]
1238
- } );
1461
+ } );
1239
1462
 
1240
- mx_cell_noise_float_1.setLayout( {
1241
- name: 'mx_cell_noise_float_1',
1242
- type: 'float',
1243
- inputs: [
1244
- { name: 'p', type: 'vec2' }
1245
- ]
1246
- } );
1463
+ // Remap output to [outmin, outmax]
1464
+ result.assign( result.mul( outmax.sub( outmin ) ).add( outmin ) );
1247
1465
 
1248
- mx_cell_noise_float_2.setLayout( {
1249
- name: 'mx_cell_noise_float_2',
1250
- type: 'float',
1251
- inputs: [
1252
- { name: 'p', type: 'vec3' }
1253
- ]
1254
- } );
1466
+ // Clamp if requested
1467
+ If( clampoutput, () => {
1255
1468
 
1256
- mx_cell_noise_float_3.setLayout( {
1257
- name: 'mx_cell_noise_float_3',
1258
- type: 'float',
1259
- inputs: [
1260
- { name: 'p', type: 'vec4' }
1261
- ]
1262
- } );
1469
+ result.assign( clamp( result, outmin, outmax ) );
1263
1470
 
1264
- mx_cell_noise_vec3_0.setLayout( {
1265
- name: 'mx_cell_noise_vec3_0',
1266
- type: 'vec3',
1267
- inputs: [
1268
- { name: 'p', type: 'float' }
1269
- ]
1270
- } );
1271
-
1272
- mx_cell_noise_vec3_1.setLayout( {
1273
- name: 'mx_cell_noise_vec3_1',
1274
- type: 'vec3',
1275
- inputs: [
1276
- { name: 'p', type: 'vec2' }
1277
- ]
1278
- } );
1279
-
1280
- mx_cell_noise_vec3_2.setLayout( {
1281
- name: 'mx_cell_noise_vec3_2',
1282
- type: 'vec3',
1283
- inputs: [
1284
- { name: 'p', type: 'vec3' }
1285
- ]
1286
- } );
1471
+ } );
1287
1472
 
1288
- mx_cell_noise_vec3_3.setLayout( {
1289
- name: 'mx_cell_noise_vec3_3',
1290
- type: 'vec3',
1291
- inputs: [
1292
- { name: 'p', type: 'vec4' }
1293
- ]
1294
- } );
1473
+ return result;
1295
1474
 
1296
- mx_fractal_noise_float.setLayout( {
1297
- name: 'mx_fractal_noise_float',
1475
+ } ).setLayout( {
1476
+ name: 'mx_unifiednoise3d',
1298
1477
  type: 'float',
1299
1478
  inputs: [
1300
- { name: 'p', type: 'vec3' },
1301
- { name: 'octaves', type: 'int' },
1302
- { name: 'lacunarity', type: 'float' },
1303
- { name: 'diminish', type: 'float' }
1304
- ]
1305
- } );
1306
-
1307
- mx_fractal_noise_vec3.setLayout( {
1308
- name: 'mx_fractal_noise_vec3',
1309
- type: 'vec3',
1310
- inputs: [
1311
- { name: 'p', type: 'vec3' },
1312
- { name: 'octaves', type: 'int' },
1313
- { name: 'lacunarity', type: 'float' },
1314
- { name: 'diminish', type: 'float' }
1315
- ]
1316
- } );
1317
-
1318
- mx_fractal_noise_vec2.setLayout( {
1319
- name: 'mx_fractal_noise_vec2',
1320
- type: 'vec2',
1321
- inputs: [
1322
- { name: 'p', type: 'vec3' },
1323
- { name: 'octaves', type: 'int' },
1324
- { name: 'lacunarity', type: 'float' },
1325
- { name: 'diminish', type: 'float' }
1326
- ]
1327
- } );
1328
-
1329
- mx_fractal_noise_vec4.setLayout( {
1330
- name: 'mx_fractal_noise_vec4',
1331
- type: 'vec4',
1332
- inputs: [
1333
- { name: 'p', type: 'vec3' },
1479
+ { name: 'noiseType', type: 'int' },
1480
+ { name: 'position', type: 'vec3' },
1481
+ { name: 'freq', type: 'vec3' },
1482
+ { name: 'offset', type: 'vec3' },
1483
+ { name: 'jitter', type: 'float' },
1484
+ { name: 'outmin', type: 'float' },
1485
+ { name: 'outmax', type: 'float' },
1486
+ { name: 'clampoutput', type: 'bool' },
1334
1487
  { name: 'octaves', type: 'int' },
1335
1488
  { name: 'lacunarity', type: 'float' },
1336
1489
  { name: 'diminish', type: 'float' }
1337
1490
  ]
1338
1491
  } );
1339
-
1340
- mx_worley_distance_0.setLayout( {
1341
- name: 'mx_worley_distance_0',
1342
- type: 'float',
1343
- inputs: [
1344
- { name: 'p', type: 'vec2' },
1345
- { name: 'x', type: 'int' },
1346
- { name: 'y', type: 'int' },
1347
- { name: 'xoff', type: 'int' },
1348
- { name: 'yoff', type: 'int' },
1349
- { name: 'jitter', type: 'float' },
1350
- { name: 'metric', type: 'int' }
1351
- ]
1352
- } );
1353
-
1354
- mx_worley_distance_1.setLayout( {
1355
- name: 'mx_worley_distance_1',
1356
- type: 'float',
1357
- inputs: [
1358
- { name: 'p', type: 'vec3' },
1359
- { name: 'x', type: 'int' },
1360
- { name: 'y', type: 'int' },
1361
- { name: 'z', type: 'int' },
1362
- { name: 'xoff', type: 'int' },
1363
- { name: 'yoff', type: 'int' },
1364
- { name: 'zoff', type: 'int' },
1365
- { name: 'jitter', type: 'float' },
1366
- { name: 'metric', type: 'int' }
1367
- ]
1368
- } );
1369
-
1370
- mx_worley_noise_float_0.setLayout( {
1371
- name: 'mx_worley_noise_float_0',
1372
- type: 'float',
1373
- inputs: [
1374
- { name: 'p', type: 'vec2' },
1375
- { name: 'jitter', type: 'float' },
1376
- { name: 'metric', type: 'int' }
1377
- ]
1378
- } );
1379
-
1380
- mx_worley_noise_vec2_0.setLayout( {
1381
- name: 'mx_worley_noise_vec2_0',
1382
- type: 'vec2',
1383
- inputs: [
1384
- { name: 'p', type: 'vec2' },
1385
- { name: 'jitter', type: 'float' },
1386
- { name: 'metric', type: 'int' }
1387
- ]
1388
- } );
1389
-
1390
- mx_worley_noise_vec3_0.setLayout( {
1391
- name: 'mx_worley_noise_vec3_0',
1392
- type: 'vec3',
1393
- inputs: [
1394
- { name: 'p', type: 'vec2' },
1395
- { name: 'jitter', type: 'float' },
1396
- { name: 'metric', type: 'int' }
1397
- ]
1398
- } );
1399
-
1400
- mx_worley_noise_float_1.setLayout( {
1401
- name: 'mx_worley_noise_float_1',
1402
- type: 'float',
1403
- inputs: [
1404
- { name: 'p', type: 'vec3' },
1405
- { name: 'jitter', type: 'float' },
1406
- { name: 'metric', type: 'int' }
1407
- ]
1408
- } );
1409
-
1410
- mx_worley_noise_vec2_1.setLayout( {
1411
- name: 'mx_worley_noise_vec2_1',
1412
- type: 'vec2',
1413
- inputs: [
1414
- { name: 'p', type: 'vec3' },
1415
- { name: 'jitter', type: 'float' },
1416
- { name: 'metric', type: 'int' }
1417
- ]
1418
- } );
1419
-
1420
- mx_worley_noise_vec3_1.setLayout( {
1421
- name: 'mx_worley_noise_vec3_1',
1422
- type: 'vec3',
1423
- inputs: [
1424
- { name: 'p', type: 'vec3' },
1425
- { name: 'jitter', type: 'float' },
1426
- { name: 'metric', type: 'int' }
1427
- ]
1428
- } );
1429
-
1430
- export { mx_select, mx_negate_if, mx_floor, mx_floorfrac, mx_bilerp, mx_trilerp, mx_gradient_float, mx_gradient_vec3, mx_gradient_scale2d, mx_gradient_scale3d, mx_rotl32, mx_bjmix, mx_bjfinal, mx_bits_to_01, mx_fade, mx_hash_int, mx_hash_vec3, mx_perlin_noise_float, mx_perlin_noise_vec3, mx_cell_noise_float, mx_cell_noise_vec3, mx_fractal_noise_float, mx_fractal_noise_vec3, mx_fractal_noise_vec2, mx_fractal_noise_vec4, mx_worley_distance, mx_worley_noise_float, mx_worley_noise_vec2, mx_worley_noise_vec3 };