@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
@@ -75,17 +75,15 @@ brdf_resources.createGroup()
75
75
  .add(SCREEN_PROBE_NORMAL_RESOURCE);
76
76
 
77
77
  /**
78
- * A probe's BRDF density (Lumen's `ScreenProbeComputeBRDFProbabilityDensityFunctionCS`): a workgroup a probe, a lane a
79
- * pixel of an 8 × 8 grid over the square of 2D pixels about it, the pixels whose light interpolates from it. The centre
80
- * lane takes the probe's own pixel.
78
+ * A probe's BRDF density: a workgroup a probe, a lane a pixel of an 8 × 8 grid over the square of 2D pixels about it,
79
+ * the pixels whose light interpolates from it. The centre lane takes the probe's own pixel.
81
80
  *
82
81
  * A pixel counts where it stands on the probe's surface: the probe's plane weight from the pixel's plane is past
83
82
  * `SCREEN_PROBE_BRDF_PIXEL_WEIGHT` (the centre always counts). It adds its clamped cosine lobe about its shading normal
84
- * as SH3 (`sh3_cosine_convolved_basis_at`, Lumen's `CalcDiffuseTransferSH3`), and the probe's density is the mean of
85
- * the lobes: at a direction, how much the pixels' diffuse would weigh light from it.
83
+ * as SH3 (`sh3_cosine_convolved_basis_at`), and the probe's density is the mean of the lobes: at a direction, how much
84
+ * the pixels' diffuse would weigh light from it.
86
85
  *
87
- * Lumen offsets its grid by `t/8·2D − 1` pixels, to one side of the probe; here the cells are centred on it, as the
88
- * pixels that read the probe are.
86
+ * The grid's cells are centred on the probe, as the pixels that read the probe are.
89
87
  *
90
88
  * @type {ComputeShader}
91
89
  */
@@ -185,13 +183,12 @@ lighting_resources.createGroup()
185
183
  lighting_resources.addGroup(PROBE_CLIPMAP_SAMPLING_GROUP);
186
184
 
187
185
  /**
188
- * A probe's lighting density (Lumen's `ScreenProbeComputeLightingProbabilityDensityFunctionCS`): a workgroup a probe,
189
- * its lanes over its n² texels.
186
+ * A probe's lighting density: a workgroup a probe, its lanes over its n² texels.
190
187
  *
191
188
  * - **History**: last frame's four uniform probes around the probe's surface point that stood on its surface
192
189
  * (`screen_probe_lighting_history`), each giving its filtered radiance in the same texel, since a texel is a
193
190
  * direction in the world. They are averaged, pre-exposed as last frame's exposure left them and brought to this
194
- * frame's (`screen_probe_exposure` over `screen_probe_exposure_previous`), as Lumen rescales its history.
191
+ * frame's (`screen_probe_exposure` over `screen_probe_exposure_previous`).
195
192
  * - **The rest**: the share of the four that gave nothing, 1 − accepted / 4, is the world-space probes' radiance the
196
193
  * probe's pick reads (`screen_probe_picks`), along the texel's direction at this frame's jitter, pre-exposed by this
197
194
  * frame's exposure. Where nothing was picked, the history alone, or one where there is none: a density that ranks
@@ -324,19 +321,19 @@ rays_resources.createGroup()
324
321
  .add(SCREEN_PROBE_RAY_INFO_WRITE_RESOURCE);
325
322
 
326
323
  /**
327
- * A probe's rays (Lumen's `ScreenProbeGenerateRaysCS`): a workgroup a probe, its lanes over its n² rays, each written
328
- * as the texel and level it falls in (`screen_probe_ray_info_pack`), a ray's slot its place in the sorted order.
324
+ * A probe's rays: a workgroup a probe, its lanes over its n² rays, each written as the texel and level it falls in
325
+ * (`screen_probe_ray_info_pack`), a ray's slot its place in the sorted order.
329
326
  *
330
327
  * 1. **Density**: each texel's BRDF density at its centre, `max(0, Σ brdf·Y(ω))`; times its lighting density · n².
331
328
  * A texel any of whose directions the BRDF density reaches `SCREEN_PROBE_MIN_PDF` is held there
332
329
  * (`screen_probe_brdf_keeps`), so the light ranks texels and only the pixels' lobes cull one; another falls under
333
330
  * it unless its light lifts it.
334
331
  * 2. **Sort**: the probe's own rays, ascending by density, ties in index order (`screen_probe_ray_sort`: the engine's
335
- * bitonic network in the workgroup's memory, O(n² log² n) a probe, where Lumen ranks every ray against every other,
332
+ * bitonic network in the workgroup's memory, O(n² log² n) a probe, where ranking every ray against every other is
336
333
  * O(n⁴)).
337
334
  * 3. **Reassignment**: the sorted rays in threes from the lowest; a three whose highest is under the minimum gives
338
335
  * its rays to the highest texel not yet given, from the top: that texel splits into its four children at twice the
339
- * resolution, the three take three children and the texel the fourth. One level only, as Lumen's parallel path.
336
+ * resolution, the three take three children and the texel the fourth. One level only.
340
337
  * A child holds a quarter of its parent's solid angle (the map is equal-area), which the composite weighs it by.
341
338
  *
342
339
  * With importance sampling off, or where the probe stands on no surface, ray i is texel i at the probe's own n.
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Where a screen probe's rays leave from in the bricks, and what answers for them past their reach (Lumen's radiance
3
- * cache coverage), a thread a probe, dispatched through the frame's thread-a-probe command:
2
+ * Where a screen probe's rays leave from in the bricks, and what answers for them past their reach, a thread a probe,
3
+ * dispatched through the frame's thread-a-probe command:
4
4
  *
5
5
  * - **The origin** (`screen_probe_brick_origin`): off the probe's surface point along its face normal, and on along
6
6
  * the bricks' field until it reads a voxel clear, so its rays do not start in the solid they leave.
@@ -56,8 +56,8 @@ resources.createGroup()
56
56
  resources.addGroup(PROBE_CLIPMAP_SAMPLING_GROUP);
57
57
 
58
58
  /**
59
- * Where a screen probe's rays leave from in the bricks, and what answers for them past their reach (Lumen's radiance
60
- * cache coverage), a thread a probe, dispatched through the frame's thread-a-probe command:
59
+ * Where a screen probe's rays leave from in the bricks, and what answers for them past their reach, a thread a probe,
60
+ * dispatched through the frame's thread-a-probe command:
61
61
  *
62
62
  * - **The origin** (`screen_probe_brick_origin`): off the probe's surface point along its face normal, and on along
63
63
  * the bricks' field until it reads a voxel clear, so its rays do not start in the solid they leave.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Whether a point's interpolation weights cover it, Lumen's rule: the weights normalised by their sum held to
2
+ * Whether a point's interpolation weights cover it: the weights normalised by their sum held to
3
3
  * `SCREEN_PROBE_WEIGHT_EPSILON` from below sum to at least 1 − ε, that is the raw sum is at least ε·(1 − ε). Adaptive
4
4
  * placement puts a probe where they do not; integration gives no light there.
5
5
  *
@@ -11,9 +11,9 @@
11
11
  */
