@woosh/meep-engine 3.74.0 → 3.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/CHANGELOG.md +20 -19
  2. package/package.json +1 -1
  3. package/src/core/geom/2d/hilbert/v2_hilbert_encode.d.ts +11 -0
  4. package/src/core/geom/2d/hilbert/v2_hilbert_encode.d.ts.map +1 -0
  5. package/src/core/geom/2d/hilbert/v2_hilbert_encode.js +46 -0
  6. package/src/engine/asset/GameAssetType.d.ts +1 -0
  7. package/src/engine/asset/GameAssetType.js +5 -1
  8. package/src/engine/asset/loaders/GroomAssetLoader.d.ts +33 -0
  9. package/src/engine/asset/loaders/GroomAssetLoader.d.ts.map +1 -0
  10. package/src/engine/asset/loaders/GroomAssetLoader.js +99 -0
  11. package/src/engine/graphics/ecs/hair/Hair.d.ts +47 -0
  12. package/src/engine/graphics/ecs/hair/Hair.d.ts.map +1 -0
  13. package/src/engine/graphics/ecs/hair/Hair.js +61 -0
  14. package/src/engine/graphics/hair/Groom.d.ts +130 -0
  15. package/src/engine/graphics/hair/Groom.d.ts.map +1 -0
  16. package/src/engine/graphics/hair/Groom.js +193 -0
  17. package/src/engine/graphics/hair/GroomSerializationAdapter.d.ts +24 -0
  18. package/src/engine/graphics/hair/GroomSerializationAdapter.d.ts.map +1 -0
  19. package/src/engine/graphics/hair/GroomSerializationAdapter.js +77 -0
  20. package/src/engine/graphics/hair/groom_build_group.d.ts +85 -0
  21. package/src/engine/graphics/hair/groom_build_group.d.ts.map +1 -0
  22. package/src/engine/graphics/hair/groom_build_group.js +487 -0
  23. package/src/engine/graphics/hair/groom_generate_scalp.d.ts +29 -0
  24. package/src/engine/graphics/hair/groom_generate_scalp.d.ts.map +1 -0
  25. package/src/engine/graphics/hair/groom_generate_scalp.js +184 -0
  26. package/src/engine/graphics/hair/groom_rank_order.d.ts +15 -0
  27. package/src/engine/graphics/hair/groom_rank_order.d.ts.map +1 -0
  28. package/src/engine/graphics/hair/groom_rank_order.js +53 -0
  29. package/src/engine/graphics/hair/groom_root_spacing.d.ts +12 -0
  30. package/src/engine/graphics/hair/groom_root_spacing.d.ts.map +1 -0
  31. package/src/engine/graphics/hair/groom_root_spacing.js +120 -0
  32. package/src/engine/graphics/render/frame_graph/FrameGraph.d.ts +6 -0
  33. package/src/engine/graphics/render/frame_graph/FrameGraph.d.ts.map +1 -1
  34. package/src/engine/graphics/render/frame_graph/FrameGraph.js +9 -0
  35. package/src/engine/graphics3/GPUAcousticSystem.d.ts +29 -32
  36. package/src/engine/graphics3/GPUAcousticSystem.d.ts.map +1 -1
  37. package/src/engine/graphics3/GPUAcousticSystem.js +87 -162
  38. package/src/engine/graphics3/HairSystem.d.ts +102 -0
  39. package/src/engine/graphics3/HairSystem.d.ts.map +1 -0
  40. package/src/engine/graphics3/HairSystem.js +456 -0
  41. package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
  42. package/src/engine/sound/ecs/audio/AudioEmitterSystem.d.ts.map +1 -1
  43. package/src/engine/sound/ecs/audio/AudioEmitterSystem.js +35 -17
  44. package/src/engine/sound/ecs/audio/LiveEmitterSet.d.ts.map +1 -1
  45. package/src/engine/sound/ecs/audio/LiveEmitterSet.js +2 -3
  46. package/src/engine/sound/simulation/AcousticSimulator.d.ts +7 -0
  47. package/src/engine/sound/simulation/AcousticSimulator.d.ts.map +1 -1
  48. package/src/engine/sound/simulation/AcousticSimulator.js +27 -0
  49. package/src/engine/sound/simulation/README.md +121 -107
  50. package/src/engine/sound/sopra/README.md +8 -3
  51. package/src/engine/sound/sopra/definition/effect/AcousticReverbEffect.d.ts +2 -2
  52. package/src/engine/sound/sopra/definition/effect/AcousticReverbEffect.d.ts.map +1 -1
  53. package/src/engine/sound/sopra/definition/effect/AcousticReverbEffect.js +4 -3
  54. package/src/engine/sound/sopra/runtime/AcousticReverbConvolution.d.ts +118 -0
  55. package/src/engine/sound/sopra/runtime/AcousticReverbConvolution.d.ts.map +1 -0
  56. package/src/engine/sound/sopra/runtime/AcousticReverbConvolution.js +472 -0
  57. package/src/engine/sound/sopra/runtime/AcousticReverbLines.d.ts +166 -0
  58. package/src/engine/sound/sopra/runtime/AcousticReverbLines.d.ts.map +1 -0
  59. package/src/engine/sound/sopra/runtime/AcousticReverbLines.js +447 -0
  60. package/src/engine/sound/sopra/runtime/AcousticReverbNetwork.d.ts +69 -113
  61. package/src/engine/sound/sopra/runtime/AcousticReverbNetwork.d.ts.map +1 -1
  62. package/src/engine/sound/sopra/runtime/AcousticReverbNetwork.js +143 -491
  63. package/src/engine/sound/sopra/runtime/AcousticSpeakers.d.ts +102 -0
  64. package/src/engine/sound/sopra/runtime/AcousticSpeakers.d.ts.map +1 -0
  65. package/src/engine/sound/sopra/runtime/AcousticSpeakers.js +232 -0
  66. package/src/engine/sound/sopra/runtime/BusGraph.d.ts +17 -3
  67. package/src/engine/sound/sopra/runtime/BusGraph.d.ts.map +1 -1
  68. package/src/engine/sound/sopra/runtime/BusGraph.js +55 -5
  69. package/src/engine/sound/sopra/runtime/EventInstance.d.ts +8 -6
  70. package/src/engine/sound/sopra/runtime/EventInstance.d.ts.map +1 -1
  71. package/src/engine/sound/sopra/runtime/EventInstance.js +113 -105
  72. package/src/engine/sound/sopra/runtime/acoustic_reverb_decay.d.ts +13 -0
  73. package/src/engine/sound/sopra/runtime/acoustic_reverb_decay.d.ts.map +1 -0
  74. package/src/engine/sound/sopra/runtime/acoustic_reverb_decay.js +15 -0
  75. package/src/generation/grid/generation/discrete/GridTaskConnectRooms.d.ts.map +1 -1
  76. package/src/generation/grid/generation/discrete/GridTaskConnectRooms.js +4 -6
  77. package/src/shade/assets/textures/hair_scattering.bin +0 -0
  78. package/src/shade/device/pipeline/PipelineEnquiry.d.ts +11 -0
  79. package/src/shade/device/pipeline/PipelineEnquiry.d.ts.map +1 -1
  80. package/src/shade/device/pipeline/PipelineEnquiry.js +13 -0
  81. package/src/shade/playground/hair/index.html +50 -0
  82. package/src/shade/playground/hair/main.d.ts +2 -0
  83. package/src/shade/playground/hair/main.d.ts.map +1 -0
  84. package/src/shade/playground/hair/main.js +274 -0
  85. package/src/shade/playground/screen_probes/README.md +54 -0
  86. package/src/shade/playground/screen_probes/index.html +271 -0
  87. package/src/shade/playground/screen_probes/main.d.ts +8 -0
  88. package/src/shade/playground/screen_probes/main.d.ts.map +1 -0
  89. package/src/shade/playground/screen_probes/main.js +527 -0
  90. package/src/shade/playground/skinned_blas_refit/diff_traced_against_rasterized.d.ts.map +1 -1
  91. package/src/shade/playground/skinned_blas_refit/diff_traced_against_rasterized.js +4 -5
  92. package/src/shade/playground/skinned_blas_refit/main.d.ts.map +1 -1
  93. package/src/shade/playground/skinned_blas_refit/main.js +6 -12
  94. package/src/shade/playground/skinned_mesh_soup/main.d.ts.map +1 -1
  95. package/src/shade/playground/skinned_mesh_soup/main.js +1 -2
  96. package/src/shade/playground/vgeo_scene/README.md +12 -2
  97. package/src/shade/playground/vgeo_scene/main.js +1 -1
  98. package/src/shade/playground/volumetrics_froxel/README.md +191 -191
  99. package/src/shade/playground/volumetrics_froxel/measure.d.ts +3 -3
  100. package/src/shade/playground/volumetrics_froxel/measure.d.ts.map +1 -1
  101. package/src/shade/playground/volumetrics_froxel/measure.js +11 -13
  102. package/src/shade/playground/vsm/main.d.ts.map +1 -1
  103. package/src/shade/playground/vsm/main.js +5 -6
  104. package/src/shade/renderer/Renderer.d.ts.map +1 -1
  105. package/src/shade/renderer/Renderer.js +85 -16
  106. package/src/shade/renderer/STATIC_GRAPHICS_ENGINE_ASSETS.d.ts +6 -0
  107. package/src/shade/renderer/STATIC_GRAPHICS_ENGINE_ASSETS.d.ts.map +1 -1
  108. package/src/shade/renderer/STATIC_GRAPHICS_ENGINE_ASSETS.js +10 -0
  109. package/src/shade/renderer/acoustics/ACOUSTIC_LISTENER_RESOURCES.d.ts +28 -0
  110. package/src/shade/renderer/acoustics/ACOUSTIC_LISTENER_RESOURCES.d.ts.map +1 -0
  111. package/src/shade/renderer/acoustics/ACOUSTIC_LISTENER_RESOURCES.js +42 -0
  112. package/src/shade/renderer/acoustics/ACOUSTIC_PROBE_DATABASE_SPEC.d.ts +58 -0
  113. package/src/shade/renderer/acoustics/ACOUSTIC_PROBE_DATABASE_SPEC.d.ts.map +1 -0
  114. package/src/shade/renderer/acoustics/ACOUSTIC_PROBE_DATABASE_SPEC.js +108 -0
  115. package/src/shade/renderer/acoustics/GPUAcousticLattice.d.ts +1 -1
  116. package/src/shade/renderer/acoustics/GPUAcousticProbes.d.ts +161 -0
  117. package/src/shade/renderer/acoustics/GPUAcousticProbes.d.ts.map +1 -0
  118. package/src/shade/renderer/acoustics/GPUAcousticProbes.js +760 -0
  119. package/src/shade/renderer/acoustics/GPUAcoustics.d.ts +1 -1
  120. package/src/shade/renderer/acoustics/acoustic_listener_order.d.ts +12 -0
  121. package/src/shade/renderer/acoustics/acoustic_listener_order.d.ts.map +1 -0
  122. package/src/shade/renderer/acoustics/acoustic_listener_order.js +56 -0
  123. package/src/shade/renderer/acoustics/chunk_acoustic_direct.d.ts.map +1 -1
  124. package/src/shade/renderer/acoustics/chunk_acoustic_direct.js +5 -0
  125. package/src/shade/renderer/acoustics/chunk_acoustic_direct_cone.d.ts +57 -0
  126. package/src/shade/renderer/acoustics/chunk_acoustic_direct_cone.d.ts.map +1 -0
  127. package/src/shade/renderer/acoustics/chunk_acoustic_direct_cone.js +314 -0
  128. package/src/shade/renderer/acoustics/chunk_acoustic_finite.d.ts +15 -0
  129. package/src/shade/renderer/acoustics/chunk_acoustic_finite.d.ts.map +1 -0
  130. package/src/shade/renderer/acoustics/chunk_acoustic_finite.js +21 -0
  131. package/src/shade/renderer/acoustics/chunk_acoustic_gather.js +1 -1
  132. package/src/shade/renderer/acoustics/chunk_acoustic_lean.d.ts +27 -0
  133. package/src/shade/renderer/acoustics/chunk_acoustic_lean.d.ts.map +1 -0
  134. package/src/shade/renderer/acoustics/chunk_acoustic_lean.js +42 -0
  135. package/src/shade/renderer/acoustics/chunk_acoustic_listener.d.ts +80 -0
  136. package/src/shade/renderer/acoustics/chunk_acoustic_listener.d.ts.map +1 -0
  137. package/src/shade/renderer/acoustics/chunk_acoustic_listener.js +274 -0
  138. package/src/shade/renderer/acoustics/chunk_acoustic_partials.d.ts +2 -2
  139. package/src/shade/renderer/acoustics/chunk_acoustic_partials.js +2 -2
  140. package/src/shade/renderer/acoustics/chunk_acoustic_phonon.d.ts +7 -0
  141. package/src/shade/renderer/acoustics/chunk_acoustic_phonon.d.ts.map +1 -1
  142. package/src/shade/renderer/acoustics/chunk_acoustic_phonon.js +24 -1
  143. package/src/shade/renderer/acoustics/chunk_acoustic_resample.js +1 -1
  144. package/src/shade/renderer/acoustics/chunk_acoustic_reservoir.js +1 -1
  145. package/src/shade/renderer/acoustics/chunk_acoustic_through.d.ts +43 -0
  146. package/src/shade/renderer/acoustics/chunk_acoustic_through.d.ts.map +1 -0
  147. package/src/shade/renderer/acoustics/chunk_acoustic_through.js +153 -0
  148. package/src/shade/renderer/acoustics/chunk_acoustic_trace.d.ts +3 -1
  149. package/src/shade/renderer/acoustics/chunk_acoustic_trace.d.ts.map +1 -1
  150. package/src/shade/renderer/acoustics/chunk_acoustic_trace.js +10 -1
  151. package/src/shade/renderer/acoustics/shader_acoustic_combine.d.ts +7 -3
  152. package/src/shade/renderer/acoustics/shader_acoustic_combine.d.ts.map +1 -1
  153. package/src/shade/renderer/acoustics/shader_acoustic_combine.js +22 -6
  154. package/src/shade/renderer/acoustics/shader_acoustic_coupling.d.ts +14 -0
  155. package/src/shade/renderer/acoustics/shader_acoustic_coupling.d.ts.map +1 -0
  156. package/src/shade/renderer/acoustics/shader_acoustic_coupling.js +102 -0
  157. package/src/shade/renderer/acoustics/shader_acoustic_listener.d.ts +12 -0
  158. package/src/shade/renderer/acoustics/shader_acoustic_listener.d.ts.map +1 -0
  159. package/src/shade/renderer/acoustics/shader_acoustic_listener.js +80 -0
  160. package/src/shade/renderer/acoustics/shader_acoustic_receive.d.ts.map +1 -1
  161. package/src/shade/renderer/acoustics/shader_acoustic_receive.js +27 -6
  162. package/src/shade/renderer/acoustics/shader_acoustic_room.d.ts +11 -0
  163. package/src/shade/renderer/acoustics/shader_acoustic_room.d.ts.map +1 -0
  164. package/src/shade/renderer/acoustics/shader_acoustic_room.js +111 -0
  165. package/src/shade/renderer/acoustics/shader_acoustic_source.d.ts +18 -0
  166. package/src/shade/renderer/acoustics/shader_acoustic_source.d.ts.map +1 -0
  167. package/src/shade/renderer/acoustics/shader_acoustic_source.js +130 -0
  168. package/src/shade/renderer/deferred/chunk_read_gBuffer_material.d.ts.map +1 -1
  169. package/src/shade/renderer/deferred/chunk_read_gBuffer_material.js +3 -1
  170. package/src/shade/renderer/deferred/chunk_shade_direct_lights.d.ts +23 -0
  171. package/src/shade/renderer/deferred/chunk_shade_direct_lights.d.ts.map +1 -0
  172. package/src/shade/renderer/deferred/chunk_shade_direct_lights.js +111 -0
  173. package/src/shade/renderer/deferred/chunk_shade_directional_lights.d.ts +17 -6
  174. package/src/shade/renderer/deferred/chunk_shade_directional_lights.d.ts.map +1 -1
  175. package/src/shade/renderer/deferred/chunk_shade_directional_lights.js +26 -21
  176. package/src/shade/renderer/deferred/chunk_shade_standard_material_direct.d.ts +12 -22
  177. package/src/shade/renderer/deferred/chunk_shade_standard_material_direct.d.ts.map +1 -1
  178. package/src/shade/renderer/deferred/chunk_shade_standard_material_direct.js +20 -100
  179. package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_restir.d.ts.map +1 -1
  180. package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_restir.js +6 -4
  181. package/src/shade/renderer/deferred/chunk_standard_material_direct_light_lobe.d.ts +15 -0
  182. package/src/shade/renderer/deferred/chunk_standard_material_direct_light_lobe.d.ts.map +1 -0
  183. package/src/shade/renderer/deferred/chunk_standard_material_direct_light_lobe.js +47 -0
  184. package/src/shade/renderer/extension/ViewLighting.d.ts +101 -0
  185. package/src/shade/renderer/extension/ViewLighting.d.ts.map +1 -0
  186. package/src/shade/renderer/extension/ViewLighting.js +168 -0
  187. package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +3 -3
  188. package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +1 -1
  189. package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +7 -7
  190. package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
  191. package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
  192. package/src/shade/renderer/geometry/virtual/build/level/VGeoFrontier.d.ts +2 -2
  193. package/src/shade/renderer/geometry/virtual/build/level/VGeoFrontier.js +2 -2
  194. package/src/shade/renderer/geometry/virtual/build/level/VGeoLevelOptions.d.ts +5 -2
  195. package/src/shade/renderer/geometry/virtual/build/level/VGeoLevelOptions.d.ts.map +1 -1
  196. package/src/shade/renderer/geometry/virtual/build/level/VGeoLevelOptions.js +5 -2
  197. package/src/shade/renderer/geometry/virtual/build/level/vgeo_build_group_step.d.ts +9 -2
  198. package/src/shade/renderer/geometry/virtual/build/level/vgeo_build_group_step.d.ts.map +1 -1
  199. package/src/shade/renderer/geometry/virtual/build/level/vgeo_build_group_step.js +48 -12
  200. package/src/shade/renderer/geometry/virtual/format/read/VGeoContainerReader.d.ts +0 -22
  201. package/src/shade/renderer/geometry/virtual/format/read/VGeoContainerReader.d.ts.map +1 -1
  202. package/src/shade/renderer/geometry/virtual/format/read/VGeoContainerReader.js +0 -42
  203. package/src/shade/renderer/geometry/virtual/format/read/VGeoReadOptions.d.ts +2 -18
  204. package/src/shade/renderer/geometry/virtual/format/read/VGeoReadOptions.d.ts.map +1 -1
  205. package/src/shade/renderer/geometry/virtual/format/read/VGeoReadOptions.js +2 -19
  206. package/src/shade/renderer/geometry/virtual/format/read/vgeo_page_worker_serve.d.ts.map +1 -1
  207. package/src/shade/renderer/geometry/virtual/format/read/vgeo_page_worker_serve.js +0 -1
  208. package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.d.ts +5 -4
  209. package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.d.ts.map +1 -1
  210. package/src/shade/renderer/geometry/virtual/runtime/GPUVirtualGeometryRuntime.js +3 -1
  211. package/src/shade/renderer/geometry/virtual/runtime/VGeoFeedbackLoop.d.ts.map +1 -1
  212. package/src/shade/renderer/geometry/virtual/runtime/VGeoFeedbackLoop.js +3 -1
  213. package/src/shade/renderer/geometry/virtual/runtime/VGeoPageFetcher.d.ts.map +1 -1
  214. package/src/shade/renderer/geometry/virtual/runtime/VGeoPageFetcher.js +0 -1
  215. package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.d.ts +60 -14
  216. package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.d.ts.map +1 -1
  217. package/src/shade/renderer/geometry/virtual/runtime/VGeoViewCut.js +75 -39
  218. package/src/shade/renderer/global_illumination/brick4/gpu/draw/shader_brick4_indirect_lighting.d.ts.map +1 -1
  219. package/src/shade/renderer/global_illumination/brick4/gpu/draw/shader_brick4_indirect_lighting.js +3 -1
  220. package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +1 -1
  221. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts +0 -9
  222. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts.map +1 -1
  223. package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js +45 -17
  224. package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts +7 -3
  225. package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts.map +1 -1
  226. package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js +43 -7
  227. package/src/shade/renderer/global_illumination/probe_clipmap/probe/shader_probe_clipmap_indirect_lighting.d.ts.map +1 -1
  228. package/src/shade/renderer/global_illumination/probe_clipmap/probe/shader_probe_clipmap_indirect_lighting.js +3 -1
  229. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts +15 -7
  230. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts.map +1 -1
  231. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js +40 -9
  232. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts +23 -0
  233. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts.map +1 -1
  234. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.js +26 -0
  235. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeDebugView.d.ts +1 -0
  236. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeDebugView.js +6 -0
  237. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts +13 -1
  238. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts.map +1 -1
  239. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js +23 -1
  240. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.d.ts.map +1 -1
  241. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.js +2 -0
  242. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts +29 -0
  243. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts.map +1 -0
  244. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.js +102 -0
  245. package/src/shade/renderer/global_illumination/screen_probe/graph_screen_probe_debug_view.d.ts +8 -1
  246. package/src/shade/renderer/global_illumination/screen_probe/graph_screen_probe_debug_view.d.ts.map +1 -1
  247. package/src/shade/renderer/global_illumination/screen_probe/graph_screen_probe_debug_view.js +27 -1
  248. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts +4 -1
  249. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts.map +1 -1
  250. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.js +4 -1
  251. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_indirect_lighting.d.ts +11 -5
  252. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_indirect_lighting.d.ts.map +1 -1
  253. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_indirect_lighting.js +28 -10
  254. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts +36 -2
  255. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts.map +1 -1
  256. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.js +149 -4
  257. package/src/shade/renderer/global_illumination/shader_resolve_indirect_lighting.d.ts.map +1 -1
  258. package/src/shade/renderer/global_illumination/shader_resolve_indirect_lighting.js +3 -1
  259. package/src/shade/renderer/hair/GPUHairSystem.d.ts +159 -0
  260. package/src/shade/renderer/hair/GPUHairSystem.d.ts.map +1 -0
  261. package/src/shade/renderer/hair/GPUHairSystem.js +1132 -0
  262. package/src/shade/renderer/hair/HAIR.d.ts +102 -0
  263. package/src/shade/renderer/hair/HAIR.d.ts.map +1 -0
  264. package/src/shade/renderer/hair/HAIR.js +115 -0
  265. package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.d.ts +17 -0
  266. package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.d.ts.map +1 -0
  267. package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.js +71 -0
  268. package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.d.ts +11 -0
  269. package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.d.ts.map +1 -0
  270. package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.js +48 -0
  271. package/src/shade/renderer/hair/HairFrame.d.ts +41 -0
  272. package/src/shade/renderer/hair/HairFrame.d.ts.map +1 -0
  273. package/src/shade/renderer/hair/HairFrame.js +76 -0
  274. package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts +42 -0
  275. package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts.map +1 -0
  276. package/src/shade/renderer/hair/chunk_hair_bsdf.js +170 -0
  277. package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts +30 -0
  278. package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts.map +1 -0
  279. package/src/shade/renderer/hair/chunk_hair_dual_scattering.js +131 -0
  280. package/src/shade/renderer/hair/chunk_hair_pixel.d.ts +32 -0
  281. package/src/shade/renderer/hair/chunk_hair_pixel.d.ts.map +1 -0
  282. package/src/shade/renderer/hair/chunk_hair_pixel.js +116 -0
  283. package/src/shade/renderer/hair/chunk_hair_strand.d.ts +40 -0
  284. package/src/shade/renderer/hair/chunk_hair_strand.d.ts.map +1 -0
  285. package/src/shade/renderer/hair/chunk_hair_strand.js +85 -0
  286. package/src/shade/renderer/hair/chunk_hair_volume.d.ts +31 -0
  287. package/src/shade/renderer/hair/chunk_hair_volume.d.ts.map +1 -0
  288. package/src/shade/renderer/hair/chunk_hair_volume.js +106 -0
  289. package/src/shade/renderer/hair/hair_id_draw.d.ts +24 -0
  290. package/src/shade/renderer/hair/hair_id_draw.d.ts.map +1 -0
  291. package/src/shade/renderer/hair/hair_id_draw.js +135 -0
  292. package/src/shade/renderer/hair/hair_lighting.d.ts +53 -0
  293. package/src/shade/renderer/hair/hair_lighting.d.ts.map +1 -0
  294. package/src/shade/renderer/hair/hair_lighting.js +270 -0
  295. package/src/shade/renderer/hair/hair_scattering_lut.d.ts +75 -0
  296. package/src/shade/renderer/hair/hair_scattering_lut.d.ts.map +1 -0
  297. package/src/shade/renderer/hair/hair_scattering_lut.js +271 -0
  298. package/src/shade/renderer/hair/hair_stamp.d.ts +33 -0
  299. package/src/shade/renderer/hair/hair_stamp.d.ts.map +1 -0
  300. package/src/shade/renderer/hair/hair_stamp.js +175 -0
  301. package/src/shade/renderer/hair/shader_hair_classes.d.ts +21 -0
  302. package/src/shade/renderer/hair/shader_hair_classes.d.ts.map +1 -0
  303. package/src/shade/renderer/hair/shader_hair_classes.js +86 -0
  304. package/src/shade/renderer/hair/shader_hair_cull.d.ts +31 -0
  305. package/src/shade/renderer/hair/shader_hair_cull.d.ts.map +1 -0
  306. package/src/shade/renderer/hair/shader_hair_cull.js +194 -0
  307. package/src/shade/renderer/hair/shader_hair_lod.d.ts +33 -0
  308. package/src/shade/renderer/hair/shader_hair_lod.d.ts.map +1 -0
  309. package/src/shade/renderer/hair/shader_hair_lod.js +268 -0
  310. package/src/shade/renderer/hair/shader_hair_volume.d.ts +28 -0
  311. package/src/shade/renderer/hair/shader_hair_volume.d.ts.map +1 -0
  312. package/src/shade/renderer/hair/shader_hair_volume.js +167 -0
  313. package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
  314. package/src/shade/renderer/loader/usd/usd_build_scene.d.ts +31 -0
  315. package/src/shade/renderer/loader/usd/usd_build_scene.d.ts.map +1 -1
  316. package/src/shade/renderer/loader/usd/usd_build_scene.js +36 -21
  317. package/src/shade/renderer/loader/usd/usd_groom_extension.d.ts +60 -0
  318. package/src/shade/renderer/loader/usd/usd_groom_extension.d.ts.map +1 -0
  319. package/src/shade/renderer/loader/usd/usd_groom_extension.js +417 -0
  320. package/src/shade/renderer/path_tracer/shader/chunk_sample_material_data.d.ts.map +1 -1
  321. package/src/shade/renderer/path_tracer/shader/chunk_sample_material_data.js +4 -1
  322. package/src/shade/renderer/path_tracer/shader/chunk_shading_closure_from_material_data.d.ts.map +1 -1
  323. package/src/shade/renderer/path_tracer/shader/chunk_shading_closure_from_material_data.js +3 -1
  324. package/src/shade/renderer/postprocess/nss/NSS.d.ts +1 -1
  325. package/src/shade/renderer/postprocess/ssr/SSR.d.ts +4 -1
  326. package/src/shade/renderer/postprocess/ssr/SSR.d.ts.map +1 -1
  327. package/src/shade/renderer/postprocess/ssr/SSR.js +9 -0
  328. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.d.ts +16 -1
  329. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.d.ts.map +1 -1
  330. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.js +47 -3
  331. package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.d.ts.map +1 -1
  332. package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.js +5 -3
  333. package/src/shade/renderer/postprocess/ssr/ssr_combine_shader.d.ts.map +1 -1
  334. package/src/shade/renderer/postprocess/ssr/ssr_combine_shader.js +6 -5
  335. package/src/shade/renderer/rasterize/forward/chunk_forward_shade_standard_fragment.d.ts.map +1 -1
  336. package/src/shade/renderer/rasterize/forward/chunk_forward_shade_standard_fragment.js +5 -2
  337. package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.d.ts.map +1 -1
  338. package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.js +5 -0
  339. package/src/shade/renderer/rasterize/native/avboit/shader_avboit_splat.d.ts.map +1 -1
  340. package/src/shade/renderer/rasterize/native/avboit/shader_avboit_splat.js +4 -1
  341. package/src/shade/renderer/rasterize/native/oit/oit_resolve_fragment_body.d.ts.map +1 -1
  342. package/src/shade/renderer/rasterize/native/oit/oit_resolve_fragment_body.js +5 -1
  343. package/src/shade/renderer/rasterize/native/oit/shader_oit_generate_moments.d.ts.map +1 -1
  344. package/src/shade/renderer/rasterize/native/oit/shader_oit_generate_moments.js +7 -4
  345. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts +13 -8
  346. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts.map +1 -1
  347. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.js +18 -14
  348. package/src/shade/renderer/shader/chunk/light/chunk_compute_multiscattering_specular.d.ts +3 -2
  349. package/src/shade/renderer/shader/chunk/light/chunk_compute_multiscattering_specular.d.ts.map +1 -1
  350. package/src/shade/renderer/shader/chunk/light/chunk_compute_multiscattering_specular.js +12 -4
  351. package/src/shade/renderer/shader/chunk/material/MATERIAL_SHADING_INFO_STRUCT.d.ts.map +1 -1
  352. package/src/shade/renderer/shader/chunk/material/MATERIAL_SHADING_INFO_STRUCT.js +1 -0
  353. package/src/shade/renderer/shader/chunk/material/chunk_compute_indirect_specular.js +1 -1
  354. package/src/shade/renderer/shader/chunk/material/chunk_metalness_to_specular_F90.d.ts +16 -0
  355. package/src/shade/renderer/shader/chunk/material/chunk_metalness_to_specular_F90.d.ts.map +1 -0
  356. package/src/shade/renderer/shader/chunk/material/chunk_metalness_to_specular_F90.js +25 -0
  357. package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.js +2 -2
  358. package/src/shade/renderer/shader/compiler/ShaderSwitch.d.ts +1 -1
  359. package/src/shade/renderer/shader/compiler/ShaderSwitchSet.d.ts +1 -1
  360. package/src/shade/renderer/shader/resource/ShaderResourceDescriptor.d.ts +1 -1
  361. package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_point2.d.ts +2 -2
  362. package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_point2.js +2 -2
  363. package/src/shade/renderer/water/query/GPUWaterQueries.d.ts +1 -1
