@woosh/meep-engine 3.78.3 → 3.79.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 (367) hide show
  1. package/CHANGELOG.md +80 -13
  2. package/editor/view/node-graph/NodeGraphView.d.ts +1 -1
  3. package/editor/view/node-graph/NodeGraphView.js +1 -1
  4. package/package.json +1 -1
  5. package/src/core/math/physics/brdf/fresnel_Schlick_optimized.d.ts +2 -1
  6. package/src/core/math/physics/brdf/fresnel_Schlick_optimized.d.ts.map +1 -1
  7. package/src/core/math/physics/brdf/fresnel_Schlick_optimized.js +2 -1
  8. package/src/core/math/snap_to_integer.d.ts +13 -0
  9. package/src/core/math/snap_to_integer.d.ts.map +1 -0
  10. package/src/core/math/snap_to_integer.js +20 -0
  11. package/src/core/model/node-graph/NodeGraph.d.ts +0 -1
  12. package/src/core/model/node-graph/NodeGraph.d.ts.map +1 -1
  13. package/src/core/model/node-graph/NodeGraph.js +0 -1
  14. package/src/engine/asset/GameAssetType.d.ts +2 -0
  15. package/src/engine/asset/GameAssetType.js +10 -0
  16. package/src/engine/asset/guessAssetType.d.ts.map +1 -1
  17. package/src/engine/asset/guessAssetType.js +4 -0
  18. package/src/engine/asset/load_model_scene_bundle.d.ts +1 -1
  19. package/src/engine/asset/load_model_scene_bundle.js +2 -2
  20. package/src/engine/asset/loaders/MTFSceneBundleAssetLoader.d.ts +42 -0
  21. package/src/engine/asset/loaders/MTFSceneBundleAssetLoader.d.ts.map +1 -0
  22. package/src/engine/asset/loaders/MTFSceneBundleAssetLoader.js +83 -0
  23. package/src/engine/asset/loaders/MTFTextureAssetLoader.d.ts +36 -0
  24. package/src/engine/asset/loaders/MTFTextureAssetLoader.d.ts.map +1 -0
  25. package/src/engine/asset/loaders/MTFTextureAssetLoader.js +78 -0
  26. package/src/engine/ecs/storage/binary/collection/BinaryCollectionSerializer.d.ts +6 -1
  27. package/src/engine/ecs/storage/binary/collection/BinaryCollectionSerializer.d.ts.map +1 -1
  28. package/src/engine/ecs/storage/binary/collection/BinaryCollectionSerializer.js +8 -2
  29. package/src/engine/graphics/hair/groom_bind_to_mesh.d.ts +1 -1
  30. package/src/engine/graphics/hair/groom_bind_to_mesh.js +1 -1
  31. package/src/engine/graphics/hair/groom_build_guides.d.ts +1 -1
  32. package/src/engine/graphics/hair/groom_build_guides.js +1 -1
  33. package/src/engine/graphics/impostors/voxel/README.md +11 -11
  34. package/src/engine/physics/cloth/collider/ClothColliderKind.js +1 -1
  35. package/src/engine/physics/cloth/ecs/cloth_geodesic.d.ts +1 -1
  36. package/src/engine/physics/cloth/ecs/cloth_geodesic.js +1 -1
  37. package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.d.ts +2 -3
  38. package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.d.ts.map +1 -1
  39. package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.js +2 -3
  40. package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
  41. package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.d.ts +0 -2
  42. package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.d.ts.map +1 -1
  43. package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.js +0 -5
  44. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerCubic.d.ts.map +1 -1
  45. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerCubic.js +5 -3
  46. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerLinear.d.ts.map +1 -1
  47. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerLinear.js +5 -3
  48. package/src/generation/grid/coords/grid_to_texel.d.ts +7 -1
  49. package/src/generation/grid/coords/grid_to_texel.d.ts.map +1 -1
  50. package/src/generation/grid/coords/grid_to_texel.js +11 -1
  51. package/src/generation/grid/coords/grid_to_texel_span.d.ts +15 -0
  52. package/src/generation/grid/coords/grid_to_texel_span.d.ts.map +1 -0
  53. package/src/generation/grid/coords/grid_to_texel_span.js +38 -0
  54. package/src/generation/grid/coords/texel_to_grid.d.ts +2 -1
  55. package/src/generation/grid/coords/texel_to_grid.d.ts.map +1 -1
  56. package/src/generation/grid/coords/texel_to_grid.js +6 -1
  57. package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts +32 -1
  58. package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts.map +1 -1
  59. package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.js +114 -9
  60. package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.d.ts +8 -0
  61. package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.d.ts.map +1 -1
  62. package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.js +91 -29
  63. package/src/generation/grid/layers/GridDataLayer.d.ts +21 -2
  64. package/src/generation/grid/layers/GridDataLayer.d.ts.map +1 -1
  65. package/src/generation/grid/layers/GridDataLayer.js +43 -4
  66. package/src/generation/placement/action/GridCellActionPlaceTags.d.ts +7 -1
  67. package/src/generation/placement/action/GridCellActionPlaceTags.d.ts.map +1 -1
  68. package/src/generation/placement/action/GridCellActionPlaceTags.js +42 -16
  69. package/src/generation/placement/action/GridCellActionWriteFilterToLayer.d.ts +5 -0
  70. package/src/generation/placement/action/GridCellActionWriteFilterToLayer.d.ts.map +1 -1
  71. package/src/generation/placement/action/GridCellActionWriteFilterToLayer.js +32 -9
  72. package/src/generation/rules/CellMatcherLayerBitMaskTest.d.ts.map +1 -1
  73. package/src/generation/rules/CellMatcherLayerBitMaskTest.js +6 -2
  74. package/src/generation/wfc/GridWFCCompiledTileSet.d.ts +4 -2
  75. package/src/generation/wfc/GridWFCCompiledTileSet.d.ts.map +1 -1
  76. package/src/generation/wfc/GridWFCCompiledTileSet.js +2 -2
  77. package/src/generation/wfc/GridWFCTileSet.d.ts +16 -7
  78. package/src/generation/wfc/GridWFCTileSet.d.ts.map +1 -1
  79. package/src/generation/wfc/GridWFCTileSet.js +32 -8
  80. package/src/shade/playground/contact_shadows/shader_contact_lab_composite.js +2 -2
  81. package/src/shade/playground/particle_editor/README.md +2 -2
  82. package/src/shade/playground/probe_clipmap/index.html +1 -1
  83. package/src/shade/playground/screen_probes/README.md +5 -5
  84. package/src/shade/playground/screen_probes/main.js +1 -1
  85. package/src/shade/playground/tonemap_sdr/README.md +3 -2
  86. package/src/shade/playground/vgeo_scene/README.md +1 -3
  87. package/src/shade/playground/vgeo_scene/main.js +3 -3
  88. package/src/shade/renderer/Renderer.d.ts +3 -3
  89. package/src/shade/renderer/Renderer.js +4 -4
  90. package/src/shade/renderer/ShadeIndirectLightingMode.js +1 -1
  91. package/src/shade/renderer/acoustics/GPUAcousticLattice.d.ts +1 -1
  92. package/src/shade/renderer/acoustics/GPUAcousticProbes.d.ts +1 -1
  93. package/src/shade/renderer/acoustics/GPUAcoustics.d.ts +1 -1
  94. package/src/shade/renderer/animation/ShadeAnimationClipSerializationAdapter.d.ts +33 -0
  95. package/src/shade/renderer/animation/ShadeAnimationClipSerializationAdapter.d.ts.map +1 -0
  96. package/src/shade/renderer/animation/ShadeAnimationClipSerializationAdapter.js +196 -0
  97. package/src/shade/renderer/animation/SkinSerializationAdapter.d.ts +25 -0
  98. package/src/shade/renderer/animation/SkinSerializationAdapter.d.ts.map +1 -0
  99. package/src/shade/renderer/animation/SkinSerializationAdapter.js +85 -0
  100. package/src/shade/renderer/camera/PerspectiveCamera.js +1 -1
  101. package/src/shade/renderer/deferred/tonemap/ColorGrade.d.ts +11 -13
  102. package/src/shade/renderer/deferred/tonemap/ColorGrade.d.ts.map +1 -1
  103. package/src/shade/renderer/deferred/tonemap/ColorGrade.js +11 -13
  104. package/src/shade/renderer/deferred/tonemap/TONE_MAP_OPERATOR_ACES.d.ts.map +1 -1
  105. package/src/shade/renderer/deferred/tonemap/TONE_MAP_OPERATOR_ACES.js +6 -7
  106. package/src/shade/renderer/deferred/tonemap/ToneMapper.d.ts +1 -1
  107. package/src/shade/renderer/deferred/tonemap/ToneMapper.js +1 -1
  108. package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.d.ts +6 -8
  109. package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.d.ts.map +1 -1
  110. package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.js +7 -10
  111. package/src/shade/renderer/geometry/sdf/MESH_SDF.d.ts +1 -1
  112. package/src/shade/renderer/geometry/sdf/MESH_SDF.js +1 -1
  113. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_classify.d.ts +1 -1
  114. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_classify.js +1 -1
  115. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_evaluate.d.ts +1 -1
  116. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_evaluate.js +1 -1
  117. package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.d.ts +1 -2
  118. package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.d.ts.map +1 -1
  119. package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.js +1 -2
  120. package/src/shade/renderer/geometry/sdf/chunk_scene_point_query_volume_sign.d.ts.map +1 -1
  121. package/src/shade/renderer/geometry/sdf/chunk_scene_point_query_volume_sign.js +2 -1
  122. package/src/shade/renderer/geometry/sdf/surface/MESH_SURFACE_BAKE.d.ts +1 -1
  123. package/src/shade/renderer/geometry/sdf/surface/MESH_SURFACE_BAKE.js +1 -1
  124. package/src/shade/renderer/geometry/virtual/build/level/vgeo_build_cluster_graph.js +1 -1
  125. package/src/shade/renderer/geometry/virtual/format/page/VGEO_DEFAULT_PAGE_SIZE.d.ts +2 -2
  126. package/src/shade/renderer/geometry/virtual/format/page/VGEO_DEFAULT_PAGE_SIZE.js +2 -2
  127. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.d.ts +2 -2
  128. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.js +4 -4
  129. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_instance.d.ts +1 -1
  130. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_instance.js +1 -1
  131. package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_collect.js +1 -1
  132. package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.d.ts +3 -3
  133. package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.js +3 -3
  134. package/src/shade/renderer/global_illumination/brick4/README.md +2 -1
  135. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts +4 -6
  136. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts.map +1 -1
  137. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js +4 -6
  138. package/src/shade/renderer/global_illumination/probe_clipmap/brick/BRICK_MOVERS.d.ts +1 -1
  139. package/src/shade/renderer/global_illumination/probe_clipmap/brick/BRICK_MOVERS.js +1 -1
  140. package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts +1 -1
  141. package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js +2 -2
  142. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/chunk_mesh_brick_texel.d.ts +1 -1
  143. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/chunk_mesh_brick_texel.js +1 -1
  144. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts +1 -1
  145. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js +1 -1
  146. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts +28 -35
  147. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts.map +1 -1
  148. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.js +28 -35
  149. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts +21 -24
  150. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts.map +1 -1
  151. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js +21 -24
  152. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.d.ts +8 -8
  153. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.js +8 -8
  154. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_brdf_density.d.ts +4 -4
  155. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_brdf_density.js +4 -4
  156. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.d.ts +3 -5
  157. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.d.ts.map +1 -1
  158. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.js +3 -5
  159. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_lighting_history.d.ts +4 -4
  160. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_lighting_history.js +4 -4
  161. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts +2 -3
  162. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts.map +1 -1
  163. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.js +2 -3
  164. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_screen_march.d.ts +4 -4
  165. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_screen_march.js +4 -4
  166. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.d.ts +2 -4
  167. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.d.ts.map +1 -1
  168. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.js +2 -4
  169. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.d.ts +2 -4
  170. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.d.ts.map +1 -1
  171. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.js +2 -4
  172. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts +13 -17
  173. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts.map +1 -1
  174. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.js +13 -17
  175. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.d.ts +11 -14
  176. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.d.ts.map +1 -1
  177. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.js +11 -14
  178. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_pick.d.ts +2 -2
  179. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_pick.js +2 -2
  180. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_place.d.ts +9 -9
  181. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_place.js +9 -9
  182. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts +15 -18
  183. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts.map +1 -1
  184. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.js +16 -19
  185. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.d.ts +10 -11
  186. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.d.ts.map +1 -1
  187. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.js +11 -12
  188. package/src/shade/renderer/hair/GPUHairSystem.d.ts.map +1 -1
  189. package/src/shade/renderer/hair/GPUHairSystem.js +16 -7
  190. package/src/shade/renderer/hair/HAIR.d.ts +5 -3
  191. package/src/shade/renderer/hair/HAIR.d.ts.map +1 -1
  192. package/src/shade/renderer/hair/HAIR.js +6 -4
  193. package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts +9 -8
  194. package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts.map +1 -1
  195. package/src/shade/renderer/hair/chunk_hair_bsdf.js +10 -9
  196. package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts +5 -6
  197. package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts.map +1 -1
  198. package/src/shade/renderer/hair/chunk_hair_dual_scattering.js +5 -6
  199. package/src/shade/renderer/hair/hair_lighting.d.ts +3 -3
  200. package/src/shade/renderer/hair/hair_lighting.d.ts.map +1 -1
  201. package/src/shade/renderer/hair/hair_lighting.js +4 -5
  202. package/src/shade/renderer/hair/hair_scattering_lut.d.ts +5 -5
  203. package/src/shade/renderer/hair/hair_scattering_lut.js +5 -5
  204. package/src/shade/renderer/hair/hair_shadow_draw.d.ts +10 -10
  205. package/src/shade/renderer/hair/hair_shadow_draw.d.ts.map +1 -1
  206. package/src/shade/renderer/hair/hair_shadow_draw.js +21 -17
  207. package/src/shade/renderer/hair/shader_hair_cull.d.ts.map +1 -1
  208. package/src/shade/renderer/hair/shader_hair_cull.js +6 -2
  209. package/src/shade/renderer/hair/shader_hair_roots.d.ts +2 -2
  210. package/src/shade/renderer/hair/shader_hair_roots.js +2 -2
  211. package/src/shade/renderer/hair/shader_hair_shadow_list.d.ts +5 -4
  212. package/src/shade/renderer/hair/shader_hair_shadow_list.d.ts.map +1 -1
  213. package/src/shade/renderer/hair/shader_hair_shadow_list.js +10 -12
  214. package/src/shade/renderer/light/environment/DEFINES.d.ts +1 -1
  215. package/src/shade/renderer/light/environment/DEFINES.js +1 -1
  216. package/src/shade/renderer/light/environment/shader_convolve_reflection_map_from_blurred.js +2 -2
  217. package/src/shade/renderer/loader/SceneNodeSerializationAdapter.d.ts +38 -0
  218. package/src/shade/renderer/loader/SceneNodeSerializationAdapter.d.ts.map +1 -0
  219. package/src/shade/renderer/loader/SceneNodeSerializationAdapter.js +198 -0
  220. package/src/shade/renderer/loader/mtf/MTFTexture.d.ts +88 -0
  221. package/src/shade/renderer/loader/mtf/MTFTexture.d.ts.map +1 -0
  222. package/src/shade/renderer/loader/mtf/MTFTexture.js +159 -0
  223. package/src/shade/renderer/loader/mtf/MTFTextureSerializationAdapter.d.ts +30 -0
  224. package/src/shade/renderer/loader/mtf/MTFTextureSerializationAdapter.d.ts.map +1 -0
  225. package/src/shade/renderer/loader/mtf/MTFTextureSerializationAdapter.js +136 -0
  226. package/src/shade/renderer/loader/mtf/MTF_PACKAGE_MAGIC.d.ts +7 -0
  227. package/src/shade/renderer/loader/mtf/MTF_PACKAGE_MAGIC.d.ts.map +1 -0
  228. package/src/shade/renderer/loader/mtf/MTF_PACKAGE_MAGIC.js +6 -0
  229. package/src/shade/renderer/loader/mtf/MTF_PACKAGE_VERSION.d.ts +8 -0
  230. package/src/shade/renderer/loader/mtf/MTF_PACKAGE_VERSION.d.ts.map +1 -0
  231. package/src/shade/renderer/loader/mtf/MTF_PACKAGE_VERSION.js +7 -0
  232. package/src/shade/renderer/loader/mtf/MTF_TEXTURE_MAGIC.d.ts +7 -0
  233. package/src/shade/renderer/loader/mtf/MTF_TEXTURE_MAGIC.d.ts.map +1 -0
  234. package/src/shade/renderer/loader/mtf/MTF_TEXTURE_MAGIC.js +6 -0
  235. package/src/shade/renderer/loader/mtf/MTF_TEXTURE_VERSION.d.ts +7 -0
  236. package/src/shade/renderer/loader/mtf/MTF_TEXTURE_VERSION.d.ts.map +1 -0
  237. package/src/shade/renderer/loader/mtf/MTF_TEXTURE_VERSION.js +6 -0
  238. package/src/shade/renderer/loader/mtf/load_mtf.d.ts +41 -0
  239. package/src/shade/renderer/loader/mtf/load_mtf.d.ts.map +1 -0
  240. package/src/shade/renderer/loader/mtf/load_mtf.js +73 -0
  241. package/src/shade/renderer/loader/mtf/mtf_bundle_textures.d.ts +19 -0
  242. package/src/shade/renderer/loader/mtf/mtf_bundle_textures.d.ts.map +1 -0
  243. package/src/shade/renderer/loader/mtf/mtf_bundle_textures.js +57 -0
  244. package/src/shade/renderer/loader/mtf/mtf_encode_texture.d.ts +9 -0
  245. package/src/shade/renderer/loader/mtf/mtf_encode_texture.d.ts.map +1 -0
  246. package/src/shade/renderer/loader/mtf/mtf_encode_texture.js +78 -0
  247. package/src/shade/renderer/loader/mtf/mtf_export.d.ts +45 -0
  248. package/src/shade/renderer/loader/mtf/mtf_export.d.ts.map +1 -0
  249. package/src/shade/renderer/loader/mtf/mtf_export.js +161 -0
  250. package/src/shade/renderer/loader/mtf/mtf_is_texture.d.ts +9 -0
  251. package/src/shade/renderer/loader/mtf/mtf_is_texture.d.ts.map +1 -0
  252. package/src/shade/renderer/loader/mtf/mtf_is_texture.js +12 -0
  253. package/src/shade/renderer/loader/mtf/mtf_read_collection.d.ts +24 -0
  254. package/src/shade/renderer/loader/mtf/mtf_read_collection.d.ts.map +1 -0
  255. package/src/shade/renderer/loader/mtf/mtf_read_collection.js +37 -0
  256. package/src/shade/renderer/loader/mtf/mtf_read_scene.d.ts +27 -0
  257. package/src/shade/renderer/loader/mtf/mtf_read_scene.d.ts.map +1 -0
  258. package/src/shade/renderer/loader/mtf/mtf_read_scene.js +121 -0
  259. package/src/shade/renderer/loader/mtf/mtf_read_textures.d.ts +18 -0
  260. package/src/shade/renderer/loader/mtf/mtf_read_textures.d.ts.map +1 -0
  261. package/src/shade/renderer/loader/mtf/mtf_read_textures.js +51 -0
  262. package/src/shade/renderer/loader/mtf/mtf_resolve_uri.d.ts +21 -0
  263. package/src/shade/renderer/loader/mtf/mtf_resolve_uri.d.ts.map +1 -0
  264. package/src/shade/renderer/loader/mtf/mtf_resolve_uri.js +98 -0
  265. package/src/shade/renderer/loader/mtf/mtf_serialization_registry.d.ts +25 -0
  266. package/src/shade/renderer/loader/mtf/mtf_serialization_registry.d.ts.map +1 -0
  267. package/src/shade/renderer/loader/mtf/mtf_serialization_registry.js +51 -0
  268. package/src/shade/renderer/loader/mtf/mtf_texture_read.d.ts +20 -0
  269. package/src/shade/renderer/loader/mtf/mtf_texture_read.d.ts.map +1 -0
  270. package/src/shade/renderer/loader/mtf/mtf_texture_read.js +80 -0
  271. package/src/shade/renderer/loader/mtf/mtf_texture_select.d.ts +24 -0
  272. package/src/shade/renderer/loader/mtf/mtf_texture_select.d.ts.map +1 -0
  273. package/src/shade/renderer/loader/mtf/mtf_texture_select.js +42 -0
  274. package/src/shade/renderer/loader/mtf/mtf_texture_write.d.ts +31 -0
  275. package/src/shade/renderer/loader/mtf/mtf_texture_write.d.ts.map +1 -0
  276. package/src/shade/renderer/loader/mtf/mtf_texture_write.js +87 -0
  277. package/src/shade/renderer/loader/mtf/mtf_write.d.ts +36 -0
  278. package/src/shade/renderer/loader/mtf/mtf_write.d.ts.map +1 -0
  279. package/src/shade/renderer/loader/mtf/mtf_write.js +161 -0
  280. package/src/shade/renderer/material/StandardShadeMaterialSerializationAdapter.d.ts +39 -0
  281. package/src/shade/renderer/material/StandardShadeMaterialSerializationAdapter.d.ts.map +1 -0
  282. package/src/shade/renderer/material/StandardShadeMaterialSerializationAdapter.js +207 -0
  283. package/src/shade/renderer/material/dispatch/MaterialDispatch.d.ts +1 -2
  284. package/src/shade/renderer/material/dispatch/MaterialDispatch.d.ts.map +1 -1
  285. package/src/shade/renderer/material/dispatch/MaterialDispatch.js +1 -2
  286. package/src/shade/renderer/material/standard/fragment_gbuffer.d.ts.map +1 -1
  287. package/src/shade/renderer/material/standard/fragment_gbuffer.js +2 -1
  288. package/src/shade/renderer/material/util/dielectric_specular_color.d.ts +1 -1
  289. package/src/shade/renderer/material/util/dielectric_specular_color.js +1 -1
  290. package/src/shade/renderer/postprocess/dof/gather/DOF2_CONFIG.d.ts +1 -1
  291. package/src/shade/renderer/postprocess/dof/gather/DOF2_CONFIG.js +1 -1
  292. package/src/shade/renderer/postprocess/dof/gather/DOF2_PRESETS.js +1 -1
  293. package/src/shade/renderer/postprocess/dof/gather/DOF2_SETTINGS_STRUCT.d.ts +1 -1
  294. package/src/shade/renderer/postprocess/dof/gather/DOF2_SETTINGS_STRUCT.js +1 -1
  295. package/src/shade/renderer/postprocess/dof/gather/DOF2_TEXTURE_FORMAT.d.ts +1 -1
  296. package/src/shade/renderer/postprocess/dof/gather/DOF2_TEXTURE_FORMAT.js +1 -1
  297. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts +3 -4
  298. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts.map +1 -1
  299. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.js +3 -4
  300. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts +1 -1
  301. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.js +1 -1
  302. package/src/shade/renderer/postprocess/eye/GPUCameraExposureManager.d.ts +1 -1
  303. package/src/shade/renderer/postprocess/eye/GPUCameraExposureManager.js +1 -1
  304. package/src/shade/renderer/postprocess/gtao/ao_reproject_shader.d.ts.map +1 -1
  305. package/src/shade/renderer/postprocess/gtao/ao_reproject_shader.js +2 -3
  306. package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.d.ts +1 -2
  307. package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.d.ts.map +1 -1
  308. package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.js +1 -2
  309. package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.d.ts +2 -3
  310. package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.d.ts.map +1 -1
  311. package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.js +2 -3
  312. package/src/shade/renderer/postprocess/taa/filter_blackman_harris.d.ts +1 -1
  313. package/src/shade/renderer/postprocess/taa/filter_blackman_harris.js +1 -1
  314. package/src/shade/renderer/rasterize/native/depth/shadow_cascade_rasterization_pass_descriptor.d.ts +1 -1
  315. package/src/shade/renderer/rasterize/native/depth/shadow_cascade_rasterization_pass_descriptor.js +1 -1
  316. package/src/shade/renderer/rasterize/native/depth/shadow_rasterization_alpha_tested_pass_descriptor.js +1 -1
  317. package/src/shade/renderer/restir/di/ReSTIRDI.d.ts +3 -3
  318. package/src/shade/renderer/restir/di/ReSTIRDI.js +3 -3
  319. package/src/shade/renderer/restir/di/chunk_restir_trace_visibility.d.ts +1 -1
  320. package/src/shade/renderer/restir/di/chunk_restir_trace_visibility.js +1 -1
  321. package/src/shade/renderer/scene/optimization/source_to_sampler2d.d.ts.map +1 -1
  322. package/src/shade/renderer/scene/optimization/source_to_sampler2d.js +3 -1
  323. package/src/shade/renderer/scene/serialization/STANDARD_MATERIAL_SERIALIZED_BYTE_SIZE.d.ts +5 -5
  324. package/src/shade/renderer/scene/serialization/STANDARD_MATERIAL_SERIALIZED_BYTE_SIZE.js +5 -5
  325. package/src/shade/renderer/scene/serialization/deserialize_scene.d.ts.map +1 -1
  326. package/src/shade/renderer/scene/serialization/deserialize_scene.js +491 -528
  327. package/src/shade/renderer/scene/serialization/serialize_scene.d.ts +0 -10
  328. package/src/shade/renderer/scene/serialization/serialize_scene.d.ts.map +1 -1
  329. package/src/shade/renderer/scene/serialization/serialize_scene.js +15 -71
  330. package/src/shade/renderer/shader/chunk/brdf/chunk_MIN_DIELECTRICS_F0.d.ts +1 -1
  331. package/src/shade/renderer/shader/chunk/brdf/chunk_MIN_DIELECTRICS_F0.js +1 -1
  332. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts +1 -2
  333. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts.map +1 -1
  334. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.js +1 -2
  335. package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.d.ts +4 -5
  336. package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.d.ts.map +1 -1
  337. package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.js +4 -5
  338. package/src/shade/renderer/shader/chunk/color/grade/chunk_color_grade.js +2 -2
  339. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_aces_ue_matrices.d.ts +2 -2
  340. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_aces_ue_matrices.js +2 -2
  341. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.d.ts +14 -17
  342. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.d.ts.map +1 -1
  343. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.js +18 -21
  344. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris.d.ts +1 -1
  345. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris.js +1 -1
  346. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris229.d.ts +1 -1
  347. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris229.js +1 -1
  348. package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.d.ts +3 -4
  349. package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.d.ts.map +1 -1
  350. package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.js +3 -4
  351. package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.d.ts +1 -1
  352. package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.js +1 -1
  353. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +3 -3
  354. package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.d.ts +6 -8
  355. package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.d.ts.map +1 -1
  356. package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.js +8 -10
  357. package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.d.ts +5 -7
  358. package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.d.ts.map +1 -1
  359. package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.js +5 -7
  360. package/src/shade/renderer/texture/format/gpu_texture_format_without_srgb.d.ts +11 -0
  361. package/src/shade/renderer/texture/format/gpu_texture_format_without_srgb.d.ts.map +1 -0
  362. package/src/shade/renderer/texture/format/gpu_texture_format_without_srgb.js +14 -0
  363. package/src/shade/renderer/texture/texture_role_image_quality.d.ts +10 -0
  364. package/src/shade/renderer/texture/texture_role_image_quality.d.ts.map +1 -0
  365. package/src/shade/renderer/texture/texture_role_image_quality.js +29 -0
  366. package/src/shade/renderer/texture/virtual/README.md +257 -257
  367. package/src/shade/renderer/volumetrics/shader_volumetrics_build_lighting.js +2 -2