12
12
  export const chunk_screen_probe_covers: CodeChunk;
13
13
  /**
14
- * Uniform placement (Lumen's `ScreenProbeDownsampleDepthUniformCS`): a thread a tile of D × D pixels, the probe on the
15
- * pixel at the frame's jitter in it, held inside the view (`screen_probe_surface_at`), written to its tile's place in
16
- * the atlas. A tile over the sky gets a record of depth zero. Each tile's count of adaptive probes starts at zero.
14
+ * Uniform placement: a thread a tile of D × D pixels, the probe on the pixel at the frame's jitter in it, held inside
15
+ * the view (`screen_probe_surface_at`), written to its tile's place in the atlas. A tile over the sky gets a record of
16
+ * depth zero. Each tile's count of adaptive probes starts at zero.
17
17
  *
18
18
  * @type {ComputeShader}
19
19
  */
@@ -24,10 +24,10 @@ export const shader_screen_probe_place_uniform: ComputeShader;
24
24
  */
25
25
  export const SCREEN_PROBE_ADAPTIVE_SETTINGS: WebGPUStruct;
26
26
  /**
27
- * Adaptive placement, one level (Lumen's `ScreenProbeAdaptivePlacementCS`): a thread a point of the grid at the
28
- * level's spacing, D >> level, with the frame's jitter. A point that a coarser level's grid already holds, both its
29
- * indices even, is skipped. A point on a surface that the probes placed so far do not cover (`screen_probe_interpolate`,
30
- * `screen_probe_covers`), the uniform ones and the coarser levels' adaptive ones, gets a probe:
27
+ * Adaptive placement, one level: a thread a point of the grid at the level's spacing, D >> level, with the frame's
28
+ * jitter. A point that a coarser level's grid already holds, both its indices even, is skipped. A point on a surface
29
+ * that the probes placed so far do not cover (`screen_probe_interpolate`, `screen_probe_covers`), the uniform ones and
30
+ * the coarser levels' adaptive ones, gets a probe:
31
31
  *
32
32
  * - its slot from the frame's count of adaptive probes, one atomic a subgroup; past `adaptive_capacity` no probe is
33
33
  * placed, so where the view wants more than the slots hold, the coarser levels, placed first, keep theirs;
@@ -35,7 +35,7 @@ export const SCREEN_PROBE_ADAPTIVE_SETTINGS: WebGPUStruct;
35
35
  * `adaptive_tile_capacity` it cannot pass, since the tile holds that many of the grids' points.
36
36
  *
37
37
  * The levels run one dispatch each, coarsest first, so a level sees every coarser one's probes; within a level,
38
- * another workgroup's placement may not be seen yet, as in Lumen.
38
+ * another workgroup's placement may not be seen yet.
39
39
  *
40
40
  * @type {ComputeShader}
41
41
  */
@@ -46,7 +46,7 @@ import {
46
46
  } from "./SCREEN_PROBE.js";
47
47
 
48
48
  /**
49
- * Whether a point's interpolation weights cover it, Lumen's rule: the weights normalised by their sum held to
49
+ * Whether a point's interpolation weights cover it: the weights normalised by their sum held to
50
50
  * `SCREEN_PROBE_WEIGHT_EPSILON` from below sum to at least 1 − ε, that is the raw sum is at least ε·(1 − ε). Adaptive
51
51
  * placement puts a probe where they do not; integration gives no light there.
52
52
  *
@@ -81,9 +81,9 @@ uniform_resources.createGroup()
81
81
  .add(SCREEN_PROBE_TILE_COUNTS_WRITE_RESOURCE);
82
82
 
83
83
  /**
84
- * Uniform placement (Lumen's `ScreenProbeDownsampleDepthUniformCS`): a thread a tile of D × D pixels, the probe on the
85
- * pixel at the frame's jitter in it, held inside the view (`screen_probe_surface_at`), written to its tile's place in
86
- * the atlas. A tile over the sky gets a record of depth zero. Each tile's count of adaptive probes starts at zero.
84
+ * Uniform placement: a thread a tile of D × D pixels, the probe on the pixel at the frame's jitter in it, held inside
85
+ * the view (`screen_probe_surface_at`), written to its tile's place in the atlas. A tile over the sky gets a record of
86
+ * depth zero. Each tile's count of adaptive probes starts at zero.
87
87
  *
88
88
  * @type {ComputeShader}
89
89
  */
@@ -136,10 +136,10 @@ adaptive_resources.createGroup()
136
136
  .add(SCREEN_PROBE_COUNTERS_RESOURCE);
137
137
 