@@ -1,109 +1,49 @@
1
1
  /**
2
- * The energy of the tail an impulse of unit amplitude into every line (±1) leaves, at centre time `T_s`, seconds:
3
- * what an input gain of `1 / sqrt` of it turns into a tail of the energy sent.
2
+ * # The acoustic reverb
4
3
  *
5
- * Every sample written to a line is read out once, then filtered and mixed back. Follow a unit of energy: read from
6
- * line `i` (one unit out), it keeps `e_i = e^(−D_i / T_s)` of its energy through the line's filters (Jot's rule,
7
- * squared), and the Householder matrix sends the share `A_ji²` of that into line `j`, which is `(1 − 2/N)²` back
8
- * into its own line and `4/N²` into each other. What it reads out in all, from line `i`, is then
9
- * `v_i = 1 + e_i Σ_j A_ji² v_j`, which with `α = 1 − 4/N` and `β = 4/N²` is
10
- * `v_i = (1 + β e_i S) / (1 − α e_i)`, `S = Σ v_i`, and summing,
4
+ * GPU acoustics design, "The reverb" (F1, F4). The reverberant energy of every acoustic source sent to it, played by a
5
+ * tank whose decay per band follows the senders: {@link AcousticReverbConvolution}, a decaying noise, as
6
+ * `AcousticReverbEffect` builds it, or {@link AcousticReverbLines}, a feedback delay network. What is here is the same
7
+ * for either: what the senders add up to, and the gains around the tank.
11
8
  *
12
- * S = Σ 1/(1 − α e_i) / (1 − β Σ e_i/(1 − α e_i))
9
+ * A tank has an `input` the scaled send enters, a `stereo` pair (the diffuse share) and a `mono` sum uncorrelated
10
+ * with it (the directional share), the `shortest` centre time it plays, `send_gain(τ)`, the amplitude a band's send
11
+ * enters at for a tail of the energy sent, `set_decay(centre, sent, now, interval, resting)`, `update(now, interval)`
12
+ * once a frame, and `disconnect()`.
13
13
  *
14
- * in expectation over the lines' phases, which a band of many modes averages over. Not `T_s` times a constant: a
15
- * dead room loses most of a sample's energy in one pass, and a sample keeps to its own line half the time, so the
16
- * read-out rate is not the lines' mean. Derived; pinned against the network rendered sample by sample.
14
+ * **Level.** What is sent is split by band (the 3-band split the instances' paths use) and scaled by the tank's
15
+ * `send_gain` at the band's `T_s`, so a send of energy `E` leaves a tail of energy `E` at any decay time.
17
16
  *
18
- * @param {number} centre_time seconds, above 0
19
- * @returns {number}
20
- */
21
- export function acoustic_reverb_tail_energy(centre_time: number): number;
22
- /**
23
- * Delay lines of the network, `N`.
24
- * @type {number}
25
- */
26
- export const ACOUSTIC_REVERB_LINES: number;
27
- /**
28
- * The sign each line is heard with: the even lines go left and the odd right, and within each side they alternate,
29
- * `+ + − − + + − −`, so that each side's signs sum to zero. The Householder matrix puts `−2/N` of every line's sum
30
- * back into every line at once; at low frequencies, where the lines' delays differ by a fraction of a period, that
31
- * common part stays in phase across the lines, and summed with one sign it added up coherently — 1.1 to 1.8 dB more
32
- * tail than sent in the low band, measured. With the signs it cancels.
33
- * @type {number[]}
34
- */
35
- export const ACOUSTIC_REVERB_OUTPUT_SIGNS: number[];
36
- /**
37
- * Each line's delay, seconds.
38
- * @type {Float64Array}
39
- */
40
- export const ACOUSTIC_REVERB_DELAYS: Float64Array;
41
- /**
42
- * Reverberation time over centre time for an exponential tail: the energy falls by 60 dB in `6 ln 10` of its time
43
- * constants, and the centre time of an exponential is its time constant.
44
- * @type {number}
45
- */
46
- export const RT60_PER_CENTRE_TIME: number;
47
- /**
48
- * The frequencies each band's decay is set at: the geometric centres of 31.25–250 Hz, 250–2,500 Hz and 2.5–20 kHz,
49
- * the outer bands closed at the audible range's ends.
50
- * @type {number[]}
51
- */
52
- export const ACOUSTIC_REVERB_BAND_CENTRES: number[];
53
- /**
54
- * # The acoustic reverb: one feedback delay network
17
+ * **One decay for what is audible (F4).** Each frame the decay's `T_s` per band is the energy-weighted mean of the
18
+ * centre times of the sources sending to it, weighted by what each sends and how loud it plays ({@link accumulate}): a
19
+ * dry source sends nothing and has no say. A frame nothing was sent in keeps the decay it had.
55
20
  *
56
- * GPU acoustics design, "The reverb: one feedback delay network" (F1, F4). The reverberant energy of every acoustic
57
- * source sent to it, rendered with a decay per band that follows the simulation every frame without clicks, without
58
- * allocation and without work off the audio thread: the decay is a set of `AudioParam`s.
21
+ * **Lean.** The diffuse pair, and the mono sum played from the senders' aggregate direction through six speakers that
22
+ * stand still around the listener, by gains (`AcousticSpeakers`) — the directional share, the length of that
23
+ * direction, energy-weighted as the decay is. A panner moved after a direction estimated afresh each frame would carry
24
+ * the estimate's wander across the head; gains on panners that stand still carry it as a little level.
59
25
  *
60
- * **The network.** {@link ACOUSTIC_REVERB_LINES} `DelayNode`s ({@link ACOUSTIC_REVERB_DELAYS}). Each line's output
61
- * passes a lowshelf at 250 Hz, a highshelf at 2,500 Hz and a gain, and returns to every line through a Householder
62
- * matrix, `I − (2/N)·11ᵀ`: to its own line whole, and to all of them through one summing gain of `−2/N`. The matrix
63
- * is orthogonal, so the loop loses only what the lines' filters take. Fed from what the instances send, to the
64
- * even lines as it is and to the odd ones inverted.
26
+ * **Memory.** The tail rings with what it was sent for its decay time. That is right when a source goes quiet, and
27
+ * wrong when its send drops because the listener has left the room: the level heard there is the new send's now, not
28
+ * after the tail has decayed to it. So each source keeps a gain model of what its propagation has put in the tail,
29
+ * `Ê ← Ê·e^(−Δ/τ) + E·(1 − e^(−Δ/τ))` per band for its send `E` without its own loudness and the reverb's `τ`
30
+ * ({@link centre_time}), and hands it over with the send ({@link accumulate}). The output passes a correction of
31
+ * `√min(1, Σ ℓE / Σ ℓÊ)` per band over the senders heard, `ℓ` each one's loudness (the same 3-band split the input
32
+ * uses): a step down in what the propagation sends is heard at the next write, a step up is left to the tail, which
33
+ * builds from the signal as it would in a room. A source turned down, fading or stopping changes both sums alike, so
34
+ * what it put in the tail rings out and no other source's tail is corrected for it; a frame no source is heard in
35
+ * corrects nothing. Never above one: the correction loses energy, never invents it.
65
36
  *
66
- * **Decay (Jot's rule).** A line `d` seconds long is attenuated by `10^(−3d / RT60_b)` a pass in band `b`, so that
67
- * every path through the network falls by 60 dB in `RT60_b` whatever lines it took: the decay is exponential at the
68
- * requested rate (`RT60 = 6 ln 10 · T_s`, {@link RT60_PER_CENTRE_TIME}). Jot and Chaigne's attenuation rule, here
69
- * derived as stated rather than read from their paper. The three bands' per-pass gains are realised by the shelves
70
- * and the gain together, solved at each band's centre ({@link ACOUSTIC_REVERB_BAND_CENTRES}) from the shelves'
71
- * response there, which at a few dB scales with their gain: the decay is the requested one at those frequencies,
72
- * and between them follows the shelves. Shelves, not a crossover, because a crossover's bands overshoot near its
73
- * edges and a gain above one in a feedback loop runs away; a shelf's response lies between its two gains. The
74
- * solution is held passive: no shelf lifts a band above the gain the others leave it.
75
- *
76
- * **Level.** What is sent is split by band (the 3-band split the instances' paths use) and scaled by one over the
77
- * root of {@link acoustic_reverb_tail_energy} at the band's `T_s`, so a send of energy `E` leaves a tail of
78
- * energy `E` at any decay time.
79
- *
80
- * **One decay for what is audible (F4).** Each frame the network's `T_s` per band is the energy-weighted mean of
81
- * the centre times of the sources sending to it, weighted by what each sends ({@link accumulate}): a dry source sends
82
- * nothing and has no say. A frame nothing was sent in keeps the decay it had.
83
- *
84
- * **Lean.** The lines' outputs go to a stereo pair, the even lines left and the odd right, each with its sign
85
- * ({@link ACOUSTIC_REVERB_OUTPUT_SIGNS}) — the diffuse share — and summed through one panner placed along the
86
- * senders' aggregate direction — the directional share, the length of that direction, energy-weighted as the decay
87
- * is.
88
- *
89
- * **Memory.** The network rings with what it was sent for its decay time. That is right when a source goes quiet,
90
- * and wrong when its send drops because the listener has left the room: the level heard there is the new send's now,
91
- * not after the tail has decayed to it. The network keeps a gain model of the level its tail plays at,
92
- * `L ← L·e^(−Δ/τ) + S·(1 − e^(−Δ/τ))` per band for the frame's send `S` and the network's own `τ`, and its output
93
- * passes a correction of `√min(1, S / L)` per band (the same 3-band split the input uses): a step down in what is
94
- * sent is heard at the next write, a step up is left to the tail, which builds from the signal as it would in a
95
- * room, and a frame nothing was sent in corrects nothing, so a source that stops rings out. Never above one: the
96
- * correction loses energy, never invents it.
97
- *
98
- * **Writes** follow the acoustic render's rule (`acoustic_writes.js`): a decay is sent when a band's moved more than
99
- * 2.5%, a gain more than half a decibel, the panner when its direction turned more than a degree, each as a ramp over
100
- * the interval between updates; the first decay and the first placement at once.
37
+ * **Writes** follow the acoustic render's rule (`acoustic_writes.js`): a decay is asked of the tank when a band's moved
38
+ * more than 2.5%, a gain is sent when it moved more than half a decibel, the speakers' gains alike, each as a ramp over
39
+ * the interval between updates; the first decay and the first lean at once.
101
40
  */