@@ -1,19 +1,17 @@
1
1
  /**
2
- * Unreal's temperature white balance (`WhiteBalance` in `TonemapCommon.ush`, the default "White Balance" mode) on
3
- * linear Rec.709, as a matrix. Light from a white at `temperature` K, moved along its isotherm by `tint`, becomes
4
- * neutral: a lower temperature cools the picture.
2
+ * Temperature and tint white balance on linear Rec.709, as a matrix. Light from a white at `temperature` K, moved
3
+ * along its isotherm by `tint`, becomes neutral: a lower temperature cools the picture.
5
4
  *
6
- * The source white is on the Planckian locus below 4000 K and on the CIE daylight locus from there, as Unreal's is,
7
- * and the adaptation to D65 is Bradford. At 6500 K and no tint, where Unreal skips the stage, the matrix is the
8
- * identity.
5
+ * The source white is on the Planckian locus below 4000 K and on the CIE daylight locus from there, and the
6
+ * adaptation to D65 is Bradford. At 6500 K and no tint the matrix is the identity.
9
7
  *
10
8
  * @param {Float32Array|Float64Array|number[]} out 9 elements, row-major
11
9
  * @param {number} temperature K
12
- * @param {number} tint offset along the isotherm, in units of 0.05 in CIE 1960 uv; Unreal's range is -1 to 1
10
+ * @param {number} tint offset along the isotherm, in units of 0.05 in CIE 1960 uv
13
11
  */