138
138
  /**
139
- * Adaptive placement, one level (Lumen's `ScreenProbeAdaptivePlacementCS`): a thread a point of the grid at the
140
- * level's spacing, D >> level, with the frame's jitter. A point that a coarser level's grid already holds, both its
141
- * indices even, is skipped. A point on a surface that the probes placed so far do not cover (`screen_probe_interpolate`,
142
- * `screen_probe_covers`), the uniform ones and the coarser levels' adaptive ones, gets a probe:
139
+ * Adaptive placement, one level: a thread a point of the grid at the level's spacing, D >> level, with the frame's
140
+ * jitter. A point that a coarser level's grid already holds, both its indices even, is skipped. A point on a surface
141
+ * that the probes placed so far do not cover (`screen_probe_interpolate`, `screen_probe_covers`), the uniform ones and
142
+ * the coarser levels' adaptive ones, gets a probe:
143
143
  *
144
144
  * - its slot from the frame's count of adaptive probes, one atomic a subgroup; past `adaptive_capacity` no probe is
145
145
  * placed, so where the view wants more than the slots hold, the coarser levels, placed first, keep theirs;
@@ -147,7 +147,7 @@ adaptive_resources.createGroup()
147
147
  * `adaptive_tile_capacity` it cannot pass, since the tile holds that many of the grids' points.
148
148
  *
149
149
  * The levels run one dispatch each, coarsest first, so a level sees every coarser one's probes; within a level,
150
- * another workgroup's placement may not be seen yet, as in Lumen.
150
+ * another workgroup's placement may not be seen yet.
151
151
  *
152
152
  * @type {ComputeShader}
153
153
  */
@@ -30,13 +30,11 @@ export const SCREEN_PROBE_FRAMES_WRITE_RESOURCE: ShaderResourceDescriptor;
30
30
  /** Last frame's reverse-Z depth. @type {ShaderResourceDescriptor} */
31
31
  export const SCREEN_PROBE_DEPTH_PREVIOUS_RESOURCE: ShaderResourceDescriptor;
32
32
  /**
33
- * Each pixel's diffuse light from the probes (Lumen's `ScreenProbeIntegrateCS`, its SH3 diffuse), and its rough
34
- * specular: a thread a pixel.
33
+ * Each pixel's diffuse light from the probes' SH3, and its rough specular: a thread a pixel.
35
34
  *
36
- * - **The lookup's jitter**: by the frame's blue noise at the pixel, up to a tile's width each way, Lumen's
37
- * `FullResolutionJitterWidth` of one, kept only where the pixel it lands on is coplanar with this one (plane weight at
38
- * `SCREEN_PROBE_JITTER_PLANE_WEIGHT_SCALE` past 0.01), so the probes' grid dissolves into noise the temporal filter
39
- * averages without crossing an edge.
35
+ * - **The lookup's jitter**: by the frame's blue noise at the pixel, up to a tile's width each way, kept only where the
36
+ * pixel it lands on is coplanar with this one (plane weight at `SCREEN_PROBE_JITTER_PLANE_WEIGHT_SCALE` past 0.01),
37
+ * so the probes' grid dissolves into noise the temporal filter averages without crossing an edge.
40
38
  * - **The probes**: `screen_probe_interpolate` from the pixel's surface point, view depth and face normal; the weights
41
39
  * normalised by their sum, held to `SCREEN_PROBE_WEIGHT_EPSILON` from below.
42
40
  * - **The light**: the probes' SH3 blended by the weights (each probe by name), E at the pixel's bent normal
@@ -53,26 +51,25 @@ export const SCREEN_PROBE_DEPTH_PREVIOUS_RESOURCE: ShaderResourceDescriptor;
53
51
  * - **Alpha**: the probes' moving shares by the same weights, held to 0.001 from below; negative where the weights do
54
52
  * not cover the pixel (`screen_probe_covers`), whose light is then zero and the temporal filter's to fill.
55
53
  * - **The rough specular** (`chunk_screen_probe_rough_specular`), with `rough_specular` on: the probes' irradiance over
56
- * π, as Lumen's default takes it, mixed by the sampled share into the radiance along the pixel's GGX lobe at its
57
- * shading normal, read from one of its probes picked by the weights with the frame's blue noise at the pixel (16 past
58
- * the frame), as Lumen's stochastic interpolation picks one; both over the exposure; with the world probes' share in
59
- * alpha. A smooth surface (world share 1) and a pixel no probe covers sample nothing; the latter's light is zero, the
60
- * temporal filter's to fill. Off, every pixel is the world probes' whole: (0, 0, 0, 1).
54
+ * π, mixed by the sampled share into the radiance along the pixel's GGX lobe at its shading normal, read from one of
55
+ * its probes picked by the weights with the frame's blue noise at the pixel (16 past the frame); both over the
56
+ * exposure; with the world probes' share in alpha. A smooth surface (world share 1) and a pixel no probe covers
57
+ * sample nothing; the latter's light is zero, the temporal filter's to fill. Off, every pixel is the world probes'
58
+ * whole: (0, 0, 0, 1).
61
59
  * - A pixel of the sky is zero, its specular the world probes'.
62
60
  *
63
61
  * @type {ComputeShader}
64
62
  */
65
63
  export const shader_screen_probe_integrate: ComputeShader;