102
41
  export class AcousticReverbNetwork {
103
42
  /**
104
43
  * @param {BaseAudioContext} ctx
44
+ * @param {AcousticReverbConvolution|AcousticReverbLines} tank what plays the tail, made on `ctx`
105
45
  */
106
- constructor(ctx: BaseAudioContext);
46
+ constructor(ctx: BaseAudioContext, tank: AcousticReverbConvolution | AcousticReverbLines);
107
47
  /**
108
48
  * What the bus's signal passes through and what the network's output is added to: the effect's input and output.
109
49
  * @type {GainNode}
@@ -115,23 +55,20 @@ export class AcousticReverbNetwork {
115
55
  */
116
56
  side: GainNode;
117
57
  /**
118
- * The lines, and each line's lowshelf, highshelf and gain, by line: for inspection; the network moves them.
119
- * @type {DelayNode[]}
58
+ * What plays the tail: its decay is set from the senders'. For inspection.
59
+ * @type {AcousticReverbConvolution|AcousticReverbLines}
120
60
  */
121
- delays: DelayNode[];
122
- /** @type {BiquadFilterNode[]} */
123
- lowShelves: BiquadFilterNode[];
124
- /** @type {BiquadFilterNode[]} */
125
- highShelves: BiquadFilterNode[];
126
- /** @type {GainNode[]} */
127
- lineGains: GainNode[];
61
+ tank: AcousticReverbConvolution | AcousticReverbLines;
128
62
  /**
129
- * The Householder matrix's summing gain, `−2/N`. For inspection.
130
- * @type {GainNode}
63
+ * The six panners the directional share is played through, around the listener. For inspection.
64
+ * @type {AcousticSpeakers}
131
65
  */
132
- householder: GainNode;
133
- /** @type {PannerNode} */
134
- panner: PannerNode;
66
+ speakers: AcousticSpeakers;
67
+ /**
68
+ * The directional sum into {@link speakers}, by the lean's direction. For inspection.
69
+ * @type {AcousticSpeakerFeed}
70
+ */
71
+ leanFeed: AcousticSpeakerFeed;
135
72
  /**
136
73
  * What the tail, diffuse and directional, sums into ahead of the output correction. For inspection.
137
74
  * @type {GainNode}
@@ -143,20 +80,27 @@ export class AcousticReverbNetwork {
143
80
  */
144
81
  get output_correction(): Float64Array;
145
82
  /**
146
- * A source's reverberant send this frame: what reaches the side input, its energy per band (the instance's
147
- * distance gain squared times what its wet taps carry), with its centre time per band and its lean.
83
+ * A source's reverberant send this frame: its energy per band as its propagation and its distance make it (the
84
+ * instance's distance gain squared times what its wet taps carry), with its centre time per band and its lean, and
85
+ * how loud the source itself plays, `loudness`, its level squared, 0 while it plays no voice; and what its
86
+ * propagation has put in the tail by its own model, `held` (**Memory**). The energy times the loudness is the
87
+ * source's say in the decay, the lean and the correction, as much as it is heard.
148
88
  *
149
89
  * @param {ArrayLike<number>} energy per band
150
90
  * @param {ArrayLike<number>} centre_time seconds, per band
151
91
  * @param {ArrayLike<number>} direction a vector of length at most 1
92
+ * @param {number} loudness at least 0
93
+ * @param {ArrayLike<number>} held per band
152
94
  */
153
- accumulate(energy: ArrayLike<number>, centre_time: ArrayLike<number>, direction: ArrayLike<number>): void;
95
+ accumulate(energy: ArrayLike<number>, centre_time: ArrayLike<number>, direction: ArrayLike<number>, loudness: number, held?: ArrayLike<number>): void;
154
96
  /**
155
97
  * Take the frame's senders: the decay and the lean they add up to, written as the rule says, and nothing kept
156
- * for the next frame. A frame nothing was sent in writes nothing.
98
+ * for the next frame; and, once there is a lean to hear, stand the speakers around the listener, where the tail is
99
+ * heard from whether or not anything was sent. A frame nothing was sent in writes nothing else, and before the
100
+ * first lean nothing at all.
157
101
  *
158
102
  * @param {number} now context time
159
- * @param {ArrayLike<number>|null} listener world position, where the lean is placed from
103
+ * @param {ArrayLike<number>|null} listener world position, what the speakers stand around
160
104
  */
161
105
  update(now: number, listener: ArrayLike<number> | null): void;
162
106
  /**
@@ -165,6 +109,12 @@ export class AcousticReverbNetwork {
165
109
  * is solved.
166
110
  * @returns {number}
167
111
  */
112
+ /**
113
+ * The decay the network plays, as centre times per band, seconds: what a sender's model of what it holds decays
114
+ * by (**Memory**). NaN in a band no decay has been sent for yet.
115
+ * @returns {Float64Array}
116
+ */
117
+ get centre_time(): Float64Array;
168
118
  get epoch(): number;
169
119
  /**
170
120
  * Take back a send of this frame, as it was given to {@link accumulate}.
@@ -172,12 +122,18 @@ export class AcousticReverbNetwork {
172
122
  * @param {ArrayLike<number>} energy per band
173
123
  * @param {ArrayLike<number>} centre_time seconds, per band
174
124
  * @param {ArrayLike<number>} direction a vector of length at most 1
125
+ * @param {number} loudness
126
+ * @param {ArrayLike<number>} held
175
127
  */
176
- retract(energy: ArrayLike<number>, centre_time: ArrayLike<number>, direction: ArrayLike<number>): void;
128
+ retract(energy: ArrayLike<number>, centre_time: ArrayLike<number>, direction: ArrayLike<number>, loudness: number, held?: ArrayLike<number>): void;
177
129
  /**
178
130
  * Unwire the network.
179
131
  */
180
132
  disconnect(): void;
181
133
  #private;
182
134
  }