14
12
  export function m3_white_balance_rec709(out: Float32Array | Float64Array | number[], temperature: number, tint: number): void;
15
13
  /**
16
- * The temperature white balance is neutral at these, and Unreal skips it there.
14
+ * The temperature white balance is neutral at these, and is skipped there.
17
15
  */
18
16
  export const WHITE_BALANCE_NEUTRAL_TEMPERATURE: 6500;
19
17
  export const WHITE_BALANCE_NEUTRAL_TINT: 0;
@@ -1 +1 @@
1
- {"version":3,"file":"m3_white_balance_rec709.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.js"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;GAYG;AACH,6CAJW,YAAY,GAAC,YAAY,GAAC,MAAM,EAAE,eAClC,MAAM,QACN,MAAM,QAsDhB;AAxFD;;GAEG;AACH,qDAAsD;AACtD,2CAA4C"}
1
+ {"version":3,"file":"m3_white_balance_rec709.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.js"],"names":[],"mappings":"AAoCA;;;;;;;;;;GAUG;AACH,6CAJW,YAAY,GAAC,YAAY,GAAC,MAAM,EAAE,eAClC,MAAM,QACN,MAAM,QAsDhB;AArFD;;GAEG;AACH,qDAAsD;AACtD,2CAA4C"}
@@ -13,14 +13,13 @@ const XYZ_TO_REC709 = new Float64Array(9);
13
13
  m3_invert(XYZ_TO_REC709, REC709_TO_XYZ);