66
64
  /**
67
- * The temporal filter (Lumen's `ScreenProbeTemporalReprojectionCS`): a thread a pixel, blending its integrated light
68
- * into its history.
65
+ * The temporal filter: a thread a pixel, blending its integrated light into its history.
69
66
  *
70
67
  * - **Reprojection**: the pixel's place last frame by its velocity; its four bilinear neighbours there, each kept
71
- * where last frame's depth at it is the depth this pixel's point had then by its velocity (Lumen's history depth),
72
- * within `SCREEN_PROBE_TEMPORAL_DISTANCE` of it, the threshold dithered over ×½ to ×1½ (a blue-noise draw half the
73
- * noise's period from the integration's jitter, so the two do not move together) and divided by the cosine between
74
- * the face normal and the view (held to 0.1), the depth a grazing surface spans between jittered frames; and on the
75
- * screen. Each texel's history by its bilinear weight among those kept.
68
+ * where last frame's depth at it is the depth this pixel's point had then by its velocity, within
69
+ * `SCREEN_PROBE_TEMPORAL_DISTANCE` of it, the threshold dithered over ×½ to ×1½ (a blue-noise draw half the noise's
70
+ * period from the integration's jitter, so the two do not move together) and divided by the cosine between the face
71
+ * normal and the view (held to 0.1), the depth a grazing surface spans between jittered frames; and on the screen.
72
+ * Each texel's history by its bilinear weight among those kept.
76
73
  * - **Frames**: each kept neighbour's count plus one, held to `temporal_frames`, by the same weights.
77
74
  * - **Fast update**: the pixel's moving share over `SCREEN_PROBE_FAST_UPDATE_MOVING`, less 0.2 over 0.8, held to
78
75
  * `SCREEN_PROBE_FAST_UPDATE_LIMIT`, and no less than the history's: the frames are held to (1 − it) of the most.
@@ -1 +1 @@
1
- {"version":3,"file":"shader_screen_probe_resolve.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.js"],"names":[],"mappings":"AAoDA,6HAA6H;AAC7H,gDADiG,wBAAwB,CACf;AAE1G,gLAAgL;AAChL,oDADoJ,wBAAwB,CACrC;AACvI,uCAAuC;AACvC,qDADW,wBAAwB,CACyH;AAE5J,qFAAqF;AACrF,oDADyD,wBAAwB,CAC2D;AAC5I,mFAAmF;AACnF,kDADuD,wBAAwB,CACuE;AAEtJ;;;;;;;GAOG;AACH,6DAFU,wBAAwB,CAEuH;AACzJ,uCAAuC;AACvC,8DADW,wBAAwB,CAC2I;AAE9K,4FAA4F;AAC5F,qDADgE,wBAAwB,CACsD;AAC9I,qHAAqH;AACrH,mDADyF,wBAAwB,CACuC;AAExJ,8GAA8G;AAC9G,mDADkF,wBAAwB,CACkB;AAC5H,uCAAuC;AACvC,iDADW,wBAAwB,CAC6G;AAEhJ,qEAAqE;AACrE,mDADyC,wBAAwB,CACsC;AAsBvG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,4CAFU,aAAa,CA4IpB;AAsBH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,2CAFU,aAAa,CAuLpB;yCA3esC,mDAAmD;8BAD9D,+BAA+B"}
1
+ {"version":3,"file":"shader_screen_probe_resolve.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.js"],"names":[],"mappings":"AAoDA,6HAA6H;AAC7H,gDADiG,wBAAwB,CACf;AAE1G,gLAAgL;AAChL,oDADoJ,wBAAwB,CACrC;AACvI,uCAAuC;AACvC,qDADW,wBAAwB,CACyH;AAE5J,qFAAqF;AACrF,oDADyD,wBAAwB,CAC2D;AAC5I,mFAAmF;AACnF,kDADuD,wBAAwB,CACuE;AAEtJ;;;;;;;GAOG;AACH,6DAFU,wBAAwB,CAEuH;AACzJ,uCAAuC;AACvC,8DADW,wBAAwB,CAC2I;AAE9K,4FAA4F;AAC5F,qDADgE,wBAAwB,CACsD;AAC9I,qHAAqH;AACrH,mDADyF,wBAAwB,CACuC;AAExJ,8GAA8G;AAC9G,mDADkF,wBAAwB,CACkB;AAC5H,uCAAuC;AACvC,iDADW,wBAAwB,CAC6G;AAEhJ,qEAAqE;AACrE,mDADyC,wBAAwB,CACsC;AAsBvG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,4CAFU,aAAa,CA4IpB;AAsBH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,2CAFU,aAAa,CAuLpB;yCAxesC,mDAAmD;8BAD9D,+BAA+B"}
@@ -109,13 +109,11 @@ integrate_resources.createGroup()
109
109
  .add(SCREEN_PROBE_INTEGRATED_SPECULAR_WRITE_RESOURCE);
110
110
 
111
111
  /**
112
- * Each pixel's diffuse light from the probes (Lumen's `ScreenProbeIntegrateCS`, its SH3 diffuse), and its rough
113
- * specular: a thread a pixel.
112
+ * Each pixel's diffuse light from the probes' SH3, and its rough specular: a thread a pixel.
114
113
  *
115
- * - **The lookup's jitter**: by the frame's blue noise at the pixel, up to a tile's width each way, Lumen's
116
- * `FullResolutionJitterWidth` of one, kept only where the pixel it lands on is coplanar with this one (plane weight at
117
- * `SCREEN_PROBE_JITTER_PLANE_WEIGHT_SCALE` past 0.01), so the probes' grid dissolves into noise the temporal filter
118
- * averages without crossing an edge.
114
+ * - **The lookup's jitter**: by the frame's blue noise at the pixel, up to a tile's width each way, kept only where the
115
+ * pixel it lands on is coplanar with this one (plane weight at `SCREEN_PROBE_JITTER_PLANE_WEIGHT_SCALE` past 0.01),
116
+ * so the probes' grid dissolves into noise the temporal filter averages without crossing an edge.
119
117
  * - **The probes**: `screen_probe_interpolate` from the pixel's surface point, view depth and face normal; the weights
120
118
  * normalised by their sum, held to `SCREEN_PROBE_WEIGHT_EPSILON` from below.
121
119
  * - **The light**: the probes' SH3 blended by the weights (each probe by name), E at the pixel's bent normal
@@ -132,11 +130,11 @@ integrate_resources.createGroup()
132
130
  * - **Alpha**: the probes' moving shares by the same weights, held to 0.001 from below; negative where the weights do
133
131
  * not cover the pixel (`screen_probe_covers`), whose light is then zero and the temporal filter's to fill.
134
132
  * - **The rough specular** (`chunk_screen_probe_rough_specular`), with `rough_specular` on: the probes' irradiance over
135
- * π, as Lumen's default takes it, mixed by the sampled share into the radiance along the pixel's GGX lobe at its
136
- * shading normal, read from one of its probes picked by the weights with the frame's blue noise at the pixel (16 past
137
- * the frame), as Lumen's stochastic interpolation picks one; both over the exposure; with the world probes' share in
138
- * alpha. A smooth surface (world share 1) and a pixel no probe covers sample nothing; the latter's light is zero, the
139
- * temporal filter's to fill. Off, every pixel is the world probes' whole: (0, 0, 0, 1).
133
+ * π, mixed by the sampled share into the radiance along the pixel's GGX lobe at its shading normal, read from one of
134
+ * its probes picked by the weights with the frame's blue noise at the pixel (16 past the frame); both over the
135
+ * exposure; with the world probes' share in alpha. A smooth surface (world share 1) and a pixel no probe covers
136
+ * sample nothing; the latter's light is zero, the temporal filter's to fill. Off, every pixel is the world probes'
137
+ * whole: (0, 0, 0, 1).
140
138
  * - A pixel of the sky is zero, its specular the world probes'.
141
139
  *
142
140
  * @type {ComputeShader}
@@ -302,15 +300,14 @@ temporal_resources.createGroup()
302
300
  .add(SCREEN_PROBE_FRAMES_WRITE_RESOURCE);
303
301
 
304
302
  /**
305
- * The temporal filter (Lumen's `ScreenProbeTemporalReprojectionCS`): a thread a pixel, blending its integrated light
306
- * into its history.
303
+ * The temporal filter: a thread a pixel, blending its integrated light into its history.
307
304
  *
308
305
  * - **Reprojection**: the pixel's place last frame by its velocity; its four bilinear neighbours there, each kept
309
- * where last frame's depth at it is the depth this pixel's point had then by its velocity (Lumen's history depth),
310
- * within `SCREEN_PROBE_TEMPORAL_DISTANCE` of it, the threshold dithered over ×½ to ×1½ (a blue-noise draw half the
311
- * noise's period from the integration's jitter, so the two do not move together) and divided by the cosine between
312
- * the face normal and the view (held to 0.1), the depth a grazing surface spans between jittered frames; and on the
313
- * screen. Each texel's history by its bilinear weight among those kept.
306
+ * where last frame's depth at it is the depth this pixel's point had then by its velocity, within
307
+ * `SCREEN_PROBE_TEMPORAL_DISTANCE` of it, the threshold dithered over ×½ to ×1½ (a blue-noise draw half the noise's
308
+ * period from the integration's jitter, so the two do not move together) and divided by the cosine between the face
309
+ * normal and the view (held to 0.1), the depth a grazing surface spans between jittered frames; and on the screen.
310
+ * Each texel's history by its bilinear weight among those kept.
314
311
  * - **Frames**: each kept neighbour's count plus one, held to `temporal_frames`, by the same weights.
315
312
  * - **Fast update**: the pixel's moving share over `SCREEN_PROBE_FAST_UPDATE_MOVING`, less 0.2 over 0.8, held to
316
313
  * `SCREEN_PROBE_FAST_UPDATE_LIMIT`, and no less than the history's: the frames are held to (1 − it) of the most.
@@ -461,7 +458,7 @@ fn main(@builtin(global_invocation_id) id: vec3<u32>) {
461
458
  }
462
459
  }
463
460
 
464
- // this frame's share of moving light, as Lumen's fast update maps it
461
+ // this frame's share of moving light, as the fast update maps it
465
462
  let fast_own = saturate(min((saturate(moving / ${SCREEN_PROBE_FAST_UPDATE_MOVING}) - 0.2) / 0.8, ${SCREEN_PROBE_FAST_UPDATE_LIMIT}));
466
463
 
467
464
  var out = light;
@@ -8,23 +8,22 @@ export const SCREEN_PROBE_OCCLUSION_RESOURCE: ShaderResourceDescriptor;
8
8
  */