135
+ export type AcousticReverbConvolution = import("./AcousticReverbConvolution.js").AcousticReverbConvolution;
136
+ export type AcousticReverbLines = import("./AcousticReverbLines.js").AcousticReverbLines;
137
+ import { AcousticSpeakers } from "./AcousticSpeakers.js";
138
+ import { AcousticSpeakerFeed } from "./AcousticSpeakers.js";
183
139
  //# sourceMappingURL=AcousticReverbNetwork.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AcousticReverbNetwork.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/sound/sopra/runtime/AcousticReverbNetwork.js"],"names":[],"mappings":"AAwCA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,yDAHW,MAAM,GACJ,MAAM,CAmBlB;AA3DD;;;GAGG;AACH,oCAFU,MAAM,CAE6C;AAE7D;;;;;;;GAOG;AACH,2CAFU,MAAM,EAAE,CAE0H;AAE5I;;;GAGG;AACH,qCAFU,YAAY,CAEgF;AAyCtG;;;;GAIG;AACH,mCAFU,MAAM,CAEkC;AAElD;;;;GAIG;AACH,2CAFU,MAAM,EAAE,CAE+H;AAsFjJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH;IAoII;;OAEG;IACH,iBAFW,gBAAgB,EA2H1B;IA/PD;;;OAGG;IACH,QAFU,QAAQ,CAEX;IAEP;;;OAGG;IACH,MAFU,QAAQ,CAEb;IAkBL;;;OAGG;IACH,QAFU,SAAS,EAAE,CAET;IAEZ,iCAAiC;IACjC,YADW,gBAAgB,EAAE,CACb;IAEhB,iCAAiC;IACjC,aADW,gBAAgB,EAAE,CACZ;IAEjB,yBAAyB;IACzB,WADW,QAAQ,EAAE,CACN;IAEf;;;OAGG;IACH,aAFU,QAAQ,CAEN;IAWZ,yBAAyB;IACzB,QADW,UAAU,CACd;IA0DP;;;OAGG;IACH,MAFU,QAAQ,CAEb;IAEL;;;OAGG;IACH,sCAEC;IAoJD;;;;;;;OAOG;IACH,mBAJW,UAAU,MAAM,CAAC,eACjB,UAAU,MAAM,CAAC,aACjB,UAAU,MAAM,CAAC,QAmB3B;IAED;;;;;;OAMG;IACH,YAHW,MAAM,YACN,UAAU,MAAM,CAAC,GAAC,IAAI,QAsChC;IAED;;;;;OAKG;IACH,oBAEC;IAED;;;;;;OAMG;IACH,gBAJW,UAAU,MAAM,CAAC,eACjB,UAAU,MAAM,CAAC,aACjB,UAAU,MAAM,CAAC,QAoB3B;IAmPD;;OAEG;IACH,mBA0BC;;CACJ"}