14
14
 
15
15
  /**
16
- * The temperature white balance is neutral at these, and Unreal skips it there.
16
+ * The temperature white balance is neutral at these, and is skipped there.
17
17
  */
18
18
  export const WHITE_BALANCE_NEUTRAL_TEMPERATURE = 6500;
19
19
  export const WHITE_BALANCE_NEUTRAL_TINT = 0;
20
20
 
21
21
  /**
22
- * Chromaticity of the Planckian locus at `temperature` K, Krystek's rational fit in CIE 1960 uv, as Unreal's
23
- * `PlanckianLocusChromaticity`.
22
+ * Chromaticity of the Planckian locus at `temperature` K, Krystek's rational fit in CIE 1960 uv.
24
23
  *
25
24
  * @param {number[]} out [x, y]
26
25
  * @param {number} temperature
@@ -36,17 +35,15 @@ const scratch_cat = new Float64Array(9);
36
35
  const scratch_m = new Float64Array(9);
37
36
 
38
37
  /**
39
- * Unreal's temperature white balance (`WhiteBalance` in `TonemapCommon.ush`, the default "White Balance" mode) on
40
- * linear Rec.709, as a matrix. Light from a white at `temperature` K, moved along its isotherm by `tint`, becomes
41
- * neutral: a lower temperature cools the picture.
38
+ * Temperature and tint white balance on linear Rec.709, as a matrix. Light from a white at `temperature` K, moved
39
+ * along its isotherm by `tint`, becomes neutral: a lower temperature cools the picture.
42
40
  *
43
- * The source white is on the Planckian locus below 4000 K and on the CIE daylight locus from there, as Unreal's is,
44
- * and the adaptation to D65 is Bradford. At 6500 K and no tint, where Unreal skips the stage, the matrix is the
45
- * identity.
41
+ * The source white is on the Planckian locus below 4000 K and on the CIE daylight locus from there, and the
42
+ * adaptation to D65 is Bradford. At 6500 K and no tint the matrix is the identity.
46
43
  *
47
44
  * @param {Float32Array|Float64Array|number[]} out 9 elements, row-major
48
45
  * @param {number} temperature K
49
- * @param {number} tint offset along the isotherm, in units of 0.05 in CIE 1960 uv; Unreal's range is -1 to 1
46
+ * @param {number} tint offset along the isotherm, in units of 0.05 in CIE 1960 uv
50
47
  */