9
9
  export const SCREEN_PROBE_TRACE_SCREEN_SETTINGS: WebGPUStruct;
10
10
  /**
11
- * The screen trace (Lumen's `ScreenProbeTraceScreenTexturesCS`): a thread a ray of the frame's probes, through the
12
- * thread-a-ray command; a ray finds its probe and slot from its index, and its direction from its info and its probe's
13
- * jitter (`screen_probe_ray_direction`).
11
+ * The screen trace: a thread a ray of the frame's probes, through the thread-a-ray command; a ray finds its probe and
12
+ * slot from its index, and its direction from its info and its probe's jitter (`screen_probe_ray_direction`).
14
13
  *
15
14
  * - **Origin**: the probe's surface point, lifted along its face normal by twice the depth half a pixel's offset makes
16
- * along it (Lumen's normal bias): the depth buffer's texels stand proud of the plane they sample. An origin the lift
17
- * moves off the screen traces nothing in it.
15
+ * along it (a normal bias): the depth buffer's texels stand proud of the plane they sample. An origin the lift moves
16
+ * off the screen traces nothing in it.
18
17
  * - **Reach**: the march covers the probe's reach (`screen_probe_picks`), cut short of the camera's plane, 0.99 of the
19
- * way, for a ray heading toward it, as Lumen's `TraceScreen` cuts it.
18
+ * way, for a ray heading toward it.
20
19
  * - **March**: the depth buffer's hierarchy from the full-resolution level, `ffx_sssr_hierarchical_raymarch`, the
21
20
  * engine's HZB traversal (SSR's), `SCREEN_PROBE_SCREEN_TRACE_STEPS` steps at most; past the reach's end it is a miss.
22
21
  * - **A hit** stands at most `SCREEN_PROBE_SCREEN_THICKNESS` of the surface's depth behind it, on a surface the ray
23
- * meets from its front (its face normal against the ray), and holds when two dithered tests pass, as Lumen's: the
24
- * screen-edge fade at the hit (`SCREEN_PROBE_SCREEN_EDGE`) and the TAA's confidence in the hit pixel's history, so
25
- * last frame's colour is that surface's. Its radiance is last frame's lit colour of the opaque surfaces at the hit
26
- * pixel's place last frame (its velocity), a bounce more each frame, pre-exposed (`screen_probe_exposure`). It is moving when its speed and the probe's
27
- * differ by `SCREEN_PROBE_MOVING_SPEED` of the probe's depth, held to a metre from below.
22
+ * meets from its front (its face normal against the ray), and holds when two dithered tests pass: the screen-edge
23
+ * fade at the hit (`SCREEN_PROBE_SCREEN_EDGE`) and the TAA's confidence in the hit pixel's history, so last frame's
24
+ * colour is that surface's. Its radiance is last frame's lit colour of the opaque surfaces at the hit pixel's place
25
+ * last frame (its velocity), a bounce more each frame, pre-exposed (`screen_probe_exposure`). It is moving when its
26
+ * speed and the probe's differ by `SCREEN_PROBE_MOVING_SPEED` of the probe's depth, held to a metre from below.
28
27
  * - **Anything else** is left to the bricks, appended to their list (one atomic a subgroup) with how far the screen
29
28
  * showed it clear: to the end of the march, or to a hit the tests refused, so the bricks resume in front of that
30
29
  * surface. A ray of a probe on no surface ends here, NONE.
@@ -1 +1 @@
1
- {"version":3,"file":"shader_screen_probe_trace_screen.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.js"],"names":[],"mappings":"AA0DA,uIAAuI;AACvI,kDAD2G,wBAAwB,CACK;AAExI,qHAAqH;AACrH,8CADyF,wBAAwB,CACG;AAEpH;;;GAGG;AACH,iDAFU,YAAY,CAKe;AA6BrC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,+CAFU,aAAa,CAsJpB;yCA9PsC,mDAAmD;6BAG/D,mCAAmC;8BAJlC,+BAA+B"}
1
+ {"version":3,"file":"shader_screen_probe_trace_screen.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.js"],"names":[],"mappings":"AA0DA,uIAAuI;AACvI,kDAD2G,wBAAwB,CACK;AAExI,qHAAqH;AACrH,8CADyF,wBAAwB,CACG;AAEpH;;;GAGG;AACH,iDAFU,YAAY,CAKe;AA6BrC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,+CAFU,aAAa,CAsJpB;yCA7PsC,mDAAmD;6BAG/D,mCAAmC;8BAJlC,+BAA+B"}
@@ -99,23 +99,22 @@ resources.createGroup()
99
99
  .add(SCREEN_PROBE_TRACE_HIT_WRITE_RESOURCE);
100
100
 
101
101
  /**
102
- * The screen trace (Lumen's `ScreenProbeTraceScreenTexturesCS`): a thread a ray of the frame's probes, through the
103
- * thread-a-ray command; a ray finds its probe and slot from its index, and its direction from its info and its probe's
104
- * jitter (`screen_probe_ray_direction`).
102
+ * The screen trace: a thread a ray of the frame's probes, through the thread-a-ray command; a ray finds its probe and
103
+ * slot from its index, and its direction from its info and its probe's jitter (`screen_probe_ray_direction`).
105
104
  *
106
105
  * - **Origin**: the probe's surface point, lifted along its face normal by twice the depth half a pixel's offset makes
107
- * along it (Lumen's normal bias): the depth buffer's texels stand proud of the plane they sample. An origin the lift
108
- * moves off the screen traces nothing in it.
106
+ * along it (a normal bias): the depth buffer's texels stand proud of the plane they sample. An origin the lift moves
107
+ * off the screen traces nothing in it.
109
108
  * - **Reach**: the march covers the probe's reach (`screen_probe_picks`), cut short of the camera's plane, 0.99 of the
110
- * way, for a ray heading toward it, as Lumen's `TraceScreen` cuts it.
109
+ * way, for a ray heading toward it.
111
110
  * - **March**: the depth buffer's hierarchy from the full-resolution level, `ffx_sssr_hierarchical_raymarch`, the
112
111
  * engine's HZB traversal (SSR's), `SCREEN_PROBE_SCREEN_TRACE_STEPS` steps at most; past the reach's end it is a miss.
113
112
  * - **A hit** stands at most `SCREEN_PROBE_SCREEN_THICKNESS` of the surface's depth behind it, on a surface the ray
114
- * meets from its front (its face normal against the ray), and holds when two dithered tests pass, as Lumen's: the
115
- * screen-edge fade at the hit (`SCREEN_PROBE_SCREEN_EDGE`) and the TAA's confidence in the hit pixel's history, so
116
- * last frame's colour is that surface's. Its radiance is last frame's lit colour of the opaque surfaces at the hit
117
- * pixel's place last frame (its velocity), a bounce more each frame, pre-exposed (`screen_probe_exposure`). It is moving when its speed and the probe's
118
- * differ by `SCREEN_PROBE_MOVING_SPEED` of the probe's depth, held to a metre from below.
113
+ * meets from its front (its face normal against the ray), and holds when two dithered tests pass: the screen-edge
114
+ * fade at the hit (`SCREEN_PROBE_SCREEN_EDGE`) and the TAA's confidence in the hit pixel's history, so last frame's
115
+ * colour is that surface's. Its radiance is last frame's lit colour of the opaque surfaces at the hit pixel's place
116
+ * last frame (its velocity), a bounce more each frame, pre-exposed (`screen_probe_exposure`). It is moving when its
117
+ * speed and the probe's differ by `SCREEN_PROBE_MOVING_SPEED` of the probe's depth, held to a metre from below.
119
118
  * - **Anything else** is left to the bricks, appended to their list (one atomic a subgroup) with how far the screen
120
119
  * showed it clear: to the end of the march, or to a hit the tests refused, so the bricks resume in front of that
121
120
  * surface. A ray of a probe on no surface ends here, NONE.
@@ -130,7 +129,7 @@ export const shader_screen_probe_trace_screen = ComputeShader.from({
130
129
  body: CodeChunk.from(
131
130
  //language=WGSL
132
131
  `
133
- // the dithered fade toward the screen's edges at a screen position in [-1, 1], Lumen's ComputeHitVignetteFromScreenPos
132
+ // the dithered fade toward the screen's edges at a screen position in [-1, 1]
134
133
  fn screen_probe_edge_fade(ndc: vec2<f32>) -> f32 {
135
134
  let v = saturate((abs(ndc) - ${1 - SCREEN_PROBE_SCREEN_EDGE}) / ${SCREEN_PROBE_SCREEN_EDGE});
136
135
 
@@ -1 +1 @@
1
- {"version":3,"file":"GPUHairSystem.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/hair/GPUHairSystem.js"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"GPUHairSystem.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/hair/GPUHairSystem.js"],"names":[],"mappings":"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"}
@@ -533,10 +533,12 @@ export class GPUHairSystem {
533
533
  #view_u32 = new Uint32Array(this.#view_words);
534
534
 
535
535
  /**
536
- * A shadow view's rectangle, `HAIR_SHADOW_TARGET_STRUCT`, written a view at a time.
537
- * @type {Float32Array}
536
+ * A shadow view's rectangle and the frame's list capacity, `HAIR_SHADOW_TARGET_STRUCT`, written a view at a time.
537
+ * @type {ArrayBuffer}
538
538
  */
