@woosh/meep-engine 3.78.2 → 3.78.4

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 (278) hide show
  1. package/CHANGELOG.md +46 -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/loaders/GroomAssetLoader.d.ts.map +1 -1
  15. package/src/engine/asset/loaders/GroomAssetLoader.js +2 -1
  16. package/src/engine/graphics/hair/Groom.d.ts +30 -0
  17. package/src/engine/graphics/hair/Groom.d.ts.map +1 -1
  18. package/src/engine/graphics/hair/Groom.js +35 -0
  19. package/src/engine/graphics/hair/GroomSerializationAdapter.d.ts +18 -2
  20. package/src/engine/graphics/hair/GroomSerializationAdapter.d.ts.map +1 -1
  21. package/src/engine/graphics/hair/GroomSerializationAdapter.js +36 -6
  22. package/src/engine/graphics/hair/GroomSerializationUpgrader_1_2.d.ts +8 -0
  23. package/src/engine/graphics/hair/GroomSerializationUpgrader_1_2.d.ts.map +1 -0
  24. package/src/engine/graphics/hair/GroomSerializationUpgrader_1_2.js +44 -0
  25. package/src/engine/graphics/hair/groom_bake_shelter.d.ts +33 -0
  26. package/src/engine/graphics/hair/groom_bake_shelter.d.ts.map +1 -0
  27. package/src/engine/graphics/hair/groom_bake_shelter.js +288 -0
  28. package/src/engine/graphics/hair/groom_bind_to_mesh.d.ts +1 -1
  29. package/src/engine/graphics/hair/groom_bind_to_mesh.js +1 -1
  30. package/src/engine/graphics/hair/groom_build_group.d.ts +10 -2
  31. package/src/engine/graphics/hair/groom_build_group.d.ts.map +1 -1
  32. package/src/engine/graphics/hair/groom_build_group.js +8 -2
  33. package/src/engine/graphics/hair/groom_build_guides.d.ts +1 -1
  34. package/src/engine/graphics/hair/groom_build_guides.js +1 -1
  35. package/src/engine/graphics/impostors/voxel/README.md +11 -11
  36. package/src/engine/physics/cloth/collider/ClothColliderKind.js +1 -1
  37. package/src/engine/physics/cloth/ecs/cloth_geodesic.d.ts +1 -1
  38. package/src/engine/physics/cloth/ecs/cloth_geodesic.js +1 -1
  39. package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.d.ts +2 -3
  40. package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.d.ts.map +1 -1
  41. package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.js +2 -3
  42. package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.d.ts +0 -2
  43. package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.d.ts.map +1 -1
  44. package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.js +0 -5
  45. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerCubic.d.ts.map +1 -1
  46. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerCubic.js +5 -3
  47. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerLinear.d.ts.map +1 -1
  48. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerLinear.js +5 -3
  49. package/src/generation/grid/coords/grid_to_texel.d.ts +7 -1
  50. package/src/generation/grid/coords/grid_to_texel.d.ts.map +1 -1
  51. package/src/generation/grid/coords/grid_to_texel.js +11 -1
  52. package/src/generation/grid/coords/grid_to_texel_span.d.ts +15 -0
  53. package/src/generation/grid/coords/grid_to_texel_span.d.ts.map +1 -0
  54. package/src/generation/grid/coords/grid_to_texel_span.js +38 -0
  55. package/src/generation/grid/coords/texel_to_grid.d.ts +2 -1
  56. package/src/generation/grid/coords/texel_to_grid.d.ts.map +1 -1
  57. package/src/generation/grid/coords/texel_to_grid.js +6 -1
  58. package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts +32 -1
  59. package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts.map +1 -1
  60. package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.js +114 -9
  61. package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.d.ts +8 -0
  62. package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.d.ts.map +1 -1
  63. package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.js +91 -29
  64. package/src/generation/grid/layers/GridDataLayer.d.ts +21 -2
  65. package/src/generation/grid/layers/GridDataLayer.d.ts.map +1 -1
  66. package/src/generation/grid/layers/GridDataLayer.js +43 -4
  67. package/src/generation/placement/action/GridCellActionPlaceTags.d.ts +7 -1
  68. package/src/generation/placement/action/GridCellActionPlaceTags.d.ts.map +1 -1
  69. package/src/generation/placement/action/GridCellActionPlaceTags.js +42 -16
  70. package/src/generation/placement/action/GridCellActionWriteFilterToLayer.d.ts +5 -0
  71. package/src/generation/placement/action/GridCellActionWriteFilterToLayer.d.ts.map +1 -1
  72. package/src/generation/placement/action/GridCellActionWriteFilterToLayer.js +32 -9
  73. package/src/generation/rules/CellMatcherLayerBitMaskTest.d.ts.map +1 -1
  74. package/src/generation/rules/CellMatcherLayerBitMaskTest.js +6 -2
  75. package/src/generation/wfc/GridWFCCompiledTileSet.d.ts +4 -2
  76. package/src/generation/wfc/GridWFCCompiledTileSet.d.ts.map +1 -1
  77. package/src/generation/wfc/GridWFCCompiledTileSet.js +2 -2
  78. package/src/generation/wfc/GridWFCTileSet.d.ts +16 -7
  79. package/src/generation/wfc/GridWFCTileSet.d.ts.map +1 -1
  80. package/src/generation/wfc/GridWFCTileSet.js +32 -8
  81. package/src/shade/playground/contact_shadows/shader_contact_lab_composite.js +2 -2
  82. package/src/shade/playground/particle_editor/README.md +2 -2
  83. package/src/shade/playground/probe_clipmap/index.html +1 -1
  84. package/src/shade/playground/screen_probes/README.md +5 -5
  85. package/src/shade/playground/screen_probes/main.js +1 -1
  86. package/src/shade/playground/tonemap_sdr/README.md +3 -2
  87. package/src/shade/playground/vgeo_scene/README.md +1 -3
  88. package/src/shade/playground/vgeo_scene/main.js +3 -3
  89. package/src/shade/renderer/Renderer.d.ts +3 -3
  90. package/src/shade/renderer/Renderer.js +4 -4
  91. package/src/shade/renderer/ShadeIndirectLightingMode.js +1 -1
  92. package/src/shade/renderer/camera/PerspectiveCamera.js +1 -1
  93. package/src/shade/renderer/deferred/tonemap/ColorGrade.d.ts +11 -13
  94. package/src/shade/renderer/deferred/tonemap/ColorGrade.d.ts.map +1 -1
  95. package/src/shade/renderer/deferred/tonemap/ColorGrade.js +11 -13
  96. package/src/shade/renderer/deferred/tonemap/TONE_MAP_OPERATOR_ACES.d.ts.map +1 -1
  97. package/src/shade/renderer/deferred/tonemap/TONE_MAP_OPERATOR_ACES.js +6 -7
  98. package/src/shade/renderer/deferred/tonemap/ToneMapper.d.ts +1 -1
  99. package/src/shade/renderer/deferred/tonemap/ToneMapper.js +1 -1
  100. package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.d.ts +6 -8
  101. package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.d.ts.map +1 -1
  102. package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.js +7 -10
  103. package/src/shade/renderer/geometry/sdf/MESH_SDF.d.ts +1 -1
  104. package/src/shade/renderer/geometry/sdf/MESH_SDF.js +1 -1
  105. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_classify.d.ts +1 -1
  106. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_classify.js +1 -1
  107. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_evaluate.d.ts +1 -1
  108. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_evaluate.js +1 -1
  109. package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.d.ts +1 -2
  110. package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.d.ts.map +1 -1
  111. package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.js +1 -2
  112. package/src/shade/renderer/geometry/sdf/chunk_scene_point_query_volume_sign.d.ts.map +1 -1
  113. package/src/shade/renderer/geometry/sdf/chunk_scene_point_query_volume_sign.js +2 -1
  114. package/src/shade/renderer/geometry/sdf/surface/MESH_SURFACE_BAKE.d.ts +1 -1
  115. package/src/shade/renderer/geometry/sdf/surface/MESH_SURFACE_BAKE.js +1 -1
  116. package/src/shade/renderer/geometry/virtual/build/level/vgeo_build_cluster_graph.js +1 -1
  117. package/src/shade/renderer/geometry/virtual/format/page/VGEO_DEFAULT_PAGE_SIZE.d.ts +2 -2
  118. package/src/shade/renderer/geometry/virtual/format/page/VGEO_DEFAULT_PAGE_SIZE.js +2 -2
  119. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.d.ts +2 -2
  120. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.js +4 -4
  121. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_instance.d.ts +1 -1
  122. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_instance.js +1 -1
  123. package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_collect.js +1 -1
  124. package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.d.ts +3 -3
  125. package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.js +3 -3
  126. package/src/shade/renderer/global_illumination/brick4/README.md +2 -1
  127. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts +4 -6
  128. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts.map +1 -1
  129. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js +4 -6
  130. package/src/shade/renderer/global_illumination/probe_clipmap/brick/BRICK_MOVERS.d.ts +1 -1
  131. package/src/shade/renderer/global_illumination/probe_clipmap/brick/BRICK_MOVERS.js +1 -1
  132. package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts +1 -1
  133. package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js +2 -2
  134. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/chunk_mesh_brick_texel.d.ts +1 -1
  135. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/chunk_mesh_brick_texel.js +1 -1
  136. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts +1 -1
  137. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js +1 -1
  138. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts +28 -35
  139. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts.map +1 -1
  140. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.js +28 -35
  141. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts +21 -24
  142. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts.map +1 -1
  143. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js +21 -24
  144. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.d.ts +8 -8
  145. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.js +8 -8
  146. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_brdf_density.d.ts +4 -4
  147. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_brdf_density.js +4 -4
  148. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.d.ts +3 -5
  149. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.d.ts.map +1 -1
  150. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.js +3 -5
  151. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_lighting_history.d.ts +4 -4
  152. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_lighting_history.js +4 -4
  153. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts +2 -3
  154. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts.map +1 -1
  155. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.js +2 -3
  156. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_screen_march.d.ts +4 -4
  157. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_screen_march.js +4 -4
  158. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.d.ts +2 -4
  159. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.d.ts.map +1 -1
  160. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.js +2 -4
  161. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.d.ts +2 -4
  162. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.d.ts.map +1 -1
  163. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.js +2 -4
  164. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts +13 -17
  165. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts.map +1 -1
  166. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.js +13 -17
  167. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.d.ts +11 -14
  168. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.d.ts.map +1 -1
  169. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.js +11 -14
  170. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_pick.d.ts +2 -2
  171. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_pick.js +2 -2
  172. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_place.d.ts +9 -9
  173. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_place.js +9 -9
  174. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts +15 -18
  175. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts.map +1 -1
  176. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.js +16 -19
  177. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.d.ts +10 -11
  178. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.d.ts.map +1 -1
  179. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.js +11 -12
  180. package/src/shade/renderer/hair/GPUHairSystem.d.ts.map +1 -1
  181. package/src/shade/renderer/hair/GPUHairSystem.js +27 -2
  182. package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.d.ts.map +1 -1
  183. package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.js +4 -0
  184. package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts +27 -6
  185. package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts.map +1 -1
  186. package/src/shade/renderer/hair/HAIR_SIMULATION.js +33 -6
  187. package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts +9 -8
  188. package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts.map +1 -1
  189. package/src/shade/renderer/hair/chunk_hair_bsdf.js +10 -9
  190. package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts +5 -6
  191. package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts.map +1 -1
  192. package/src/shade/renderer/hair/chunk_hair_dual_scattering.js +5 -6
  193. package/src/shade/renderer/hair/chunk_hair_guide.d.ts +9 -2
  194. package/src/shade/renderer/hair/chunk_hair_guide.d.ts.map +1 -1
  195. package/src/shade/renderer/hair/chunk_hair_guide.js +30 -2
  196. package/src/shade/renderer/hair/hair_lighting.d.ts +3 -3
  197. package/src/shade/renderer/hair/hair_lighting.d.ts.map +1 -1
  198. package/src/shade/renderer/hair/hair_lighting.js +4 -5
  199. package/src/shade/renderer/hair/hair_scattering_lut.d.ts +5 -5
  200. package/src/shade/renderer/hair/hair_scattering_lut.js +5 -5
  201. package/src/shade/renderer/hair/shader_hair_roots.d.ts +2 -2
  202. package/src/shade/renderer/hair/shader_hair_roots.js +2 -2
  203. package/src/shade/renderer/hair/shader_hair_simulate.d.ts +5 -2
  204. package/src/shade/renderer/hair/shader_hair_simulate.d.ts.map +1 -1
  205. package/src/shade/renderer/hair/shader_hair_simulate.js +23 -5
  206. package/src/shade/renderer/light/environment/DEFINES.d.ts +1 -1
  207. package/src/shade/renderer/light/environment/DEFINES.js +1 -1
  208. package/src/shade/renderer/light/environment/shader_convolve_reflection_map_from_blurred.js +2 -2
  209. package/src/shade/renderer/material/dispatch/MaterialDispatch.d.ts +1 -2
  210. package/src/shade/renderer/material/dispatch/MaterialDispatch.d.ts.map +1 -1
  211. package/src/shade/renderer/material/dispatch/MaterialDispatch.js +1 -2
  212. package/src/shade/renderer/material/standard/fragment_gbuffer.d.ts.map +1 -1
  213. package/src/shade/renderer/material/standard/fragment_gbuffer.js +2 -1
  214. package/src/shade/renderer/material/util/dielectric_specular_color.d.ts +1 -1
  215. package/src/shade/renderer/material/util/dielectric_specular_color.js +1 -1
  216. package/src/shade/renderer/postprocess/dof/gather/DOF2_CONFIG.d.ts +1 -1
  217. package/src/shade/renderer/postprocess/dof/gather/DOF2_CONFIG.js +1 -1
  218. package/src/shade/renderer/postprocess/dof/gather/DOF2_PRESETS.js +1 -1
  219. package/src/shade/renderer/postprocess/dof/gather/DOF2_SETTINGS_STRUCT.d.ts +1 -1
  220. package/src/shade/renderer/postprocess/dof/gather/DOF2_SETTINGS_STRUCT.js +1 -1
  221. package/src/shade/renderer/postprocess/dof/gather/DOF2_TEXTURE_FORMAT.d.ts +1 -1
  222. package/src/shade/renderer/postprocess/dof/gather/DOF2_TEXTURE_FORMAT.js +1 -1
  223. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts +3 -4
  224. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts.map +1 -1
  225. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.js +3 -4
  226. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts +1 -1
  227. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.js +1 -1
  228. package/src/shade/renderer/postprocess/eye/GPUCameraExposureManager.d.ts +1 -1
  229. package/src/shade/renderer/postprocess/eye/GPUCameraExposureManager.js +1 -1
  230. package/src/shade/renderer/postprocess/gtao/ao_reproject_shader.d.ts.map +1 -1
  231. package/src/shade/renderer/postprocess/gtao/ao_reproject_shader.js +2 -3
  232. package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.d.ts +1 -2
  233. package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.d.ts.map +1 -1
  234. package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.js +1 -2
  235. package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.d.ts +2 -3
  236. package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.d.ts.map +1 -1
  237. package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.js +2 -3
  238. package/src/shade/renderer/postprocess/taa/filter_blackman_harris.d.ts +1 -1
  239. package/src/shade/renderer/postprocess/taa/filter_blackman_harris.js +1 -1
  240. package/src/shade/renderer/rasterize/native/depth/shadow_cascade_rasterization_pass_descriptor.d.ts +1 -1
  241. package/src/shade/renderer/rasterize/native/depth/shadow_cascade_rasterization_pass_descriptor.js +1 -1
  242. package/src/shade/renderer/rasterize/native/depth/shadow_rasterization_alpha_tested_pass_descriptor.js +1 -1
  243. package/src/shade/renderer/restir/di/ReSTIRDI.d.ts +3 -3
  244. package/src/shade/renderer/restir/di/ReSTIRDI.js +3 -3
  245. package/src/shade/renderer/restir/di/chunk_restir_trace_visibility.d.ts +1 -1
  246. package/src/shade/renderer/restir/di/chunk_restir_trace_visibility.js +1 -1
  247. package/src/shade/renderer/shader/chunk/brdf/chunk_MIN_DIELECTRICS_F0.d.ts +1 -1
  248. package/src/shade/renderer/shader/chunk/brdf/chunk_MIN_DIELECTRICS_F0.js +1 -1
  249. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts +1 -2
  250. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts.map +1 -1
  251. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.js +1 -2
  252. package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.d.ts +4 -5
  253. package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.d.ts.map +1 -1
  254. package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.js +4 -5
  255. package/src/shade/renderer/shader/chunk/color/grade/chunk_color_grade.js +2 -2
  256. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_aces_ue_matrices.d.ts +2 -2
  257. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_aces_ue_matrices.js +2 -2
  258. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.d.ts +14 -17
  259. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.d.ts.map +1 -1
  260. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.js +18 -21
  261. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris.d.ts +1 -1
  262. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris.js +1 -1
  263. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris229.d.ts +1 -1
  264. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris229.js +1 -1
  265. package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.d.ts +3 -4
  266. package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.d.ts.map +1 -1
  267. package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.js +3 -4
  268. package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.d.ts +1 -1
  269. package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.js +1 -1
  270. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +3 -3
  271. package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.d.ts +6 -8
  272. package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.d.ts.map +1 -1
  273. package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.js +8 -10
  274. package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.d.ts +5 -7
  275. package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.d.ts.map +1 -1
  276. package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.js +5 -7
  277. package/src/shade/renderer/texture/virtual/README.md +257 -257
  278. package/src/shade/renderer/volumetrics/shader_volumetrics_build_lighting.js +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"chunk_screen_probe_rough_specular.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.js"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,gDAFU,SAAS,CA2DZ;0BA7FmB,oCAAoC"}