1
+ {"version":3,"file":"AcousticReverbNetwork.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/sound/sopra/runtime/AcousticReverbNetwork.js"],"names":[],"mappings":"AAwCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH;IAsGI;;;OAGG;IACH,iBAHW,gBAAgB,QAChB,yBAAyB,GAAC,mBAAmB,EAkCvD;IAzID;;;OAGG;IACH,QAFU,QAAQ,CAEX;IAEP;;;OAGG;IACH,MAFU,QAAQ,CAEb;IAQL;;;OAGG;IACH,MAFU,yBAAyB,GAAC,mBAAmB,CAElD;IAQL;;;OAGG;IACH,UAFU,gBAAgB,CAEjB;IAET;;;OAGG;IACH,UAFU,mBAAmB,CAEpB;IA+CT;;;OAGG;IACH,MAFU,QAAQ,CAEb;IAEL;;;OAGG;IACH,sCAEC;IAwCD;;;;;;;;;;;;OAYG;IACH,mBANW,UAAU,MAAM,CAAC,eACjB,UAAU,MAAM,CAAC,aACjB,UAAU,MAAM,CAAC,YACjB,MAAM,SACN,UAAU,MAAM,CAAC,QAqB3B;IAED;;;;;;;;OAQG;IACH,YAHW,MAAM,YACN,UAAU,MAAM,CAAC,GAAC,IAAI,QA2ChC;IAED;;;;;OAKG;IACH;;;;OAIG;IACH,gCAEC;IAED,oBAEC;IAED;;;;;;;;OAQG;IACH,gBANW,UAAU,MAAM,CAAC,eACjB,UAAU,MAAM,CAAC,aACjB,UAAU,MAAM,CAAC,YACjB,MAAM,SACN,UAAU,MAAM,CAAC,QAsB3B;IAoKD;;OAEG;IACH,mBAcC;;CACJ;wCA9gBY,OAAO,gCAAgC,EAAE,yBAAyB;kCAClE,OAAO,0BAA0B,EAAE,mBAAmB;iCAJb,uBAAuB;oCAAvB,uBAAuB"}