539
- #shadow_view_words = new Float32Array(HAIR_SHADOW_TARGET_STRUCT.size / 4);
539
+ #shadow_view_words = new ArrayBuffer(HAIR_SHADOW_TARGET_STRUCT.size);
540
+ #shadow_view_f32 = new Float32Array(this.#shadow_view_words);
541
+ #shadow_view_u32 = new Uint32Array(this.#shadow_view_words);
540
542
 
541
543
  /**
542
544
  * The frame's shadow views the strands draw into, `HAIR_SHADOW_VIEW_STRUCT` each; made with the first frame that
@@ -1421,12 +1423,17 @@ export class GPUHairSystem {
1421
1423
 
1422
1424
  const views = shadows.views;
1423
1425
  const view_words = this.#shadow_view_words;
1426
+ const view_f32 = this.#shadow_view_f32;
1427
+ const resolution_word = HAIR_SHADOW_TARGET_STRUCT.get("resolution").offset / 4;
1428
+
1429
+ this.#shadow_view_u32[HAIR_SHADOW_TARGET_STRUCT.get("list_capacity").offset / 4] = list_capacity;
1424
1430
 
1425
1431
  const data = {};
1426
1432
 
1427
1433
  const pass = graph.add("draw hair shadows", data, (data, resources, context) => {
1428
1434
  const encoder = context.encoder;
1429
1435
  const atlas = resources.get(data.atlas).obtainView();
1436
+ const hair_shadow_list = resources.get(data.shadow_list);
1430
1437
  const hair_list = resources.get(data.list);
1431
1438
  const hair_points = resources.get(data.points);
1432
1439
  const draw_args = resources.get(data.args);
@@ -1435,12 +1442,13 @@ export class GPUHairSystem {
1435
1442
  const view = views[v];
1436
1443
  const [x, y, width, height] = view.viewport;
1437
1444
 
1438
- view_words[0] = width;
1439
- view_words[1] = height;
1445
+ view_f32[resolution_word] = width;
1446
+ view_f32[resolution_word + 1] = height;
1440
1447
 
1441
1448
  const bindings = HAIR_SHADOW_RESOURCES.generateBindings({
1442
1449
  camera: view.camera_buffer,
1443
- hair_shadow_view: encoder.allocateTransientBufferAndLoad(view_words.buffer, GPUBufferUsage.UNIFORM),
1450
+ hair_shadow_view: encoder.allocateTransientBufferAndLoad(view_words, GPUBufferUsage.UNIFORM),
1451
+ hair_shadow_list,
1444
1452
  hair_list,
1445
1453
  hair_points,
1446
1454
  }, encoder);
@@ -1469,7 +1477,8 @@ export class GPUHairSystem {
1469
1477
  }
1470
1478
  });
1471
1479
 
1472
- data.list = pass.read(listed.hair_shadow_list);
1480
+ data.shadow_list = pass.read(listed.hair_shadow_list);
1481
+ data.list = pass.read(list);
1473
1482
  data.points = pass.read(points);
1474
1483
  data.args = pass.read(args);
1475
1484
  data.atlas = pass.write(shadows.atlas);
@@ -11,9 +11,11 @@
11
11
  * **A draw list entry** is a strand: its slot, with its point class above {@link HAIR_CLASS_SHIFT}. A strand of
12
12
  * class `c` has `2^c` segments. A class's region of the list holds first the strands of instances the view draws,
13
13
  * from its start, then those of instances only the shadow views draw, from its start plus the first's count. Where
14
- * the strands cast shadows, the list is followed, at its capacity, by two words an entry
15
- * ({@link HAIR_LIST_SHADOW_WORDS}): the widest half width any point of the strand is drawn at, then the farthest any
16
- * point of it is from its root, metres, f32 bits.
14
+ * the strands cast shadows, the list is followed, at its capacity, by three words an entry
15
+ * ({@link HAIR_LIST_SHADOW_WORDS}), f32 bits: the widest half width any point of the strand is drawn at; the farthest
16
+ * any point of it is from its root, metres; and its share, the number in [0, 1), stratified over its group's ranks,
17
+ * that decides whether a point of it narrower than a view's floor or a shadow view's texel is drawn at it. The share
18
+ * belongs to the strand, not to where the frame placed it, so a strand is drawn or not frame after frame.
17
19
  *
18
20
  * **An instance's density volume** is a box of voxels around its strands, cubes of one edge, in the frame's voxel
19
21
  * buffer (`u32`) from its LOD record's `voxel_base`: {@link HAIR_VOLUME_MIPS} levels one after another, x fastest,
@@ -1 +1 @@
1
- {"version":3,"file":"HAIR.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/hair/HAIR.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;GAEG;AACH,8CAAwC;AAExC;;;GAGG;AACH,2BAFU,MAAM,CAEc;AAE9B;;;GAGG;AACH,iCAFU,MAAM,CAEoB;AAEpC;;;GAGG;AACH,+BAFU,MAAM,CAEmB;AAEnC;;;GAGG;AACH,+BAFU,MAAM,CAEkB;AAElC;;;GAGG;AACH,wCAFU,MAAM,CAEmD;AAEnE;;;GAGG;AACH,4BAFU,MAAM,CAEgB;AAEhC;;;;GAIG;AACH,6BAFU,MAAM,CAEiB;AAEjC;;;GAGG;AACH,oCAFU,MAAM,CAE2B;AAE3C;;;GAGG;AACH,+BAFU,MAAM,CAEkB;AAElC;;;GAGG;AACH,0CAFU,MAAM,CAE+B;AAE/C;;;;GAIG;AACH,yCAFU,MAAM,CAEsF;AAEtG;;;;;;;;;;;;;;GAcG;AACH,iCAFU,MAAM,CAEqB;AAErC,oCAAqC;AACrC,oCAAqC;AACrC,oCAAqC;AACrC,sCAAuC;AACvC,6CAA8C;AAC9C,6CAA8C;AAE9C;;;GAGG;AACH,qCAFU,MAAM,CAEwB;AAExC;;;GAGG;AACH,mCAFU,MAAM,CAEsB"}
1
+ {"version":3,"file":"HAIR.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/hair/HAIR.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;GAEG;AACH,8CAAwC;AAExC;;;GAGG;AACH,2BAFU,MAAM,CAEc;AAE9B;;;GAGG;AACH,iCAFU,MAAM,CAEoB;AAEpC;;;GAGG;AACH,+BAFU,MAAM,CAEmB;AAEnC;;;GAGG;AACH,+BAFU,MAAM,CAEkB;AAElC;;;GAGG;AACH,wCAFU,MAAM,CAEmD;AAEnE;;;GAGG;AACH,4BAFU,MAAM,CAEgB;AAEhC;;;;GAIG;AACH,6BAFU,MAAM,CAEiB;AAEjC;;;GAGG;AACH,oCAFU,MAAM,CAE2B;AAE3C;;;GAGG;AACH,+BAFU,MAAM,CAEkB;AAElC;;;GAGG;AACH,0CAFU,MAAM,CAE+B;AAE/C;;;;GAIG;AACH,yCAFU,MAAM,CAEsF;AAEtG;;;;;;;;;;;;;;GAcG;AACH,iCAFU,MAAM,CAEqB;AAErC,oCAAqC;AACrC,oCAAqC;AACrC,oCAAqC;AACrC,sCAAuC;AACvC,6CAA8C;AAC9C,6CAA8C;AAE9C;;;GAGG;AACH,qCAFU,MAAM,CAEwB;AAExC;;;GAGG;AACH,mCAFU,MAAM,CAEsB"}
@@ -11,9 +11,11 @@
11
11
  * **A draw list entry** is a strand: its slot, with its point class above {@link HAIR_CLASS_SHIFT}. A strand of
12
12
  * class `c` has `2^c` segments. A class's region of the list holds first the strands of instances the view draws,
13
13
  * from its start, then those of instances only the shadow views draw, from its start plus the first's count. Where
14
- * the strands cast shadows, the list is followed, at its capacity, by two words an entry
15
- * ({@link HAIR_LIST_SHADOW_WORDS}): the widest half width any point of the strand is drawn at, then the farthest any
16
- * point of it is from its root, metres, f32 bits.
14
+ * the strands cast shadows, the list is followed, at its capacity, by three words an entry
15
+ * ({@link HAIR_LIST_SHADOW_WORDS}), f32 bits: the widest half width any point of the strand is drawn at; the farthest
16
+ * any point of it is from its root, metres; and its share, the number in [0, 1), stratified over its group's ranks,
17
+ * that decides whether a point of it narrower than a view's floor or a shadow view's texel is drawn at it. The share
18
+ * belongs to the strand, not to where the frame placed it, so a strand is drawn or not frame after frame.
17
19
  *
18
20
  * **An instance's density volume** is a box of voxels around its strands, cubes of one edge, in the frame's voxel
19
21
  * buffer (`u32`) from its LOD record's `voxel_base`: {@link HAIR_VOLUME_MIPS} levels one after another, x fastest,
@@ -127,7 +129,7 @@ export const HAIR_COUNTER_SHADOW_CURSORS = 40;
127
129
  * Words an entry of the draw list carries past the list's capacity where the strands cast shadows.
128
130
  * @type {number}
129
131
  */