1
+ {"version":3,"file":"chunk_screen_probe_rough_specular.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.js"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,gDAFU,SAAS,CA2DZ;0BA5FmB,oCAAoC"}
@@ -15,7 +15,7 @@ import {
15
15
  } from "./SCREEN_PROBE.js";
16
16
 
17
17
  /**
18
- * A pixel's rough specular from the screen probes (Lumen's `RoughSpecularIndirect`):
18
+ * A pixel's rough specular from the screen probes:
19
19
  *
20
20
  * ```wgsl
21
21
  * fn screen_probe_rough_specular_world_share(roughness: f32) -> f32
@@ -30,8 +30,7 @@ import {
30
30
  * irradiance over π: 1 below `…_SAMPLED_ROUGHNESS − …_SAMPLED_FADE`, 0 from `…_SAMPLED_ROUGHNESS`.
31
31
  * - **Radiance at a direction**: the probe's filtered radiance (`screen_probe_radiance`, pre-exposed), bilinear over its
32
32
  * octahedron's texels: the equal-area map folds as the octahedral one does, so a tap past an edge reads the texel
33
- * that edge joins (`texture_octahedral_wrap_texel_coordinates`) and the read has no seam. Lumen reads a bordered
34
- * atlas, bilinear, at a mip; there are no mips here.
33
+ * that edge joins (`texture_octahedral_wrap_texel_coordinates`) and the read has no seam. There are no mips.
35
34
  * - **Lobe radiance**: `SCREEN_PROBE_ROUGH_SPECULAR_SAMPLES` reflections drawn from the GGX distribution of visible
36
35
  * normals at `alpha` around the shading normal (`sample_reflection_vector`), each by the frame's blue noise at the
37
36
  * pixel in its own slice (8, 24, 40 and 56 past the frame), weighed by Smith's G1 of its direction, the BRDF over
@@ -10,10 +10,10 @@
10
10
  * The march is `ffx_sssr_hierarchical_raymarch` from the full-resolution level, `SCREEN_PROBE_SCREEN_TRACE_STEPS`
11
11
  * steps at most. `reached` is where it stopped, `t` its place on the segment held to [0, 1].
12
12
  *
13
- * `hit` is whether it converged, short of the segment's end: went below the full-resolution level's surface, Lumen's
14
- * `MipLevel < BaseMipLevel`. A march that spent its steps, left the screen or reached the sky stopped where it was,
15
- * on no surface, though the march's `valid_hit` reports one that did so on the full-resolution level; one converging
16
- * on its very last step is taken for one that spent them, and left to what traces the ray on.
13
+ * `hit` is whether it converged, short of the segment's end: went below the full-resolution level's surface. A march
14
+ * that spent its steps, left the screen or reached the sky stopped where it was, on no surface, though the march's
15
+ * `valid_hit` reports one that did so on the full-resolution level; one converging on its very last step is taken for
16
+ * one that spent them, and left to what traces the ray on.
17
17
  *
18
18
  * @type {CodeChunk}
19
19
  */
@@ -17,10 +17,10 @@ import { SCREEN_PROBE_SCREEN_TRACE_STEPS } from "./SCREEN_PROBE.js";
17
17
  * The march is `ffx_sssr_hierarchical_raymarch` from the full-resolution level, `SCREEN_PROBE_SCREEN_TRACE_STEPS`
18
18
  * steps at most. `reached` is where it stopped, `t` its place on the segment held to [0, 1].
19
19
  *
20
- * `hit` is whether it converged, short of the segment's end: went below the full-resolution level's surface, Lumen's
21
- * `MipLevel < BaseMipLevel`. A march that spent its steps, left the screen or reached the sky stopped where it was,
22
- * on no surface, though the march's `valid_hit` reports one that did so on the full-resolution level; one converging
23
- * on its very last step is taken for one that spent them, and left to what traces the ray on.
20
+ * `hit` is whether it converged, short of the segment's end: went below the full-resolution level's surface. A march
21
+ * that spent its steps, left the screen or reached the sky stopped where it was, on no surface, though the march's
22
+ * `valid_hit` reports one that did so on the full-resolution level; one converging on its very last step is taken for
23
+ * one that spent them, and left to what traces the ray on.
24
24
  *
25
25
  * @type {CodeChunk}
26
26
  */
@@ -27,8 +27,7 @@ export const SCREEN_PROBE_VELOCITY_RESOURCE: ShaderResourceDescriptor;
27
27
  */
28
28
  export const chunk_screen_probe_point_before: CodeChunk;
29
29
  /**
30
- * How fast a pixel's surface point moves of itself, apart from the camera (Lumen's probe and hit world velocity, as a
31
- * length):
30
+ * How fast a pixel's surface point moves of itself, apart from the camera:
32
31
  *
33
32
  * ```wgsl
34
33
  * fn screen_probe_object_speed(pixel: vec2<u32>, position: vec3<f32>, depth: f32) -> f32 // metres a frame
@@ -43,8 +42,7 @@ export const chunk_screen_probe_point_before: CodeChunk;
43
42
  */
44
43
  export const chunk_screen_probe_object_speed: CodeChunk;
45
44
  /**
46
- * The record of a probe standing on a pixel of the G-buffer (Lumen's `GetScreenProbeMaterial` and
47
- * `WriteDownsampledProbeMaterial`):
45
+ * The record of a probe standing on a pixel of the G-buffer:
48
46
  *
49
47
  * ```wgsl
50
48
  * fn screen_probe_surface_at(pixel: vec2<u32>) -> ScreenProbe
@@ -1 +1 @@
1
- {"version":3,"file":"chunk_screen_probe_surface.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.js"],"names":[],"mappings":"AAeA,qEAAqE;AACrE,2CADyC,wBAAwB,CAC6C;AAE9G,qEAAqE;AACrE,oDADyC,wBAAwB,CAC+D;AAEhI,oEAAoE;AACpE,0CADwC,wBAAwB,CACsB;AAEtF,gGAAgG;AAChG,wCADoE,wBAAwB,CACV;AAElF,uKAAuK;AACvK,6CAD2I,wBAAwB,CACvE;AAE5F;;;;;;;;;;;;;;;;GAgBG;AACH,8CAFU,SAAS,CA8BZ;AAKP;;;;;;;;;;;;;;GAcG;AACH,8CAFU,SAAS,CAUZ;AAEP;;;;;;;;;;;;;GAaG;AACH,yCAFU,SAAS,CAkCZ;yCA3IkC,mDAAmD;0BADlE,oCAAoC"}
1
+ {"version":3,"file":"chunk_screen_probe_surface.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.js"],"names":[],"mappings":"AAeA,qEAAqE;AACrE,2CADyC,wBAAwB,CAC6C;AAE9G,qEAAqE;AACrE,oDADyC,wBAAwB,CAC+D;AAEhI,oEAAoE;AACpE,0CADwC,wBAAwB,CACsB;AAEtF,gGAAgG;AAChG,wCADoE,wBAAwB,CACV;AAElF,uKAAuK;AACvK,6CAD2I,wBAAwB,CACvE;AAE5F;;;;;;;;;;;;;;;;GAgBG;AACH,8CAFU,SAAS,CA8BZ;AAKP;;;;;;;;;;;;;GAaG;AACH,8CAFU,SAAS,CAUZ;AAEP;;;;;;;;;;;;GAYG;AACH,yCAFU,SAAS,CAkCZ;yCAzIkC,mDAAmD;0BADlE,oCAAoC"}
@@ -79,8 +79,7 @@ chunk_screen_probe_point_before.requireResource(SCREEN_PROBE_VELOCITY_RESOURCE);
79
79
  chunk_screen_probe_point_before.requireResource(SCREEN_PROBE_CAMERA_PREVIOUS_RESOURCE);
80
80
 
81
81
  /**
82
- * How fast a pixel's surface point moves of itself, apart from the camera (Lumen's probe and hit world velocity, as a
83
- * length):
82
+ * How fast a pixel's surface point moves of itself, apart from the camera:
84
83
  *
85
84
  * ```wgsl
86
85
  * fn screen_probe_object_speed(pixel: vec2<u32>, position: vec3<f32>, depth: f32) -> f32 // metres a frame
@@ -104,8 +103,7 @@ fn screen_probe_object_speed(pixel: vec2<u32>, position: vec3<f32>, depth: f32)
104
103
  ]);
105
104
 
106
105
  /**
107
- * The record of a probe standing on a pixel of the G-buffer (Lumen's `GetScreenProbeMaterial` and
108
- * `WriteDownsampledProbeMaterial`):
106
+ * The record of a probe standing on a pixel of the G-buffer:
109
107
  *
110
108
  * ```wgsl
111
109
  * fn screen_probe_surface_at(pixel: vec2<u32>) -> ScreenProbe
@@ -1,11 +1,9 @@
1
1
  /**
2
- * The bricks' trace of the rays the screen left (Lumen's mesh and global SDF traces): a thread a ray of their list,
3
- * through its command.
2
+ * The bricks' trace of the rays the screen left: a thread a ray of their list, through its command.
4
3
  *
5
4
  * - From the probe's origin (`ScreenProbePick#origin`) to the probe's reach (`brick_clipmap_trace`), starting a
6
5
  * voxel short of where the screen showed the ray clear. The screen's ray left the surface point, so that distance
7
- * moves by the origin's offset along this ray, as Lumen's world traces start twice their bias short of the screen's
8
- * distance, the most their biases move the start along the ray.
6
+ * moves by the origin's offset along this ray.
9
7
  * - **A front-face hit** takes E_dir from the directional lights, shadowed by rays through the bricks
10
8
  * (`probe_clipmap_sun_irradiance`), each light's point of its disk drawn from the ray's id and direction.
11
9
  * - **A back face** is a hit whose field's gradient runs along the ray: the ray started inside a solid.
@@ -1 +1 @@
1
- {"version":3,"file":"shader_screen_probe_brick.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.js"],"names":[],"mappings":"AAkGA;;;;;;;;;;;;;;;;GAgBG;AACH,8CAFU,aAAa,CA+DpB;AAYH;;;;;;;;;;;;;GAaG;AACH,8CAFU,aAAa,CAiEpB;AAUH;;;;;;GAMG;AACH,8CAFU,aAAa,CA0DpB;AA4BH;;;;;;;;;;;;;GAaG;AACH,+CAFU,aAAa,CAwEpB;AAWH;;;;;;;GAOG;AACH,6CAFU,aAAa,CA2CpB;8BAre2B,+BAA+B"}
1
+ {"version":3,"file":"shader_screen_probe_brick.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.js"],"names":[],"mappings":"AAkGA;;;;;;;;;;;;;;GAcG;AACH,8CAFU,aAAa,CA+DpB;AAYH;;;;;;;;;;;;;GAaG;AACH,8CAFU,aAAa,CAiEpB;AAUH;;;;;;GAMG;AACH,8CAFU,aAAa,CA0DpB;AA4BH;;;;;;;;;;;;;GAaG;AACH,+CAFU,aAAa,CAwEpB;AAWH;;;;;;;GAOG;AACH,6CAFU,aAAa,CA2CpB;8BAne2B,+BAA+B"}
@@ -97,13 +97,11 @@ trace_resources.addGroup(rays_group().add(SCREEN_PROBES_READ_RESOURCE).add(LIGHT
97
97
  trace_resources.addGroup(brick_group());
98
98
 
99
99
  /**
100
- * The bricks' trace of the rays the screen left (Lumen's mesh and global SDF traces): a thread a ray of their list,
101
- * through its command.
100
+ * The bricks' trace of the rays the screen left: a thread a ray of their list, through its command.
102
101
  *
103
102
  * - From the probe's origin (`ScreenProbePick#origin`) to the probe's reach (`brick_clipmap_trace`), starting a
104
103
  * voxel short of where the screen showed the ray clear. The screen's ray left the surface point, so that distance
105
- * moves by the origin's offset along this ray, as Lumen's world traces start twice their bias short of the screen's
106
- * distance, the most their biases move the start along the ray.
104
+ * moves by the origin's offset along this ray.
107
105
  * - **A front-face hit** takes E_dir from the directional lights, shadowed by rays through the bricks
108
106
  * (`probe_clipmap_sun_irradiance`), each light's point of its disk drawn from the ray's id and direction.
109
107
  * - **A back face** is a hit whose field's gradient runs along the ray: the ray started inside a solid.
@@ -1,6 +1,5 @@
1
1
  /**
2
- * A probe's radiance from its rays (Lumen's `ScreenProbeCompositeTracesWithScatterCS`): a workgroup a probe, its lanes
3
- * over its n² rays, then over its n² texels.
2
+ * A probe's radiance from its rays: a workgroup a probe, its lanes over its n² rays, then over its n² texels.
4
3
  *
5
4
  * - **A ray's weight** is its texel's share of the probe's texel, (n / its level's resolution)²: one, or a quarter
6
5
  * for a child of a split texel, which holds a quarter of the solid angle (the map is equal-area).
@@ -17,10 +16,10 @@
17
16
  * (`shader_screen_probe_integrate`).
18
17
  * - **Accumulated** in workgroup memory, fixed point with the scale that keeps n² of the largest radiance in a word;
19
18
  * each texel keeps the nearest hit among the rays that landed, and whether any did.
20
- * - **The texels**: the sum, not normalised, as Lumen's: a texel takes about one ray's weight on average; the nearest
21
- * hit in alpha, negative where none landed.
22
- * - **The probe's moving share**: the moving rays' weight over n², Lumen's, which its thresholds are set against (the
23
- * filter's 1%, the fast update's 10%). With importance sampling the rays' weights sum to less than n², so a share
19
+ * - **The texels**: the sum, not normalised: a texel takes about one ray's weight on average; the nearest hit in
20
+ * alpha, negative where none landed.
21
+ * - **The probe's moving share**: the moving rays' weight over n², which its thresholds are set against (the filter's
22
+ * 1%, the fast update's 10%). With importance sampling the rays' weights sum to less than n², so a share
24
23
  * of their sum would pass those thresholds at less motion.
25
24
  * - Rays that ended unresolved, or of no ray, bring nothing; a probe on no surface is zero.
26
25
  *
@@ -28,9 +27,8 @@
28
27
  */
29
28
  export const shader_screen_probe_composite: ComputeShader;
30
29
  /**
31
- * One pass of the filter between probes (Lumen's `ScreenProbeFilterGatherTracesCS`): a thread a texel of the frame's
32
- * probes, through the thread-a-ray command; its result in alpha keeps the texel's own nearest hit, which no pass
33
- * changes.
30
+ * One pass of the filter between probes: a thread a texel of the frame's probes, through the thread-a-ray command; its
31
+ * result in alpha keeps the texel's own nearest hit, which no pass changes.
34
32
  *
35
33
  * - **The texel itself** weighs one where a ray landed in it, and nothing where none did.
36
34
  * - **Its neighbours**: the uniform probes of the four tiles beside its probe's, the same texel of each; with the
@@ -40,22 +38,20 @@ export const shader_screen_probe_composite: ComputeShader;
40
38
  * rays saw something moving, an angle weight: where the neighbour's ray in the texel hit, at the nearer of its own
41
39
  * and the probe's nearest hits, seen from the probe, against the texel's direction, `1 − angle / θ`. θ is the half
42
40
  * angle of the cone with a texel's solid angle, acos(1 − 2/n²), 14.4° at n = 8: a neighbour's light is the
43
- * texel's when what it saw lies inside the texel's cone from here. Lumen's 10° is the cone of half the texel's
44
- * solid angle at n = 8.
41
+ * texel's when what it saw lies inside the texel's cone from here.
45
42
  * - A neighbour on no surface, or whose texel no ray landed in, gives nothing. The mean of what is given; zero where
46
43
  * nothing is.
47
44
  *
48
- * Lumen weighs a neighbour by its depth's difference; the plane weight here is interpolation's, on which a neighbour
49
- * further along a slanted surface is still the same surface.
45
+ * The plane weight is interpolation's, not a difference of depths: on it a neighbour further along a slanted surface is
46
+ * still the same surface.
50
47
  *
51
48
  * @type {ComputeShader}
52
49
  */
53
50
  export const shader_screen_probe_filter: ComputeShader;
54
51
  /**
55
- * A probe's radiance as SH3 (Lumen's `ScreenProbeConvertToIrradianceCS`, its SH3 form): a workgroup a probe, its lanes
56
- * over its texels. The radiance is pre-exposed, and so is the SH. Each texel holds 4π/n² of the sphere, so the
57
- * projection is `Σ L(ωᵢ)·Y(ωᵢ)·4π/n²` over the texels, at
58
- * each texel's centre; a texel no ray landed in adds nothing. Stored as the probe clipmap's records store theirs
52
+ * A probe's radiance as SH3: a workgroup a probe, its lanes over its texels. The radiance is pre-exposed, and so is
53
+ * the SH. Each texel holds 4π/n² of the sphere, so the projection is `Σ L(ωᵢ)·Y(ωᵢ)·4π/n²` over the texels, at each
54
+ * texel's centre; a texel no ray landed in adds nothing. Stored as the probe clipmap's records store theirs
59
55
  * (`probe_record_sh_encode`), seven words a probe; readers resolve E with `sh3_color_get_irradiance_at`.
60
56
  *
61
57
  * @type {ComputeShader}
@@ -1 +1 @@
1
- {"version":3,"file":"shader_screen_probe_gather.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.js"],"names":[],"mappings":"AAmDA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,4CAFU,aAAa,CAqIpB;AAaH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,yCAFU,aAAa,CAgIpB;AAWH;;;;;;;;GAQG;AACH,6CAFU,aAAa,CA0FpB;8BAxd2B,+BAA+B"}
1
+ {"version":3,"file":"shader_screen_probe_gather.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.js"],"names":[],"mappings":"AAmDA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,4CAFU,aAAa,CAqIpB;AAaH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,yCAFU,aAAa,CAgIpB;AAWH;;;;;;;GAOG;AACH,6CAFU,aAAa,CA0FpB;8BApd2B,+BAA+B"}
@@ -50,8 +50,7 @@ composite_resources.createGroup()
50
50
  .add(SCREEN_PROBE_RADIANCE_WRITE_RESOURCE);
51
51
 
52
52
  /**
53
- * A probe's radiance from its rays (Lumen's `ScreenProbeCompositeTracesWithScatterCS`): a workgroup a probe, its lanes
54
- * over its n² rays, then over its n² texels.
53
+ * A probe's radiance from its rays: a workgroup a probe, its lanes over its n² rays, then over its n² texels.
55
54
  *
56
55
  * - **A ray's weight** is its texel's share of the probe's texel, (n / its level's resolution)²: one, or a quarter
57
56
  * for a child of a split texel, which holds a quarter of the solid angle (the map is equal-area).
@@ -68,10 +67,10 @@ composite_resources.createGroup()
68
67
  * (`shader_screen_probe_integrate`).
69
68
  * - **Accumulated** in workgroup memory, fixed point with the scale that keeps n² of the largest radiance in a word;
70
69
  * each texel keeps the nearest hit among the rays that landed, and whether any did.
71
- * - **The texels**: the sum, not normalised, as Lumen's: a texel takes about one ray's weight on average; the nearest
72
- * hit in alpha, negative where none landed.
73
- * - **The probe's moving share**: the moving rays' weight over n², Lumen's, which its thresholds are set against (the
74
- * filter's 1%, the fast update's 10%). With importance sampling the rays' weights sum to less than n², so a share
70
+ * - **The texels**: the sum, not normalised: a texel takes about one ray's weight on average; the nearest hit in
71
+ * alpha, negative where none landed.
72
+ * - **The probe's moving share**: the moving rays' weight over n², which its thresholds are set against (the filter's
73
+ * 1%, the fast update's 10%). With importance sampling the rays' weights sum to less than n², so a share
75
74
  * of their sum would pass those thresholds at less motion.
76
75
  * - Rays that ended unresolved, or of no ray, bring nothing; a probe on no surface is zero.
77
76
  *
@@ -222,9 +221,8 @@ filter_resources.createGroup()
222
221
  .add(SCREEN_PROBE_RADIANCE_WRITE_RESOURCE);
223
222
 
224
223
  /**
225
- * One pass of the filter between probes (Lumen's `ScreenProbeFilterGatherTracesCS`): a thread a texel of the frame's
226
- * probes, through the thread-a-ray command; its result in alpha keeps the texel's own nearest hit, which no pass
227
- * changes.
224
+ * One pass of the filter between probes: a thread a texel of the frame's probes, through the thread-a-ray command; its
225
+ * result in alpha keeps the texel's own nearest hit, which no pass changes.
228
226
  *
229
227
  * - **The texel itself** weighs one where a ray landed in it, and nothing where none did.
230
228
  * - **Its neighbours**: the uniform probes of the four tiles beside its probe's, the same texel of each; with the
@@ -234,13 +232,12 @@ filter_resources.createGroup()
234
232
  * rays saw something moving, an angle weight: where the neighbour's ray in the texel hit, at the nearer of its own
235
233
  * and the probe's nearest hits, seen from the probe, against the texel's direction, `1 − angle / θ`. θ is the half
236
234
  * angle of the cone with a texel's solid angle, acos(1 − 2/n²), 14.4° at n = 8: a neighbour's light is the
237
- * texel's when what it saw lies inside the texel's cone from here. Lumen's 10° is the cone of half the texel's
238
- * solid angle at n = 8.
235
+ * texel's when what it saw lies inside the texel's cone from here.
239
236
  * - A neighbour on no surface, or whose texel no ray landed in, gives nothing. The mean of what is given; zero where
240
237
  * nothing is.
241
238
  *
242
- * Lumen weighs a neighbour by its depth's difference; the plane weight here is interpolation's, on which a neighbour
243
- * further along a slanted surface is still the same surface.
239
+ * The plane weight is interpolation's, not a difference of depths: on it a neighbour further along a slanted surface is
240
+ * still the same surface.
244
241
  *
245
242
  * @type {ComputeShader}
246
243
  */
@@ -382,10 +379,9 @@ irradiance_resources.createGroup()
382
379
  .add(SCREEN_PROBE_RADIANCE_READ_RESOURCE);
383
380
 
384
381
  /**
385
- * A probe's radiance as SH3 (Lumen's `ScreenProbeConvertToIrradianceCS`, its SH3 form): a workgroup a probe, its lanes
386
- * over its texels. The radiance is pre-exposed, and so is the SH. Each texel holds 4π/n² of the sphere, so the
387
- * projection is `Σ L(ωᵢ)·Y(ωᵢ)·4π/n²` over the texels, at
388
- * each texel's centre; a texel no ray landed in adds nothing. Stored as the probe clipmap's records store theirs
382
+ * A probe's radiance as SH3: a workgroup a probe, its lanes over its texels. The radiance is pre-exposed, and so is
383
+ * the SH. Each texel holds 4π/n² of the sphere, so the projection is `Σ L(ωᵢ)·Y(ωᵢ)·4π/n²` over the texels, at each
384
+ * texel's centre; a texel no ray landed in adds nothing. Stored as the probe clipmap's records store theirs
389
385
  * (`probe_record_sh_encode`), seven words a probe; readers resolve E with `sh3_color_get_irradiance_at`.
390
386
  *
391
387
  * @type {ComputeShader}
@@ -11,29 +11,26 @@ export const SCREEN_PROBE_RADIANCE_HISTORY_RESOURCE: ShaderResourceDescriptor;
11
11
  /** The G-buffer's shading normals. @type {ShaderResourceDescriptor} */
12
12
  export const SCREEN_PROBE_NORMAL_RESOURCE: ShaderResourceDescriptor;
13
13
  /**
14
- * A probe's BRDF density (Lumen's `ScreenProbeComputeBRDFProbabilityDensityFunctionCS`): a workgroup a probe, a lane a
15
- * pixel of an 8 × 8 grid over the square of 2D pixels about it, the pixels whose light interpolates from it. The centre
16
- * lane takes the probe's own pixel.
14
+ * 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,
15
+ * the pixels whose light interpolates from it. The centre lane takes the probe's own pixel.
17
16
  *
18
17
  * A pixel counts where it stands on the probe's surface: the probe's plane weight from the pixel's plane is past
19
18
  * `SCREEN_PROBE_BRDF_PIXEL_WEIGHT` (the centre always counts). It adds its clamped cosine lobe about its shading normal
20
- * as SH3 (`sh3_cosine_convolved_basis_at`, Lumen's `CalcDiffuseTransferSH3`), and the probe's density is the mean of
21
- * the lobes: at a direction, how much the pixels' diffuse would weigh light from it.
19
+ * as SH3 (`sh3_cosine_convolved_basis_at`), and the probe's density is the mean of the lobes: at a direction, how much
20
+ * the pixels' diffuse would weigh light from it.
22
21
  *
23
- * 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
24
- * pixels that read the probe are.
22
+ * The grid's cells are centred on the probe, as the pixels that read the probe are.
25
23
  *
26
24
  * @type {ComputeShader}
27
25
  */
28
26
  export const shader_screen_probe_brdf_pdf: ComputeShader;
29
27
  /**
30
- * A probe's lighting density (Lumen's `ScreenProbeComputeLightingProbabilityDensityFunctionCS`): a workgroup a probe,
31
- * its lanes over its n² texels.
28
+ * A probe's lighting density: a workgroup a probe, its lanes over its n² texels.
32
29
  *
33
30
  * - **History**: last frame's four uniform probes around the probe's surface point that stood on its surface
34
31
  * (`screen_probe_lighting_history`), each giving its filtered radiance in the same texel, since a texel is a
35
32
  * direction in the world. They are averaged, pre-exposed as last frame's exposure left them and brought to this
36
- * frame's (`screen_probe_exposure` over `screen_probe_exposure_previous`), as Lumen rescales its history.
33
+ * frame's (`screen_probe_exposure` over `screen_probe_exposure_previous`).
37
34
  * - **The rest**: the share of the four that gave nothing, 1 − accepted / 4, is the world-space probes' radiance the
38
35
  * probe's pick reads (`screen_probe_picks`), along the texel's direction at this frame's jitter, pre-exposed by this
39
36
  * frame's exposure. Where nothing was picked, the history alone, or one where there is none: a density that ranks
@@ -44,19 +41,19 @@ export const shader_screen_probe_brdf_pdf: ComputeShader;
44
41
  */
45
42
  export const shader_screen_probe_lighting_pdf: ComputeShader;
46
43
  /**
47
- * A probe's rays (Lumen's `ScreenProbeGenerateRaysCS`): a workgroup a probe, its lanes over its n² rays, each written
48
- * as the texel and level it falls in (`screen_probe_ray_info_pack`), a ray's slot its place in the sorted order.
44
+ * A probe's rays: a workgroup a probe, its lanes over its n² rays, each written as the texel and level it falls in
45
+ * (`screen_probe_ray_info_pack`), a ray's slot its place in the sorted order.
49
46
  *
50
47
  * 1. **Density**: each texel's BRDF density at its centre, `max(0, Σ brdf·Y(ω))`; times its lighting density · n².
51
48
  * A texel any of whose directions the BRDF density reaches `SCREEN_PROBE_MIN_PDF` is held there
52
49
  * (`screen_probe_brdf_keeps`), so the light ranks texels and only the pixels' lobes cull one; another falls under
53
50
  * it unless its light lifts it.
54
51
  * 2. **Sort**: the probe's own rays, ascending by density, ties in index order (`screen_probe_ray_sort`: the engine's
55
- * bitonic network in the workgroup's memory, O(n² log² n) a probe, where Lumen ranks every ray against every other,
52
+ * bitonic network in the workgroup's memory, O(n² log² n) a probe, where ranking every ray against every other is
56
53
  * O(n⁴)).
57
54
  * 3. **Reassignment**: the sorted rays in threes from the lowest; a three whose highest is under the minimum gives
58
55
  * its rays to the highest texel not yet given, from the top: that texel splits into its four children at twice the
59
- * resolution, the three take three children and the texel the fourth. One level only, as Lumen's parallel path.
56
+ * resolution, the three take three children and the texel the fourth. One level only.
60
57
  * A child holds a quarter of its parent's solid angle (the map is equal-area), which the composite weighs it by.
61
58
  *
62
59
  * With importance sampling off, or where the probe stands on no surface, ray i is texel i at the probe's own n.
@@ -1 +1 @@
1
- {"version":3,"file":"shader_screen_probe_importance.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.js"],"names":[],"mappings":"AAgDA,4HAA4H;AAC5H,8CADgG,wBAAwB,CACM;AAC9H,uCAAuC;AACvC,+CADW,wBAAwB,CACkG;AAErI,8HAA8H;AAC9H,sDADkG,wBAAwB,CACiB;AAC3I,uCAAuC;AACvC,uDADW,wBAAwB,CAC0H;AAE7J,4GAA4G;AAC5G,qDADgF,wBAAwB,CACsC;AAE9I,uEAAuE;AACvE,2CAD2C,wBAAwB,CAC6B;AAchG;;;;;;;;;;;;;;GAcG;AACH,2CAFU,aAAa,CA6EpB;AAoBH;;;;;;;;;;;;;;;GAeG;AACH,+CAFU,aAAa,CAiHpB;AAYH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,gDAFU,aAAa,CAiHpB;yCA7bsC,mDAAmD;8BAD9D,+BAA+B"}
1
+ {"version":3,"file":"shader_screen_probe_importance.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.js"],"names":[],"mappings":"AAgDA,4HAA4H;AAC5H,8CADgG,wBAAwB,CACM;AAC9H,uCAAuC;AACvC,+CADW,wBAAwB,CACkG;AAErI,8HAA8H;AAC9H,sDADkG,wBAAwB,CACiB;AAC3I,uCAAuC;AACvC,uDADW,wBAAwB,CAC0H;AAE7J,4GAA4G;AAC5G,qDADgF,wBAAwB,CACsC;AAE9I,uEAAuE;AACvE,2CAD2C,wBAAwB,CAC6B;AAchG;;;;;;;;;;;;GAYG;AACH,2CAFU,aAAa,CA6EpB;AAoBH;;;;;;;;;;;;;;GAcG;AACH,+CAFU,aAAa,CAiHpB;AAYH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,gDAFU,aAAa,CAiHpB;yCA1bsC,mDAAmD;8BAD9D,+BAA+B"}
@@ -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"}