51
48
  export function m3_white_balance_rec709(out, temperature, tint) {
52
49
  if (temperature === WHITE_BALANCE_NEUTRAL_TEMPERATURE && tint === WHITE_BALANCE_NEUTRAL_TINT) {
@@ -22,7 +22,7 @@ export const MESH_SDF_BRICK_TEXEL_COUNT: number;
22
22
  /**
23
23
  * The band, in voxels of the level: what a texel stores is the signed distance clamped to
24
24
  * `±MESH_SDF_BAND_VOXELS` voxels, encoded `saturate(d / 2R + 0.5)` in `r8unorm`. One step of the
25
- * encoding is 8/255 = 0.031 voxel. Unreal's mesh and global distance fields use the same band.
25
+ * encoding is 8/255 = 0.031 voxel.
26
26
  * @type {number}
27
27
  */
28
28
  export const MESH_SDF_BAND_VOXELS: number;
@@ -26,7 +26,7 @@ export const MESH_SDF_BRICK_TEXEL_COUNT = MESH_SDF_BRICK_TEXELS * MESH_SDF_BRICK
26
26
  /**
27
27
  * The band, in voxels of the level: what a texel stores is the signed distance clamped to
28
28
  * `±MESH_SDF_BAND_VOXELS` voxels, encoded `saturate(d / 2R + 0.5)` in `r8unorm`. One step of the
29
- * encoding is 8/255 = 0.031 voxel. Unreal's mesh and global distance fields use the same band.
29
+ * encoding is 8/255 = 0.031 voxel.
30
30
  * @type {number}
31
31
  */
32
32
  export const MESH_SDF_BAND_VOXELS = 4;
@@ -16,7 +16,7 @@ export const MESH_SDF_CLASSIFY_SETTINGS: WebGPUStruct;
16
16
  * One BLAS query a brick, for the nearest point within the band plus the brick's half-diagonal of its
17
17
  * centre. Past that no texel of the brick can be within the band, and the brick is EMPTY: outside,
18
18
  * whichever side of the surface it is on, since the vote casts no ray where the surface is not within
19
- * the band (UE 5.4's). Otherwise the brick goes onto the ring as `(geometry, generation, brick, 0)`,
19
+ * the band. Otherwise the brick goes onto the ring as `(geometry, generation, brick, 0)`,
20
20
  * for evaluate to settle. Either way its entry starts EMPTY, which is what a freed range must find in
21
21
  * an entry never stored, and its number `MESH_SDF_UNNUMBERED`, until evaluate gives it a slot.
22
22
  *
@@ -73,7 +73,7 @@ mesh_sdf_add_blas_resources(resources.createGroup());
73
73
  * One BLAS query a brick, for the nearest point within the band plus the brick's half-diagonal of its
74
74
  * centre. Past that no texel of the brick can be within the band, and the brick is EMPTY: outside,
75
75
  * whichever side of the surface it is on, since the vote casts no ray where the surface is not within
76
- * the band (UE 5.4's). Otherwise the brick goes onto the ring as `(geometry, generation, brick, 0)`,
76
+ * the band. Otherwise the brick goes onto the ring as `(geometry, generation, brick, 0)`,
77
77
  * for evaluate to settle. Either way its entry starts EMPTY, which is what a freed range must find in
78
78
  * an entry never stored, and its number `MESH_SDF_UNNUMBERED`, until evaluate gives it a slot.
79
79
  *
@@ -5,7 +5,7 @@ export const MESH_SDF_EVALUATE_SETTINGS: WebGPUStruct;
5
5
  /**
6
6
  * Bake step 3, evaluate (PROBE_CLIPMAP_PROPOSAL_2026_10_27.md §6.4): a thread a texel of each brick
7
7
  * taken, eight 64-lane workgroups a brick, dispatched by take. Each texel is `blas_query_band_sdf`:
8
- * the nearest point within the band, signed by UE 5.4's vote of 98 rays one band long, and none in a
8
+ * the nearest point within the band, signed by a hemisphere vote of 98 rays one band long, and none in a
9
9
  * geometry baked two-sided. The vote runs in one thread, as the dense build mapped it: a thread with
10
10
  * more texels than one runs their votes one after another, which on the 4090 made one brick cost a
11
11
  * millisecond. Its byte goes to staging, a word a texel, for store.
@@ -42,7 +42,7 @@ mesh_sdf_add_blas_resources(resources.createGroup());
42
42
  /**
43
43
  * Bake step 3, evaluate (PROBE_CLIPMAP_PROPOSAL_2026_10_27.md §6.4): a thread a texel of each brick
44
44
  * taken, eight 64-lane workgroups a brick, dispatched by take. Each texel is `blas_query_band_sdf`:
45
- * the nearest point within the band, signed by UE 5.4's vote of 98 rays one band long, and none in a
45
+ * the nearest point within the band, signed by a hemisphere vote of 98 rays one band long, and none in a
46
46
  * geometry baked two-sided. The vote runs in one thread, as the dense build mapped it: a thread with
47
47
  * more texels than one runs their votes one after another, which on the 4090 made one brick cost a
48
48
  * millisecond. Its byte goes to staging, a word a texel, for store.
@@ -1,6 +1,5 @@
1
1
  /**
2
- * Strata along a side of each of the vote's two hemispheres, as UE 5.4 has them: 7 × 7 directions a
3
- * hemisphere.
2
+ * Strata along a side of each of the vote's two hemispheres: 7 × 7 directions a hemisphere.
4
3
  * @type {number}
5
4
  */
6
5
  export const BLAS_BAND_VOTE_STRATA: number;
@@ -1 +1 @@
1
- {"version":3,"file":"chunk_blas_query_band_sdf.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.js"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,oCAFU,MAAM,CAEuB;AAEvC;;;GAGG;AACH,kCAFU,MAAM,CAEqE;AAErF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wCAFU,SAAS,CAgHjB;0BAlJwB,oCAAoC"}
1
+ {"version":3,"file":"chunk_blas_query_band_sdf.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.js"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,oCAFU,MAAM,CAEuB;AAEvC;;;GAGG;AACH,kCAFU,MAAM,CAEqE;AAErF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wCAFU,SAAS,CAgHjB;0BAjJwB,oCAAoC"}
@@ -15,8 +15,7 @@ import { CodeChunk } from "../../shader/compiler/CodeChunk.js";
15
15
  import { BVH8_TRAVERSAL_STACK_SIZE } from "../../shader/chunk/bvh/bvh8/webgpu/BVH8_MAX_DEPTH.js";
16
16
 
17
17
  /**
18
- * Strata along a side of each of the vote's two hemispheres, as UE 5.4 has them: 7 × 7 directions a
19
- * hemisphere.
18
+ * Strata along a side of each of the vote's two hemispheres: 7 × 7 directions a hemisphere.
20
19
  * @type {number}
21
20
  */
22
21
  export const BLAS_BAND_VOTE_STRATA = 7;
@@ -1 +1 @@
1
- {"version":3,"file":"chunk_scene_point_query_volume_sign.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/geometry/sdf/chunk_scene_point_query_volume_sign.js"],"names":[],"mappings":"AAoBA,4DAsEE;0BA9EwB,oCAAoC"}
1
+ {"version":3,"file":"chunk_scene_point_query_volume_sign.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/geometry/sdf/chunk_scene_point_query_volume_sign.js"],"names":[],"mappings":"AAqBA,4DAsEE;0BA/EwB,oCAAoC"}
@@ -13,7 +13,8 @@ import { chunk_compute_normal_matrix_from_m4 } from "../../shader/chunk/geometry
13
13
  import { CodeChunk } from "../../shader/compiler/CodeChunk.js";
14
14
 
15
15
  /**
16
- * Lumen talk from Epic Games, SIGGRAPH 2022 uses 64 rays (see slide 64)
16
+ * Rays cast for the sign. 64 is the count given in Wright et al., "Lumen: Real-time Global
17
+ * Illumination in Unreal Engine 5", SIGGRAPH 2022 Advances in Real-Time Rendering (slide 64).
17
18
  * @type {number}
18
19
  */
19
20
  const POINT_COUNT = 64;
@@ -7,7 +7,7 @@
7
7
  export const MESH_SURFACE_TEXEL_RAYS: number;
8
8
  /**
9
9
  * How far out from a texel's surface point its rays leave, in voxels of its level: where a ray of
10
- * the GI coming in over the surface stands on it, UE's half voxel (PROBE_CLIPMAP_PROPOSAL_2026_10_27.md
10
+ * the GI coming in over the surface stands on it, half a voxel (PROBE_CLIPMAP_PROPOSAL_2026_10_27.md
11
11
  * §7.9), so that the texel holds the surface as such rays meet it.
12
12
  * @type {number}
13
13
  */
@@ -38,7 +38,7 @@ export const MESH_SURFACE_TEXEL_RAYS = 64;
38
38
 
39
39
  /**
40
40
  * How far out from a texel's surface point its rays leave, in voxels of its level: where a ray of
41
- * the GI coming in over the surface stands on it, UE's half voxel (PROBE_CLIPMAP_PROPOSAL_2026_10_27.md
41
+ * the GI coming in over the surface stands on it, half a voxel (PROBE_CLIPMAP_PROPOSAL_2026_10_27.md
42
42
  * §7.9), so that the texel holds the surface as such rays meet it.
43
43
  * @type {number}
44
44
  */
@@ -6,7 +6,7 @@ const scratch_pair = new Float64Array(8);
6
6
  const scratch_sphere = new Float64Array(4);
7
7
 
8
8
  /**
9
- * Non-sibling shared-edge weight boost (UE 5.4 `ClusterDAG.cpp:235`).
9
+ * Non-sibling shared-edge weight boost.
10
10
  *
11
11
  * Sibling clusters produced by the same parent step just split apart because they exceeded a single
12
12
  * cluster's triangle/vertex cap; weighting edges to neighbours from *different* groups `16x` higher
@@ -6,8 +6,8 @@
6
6
  * different number than the builder laid pages out to refuses every container it is handed. Moving
7
7
  * this moves both ends together.
8
8
  *
9
- * **64 KiB, and the reason is that there is only one of it.** Nanite carries two page sizes — 128 KB
10
- * and 32 KB — for different purposes. We do not want two page types: one size is what makes a slot
9
+ * **64 KiB, and the reason is that there is only one of it.** We do not want two page types, a size
10
+ * for each purpose: one size is what makes a slot
11
11
  * address a multiply and a residency budget a page count, and every structure downstream of the
12
12
  * bound gets simpler for there being a single number. So the question is which single number, and it
13
13
  * is pulled three ways:
@@ -6,8 +6,8 @@
6
6
  * different number than the builder laid pages out to refuses every container it is handed. Moving
7
7
  * this moves both ends together.
8
8
  *
9
- * **64 KiB, and the reason is that there is only one of it.** Nanite carries two page sizes — 128 KB
10
- * and 32 KB — for different purposes. We do not want two page types: one size is what makes a slot
9
+ * **64 KiB, and the reason is that there is only one of it.** We do not want two page types, a size
10
+ * for each purpose: one size is what makes a slot
11
11
  * address a multiply and a residency budget a page count, and every structure downstream of the
12
12
  * bound gets simpler for there being a single number. So the question is which single number, and it
13
13
  * is pulled three ways:
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Forward camera-centered `LocalToTranslatedWorld` sphere error projection and camera-relative
3
- * Gribb-Hartmann frustum tests.
2
+ * Forward camera-centered sphere error projection, through the instance's `local_to_translated_world`
3
+ * rows, and camera-relative Gribb-Hartmann frustum tests.
4
4
  *
5
5
  * Every buffer named here must be declared by the importing shader (`instances`, `vg_arena`).
6
6
  *
@@ -3,8 +3,8 @@ import { chunk_vgeo_cut_arena } from "./chunk_vgeo_cut_arena.js";
3
3
  import { chunk_vgeo_cut_instance_record } from "./chunk_vgeo_cut_instance_record.js";
4
4
 
5
5
  /**
6
- * Forward camera-centered `LocalToTranslatedWorld` sphere error projection and camera-relative
7
- * Gribb-Hartmann frustum tests.
6
+ * Forward camera-centered sphere error projection, through the instance's `local_to_translated_world`
7
+ * rows, and camera-relative Gribb-Hartmann frustum tests.
8
8
  *
9
9
  * Every buffer named here must be declared by the importing shader (`instances`, `vg_arena`).
10
10
  *
@@ -32,8 +32,8 @@ fn vg_transform_to_translated_world(instance_base: u32, point_obj: vec3<f32>) ->
32
32
  }
33
33
 
34
34
  /**
35
- * Forward UE 5.4 Nanite camera-centered world-space error projection:
36
- * - \`center_cam = LocalToTranslatedWorld * vec4f(sphere.xyz, 1.0)\`
35
+ * Forward camera-centered world-space error projection:
36
+ * - \`center_cam = local_to_translated_world * vec4f(sphere.xyz, 1.0)\`
37
37
  * - \`radius_world = inst.sigma_max * sphere.w\`
38
38
  * - Perspective (\`distance_weight > 0\`): \`(inst.sigma_max * error) * projection_k / d_world\`
39
39
  * (or \`VG_PROJECTION_MAX\` when \`d_world <= 0\`).
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Forward camera-centered `LocalToTranslatedWorld` instance setup, pure object-space backface
2
+ * Forward camera-centered `local_to_translated_world` instance setup, pure object-space backface
3
3
  * cone vector setup, and geometry record reservation for virtual-geometry cut passes.
4
4
  *
5
5
  * Uses exact `mat3_singular_values(L)` (`sv.x = sigma_max`, `sv.y = sigma_min`) and `mat3_inverse`
@@ -7,7 +7,7 @@ import { VGEO_INSTANCE_WORDS } from "../layout/VGEO_INSTANCE_WORDS.js";
7
7
  import { chunk_vgeo_cut_instance_record } from "./chunk_vgeo_cut_instance_record.js";
8
8
 
9
9
  /**
10
- * Forward camera-centered `LocalToTranslatedWorld` instance setup, pure object-space backface
10
+ * Forward camera-centered `local_to_translated_world` instance setup, pure object-space backface
11
11
  * cone vector setup, and geometry record reservation for virtual-geometry cut passes.
12
12
  *
13
13
  * Uses exact `mat3_singular_values(L)` (`sv.x = sigma_max`, `sv.y = sigma_min`) and `mat3_inverse`
@@ -21,7 +21,7 @@ import { VGEO_CUT_WORKGROUP_SIZE } from "./VGEO_CUT_WORKGROUP_SIZE.js";
21
21
 
22
22
  /**
23
23
  * Pick virtual-geometry instances out of a list of visible meshes and write their camera-centered
24
- * `LocalToTranslatedWorld` transforms, exact singular values (`mat3_singular_values`), camera-relative
24
+ * `local_to_translated_world` transforms, exact singular values (`mat3_singular_values`), camera-relative
25
25
  * Gribb-Hartmann frustum planes, HZB `mvp` matrices, and pure object-space backface cone vector.
26
26
  *
27
27
  * @author Alex Goldring
@@ -2,8 +2,8 @@
2
2
  * Word offsets within one 304-byte (`76`-word) instance record — a visible VG instance, as the cut
3
3
  * kernel sees it.
4
4
  *
5
- * Uses UE 5.4 Nanite's forward camera-centered `LocalToTranslatedWorld` formulation (`3 × vec4f`
6
- * rows mapping object-space coordinates directly into camera-centered world space) together with
5
+ * Uses a forward camera-centered transform, `LOCAL_TO_TRANSLATED_WORLD` (`3 × vec4f` rows
6
+ * mapping object-space coordinates directly into camera-centered world space), together with
7
7
  * the upper-left `3×3`'s exact largest singular value `SIGMA_MAX`, plus a single pure object-space
8
8
  * `CONE_CULL` `vec4f` (`(-e_obj | ortho_dir_obj, cone_sign)`) for branchless backface cone culling.
9
9
  *
@@ -13,7 +13,7 @@
13
13
  export const VGEO_INSTANCE_OFFSET: Readonly<{
14
14
  /**
15
15
  * Three rows of the `3×4` camera-centered `[L | t_cam]` matrix (`array<vec4<f32>, 3>`, 12 words),
16
- * so `center_cam = LocalToTranslatedWorld * vec4f(sphere.xyz, 1.0)` is three dot products.
16
+ * so `center_cam = [L | t_cam] * vec4f(sphere.xyz, 1.0)` is three dot products.
17
17
  */
18
18
  LOCAL_TO_TRANSLATED_WORLD: 0;
19
19
  /**
@@ -2,8 +2,8 @@
2
2
  * Word offsets within one 304-byte (`76`-word) instance record — a visible VG instance, as the cut
3
3
  * kernel sees it.
4
4
  *
5
- * Uses UE 5.4 Nanite's forward camera-centered `LocalToTranslatedWorld` formulation (`3 × vec4f`
6
- * rows mapping object-space coordinates directly into camera-centered world space) together with
5
+ * Uses a forward camera-centered transform, `LOCAL_TO_TRANSLATED_WORLD` (`3 × vec4f` rows
6
+ * mapping object-space coordinates directly into camera-centered world space), together with
7
7
  * the upper-left `3×3`'s exact largest singular value `SIGMA_MAX`, plus a single pure object-space
8
8
  * `CONE_CULL` `vec4f` (`(-e_obj | ortho_dir_obj, cone_sign)`) for branchless backface cone culling.
9
9
  *
@@ -13,7 +13,7 @@
13
13
  export const VGEO_INSTANCE_OFFSET = Object.freeze({
14
14
  /**
15
15
  * Three rows of the `3×4` camera-centered `[L | t_cam]` matrix (`array<vec4<f32>, 3>`, 12 words),
16
- * so `center_cam = LocalToTranslatedWorld * vec4f(sphere.xyz, 1.0)` is three dot products.
16
+ * so `center_cam = [L | t_cam] * vec4f(sphere.xyz, 1.0)` is three dot products.
17
17
  */
18
18
  LOCAL_TO_TRANSLATED_WORLD: 0,
19
19
  /**
@@ -1,4 +1,5 @@
1
- Similar to https://dev.epicgames.com/documentation/en-us/unreal-engine/volumetric-lightmaps-in-unreal-engine
1
+ A sparse volumetric lightmap. The technique is described in the public documentation page "Volumetric Lightmaps",
2
+ https://dev.epicgames.com/documentation/en-us/unreal-engine/volumetric-lightmaps-in-unreal-engine
2
3
 
3
4
  Basic idea is to have an oct-tree-like structure with a high branching factor.
4
5
 
@@ -43,8 +43,7 @@ export class ProbeClipmapSettings {
43
43
  set brick_voxel_size(v: number);
44
44
  /**
45
45
  * The finest cascade's voxel, metres; every cascade doubles it. The default puts eight voxels across
46
- * one cell of the finest probe cascade at the default {@link probe_spacing}, and is of the order of
47
- * Unreal's global distance field (19.8 cm at its finest clipmap). Structure.
46
+ * one cell of the finest probe cascade at the default {@link probe_spacing}. Structure.
48
47
  * @returns {number}
49
48
  */
50
49
  get brick_voxel_size(): number;
@@ -76,7 +75,7 @@ export class ProbeClipmapSettings {
76
75
  set mesh_sdf_max_bricks(v: number);
77
76
  /**
78
77
  * Bricks per axis a geometry's distance field may have before its voxel grows to fit: a safety net,
79
- * not a budget. 18 bricks are 126 voxels, Unreal's per-mesh cap at unit scale; at the default voxel
78
+ * not a budget. 18 bricks are 126 voxels; at the default voxel
80
79
  * the grid reaches 15.75 m, so a mesh spans 14.75 m, a band short of it at each end, before it is
81
80
  * baked coarser than asked. A change bakes every cached geometry again.
82
81
  * @returns {number}
@@ -157,9 +156,8 @@ export class ProbeClipmapSettings {
157
156
  */
158
157
  set probe_spacing(v: number);
159
158
  /**
160
- * Metres between probes in the finest cascade; every cascade doubles it. Lumen's world-space
161
- * radiance cache spaces its finest probes 1.04 m apart, and DDGI recommends 1 to 2 m for human-scale
162
- * scenes. Structure.
159
+ * Metres between probes in the finest cascade; every cascade doubles it. DDGI recommends 1 to
160
+ * 2 m for human-scale scenes. Structure.
163
161
  * @returns {number}
164
162
  */
165
163
  get probe_spacing(): number;
@@ -1 +1 @@
1
- {"version":3,"file":"ProbeClipmapSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;GAgBG;AACH;IAaI;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAyBD;;OAEG;IACH,gCAKC;IAlBD;;;;;OAKG;IACH,+BAEC;IAuBD;;OAEG;IACH,kCAIC;IAhBD;;;;OAIG;IACH,iCAEC;IAuBD;;OAEG;IACH,mCAKC;IAlBD;;;;;OAKG;IACH,kCAEC;IAyBD;;;OAGG;IACH,mCAMC;IArBD;;;;;;OAMG;IACH,kCAEC;IAsCD;;;OAGG;IACH,oCAKC;IA/BD;;;;;;;;;;;;;;;;;OAiBG;IACH,mCAEC;IAsCD;;;OAGG;IACH,mCAIC;IA/BD;;;;;;;;;;;;;;;;;;OAkBG;IACH,kCAEC;IAuBD;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAyBD;;OAEG;IACH,6BAKC;IAlBD;;;;;OAKG;IACH,4BAEC;IAuBD;;;OAGG;IACH,mCAMC;IAnBD;;;;OAIG;IACH,kCAEC;IAyBD;;OAEG;IACH,gCAKC;IAjBD;;;;OAIG;IACH,+BAEC;IAuBD;;;;OAIG;IACH,8BAKC;IAnBD;;;;OAIG;IACH,6BAEC;IAyBD;;;OAGG;IACH,0BAIC;IAjBD;;;;OAIG;IACH,yBAEC;IAYD;;;;;;OAMG;IACH,iCAEC;IAED;;;OAGG;IACH,+BAEC;IAeD;;;OAGG;IACH,yCAIC;IAnBD;;;;;;OAMG;IACH,wCAEC;IAuBD;;OAEG;IACH,+CAMC;IAlBD;;;;OAIG;IACH,8CAEC;IAwBD;;OAEG;IACH,4CAKC;IAjBD;;;;OAIG;IACH,2CAEC;IAuBD;;;OAGG;IACH,0CAKC;IAlBD;;;;OAIG;IACH,yCAEC;IA2BD;;OAEG;IACH,+BAKC;IApBD;;;;;;;OAOG;IACH,8BAEC;IAyBD;;OAEG;IACH,mCAIC;IAlBD;;;;;;OAMG;IACH,kCAEC;IAwBD;;OAEG;IACH,+BAIC;IAlBD;;;;;;OAMG;IACH,8BAEC;IAsBD;;OAEG;IACH,0BAIC;IAhBD;;;;OAIG;IACH,yBAEC;IAWD;;;;OAIG;IACH,YAFW,oBAAoB,QA0B9B;;CACJ"}
1
+ {"version":3,"file":"ProbeClipmapSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;GAgBG;AACH;IAaI;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAwBD;;OAEG;IACH,gCAKC;IAjBD;;;;OAIG;IACH,+BAEC;IAuBD;;OAEG;IACH,kCAIC;IAhBD;;;;OAIG;IACH,iCAEC;IAuBD;;OAEG;IACH,mCAKC;IAlBD;;;;;OAKG;IACH,kCAEC;IAyBD;;;OAGG;IACH,mCAMC;IArBD;;;;;;OAMG;IACH,kCAEC;IAsCD;;;OAGG;IACH,oCAKC;IA/BD;;;;;;;;;;;;;;;;;OAiBG;IACH,mCAEC;IAsCD;;;OAGG;IACH,mCAIC;IA/BD;;;;;;;;;;;;;;;;;;OAkBG;IACH,kCAEC;IAuBD;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAwBD;;OAEG;IACH,6BAKC;IAjBD;;;;OAIG;IACH,4BAEC;IAuBD;;;OAGG;IACH,mCAMC;IAnBD;;;;OAIG;IACH,kCAEC;IAyBD;;OAEG;IACH,gCAKC;IAjBD;;;;OAIG;IACH,+BAEC;IAuBD;;;;OAIG;IACH,8BAKC;IAnBD;;;;OAIG;IACH,6BAEC;IAyBD;;;OAGG;IACH,0BAIC;IAjBD;;;;OAIG;IACH,yBAEC;IAYD;;;;;;OAMG;IACH,iCAEC;IAED;;;OAGG;IACH,+BAEC;IAeD;;;OAGG;IACH,yCAIC;IAnBD;;;;;;OAMG;IACH,wCAEC;IAuBD;;OAEG;IACH,+CAMC;IAlBD;;;;OAIG;IACH,8CAEC;IAwBD;;OAEG;IACH,4CAKC;IAjBD;;;;OAIG;IACH,2CAEC;IAuBD;;;OAGG;IACH,0CAKC;IAlBD;;;;OAIG;IACH,yCAEC;IA2BD;;OAEG;IACH,+BAKC;IApBD;;;;;;;OAOG;IACH,8BAEC;IAyBD;;OAEG;IACH,mCAIC;IAlBD;;;;;;OAMG;IACH,kCAEC;IAwBD;;OAEG;IACH,+BAIC;IAlBD;;;;;;OAMG;IACH,8BAEC;IAsBD;;OAEG;IACH,0BAIC;IAhBD;;;;OAIG;IACH,yBAEC;IAWD;;;;OAIG;IACH,YAFW,oBAAoB,QA0B9B;;CACJ"}
@@ -69,8 +69,7 @@ export class ProbeClipmapSettings {
69
69
 
70
70
  /**
71
71
  * The finest cascade's voxel, metres; every cascade doubles it. The default puts eight voxels across
72
- * one cell of the finest probe cascade at the default {@link probe_spacing}, and is of the order of
73
- * Unreal's global distance field (19.8 cm at its finest clipmap). Structure.
72
+ * one cell of the finest probe cascade at the default {@link probe_spacing}. Structure.
74
73
  * @returns {number}
75
74
  */
76
75
  get brick_voxel_size() {
@@ -133,7 +132,7 @@ export class ProbeClipmapSettings {
133
132
 
134
133
  /**
135
134
  * Bricks per axis a geometry's distance field may have before its voxel grows to fit: a safety net,
136
- * not a budget. 18 bricks are 126 voxels, Unreal's per-mesh cap at unit scale; at the default voxel
135
+ * not a budget. 18 bricks are 126 voxels; at the default voxel
137
136
  * the grid reaches 15.75 m, so a mesh spans 14.75 m, a band short of it at each end, before it is
138
137
  * baked coarser than asked. A change bakes every cached geometry again.
139
138
  * @returns {number}
@@ -269,9 +268,8 @@ export class ProbeClipmapSettings {
269
268
  #probe_spacing = 1;
270
269
 
271
270
  /**
272
- * Metres between probes in the finest cascade; every cascade doubles it. Lumen's world-space
273
- * radiance cache spaces its finest probes 1.04 m apart, and DDGI recommends 1 to 2 m for human-scale
274
- * scenes. Structure.
271
+ * Metres between probes in the finest cascade; every cascade doubles it. DDGI recommends 1 to
272
+ * 2 m for human-scale scenes. Structure.
275
273
  * @returns {number}
276
274
  */
277
275
  get probe_spacing() {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Boxes past which a frame re-queues every key of every cascade instead of testing them against the
3
- * blocks, UE's full-recapture threshold (§7.4): one pass over the keys rather than millions of pairs.
3
+ * blocks (§7.4): one pass over the keys rather than millions of pairs.
4
4
  * @type {number}
5
5
  */
6
6
  export const BRICK_MOVERS_FULL_REQUEUE_BOXES: number;
@@ -6,7 +6,7 @@
6
6
 
7
7
  /**
8
8
  * Boxes past which a frame re-queues every key of every cascade instead of testing them against the
9
- * blocks, UE's full-recapture threshold (§7.4): one pass over the keys rather than millions of pairs.
9
+ * blocks (§7.4): one pass over the keys rather than millions of pairs.
10
10
  * @type {number}
11
11
  */
12
12
  export const BRICK_MOVERS_FULL_REQUEUE_BOXES = 1024;
@@ -11,7 +11,7 @@ export const BRICK_TRACE_STEPS: number;
11
11
  */
12
12
  export const BRICK_TRACE_NUDGE: number;
13
13
  /**
14
- * The distance under which the march stands on a surface, in voxels of its cascade: UE's half voxel
14
+ * The distance under which the march stands on a surface, in voxels of its cascade: half a voxel
15
15
  * (§7.9). A hit is reported from anywhere between the surface and this far out.
16
16
  * @type {number}
17
17
  */
@@ -33,7 +33,7 @@ export const BRICK_TRACE_STEPS = 64;
33
33
  export const BRICK_TRACE_NUDGE = 1 / 64;
34
34
 
35
35
  /**
36
- * The distance under which the march stands on a surface, in voxels of its cascade: UE's half voxel
36
+ * The distance under which the march stands on a surface, in voxels of its cascade: half a voxel
37
37
  * (§7.9). A hit is reported from anywhere between the surface and this far out.
38
38
  * @type {number}
39
39
  */
@@ -401,7 +401,7 @@ fn brick_clipmap_trace_steps(origin: vec3<f32>, direction: vec3<f32>, t_min: f32
401
401
  return hit;
402
402
  }
403
403
 
404
- // past the hit's threshold, so at least half a voxel: UE's minimum step
404
+ // past the hit's threshold, so at least half a voxel: the minimum step
405
405
  march.t += distance;
406
406
  }
407
407
 
@@ -17,7 +17,7 @@
17
17
  * does: `fn mesh_brick_instance_at(i: u32) -> MeshBrickInstance`. The provider's batch answers from
18
18
  * workgroup memory; a test, from a buffer.
19
19
  *
20
- * The box test is UE's early-out, in bytes: an instance whose box's distance encodes past the least
20
+ * The box test is an early-out, in bytes: an instance whose box's distance encodes past the least
21
21
  * byte so far, or past the surface's byte when the least is inside one, cannot reach it, and is not
22
22
  * sampled. A box that holds the texel is always sampled, a deeper instance included. At coarse cascades
23
23
  * most instances are only this test. Per
@@ -24,7 +24,7 @@ import { MESH_BRICK_INSTANCE_STRUCT } from "./MESH_BRICK_INSTANCE_STRUCT.js";
24
24
  * does: `fn mesh_brick_instance_at(i: u32) -> MeshBrickInstance`. The provider's batch answers from
25
25
  * workgroup memory; a test, from a buffer.
26
26
  *
27
- * The box test is UE's early-out, in bytes: an instance whose box's distance encodes past the least
27
+ * The box test is an early-out, in bytes: an instance whose box's distance encodes past the least
28
28
  * byte so far, or past the surface's byte when the least is inside one, cannot reach it, and is not
29
29
  * sampled. A box that holds the texel is always sampled, a deeper instance included. At coarse cascades
30
30
  * most instances are only this test. Per
@@ -1,5 +1,5 @@
1
1
  /**
2
- * {@link ShadeIndirectLightingMode.ScreenProbes} for one view: Lumen's screen probe gather, over the world the probe
2
+ * {@link ShadeIndirectLightingMode.ScreenProbes} for one view: a screen-space probe gather, over the world the probe
3
3
  * clipmap holds (`GPUProbeClipmapGI`): its bricks, which rays traverse, its surface material, which hits read, its
4
4
  * world light clusters, and its two sets of world-space probes, which stand in for what lies past a screen probe's reach
5
5
  * and give a hit its next bounce.
@@ -68,7 +68,7 @@ import { shader_screen_probe_trace_screen } from "./shader_screen_probe_trace_sc
68
68
  const frame_word = name => SCREEN_PROBE_FRAME_STRUCT.get(name).offset >>> 2;
69
69
 
70
70
  /**
71
- * {@link ShadeIndirectLightingMode.ScreenProbes} for one view: Lumen's screen probe gather, over the world the probe
71
+ * {@link ShadeIndirectLightingMode.ScreenProbes} for one view: a screen-space probe gather, over the world the probe
72
72
  * clipmap holds (`GPUProbeClipmapGI`): its bricks, which rays traverse, its surface material, which hits read, its
73
73
  * world light clusters, and its two sets of world-space probes, which stand in for what lies past a screen probe's reach
74
74
  * and give a hit its next bounce.