130
- export const HAIR_LIST_SHADOW_WORDS = 2;
132
+ export const HAIR_LIST_SHADOW_WORDS = 3;
131
133
 
132
134
  /**
133
135
  * Words of one indirect draw: vertex count, instance count, first vertex, first instance.
@@ -10,14 +10,16 @@
10
10
  *
11
11
  * `melanin` from 0 (none) to 1 (black), `redness` the share of it that is pheomelanin, `dye` a colour whose
12
12
  * absorption adds to the pigments' (white adds none). The two mappings are each other's inverse: the colour is what
13
- * the hair looks after multiple scattering, at {@link B}. Unreal's `GetHairColorFromMelanin`, kept as absorption.
13
+ * the hair looks after multiple scattering, at {@link B}. `hair_absorption` gives the pigments' absorption, not
14
+ * the colour it maps to.
14
15
  *
15
16
  * @type {CodeChunk}
16
17
  */
17
18
  export const chunk_hair_absorption: CodeChunk;
18
19
  /**
19
- * Light scattered by a hair fibre, single scattering: Unreal 5.4's `HairShading` (HairBsdf.ush), Marschner et al.'s
20
- * three lobes in Karis's closed forms (Marschner et al. 2003; Pekelis et al. 2015 for the shapes):
20
+ * Light scattered by a hair fibre, single scattering: Marschner et al.'s three lobes in Karis's closed forms
21
+ * (Marschner et al. 2003; Karis 2016, "Physically Based Hair Shading in Unreal", SIGGRAPH course notes; Pekelis et
22
+ * al. 2015 for the shapes):
21
23
  *
22
24
  * ```wgsl
23
25
  * fn hair_shading(l: vec3<f32>, v: vec3<f32>, t: vec3<f32>, absorption: vec3<f32>, roughness: f32,
@@ -28,12 +30,11 @@ export const chunk_hair_absorption: CodeChunk;
28
30
  * longitudinal roughness; `area` widens every lobe, for light from a solid angle (0 for a point light); `backlit`
29
31
  * scales the transmission and the back of the reflection, 1 for a light behind the hair to show through it.
30
32
  *
31
- * R reflects at the cuticle, its shift the cuticle's tilt and its azimuthal width separable (Unreal's strands);
32
- * TT passes through the fibre, attenuated by `absorption` over its path; TRT reflects once inside. The result is what
33
- * multiplies a light's radiance: no cosine is left to apply. Never negative.
33
+ * R reflects at the cuticle, its shift the cuticle's tilt and its azimuthal width separable; TT passes through the
34
+ * fibre, attenuated by `absorption` over its path; TRT reflects once inside. The result is what multiplies a light's
35
+ * radiance: no cosine is left to apply. Never negative.
34
36
  *
35
- * Unreal's Kajiya-Kay diffuse term, its own "hack approximation for multiple scattering", is not here: multiple
36
- * scattering is dual scattering's to add.
37
+ * No Kajiya-Kay diffuse term stands in for multiple scattering: multiple scattering is dual scattering's to add.
37
38
  *
38
39
  * @type {CodeChunk}
39
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"chunk_hair_bsdf.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/hair/chunk_hair_bsdf.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;;GAeG;AACH,oCAFU,SAAS,CAyBhB;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iCAFU,SAAS,CA8FS;0BAzKF,iCAAiC"}
1
+ {"version":3,"file":"chunk_hair_bsdf.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/hair/chunk_hair_bsdf.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;;;GAgBG;AACH,oCAFU,SAAS,CAyBhB;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iCAFU,SAAS,CA8FS;0BA1KF,iCAAiC"}