@woosh/meep-engine 3.78.3 → 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 (248) 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/graphics/hair/groom_bind_to_mesh.d.ts +1 -1
  15. package/src/engine/graphics/hair/groom_bind_to_mesh.js +1 -1
  16. package/src/engine/graphics/hair/groom_build_guides.d.ts +1 -1
  17. package/src/engine/graphics/hair/groom_build_guides.js +1 -1
  18. package/src/engine/graphics/impostors/voxel/README.md +11 -11
  19. package/src/engine/physics/cloth/collider/ClothColliderKind.js +1 -1
  20. package/src/engine/physics/cloth/ecs/cloth_geodesic.d.ts +1 -1
  21. package/src/engine/physics/cloth/ecs/cloth_geodesic.js +1 -1
  22. package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.d.ts +2 -3
  23. package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.d.ts.map +1 -1
  24. package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.js +2 -3
  25. package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.d.ts +0 -2
  26. package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.d.ts.map +1 -1
  27. package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.js +0 -5
  28. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerCubic.d.ts.map +1 -1
  29. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerCubic.js +5 -3
  30. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerLinear.d.ts.map +1 -1
  31. package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerLinear.js +5 -3
  32. package/src/generation/grid/coords/grid_to_texel.d.ts +7 -1
  33. package/src/generation/grid/coords/grid_to_texel.d.ts.map +1 -1
  34. package/src/generation/grid/coords/grid_to_texel.js +11 -1
  35. package/src/generation/grid/coords/grid_to_texel_span.d.ts +15 -0
  36. package/src/generation/grid/coords/grid_to_texel_span.d.ts.map +1 -0
  37. package/src/generation/grid/coords/grid_to_texel_span.js +38 -0
  38. package/src/generation/grid/coords/texel_to_grid.d.ts +2 -1
  39. package/src/generation/grid/coords/texel_to_grid.d.ts.map +1 -1
  40. package/src/generation/grid/coords/texel_to_grid.js +6 -1
  41. package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts +32 -1
  42. package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts.map +1 -1
  43. package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.js +114 -9
  44. package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.d.ts +8 -0
  45. package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.d.ts.map +1 -1
  46. package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.js +91 -29
  47. package/src/generation/grid/layers/GridDataLayer.d.ts +21 -2
  48. package/src/generation/grid/layers/GridDataLayer.d.ts.map +1 -1
  49. package/src/generation/grid/layers/GridDataLayer.js +43 -4
  50. package/src/generation/placement/action/GridCellActionPlaceTags.d.ts +7 -1
  51. package/src/generation/placement/action/GridCellActionPlaceTags.d.ts.map +1 -1
  52. package/src/generation/placement/action/GridCellActionPlaceTags.js +42 -16
  53. package/src/generation/placement/action/GridCellActionWriteFilterToLayer.d.ts +5 -0
  54. package/src/generation/placement/action/GridCellActionWriteFilterToLayer.d.ts.map +1 -1
  55. package/src/generation/placement/action/GridCellActionWriteFilterToLayer.js +32 -9
  56. package/src/generation/rules/CellMatcherLayerBitMaskTest.d.ts.map +1 -1
  57. package/src/generation/rules/CellMatcherLayerBitMaskTest.js +6 -2
  58. package/src/generation/wfc/GridWFCCompiledTileSet.d.ts +4 -2
  59. package/src/generation/wfc/GridWFCCompiledTileSet.d.ts.map +1 -1
  60. package/src/generation/wfc/GridWFCCompiledTileSet.js +2 -2
  61. package/src/generation/wfc/GridWFCTileSet.d.ts +16 -7
  62. package/src/generation/wfc/GridWFCTileSet.d.ts.map +1 -1
  63. package/src/generation/wfc/GridWFCTileSet.js +32 -8
  64. package/src/shade/playground/contact_shadows/shader_contact_lab_composite.js +2 -2
  65. package/src/shade/playground/particle_editor/README.md +2 -2
  66. package/src/shade/playground/probe_clipmap/index.html +1 -1
  67. package/src/shade/playground/screen_probes/README.md +5 -5
  68. package/src/shade/playground/screen_probes/main.js +1 -1
  69. package/src/shade/playground/tonemap_sdr/README.md +3 -2
  70. package/src/shade/playground/vgeo_scene/README.md +1 -3
  71. package/src/shade/playground/vgeo_scene/main.js +3 -3
  72. package/src/shade/renderer/Renderer.d.ts +3 -3
  73. package/src/shade/renderer/Renderer.js +4 -4
  74. package/src/shade/renderer/ShadeIndirectLightingMode.js +1 -1
  75. package/src/shade/renderer/camera/PerspectiveCamera.js +1 -1
  76. package/src/shade/renderer/deferred/tonemap/ColorGrade.d.ts +11 -13
  77. package/src/shade/renderer/deferred/tonemap/ColorGrade.d.ts.map +1 -1
  78. package/src/shade/renderer/deferred/tonemap/ColorGrade.js +11 -13
  79. package/src/shade/renderer/deferred/tonemap/TONE_MAP_OPERATOR_ACES.d.ts.map +1 -1
  80. package/src/shade/renderer/deferred/tonemap/TONE_MAP_OPERATOR_ACES.js +6 -7
  81. package/src/shade/renderer/deferred/tonemap/ToneMapper.d.ts +1 -1
  82. package/src/shade/renderer/deferred/tonemap/ToneMapper.js +1 -1
  83. package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.d.ts +6 -8
  84. package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.d.ts.map +1 -1
  85. package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.js +7 -10
  86. package/src/shade/renderer/geometry/sdf/MESH_SDF.d.ts +1 -1
  87. package/src/shade/renderer/geometry/sdf/MESH_SDF.js +1 -1
  88. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_classify.d.ts +1 -1
  89. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_classify.js +1 -1
  90. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_evaluate.d.ts +1 -1
  91. package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_evaluate.js +1 -1
  92. package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.d.ts +1 -2
  93. package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.d.ts.map +1 -1
  94. package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.js +1 -2
  95. package/src/shade/renderer/geometry/sdf/chunk_scene_point_query_volume_sign.d.ts.map +1 -1
  96. package/src/shade/renderer/geometry/sdf/chunk_scene_point_query_volume_sign.js +2 -1
  97. package/src/shade/renderer/geometry/sdf/surface/MESH_SURFACE_BAKE.d.ts +1 -1
  98. package/src/shade/renderer/geometry/sdf/surface/MESH_SURFACE_BAKE.js +1 -1
  99. package/src/shade/renderer/geometry/virtual/build/level/vgeo_build_cluster_graph.js +1 -1
  100. package/src/shade/renderer/geometry/virtual/format/page/VGEO_DEFAULT_PAGE_SIZE.d.ts +2 -2
  101. package/src/shade/renderer/geometry/virtual/format/page/VGEO_DEFAULT_PAGE_SIZE.js +2 -2
  102. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.d.ts +2 -2
  103. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.js +4 -4
  104. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_instance.d.ts +1 -1
  105. package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_instance.js +1 -1
  106. package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_collect.js +1 -1
  107. package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.d.ts +3 -3
  108. package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.js +3 -3
  109. package/src/shade/renderer/global_illumination/brick4/README.md +2 -1
  110. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts +4 -6
  111. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts.map +1 -1
  112. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js +4 -6
  113. package/src/shade/renderer/global_illumination/probe_clipmap/brick/BRICK_MOVERS.d.ts +1 -1
  114. package/src/shade/renderer/global_illumination/probe_clipmap/brick/BRICK_MOVERS.js +1 -1
  115. package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts +1 -1
  116. package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js +2 -2
  117. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/chunk_mesh_brick_texel.d.ts +1 -1
  118. package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/chunk_mesh_brick_texel.js +1 -1
  119. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts +1 -1
  120. package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js +1 -1
  121. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts +28 -35
  122. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts.map +1 -1
  123. package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.js +28 -35
  124. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts +21 -24
  125. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts.map +1 -1
  126. package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js +21 -24
  127. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.d.ts +8 -8
  128. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.js +8 -8
  129. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_brdf_density.d.ts +4 -4
  130. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_brdf_density.js +4 -4
  131. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.d.ts +3 -5
  132. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.d.ts.map +1 -1
  133. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.js +3 -5
  134. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_lighting_history.d.ts +4 -4
  135. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_lighting_history.js +4 -4
  136. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts +2 -3
  137. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts.map +1 -1
  138. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.js +2 -3
  139. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_screen_march.d.ts +4 -4
  140. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_screen_march.js +4 -4
  141. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.d.ts +2 -4
  142. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.d.ts.map +1 -1
  143. package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.js +2 -4
  144. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.d.ts +2 -4
  145. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.d.ts.map +1 -1
  146. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.js +2 -4
  147. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts +13 -17
  148. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts.map +1 -1
  149. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.js +13 -17
  150. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.d.ts +11 -14
  151. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.d.ts.map +1 -1
  152. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.js +11 -14
  153. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_pick.d.ts +2 -2
  154. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_pick.js +2 -2
  155. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_place.d.ts +9 -9
  156. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_place.js +9 -9
  157. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts +15 -18
  158. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts.map +1 -1
  159. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.js +16 -19
  160. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.d.ts +10 -11
  161. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.d.ts.map +1 -1
  162. package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.js +11 -12
  163. package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts +9 -8
  164. package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts.map +1 -1
  165. package/src/shade/renderer/hair/chunk_hair_bsdf.js +10 -9
  166. package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts +5 -6
  167. package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts.map +1 -1
  168. package/src/shade/renderer/hair/chunk_hair_dual_scattering.js +5 -6
  169. package/src/shade/renderer/hair/hair_lighting.d.ts +3 -3
  170. package/src/shade/renderer/hair/hair_lighting.d.ts.map +1 -1
  171. package/src/shade/renderer/hair/hair_lighting.js +4 -5
  172. package/src/shade/renderer/hair/hair_scattering_lut.d.ts +5 -5
  173. package/src/shade/renderer/hair/hair_scattering_lut.js +5 -5
  174. package/src/shade/renderer/hair/shader_hair_roots.d.ts +2 -2
  175. package/src/shade/renderer/hair/shader_hair_roots.js +2 -2
  176. package/src/shade/renderer/light/environment/DEFINES.d.ts +1 -1
  177. package/src/shade/renderer/light/environment/DEFINES.js +1 -1
  178. package/src/shade/renderer/light/environment/shader_convolve_reflection_map_from_blurred.js +2 -2
  179. package/src/shade/renderer/material/dispatch/MaterialDispatch.d.ts +1 -2
  180. package/src/shade/renderer/material/dispatch/MaterialDispatch.d.ts.map +1 -1
  181. package/src/shade/renderer/material/dispatch/MaterialDispatch.js +1 -2
  182. package/src/shade/renderer/material/standard/fragment_gbuffer.d.ts.map +1 -1
  183. package/src/shade/renderer/material/standard/fragment_gbuffer.js +2 -1
  184. package/src/shade/renderer/material/util/dielectric_specular_color.d.ts +1 -1
  185. package/src/shade/renderer/material/util/dielectric_specular_color.js +1 -1
  186. package/src/shade/renderer/postprocess/dof/gather/DOF2_CONFIG.d.ts +1 -1
  187. package/src/shade/renderer/postprocess/dof/gather/DOF2_CONFIG.js +1 -1
  188. package/src/shade/renderer/postprocess/dof/gather/DOF2_PRESETS.js +1 -1
  189. package/src/shade/renderer/postprocess/dof/gather/DOF2_SETTINGS_STRUCT.d.ts +1 -1
  190. package/src/shade/renderer/postprocess/dof/gather/DOF2_SETTINGS_STRUCT.js +1 -1
  191. package/src/shade/renderer/postprocess/dof/gather/DOF2_TEXTURE_FORMAT.d.ts +1 -1
  192. package/src/shade/renderer/postprocess/dof/gather/DOF2_TEXTURE_FORMAT.js +1 -1
  193. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts +3 -4
  194. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts.map +1 -1
  195. package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.js +3 -4
  196. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts +1 -1
  197. package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.js +1 -1
  198. package/src/shade/renderer/postprocess/eye/GPUCameraExposureManager.d.ts +1 -1
  199. package/src/shade/renderer/postprocess/eye/GPUCameraExposureManager.js +1 -1
  200. package/src/shade/renderer/postprocess/gtao/ao_reproject_shader.d.ts.map +1 -1
  201. package/src/shade/renderer/postprocess/gtao/ao_reproject_shader.js +2 -3
  202. package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.d.ts +1 -2
  203. package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.d.ts.map +1 -1
  204. package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.js +1 -2
  205. package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.d.ts +2 -3
  206. package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.d.ts.map +1 -1
  207. package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.js +2 -3
  208. package/src/shade/renderer/postprocess/taa/filter_blackman_harris.d.ts +1 -1
  209. package/src/shade/renderer/postprocess/taa/filter_blackman_harris.js +1 -1
  210. package/src/shade/renderer/rasterize/native/depth/shadow_cascade_rasterization_pass_descriptor.d.ts +1 -1
  211. package/src/shade/renderer/rasterize/native/depth/shadow_cascade_rasterization_pass_descriptor.js +1 -1
  212. package/src/shade/renderer/rasterize/native/depth/shadow_rasterization_alpha_tested_pass_descriptor.js +1 -1
  213. package/src/shade/renderer/restir/di/ReSTIRDI.d.ts +3 -3
  214. package/src/shade/renderer/restir/di/ReSTIRDI.js +3 -3
  215. package/src/shade/renderer/restir/di/chunk_restir_trace_visibility.d.ts +1 -1
  216. package/src/shade/renderer/restir/di/chunk_restir_trace_visibility.js +1 -1
  217. package/src/shade/renderer/shader/chunk/brdf/chunk_MIN_DIELECTRICS_F0.d.ts +1 -1
  218. package/src/shade/renderer/shader/chunk/brdf/chunk_MIN_DIELECTRICS_F0.js +1 -1
  219. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts +1 -2
  220. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts.map +1 -1
  221. package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.js +1 -2
  222. package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.d.ts +4 -5
  223. package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.d.ts.map +1 -1
  224. package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.js +4 -5
  225. package/src/shade/renderer/shader/chunk/color/grade/chunk_color_grade.js +2 -2
  226. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_aces_ue_matrices.d.ts +2 -2
  227. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_aces_ue_matrices.js +2 -2
  228. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.d.ts +14 -17
  229. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.d.ts.map +1 -1
  230. package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.js +18 -21
  231. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris.d.ts +1 -1
  232. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris.js +1 -1
  233. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris229.d.ts +1 -1
  234. package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris229.js +1 -1
  235. package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.d.ts +3 -4
  236. package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.d.ts.map +1 -1
  237. package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.js +3 -4
  238. package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.d.ts +1 -1
  239. package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.js +1 -1
  240. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +3 -3
  241. package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.d.ts +6 -8
  242. package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.d.ts.map +1 -1
  243. package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.js +8 -10
  244. package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.d.ts +5 -7
  245. package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.d.ts.map +1 -1
  246. package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.js +5 -7
  247. package/src/shade/renderer/texture/virtual/README.md +257 -257
  248. package/src/shade/renderer/volumetrics/shader_volumetrics_build_lighting.js +2 -2
@@ -2,8 +2,8 @@
2
2
  * Word offsets within one 304-byte (`76`-word) instance record — a visible VG instance, as the cut
3
3
  * kernel sees it.
4
4
  *
5
- * Uses UE 5.4 Nanite's forward camera-centered `LocalToTranslatedWorld` formulation (`3 × vec4f`
6
- * rows mapping object-space coordinates directly into camera-centered world space) together with
5
+ * Uses a forward camera-centered transform, `LOCAL_TO_TRANSLATED_WORLD` (`3 × vec4f` rows
6
+ * mapping object-space coordinates directly into camera-centered world space), together with
7
7
  * the upper-left `3×3`'s exact largest singular value `SIGMA_MAX`, plus a single pure object-space
8
8
  * `CONE_CULL` `vec4f` (`(-e_obj | ortho_dir_obj, cone_sign)`) for branchless backface cone culling.
9
9
  *
@@ -13,7 +13,7 @@
13
13
  export const VGEO_INSTANCE_OFFSET = Object.freeze({
14
14
  /**
15
15
  * Three rows of the `3×4` camera-centered `[L | t_cam]` matrix (`array<vec4<f32>, 3>`, 12 words),
16
- * so `center_cam = LocalToTranslatedWorld * vec4f(sphere.xyz, 1.0)` is three dot products.
16
+ * so `center_cam = [L | t_cam] * vec4f(sphere.xyz, 1.0)` is three dot products.
17
17
  */
18
18
  LOCAL_TO_TRANSLATED_WORLD: 0,
19
19
  /**
@@ -1,4 +1,5 @@
1
- Similar to https://dev.epicgames.com/documentation/en-us/unreal-engine/volumetric-lightmaps-in-unreal-engine
1
+ A sparse volumetric lightmap. The technique is described in the public documentation page "Volumetric Lightmaps",
2
+ https://dev.epicgames.com/documentation/en-us/unreal-engine/volumetric-lightmaps-in-unreal-engine
2
3
 
3
4
  Basic idea is to have an oct-tree-like structure with a high branching factor.
4
5
 
@@ -43,8 +43,7 @@ export class ProbeClipmapSettings {
43
43
  set brick_voxel_size(v: number);
44
44
  /**
45
45
  * The finest cascade's voxel, metres; every cascade doubles it. The default puts eight voxels across
46
- * one cell of the finest probe cascade at the default {@link probe_spacing}, and is of the order of
47
- * Unreal's global distance field (19.8 cm at its finest clipmap). Structure.
46
+ * one cell of the finest probe cascade at the default {@link probe_spacing}. Structure.
48
47
  * @returns {number}
49
48
  */
50
49
  get brick_voxel_size(): number;
@@ -76,7 +75,7 @@ export class ProbeClipmapSettings {
76
75
  set mesh_sdf_max_bricks(v: number);
77
76
  /**
78
77
  * Bricks per axis a geometry's distance field may have before its voxel grows to fit: a safety net,
79
- * not a budget. 18 bricks are 126 voxels, Unreal's per-mesh cap at unit scale; at the default voxel
78
+ * not a budget. 18 bricks are 126 voxels; at the default voxel
80
79
  * the grid reaches 15.75 m, so a mesh spans 14.75 m, a band short of it at each end, before it is
81
80
  * baked coarser than asked. A change bakes every cached geometry again.
82
81
  * @returns {number}
@@ -157,9 +156,8 @@ export class ProbeClipmapSettings {
157
156
  */
158
157
  set probe_spacing(v: number);
159
158
  /**
160
- * Metres between probes in the finest cascade; every cascade doubles it. Lumen's world-space
161
- * radiance cache spaces its finest probes 1.04 m apart, and DDGI recommends 1 to 2 m for human-scale
162
- * scenes. Structure.
159
+ * Metres between probes in the finest cascade; every cascade doubles it. DDGI recommends 1 to
160
+ * 2 m for human-scale scenes. Structure.
163
161
  * @returns {number}
164
162
  */
165
163
  get probe_spacing(): number;
@@ -1 +1 @@
1
- {"version":3,"file":"ProbeClipmapSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;GAgBG;AACH;IAaI;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAyBD;;OAEG;IACH,gCAKC;IAlBD;;;;;OAKG;IACH,+BAEC;IAuBD;;OAEG;IACH,kCAIC;IAhBD;;;;OAIG;IACH,iCAEC;IAuBD;;OAEG;IACH,mCAKC;IAlBD;;;;;OAKG;IACH,kCAEC;IAyBD;;;OAGG;IACH,mCAMC;IArBD;;;;;;OAMG;IACH,kCAEC;IAsCD;;;OAGG;IACH,oCAKC;IA/BD;;;;;;;;;;;;;;;;;OAiBG;IACH,mCAEC;IAsCD;;;OAGG;IACH,mCAIC;IA/BD;;;;;;;;;;;;;;;;;;OAkBG;IACH,kCAEC;IAuBD;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAyBD;;OAEG;IACH,6BAKC;IAlBD;;;;;OAKG;IACH,4BAEC;IAuBD;;;OAGG;IACH,mCAMC;IAnBD;;;;OAIG;IACH,kCAEC;IAyBD;;OAEG;IACH,gCAKC;IAjBD;;;;OAIG;IACH,+BAEC;IAuBD;;;;OAIG;IACH,8BAKC;IAnBD;;;;OAIG;IACH,6BAEC;IAyBD;;;OAGG;IACH,0BAIC;IAjBD;;;;OAIG;IACH,yBAEC;IAYD;;;;;;OAMG;IACH,iCAEC;IAED;;;OAGG;IACH,+BAEC;IAeD;;;OAGG;IACH,yCAIC;IAnBD;;;;;;OAMG;IACH,wCAEC;IAuBD;;OAEG;IACH,+CAMC;IAlBD;;;;OAIG;IACH,8CAEC;IAwBD;;OAEG;IACH,4CAKC;IAjBD;;;;OAIG;IACH,2CAEC;IAuBD;;;OAGG;IACH,0CAKC;IAlBD;;;;OAIG;IACH,yCAEC;IA2BD;;OAEG;IACH,+BAKC;IApBD;;;;;;;OAOG;IACH,8BAEC;IAyBD;;OAEG;IACH,mCAIC;IAlBD;;;;;;OAMG;IACH,kCAEC;IAwBD;;OAEG;IACH,+BAIC;IAlBD;;;;;;OAMG;IACH,8BAEC;IAsBD;;OAEG;IACH,0BAIC;IAhBD;;;;OAIG;IACH,yBAEC;IAWD;;;;OAIG;IACH,YAFW,oBAAoB,QA0B9B;;CACJ"}
1
+ {"version":3,"file":"ProbeClipmapSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;GAgBG;AACH;IAaI;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAwBD;;OAEG;IACH,gCAKC;IAjBD;;;;OAIG;IACH,+BAEC;IAuBD;;OAEG;IACH,kCAIC;IAhBD;;;;OAIG;IACH,iCAEC;IAuBD;;OAEG;IACH,mCAKC;IAlBD;;;;;OAKG;IACH,kCAEC;IAyBD;;;OAGG;IACH,mCAMC;IArBD;;;;;;OAMG;IACH,kCAEC;IAsCD;;;OAGG;IACH,oCAKC;IA/BD;;;;;;;;;;;;;;;;;OAiBG;IACH,mCAEC;IAsCD;;;OAGG;IACH,mCAIC;IA/BD;;;;;;;;;;;;;;;;;;OAkBG;IACH,kCAEC;IAuBD;;;OAGG;IACH,mCAIC;IAjBD;;;;OAIG;IACH,kCAEC;IAsBD;;;OAGG;IACH,wCAKC;IAjBD;;;OAGG;IACH,uCAEC;IAwBD;;OAEG;IACH,6BAKC;IAjBD;;;;OAIG;IACH,4BAEC;IAuBD;;;OAGG;IACH,mCAMC;IAnBD;;;;OAIG;IACH,kCAEC;IAyBD;;OAEG;IACH,gCAKC;IAjBD;;;;OAIG;IACH,+BAEC;IAuBD;;;;OAIG;IACH,8BAKC;IAnBD;;;;OAIG;IACH,6BAEC;IAyBD;;;OAGG;IACH,0BAIC;IAjBD;;;;OAIG;IACH,yBAEC;IAYD;;;;;;OAMG;IACH,iCAEC;IAED;;;OAGG;IACH,+BAEC;IAeD;;;OAGG;IACH,yCAIC;IAnBD;;;;;;OAMG;IACH,wCAEC;IAuBD;;OAEG;IACH,+CAMC;IAlBD;;;;OAIG;IACH,8CAEC;IAwBD;;OAEG;IACH,4CAKC;IAjBD;;;;OAIG;IACH,2CAEC;IAuBD;;;OAGG;IACH,0CAKC;IAlBD;;;;OAIG;IACH,yCAEC;IA2BD;;OAEG;IACH,+BAKC;IApBD;;;;;;;OAOG;IACH,8BAEC;IAyBD;;OAEG;IACH,mCAIC;IAlBD;;;;;;OAMG;IACH,kCAEC;IAwBD;;OAEG;IACH,+BAIC;IAlBD;;;;;;OAMG;IACH,8BAEC;IAsBD;;OAEG;IACH,0BAIC;IAhBD;;;;OAIG;IACH,yBAEC;IAWD;;;;OAIG;IACH,YAFW,oBAAoB,QA0B9B;;CACJ"}
@@ -69,8 +69,7 @@ export class ProbeClipmapSettings {
69
69
 
70
70
  /**
71
71
  * The finest cascade's voxel, metres; every cascade doubles it. The default puts eight voxels across
72
- * one cell of the finest probe cascade at the default {@link probe_spacing}, and is of the order of
73
- * Unreal's global distance field (19.8 cm at its finest clipmap). Structure.
72
+ * one cell of the finest probe cascade at the default {@link probe_spacing}. Structure.
74
73
  * @returns {number}
75
74
  */
76
75
  get brick_voxel_size() {
@@ -133,7 +132,7 @@ export class ProbeClipmapSettings {
133
132
 
134
133
  /**
135
134
  * Bricks per axis a geometry's distance field may have before its voxel grows to fit: a safety net,
136
- * not a budget. 18 bricks are 126 voxels, Unreal's per-mesh cap at unit scale; at the default voxel
135
+ * not a budget. 18 bricks are 126 voxels; at the default voxel
137
136
  * the grid reaches 15.75 m, so a mesh spans 14.75 m, a band short of it at each end, before it is
138
137
  * baked coarser than asked. A change bakes every cached geometry again.
139
138
  * @returns {number}
@@ -269,9 +268,8 @@ export class ProbeClipmapSettings {
269
268
  #probe_spacing = 1;
270
269
 
271
270
  /**
272
- * Metres between probes in the finest cascade; every cascade doubles it. Lumen's world-space
273
- * radiance cache spaces its finest probes 1.04 m apart, and DDGI recommends 1 to 2 m for human-scale
274
- * scenes. Structure.
271
+ * Metres between probes in the finest cascade; every cascade doubles it. DDGI recommends 1 to
272
+ * 2 m for human-scale scenes. Structure.
275
273
  * @returns {number}
276
274
  */
277
275
  get probe_spacing() {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Boxes past which a frame re-queues every key of every cascade instead of testing them against the
3
- * blocks, UE's full-recapture threshold (§7.4): one pass over the keys rather than millions of pairs.
3
+ * blocks (§7.4): one pass over the keys rather than millions of pairs.
4
4
  * @type {number}
5
5
  */
6
6
  export const BRICK_MOVERS_FULL_REQUEUE_BOXES: number;
@@ -6,7 +6,7 @@
6
6
 
7
7
  /**
8
8
  * Boxes past which a frame re-queues every key of every cascade instead of testing them against the
9
- * blocks, UE's full-recapture threshold (§7.4): one pass over the keys rather than millions of pairs.
9
+ * blocks (§7.4): one pass over the keys rather than millions of pairs.
10
10
  * @type {number}
11
11
  */
12
12
  export const BRICK_MOVERS_FULL_REQUEUE_BOXES = 1024;
@@ -11,7 +11,7 @@ export const BRICK_TRACE_STEPS: number;
11
11
  */
12
12
  export const BRICK_TRACE_NUDGE: number;
13
13
  /**
14
- * The distance under which the march stands on a surface, in voxels of its cascade: UE's half voxel
14
+ * The distance under which the march stands on a surface, in voxels of its cascade: half a voxel
15
15
  * (§7.9). A hit is reported from anywhere between the surface and this far out.
16
16
  * @type {number}
17
17
  */
@@ -33,7 +33,7 @@ export const BRICK_TRACE_STEPS = 64;
33
33
  export const BRICK_TRACE_NUDGE = 1 / 64;
34
34
 
35
35
  /**
36
- * The distance under which the march stands on a surface, in voxels of its cascade: UE's half voxel
36
+ * The distance under which the march stands on a surface, in voxels of its cascade: half a voxel
37
37
  * (§7.9). A hit is reported from anywhere between the surface and this far out.
38
38
  * @type {number}
39
39
  */
@@ -401,7 +401,7 @@ fn brick_clipmap_trace_steps(origin: vec3<f32>, direction: vec3<f32>, t_min: f32
401
401
  return hit;
402
402
  }
403
403
 
404
- // past the hit's threshold, so at least half a voxel: UE's minimum step
404
+ // past the hit's threshold, so at least half a voxel: the minimum step
405
405
  march.t += distance;
406
406
  }
407
407
 
@@ -17,7 +17,7 @@
17
17
  * does: `fn mesh_brick_instance_at(i: u32) -> MeshBrickInstance`. The provider's batch answers from
18
18
  * workgroup memory; a test, from a buffer.
19
19
  *
20
- * The box test is UE's early-out, in bytes: an instance whose box's distance encodes past the least
20
+ * The box test is an early-out, in bytes: an instance whose box's distance encodes past the least
21
21
  * byte so far, or past the surface's byte when the least is inside one, cannot reach it, and is not
22
22
  * sampled. A box that holds the texel is always sampled, a deeper instance included. At coarse cascades
23
23
  * most instances are only this test. Per
@@ -24,7 +24,7 @@ import { MESH_BRICK_INSTANCE_STRUCT } from "./MESH_BRICK_INSTANCE_STRUCT.js";
24
24
  * does: `fn mesh_brick_instance_at(i: u32) -> MeshBrickInstance`. The provider's batch answers from
25
25
  * workgroup memory; a test, from a buffer.
26
26
  *
27
- * The box test is UE's early-out, in bytes: an instance whose box's distance encodes past the least
27
+ * The box test is an early-out, in bytes: an instance whose box's distance encodes past the least
28
28
  * byte so far, or past the surface's byte when the least is inside one, cannot reach it, and is not
29
29
  * sampled. A box that holds the texel is always sampled, a deeper instance included. At coarse cascades
30
30
  * most instances are only this test. Per
@@ -1,5 +1,5 @@
1
1
  /**
2
- * {@link ShadeIndirectLightingMode.ScreenProbes} for one view: Lumen's screen probe gather, over the world the probe
2
+ * {@link ShadeIndirectLightingMode.ScreenProbes} for one view: a screen-space probe gather, over the world the probe
3
3
  * clipmap holds (`GPUProbeClipmapGI`): its bricks, which rays traverse, its surface material, which hits read, its
4
4
  * world light clusters, and its two sets of world-space probes, which stand in for what lies past a screen probe's reach
5
5
  * and give a hit its next bounce.
@@ -68,7 +68,7 @@ import { shader_screen_probe_trace_screen } from "./shader_screen_probe_trace_sc
68
68
  const frame_word = name => SCREEN_PROBE_FRAME_STRUCT.get(name).offset >>> 2;
69
69
 
70
70
  /**
71
- * {@link ShadeIndirectLightingMode.ScreenProbes} for one view: Lumen's screen probe gather, over the world the probe
71
+ * {@link ShadeIndirectLightingMode.ScreenProbes} for one view: a screen-space probe gather, over the world the probe
72
72
  * clipmap holds (`GPUProbeClipmapGI`): its bricks, which rays traverse, its surface material, which hits read, its
73
73
  * world light clusters, and its two sets of world-space probes, which stand in for what lies past a screen probe's reach
74
74
  * and give a hit its next bounce.
@@ -14,9 +14,8 @@ export function screen_probe_adaptive_tile_capacity(levels: number): number;
14
14
  /**
15
15
  * @param {number} uniform_count uniform probes
16
16
  * @param {number} levels of adaptive placement
17
- * @returns {number} adaptive probe slots: as many as the uniform probes, Lumen's `AdaptiveProbeAllocationFraction` at
18
- * one (half there), so a frame's probes are never more than twice the uniform ones however finely the view's depth
19
- * breaks up; none without adaptive levels
17
+ * @returns {number} adaptive probe slots: as many as the uniform probes, so a frame's probes are never more than twice
18
+ * the uniform ones however finely the view's depth breaks up; none without adaptive levels
20
19
  */
21
20
  export function screen_probe_adaptive_capacity(uniform_count: number, levels: number): number;
22
21
  /**
@@ -45,78 +44,75 @@ export const SCREEN_PROBE_RAY_SLOT_BITS: number;
45
44
  */
46
45
  export const SCREEN_PROBE_OCTAHEDRON_LIMIT: number;
47
46
  /**
48
- * The smallest octahedron a probe can have, n = 4, the bottom of Lumen's range for it (4 to 16).
47
+ * The smallest octahedron a probe can have, n = 4, the bottom of the range a probe's octahedron takes (4 to 16).
49
48
  * @type {number}
50
49
  */
51
50
  export const SCREEN_PROBE_OCTAHEDRON_MINIMUM: number;
52
51
  /**
53
- * The plane weight's scale, Lumen's: a probe weighs `exp2(−k·r²)`, r its distance from the receiver's plane over the
52
+ * The plane weight's scale: a probe weighs `exp2(−k·r²)`, r its distance from the receiver's plane over the
54
53
  * receiver's depth. ½ at r = 1%, 0.01 at r ≈ 2.6%.
55
54
  * @type {number}
56
55
  */
57
56
  export const SCREEN_PROBE_PLANE_WEIGHT_SCALE: number;
58
57
  /**
59
- * A corner weighing no more than this is no corner, Lumen's: interpolation looks for an adaptive probe in its place,
58
+ * A corner weighing no more than this is no corner: interpolation looks for an adaptive probe in its place,
60
59
  * and a sum of weights under this is no light (the pixel is the temporal filter's to fill).
61
60
  * @type {number}
62
61
  */
63
62
  export const SCREEN_PROBE_WEIGHT_EPSILON: number;
64
63
  /**
65
- * Lumen's plane weight scale for the integration's jitter: a pixel's lookup moves only onto a pixel this coplanar
64
+ * The plane weight scale for the integration's jitter: a pixel's lookup moves only onto a pixel this coplanar
66
65
  * with it, weight 0.01 at r ≈ 0.26%.
67
66
  * @type {number}
68
67
  */
69
68
  export const SCREEN_PROBE_JITTER_PLANE_WEIGHT_SCALE: number;
70
69
  /**
71
70
  * A pixel around a probe adds its cosine lobe to the probe's BRDF while the probe's plane weight from it is past
72
- * this, Lumen's: r under 1.8% of the probe's depth.
71
+ * this: r under 1.8% of the probe's depth.
73
72
  * @type {number}
74
73
  */
75
74
  export const SCREEN_PROBE_BRDF_PIXEL_WEIGHT: number;
76
75
  /**
77
- * Lumen's `MinPDFToTrace`. A texel whose density, its BRDF's times its light's (times n²), is under this gives its ray
78
- * away. One any of whose directions the BRDF density reaches this is held at it (`screen_probe_brdf_keeps`), so the
79
- * light ranks what the pixels' lobes keep and culls none of it; a texel the lobes do not keep stays where its light is
80
- * bright enough to lift it.
76
+ * The least density a texel traces at. A texel whose density, its BRDF's times its light's (times n²), is under this
77
+ * gives its ray away. One any of whose directions the BRDF density reaches this is held at it
78
+ * (`screen_probe_brdf_keeps`), so the light ranks what the pixels' lobes keep and culls none of it; a texel the lobes
79
+ * do not keep stays where its light is bright enough to lift it.
81
80
  * @type {number}
82
81
  */
83
82
  export const SCREEN_PROBE_MIN_PDF: number;
84
83
  /**
85
- * Frames the uniform probes' place in their tiles cycles over, a Hammersley set of points across the tile, as
86
- * Lumen's `GetScreenTileJitter` does.
84
+ * Frames the uniform probes' place in their tiles cycles over, a Hammersley set of points across the tile.
87
85
  * @type {number}
88
86
  */
89
87
  export const SCREEN_PROBE_JITTER_PERIOD: number;
90
88
  /**
91
- * The most a ray's radiance may hold, in the display's units (radiance times the exposure it was last shown at),
92
- * Lumen's `MaxRayIntensity`: the composite holds each ray to it, the fireflies of a sun glint or an emissive seen
93
- * through a crack, and its fixed-point sums are scaled by it.
89
+ * The most a ray's radiance may hold, in the display's units (radiance times the exposure it was last shown at): the
90
+ * composite holds each ray to it, the fireflies of a sun glint or an emissive seen through a crack, and its fixed-point
91
+ * sums are scaled by it.
94
92
  * @type {number}
95
93
  */
96
94
  export const SCREEN_PROBE_MAX_RAY_INTENSITY: number;
97
95
  /**
98
- * Steps of a screen trace through the depth buffer's hierarchy, Lumen's `HZBTraversal.MaxIterations`: a budget for
99
- * one thread. A ray that spends them is a miss of the screen, which the bricks take on from where it got.
96
+ * Steps of a screen trace through the depth buffer's hierarchy: a budget for one thread. A ray that spends them is a
97
+ * miss of the screen, which the bricks take on from where it got.
100
98
  * @type {number}
101
99
  */
102
100
  export const SCREEN_PROBE_SCREEN_TRACE_STEPS: number;
103
101
  /**
104
- * How far behind the depth buffer a screen trace still counts as on the surface, as a share of the surface's depth,
105
- * Lumen's `HZBTraversal.RelativeDepthThickness`.
102
+ * How far behind the depth buffer a screen trace still counts as on the surface, as a share of the surface's depth.
106
103
  * @type {number}
107
104
  */
108
105
  export const SCREEN_PROBE_SCREEN_THICKNESS: number;
109
106
  /**
110
- * The share of the screen, along each side, over which a screen hit fades to a miss, Lumen's: from 80% of the way
111
- * from the centre to the edge, in screen position.
107
+ * The share of the screen, along each side, over which a screen hit fades to a miss: from 80% of the way from the
108
+ * centre to the edge, in screen position.
112
109
  * @type {number}
113
110
  */
114
111
  export const SCREEN_PROBE_SCREEN_EDGE: number;
115
112
  /**
116
113
  * How far past its probe a ray is traced before the world-space probes answer for the rest, in spacings of the
117
114
  * cascade the probe reads them from: the furthest a corner probe of its cage stands from the point it serves,
118
- * relocation included, `PROBE_DEPTH_LIMIT`. Past it the ray has left every corner's cage, as Lumen's rays leave a
119
- * cell's diagonal before its radiance cache takes them.
115
+ * relocation included, `PROBE_DEPTH_LIMIT`. Past it the ray has left every corner's cage.
120
116
  * @type {number}
121
117
  */
122
118
  export const SCREEN_PROBE_REACH_SPACINGS: number;
@@ -128,20 +124,19 @@ export const SCREEN_PROBE_REACH_SPACINGS: number;
128
124
  export const SCREEN_PROBE_ORIGIN_STEPS: number;
129
125
  /**
130
126
  * A ray hit something moving when the speeds of its hit and its probe differ by more than this share of the probe's
131
- * depth, held to a metre from below, Lumen's `RelativeSpeedDifferenceToConsiderLightingMoving`.
127
+ * depth, held to a metre from below.
132
128
  * @type {number}
133
129
  */
134
130
  export const SCREEN_PROBE_MOVING_SPEED: number;
135
131
  /**
136
132
  * The temporal filter's history at a pixel is another surface when its depth differs from the one reprojected there
137
- * by this share of the depth, dithered over ×½ to ×1½ and widened at grazing angles, Lumen's
138
- * `Temporal.DistanceThreshold`.
133
+ * by this share of the depth, dithered over ×½ to ×1½ and widened at grazing angles.
139
134
  * @type {number}
140
135
  */
141
136
  export const SCREEN_PROBE_TEMPORAL_DISTANCE: number;
142
137
  /**
143
- * Lumen's fast update: the share of a pixel's light seen moving at which it takes its new light whole, and the most of
144
- * its history the fast update ever drops.
138
+ * The temporal filter's fast update: the share of a pixel's light seen moving at which it takes its new light whole,
139
+ * and the most of its history the fast update ever drops.
145
140
  * @type {number}
146
141
  */
147
142
  export const SCREEN_PROBE_FAST_UPDATE_MOVING: number;
@@ -149,8 +144,7 @@ export const SCREEN_PROBE_FAST_UPDATE_LIMIT: 0.9;
149
144
  /**
150
145
  * Where the screen probes' rough specular takes a surface's specular over from the world-space probes, by its
151
146
  * perceptual roughness: the world probes' whole below `ROUGHNESS − FADE`, the screen probes' whole from `ROUGHNESS`,
152
- * linear between. Lumen's `LumenMaxRoughnessToTraceReflections` (0.4) and `r.Lumen.Reflections.RoughnessFadeLength`
153
- * (0.1), its traced reflections being the world probes here.
147
+ * linear between.
154
148
  * @type {number}
155
149
  */
156
150
  export const SCREEN_PROBE_ROUGH_SPECULAR_ROUGHNESS: number;
@@ -158,14 +152,13 @@ export const SCREEN_PROBE_ROUGH_SPECULAR_FADE: 0.1;
158
152
  /**
159
153
  * Where the rough specular stops sampling the probes' radiance along the GGX lobe and takes their irradiance at the
160
154
  * bent normal over π instead, by perceptual roughness: sampled whole below `ROUGHNESS − FADE`, the irradiance whole
161
- * from `ROUGHNESS`, linear between. Lumen's `r.Lumen.ScreenProbeGather.MaxRoughnessToEvaluateRoughSpecular` (0.8) and
162
- * `GetDiffuseLerp`'s fade (0.2).
155
+ * from `ROUGHNESS`, linear between.
163
156
  * @type {number}
164
157
  */
165
158
  export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLED_ROUGHNESS: number;
166
159
  export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLED_FADE: 0.2;
167
160
  /**
168
- * Directions a pixel's rough specular draws from the GGX lobe a frame, Lumen's `NumSpecularSamples`.
161
+ * Directions a pixel's rough specular draws from the GGX lobe a frame.
169
162
  * @type {number}
170
163
  */
171
164
  export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLES: number;
@@ -1 +1 @@
1
- {"version":3,"file":"SCREEN_PROBE.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.js"],"names":[],"mappings":"AAgOA;;;;;GAKG;AACH,gEALW,MAAM,kCACN,MAAM,GACJ,MAAM,CAWlB;AAED;;;;GAIG;AACH,4DAJW,MAAM,GACJ,MAAM,CAKlB;AAED;;;;;;GAMG;AACH,8DANW,MAAM,UACN,MAAM,GACJ,MAAM,CAMlB;AA/PD;;;;GAIG;AACH,iDAFU,MAAM,CAE2D;AAE3E;;;GAGG;AACH,+CAFU,MAAM,CAEkC;AAElD;;;;GAIG;AACH,yCAFU,MAAM,CAE4B;AAE5C;;;;;;GAMG;AACH,4CAFU,MAAM,CAEgC;AAEhD;;;GAGG;AACH,8CAFU,MAAM,CAEiC;AAEjD;;;;GAIG;AACH,8CAFU,MAAM,CAEqC;AAErD;;;;GAIG;AACH,0CAFU,MAAM,CAEgC;AAEhD;;;;GAIG;AACH,qDAFU,MAAM,CAE8C;AAE9D;;;;GAIG;AACH,6CAFU,MAAM,CAEkC;AAElD;;;;;;GAMG;AACH,mCAFU,MAAM,CAEwB;AAExC;;;;GAIG;AACH,yCAFU,MAAM,CAE4B;AAE5C;;;;;GAKG;AACH,6CAFU,MAAM,CAEiC;AAEjD;;;;GAIG;AACH,8CAFU,MAAM,CAEkC;AAElD;;;;GAIG;AACH,4CAFU,MAAM,CAEkC;AAElD;;;;GAIG;AACH,uCAFU,MAAM,CAE4B;AAE5C;;;;;;GAMG;AACH,0CAFU,MAAM,CAE6C;AAE7D;;;;GAIG;AACH,wCAFU,MAAM,CAE2B;AAE3C;;;;GAIG;AACH,wCAFU,MAAM,CAE+B;AAE/C;;;;;GAKG;AACH,6CAFU,MAAM,CAEoC;AAEpD;;;;GAIG;AACH,8CAFU,MAAM,CAEmC;AACnD,iDAAkD;AAElD;;;;;;GAMG;AACH,oDAFU,MAAM,CAEyC;AACzD,mDAAoD;AAEpD;;;;;;GAMG;AACH,4DAFU,MAAM,CAEiD;AACjE,2DAA4D;AAE5D;;;GAGG;AACH,kDAFU,MAAM,CAEqC;AAErD;;;;;;;;;;GAUG;AACH,2CAA4C;AAC5C,0CAA2C;AAC3C,uCAAwC;AACxC,wCAAyC;AACzC,uCAAwC;AACxC,uCAAwC;AACxC,8CAA+C;AAC/C,wCAAyC;AACzC,6CAA8C;AAE9C;;;GAGG;AACH,wCAFU,MAAM,CAE2B;AAE3C;;;;GAIG;AACH,6CAA8C;AAC9C,8CAA+C;AAC/C,2CAA4C;AAC5C,iDAAkD;AAClD,mDAAoD;AACpD,uDAAwD;AACxD,6CAA8C;AAE9C;;;GAGG;AACH,8CAA+C;AAC/C,gDAAiD;AACjD,2CAA4C"}
1
+ {"version":3,"file":"SCREEN_PROBE.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.js"],"names":[],"mappings":"AA0NA;;;;;GAKG;AACH,gEALW,MAAM,kCACN,MAAM,GACJ,MAAM,CAWlB;AAED;;;;GAIG;AACH,4DAJW,MAAM,GACJ,MAAM,CAKlB;AAED;;;;;GAKG;AACH,8DALW,MAAM,UACN,MAAM,GACJ,MAAM,CAKlB;AAxPD;;;;GAIG;AACH,iDAFU,MAAM,CAE2D;AAE3E;;;GAGG;AACH,+CAFU,MAAM,CAEkC;AAElD;;;;GAIG;AACH,yCAFU,MAAM,CAE4B;AAE5C;;;;;;GAMG;AACH,4CAFU,MAAM,CAEgC;AAEhD;;;GAGG;AACH,8CAFU,MAAM,CAEiC;AAEjD;;;;GAIG;AACH,8CAFU,MAAM,CAEqC;AAErD;;;;GAIG;AACH,0CAFU,MAAM,CAEgC;AAEhD;;;;GAIG;AACH,qDAFU,MAAM,CAE8C;AAE9D;;;;GAIG;AACH,6CAFU,MAAM,CAEkC;AAElD;;;;;;GAMG;AACH,mCAFU,MAAM,CAEwB;AAExC;;;GAGG;AACH,yCAFU,MAAM,CAE4B;AAE5C;;;;;GAKG;AACH,6CAFU,MAAM,CAEiC;AAEjD;;;;GAIG;AACH,8CAFU,MAAM,CAEkC;AAElD;;;GAGG;AACH,4CAFU,MAAM,CAEkC;AAElD;;;;GAIG;AACH,uCAFU,MAAM,CAE4B;AAE5C;;;;;GAKG;AACH,0CAFU,MAAM,CAE6C;AAE7D;;;;GAIG;AACH,wCAFU,MAAM,CAE2B;AAE3C;;;;GAIG;AACH,wCAFU,MAAM,CAE+B;AAE/C;;;;GAIG;AACH,6CAFU,MAAM,CAEoC;AAEpD;;;;GAIG;AACH,8CAFU,MAAM,CAEmC;AACnD,iDAAkD;AAElD;;;;;GAKG;AACH,oDAFU,MAAM,CAEyC;AACzD,mDAAoD;AAEpD;;;;;GAKG;AACH,4DAFU,MAAM,CAEiD;AACjE,2DAA4D;AAE5D;;;GAGG;AACH,kDAFU,MAAM,CAEqC;AAErD;;;;;;;;;;GAUG;AACH,2CAA4C;AAC5C,0CAA2C;AAC3C,uCAAwC;AACxC,wCAAyC;AACzC,uCAAwC;AACxC,uCAAwC;AACxC,8CAA+C;AAC/C,wCAAyC;AACzC,6CAA8C;AAE9C;;;GAGG;AACH,wCAFU,MAAM,CAE2B;AAE3C;;;;GAIG;AACH,6CAA8C;AAC9C,8CAA+C;AAC/C,2CAA4C;AAC5C,iDAAkD;AAClD,mDAAoD;AACpD,uDAAwD;AACxD,6CAA8C;AAE9C;;;GAGG;AACH,8CAA+C;AAC/C,gDAAiD;AACjD,2CAA4C"}
@@ -31,27 +31,27 @@ export const SCREEN_PROBE_RAY_SLOT_BITS = 8;
31
31
  export const SCREEN_PROBE_OCTAHEDRON_LIMIT = 16;
32
32
 
33
33
  /**
34
- * The smallest octahedron a probe can have, n = 4, the bottom of Lumen's range for it (4 to 16).
34
+ * The smallest octahedron a probe can have, n = 4, the bottom of the range a probe's octahedron takes (4 to 16).
35
35
  * @type {number}
36
36
  */
37
37
  export const SCREEN_PROBE_OCTAHEDRON_MINIMUM = 4;
38
38
 
39
39
  /**
40
- * The plane weight's scale, Lumen's: a probe weighs `exp2(−k·r²)`, r its distance from the receiver's plane over the
40
+ * The plane weight's scale: a probe weighs `exp2(−k·r²)`, r its distance from the receiver's plane over the
41
41
  * receiver's depth. ½ at r = 1%, 0.01 at r ≈ 2.6%.
42
42
  * @type {number}
43
43
  */
44
44
  export const SCREEN_PROBE_PLANE_WEIGHT_SCALE = 10000;
45
45
 
46
46
  /**
47
- * A corner weighing no more than this is no corner, Lumen's: interpolation looks for an adaptive probe in its place,
47
+ * A corner weighing no more than this is no corner: interpolation looks for an adaptive probe in its place,
48
48
  * and a sum of weights under this is no light (the pixel is the temporal filter's to fill).
49
49
  * @type {number}
50
50
  */
51
51
  export const SCREEN_PROBE_WEIGHT_EPSILON = 0.01;
52
52
 
53
53
  /**
54
- * Lumen's plane weight scale for the integration's jitter: a pixel's lookup moves only onto a pixel this coplanar
54
+ * The plane weight scale for the integration's jitter: a pixel's lookup moves only onto a pixel this coplanar
55
55
  * with it, weight 0.01 at r ≈ 0.26%.
56
56
  * @type {number}
57
57
  */
@@ -59,52 +59,50 @@ export const SCREEN_PROBE_JITTER_PLANE_WEIGHT_SCALE = 1000000;
59
59
 
60
60
  /**
61
61
  * A pixel around a probe adds its cosine lobe to the probe's BRDF while the probe's plane weight from it is past
62
- * this, Lumen's: r under 1.8% of the probe's depth.
62
+ * this: r under 1.8% of the probe's depth.
63
63
  * @type {number}
64
64
  */
65
65
  export const SCREEN_PROBE_BRDF_PIXEL_WEIGHT = 0.1;
66
66
 
67
67
  /**
68
- * Lumen's `MinPDFToTrace`. A texel whose density, its BRDF's times its light's (times n²), is under this gives its ray
69
- * away. One any of whose directions the BRDF density reaches this is held at it (`screen_probe_brdf_keeps`), so the
70
- * light ranks what the pixels' lobes keep and culls none of it; a texel the lobes do not keep stays where its light is
71
- * bright enough to lift it.
68
+ * The least density a texel traces at. A texel whose density, its BRDF's times its light's (times n²), is under this
69
+ * gives its ray away. One any of whose directions the BRDF density reaches this is held at it
70
+ * (`screen_probe_brdf_keeps`), so the light ranks what the pixels' lobes keep and culls none of it; a texel the lobes
71
+ * do not keep stays where its light is bright enough to lift it.
72
72
  * @type {number}
73
73
  */
74
74
  export const SCREEN_PROBE_MIN_PDF = 0.1;
75
75
 
76
76
  /**
77
- * Frames the uniform probes' place in their tiles cycles over, a Hammersley set of points across the tile, as
78
- * Lumen's `GetScreenTileJitter` does.
77
+ * Frames the uniform probes' place in their tiles cycles over, a Hammersley set of points across the tile.
79
78
  * @type {number}
80
79
  */
81
80
  export const SCREEN_PROBE_JITTER_PERIOD = 8;
82
81
 
83
82
  /**
84
- * The most a ray's radiance may hold, in the display's units (radiance times the exposure it was last shown at),
85
- * Lumen's `MaxRayIntensity`: the composite holds each ray to it, the fireflies of a sun glint or an emissive seen
86
- * through a crack, and its fixed-point sums are scaled by it.
83
+ * The most a ray's radiance may hold, in the display's units (radiance times the exposure it was last shown at): the
84
+ * composite holds each ray to it, the fireflies of a sun glint or an emissive seen through a crack, and its fixed-point
85
+ * sums are scaled by it.
87
86
  * @type {number}
88
87
  */
89
88
  export const SCREEN_PROBE_MAX_RAY_INTENSITY = 40;
90
89
 
91
90
  /**
92
- * Steps of a screen trace through the depth buffer's hierarchy, Lumen's `HZBTraversal.MaxIterations`: a budget for
93
- * one thread. A ray that spends them is a miss of the screen, which the bricks take on from where it got.
91
+ * Steps of a screen trace through the depth buffer's hierarchy: a budget for one thread. A ray that spends them is a
92
+ * miss of the screen, which the bricks take on from where it got.
94
93
  * @type {number}
95
94
  */
96
95
  export const SCREEN_PROBE_SCREEN_TRACE_STEPS = 50;
97
96
 
98
97
  /**
99
- * How far behind the depth buffer a screen trace still counts as on the surface, as a share of the surface's depth,
100
- * Lumen's `HZBTraversal.RelativeDepthThickness`.
98
+ * How far behind the depth buffer a screen trace still counts as on the surface, as a share of the surface's depth.
101
99
  * @type {number}
102
100
  */
103
101
  export const SCREEN_PROBE_SCREEN_THICKNESS = 0.02;
104
102
 
105
103
  /**
106
- * The share of the screen, along each side, over which a screen hit fades to a miss, Lumen's: from 80% of the way
107
- * from the centre to the edge, in screen position.
104
+ * The share of the screen, along each side, over which a screen hit fades to a miss: from 80% of the way from the
105
+ * centre to the edge, in screen position.
108
106
  * @type {number}
109
107
  */
110
108
  export const SCREEN_PROBE_SCREEN_EDGE = 0.2;
@@ -112,8 +110,7 @@ export const SCREEN_PROBE_SCREEN_EDGE = 0.2;
112
110
  /**
113
111
  * How far past its probe a ray is traced before the world-space probes answer for the rest, in spacings of the
114
112
  * cascade the probe reads them from: the furthest a corner probe of its cage stands from the point it serves,
115
- * relocation included, `PROBE_DEPTH_LIMIT`. Past it the ray has left every corner's cage, as Lumen's rays leave a
116
- * cell's diagonal before its radiance cache takes them.
113
+ * relocation included, `PROBE_DEPTH_LIMIT`. Past it the ray has left every corner's cage.
117
114
  * @type {number}
118
115
  */
119
116
  export const SCREEN_PROBE_REACH_SPACINGS = PROBE_DEPTH_LIMIT;
@@ -127,22 +124,21 @@ export const SCREEN_PROBE_ORIGIN_STEPS = 3;
127
124
 
128
125
  /**
129
126
  * A ray hit something moving when the speeds of its hit and its probe differ by more than this share of the probe's
130
- * depth, held to a metre from below, Lumen's `RelativeSpeedDifferenceToConsiderLightingMoving`.
127
+ * depth, held to a metre from below.
131
128
  * @type {number}
132
129
  */
133
130
  export const SCREEN_PROBE_MOVING_SPEED = 0.005;
134
131
 
135
132
  /**
136
133
  * The temporal filter's history at a pixel is another surface when its depth differs from the one reprojected there
137
- * by this share of the depth, dithered over ×½ to ×1½ and widened at grazing angles, Lumen's
138
- * `Temporal.DistanceThreshold`.
134
+ * by this share of the depth, dithered over ×½ to ×1½ and widened at grazing angles.
139
135
  * @type {number}
140
136
  */
141
137
  export const SCREEN_PROBE_TEMPORAL_DISTANCE = 0.005;
142
138
 
143
139
  /**
144
- * Lumen's fast update: the share of a pixel's light seen moving at which it takes its new light whole, and the most of
145
- * its history the fast update ever drops.
140
+ * The temporal filter's fast update: the share of a pixel's light seen moving at which it takes its new light whole,
141
+ * and the most of its history the fast update ever drops.
146
142
  * @type {number}
147
143
  */
148
144
  export const SCREEN_PROBE_FAST_UPDATE_MOVING = 0.1;
@@ -151,8 +147,7 @@ export const SCREEN_PROBE_FAST_UPDATE_LIMIT = 0.9;
151
147
  /**
152
148
  * Where the screen probes' rough specular takes a surface's specular over from the world-space probes, by its
153
149
  * perceptual roughness: the world probes' whole below `ROUGHNESS − FADE`, the screen probes' whole from `ROUGHNESS`,
154
- * linear between. Lumen's `LumenMaxRoughnessToTraceReflections` (0.4) and `r.Lumen.Reflections.RoughnessFadeLength`
155
- * (0.1), its traced reflections being the world probes here.
150
+ * linear between.
156
151
  * @type {number}
157
152
  */
158
153
  export const SCREEN_PROBE_ROUGH_SPECULAR_ROUGHNESS = 0.4;
@@ -161,15 +156,14 @@ export const SCREEN_PROBE_ROUGH_SPECULAR_FADE = 0.1;
161
156
  /**
162
157
  * Where the rough specular stops sampling the probes' radiance along the GGX lobe and takes their irradiance at the
163
158
  * bent normal over π instead, by perceptual roughness: sampled whole below `ROUGHNESS − FADE`, the irradiance whole
164
- * from `ROUGHNESS`, linear between. Lumen's `r.Lumen.ScreenProbeGather.MaxRoughnessToEvaluateRoughSpecular` (0.8) and
165
- * `GetDiffuseLerp`'s fade (0.2).
159
+ * from `ROUGHNESS`, linear between.
166
160
  * @type {number}
167
161
  */
168
162
  export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLED_ROUGHNESS = 0.8;
169
163
  export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLED_FADE = 0.2;
170
164
 
171
165
  /**
172
- * Directions a pixel's rough specular draws from the GGX lobe a frame, Lumen's `NumSpecularSamples`.
166
+ * Directions a pixel's rough specular draws from the GGX lobe a frame.
173
167
  * @type {number}
174
168
  */
175
169
  export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLES = 4;
@@ -250,9 +244,8 @@ export function screen_probe_adaptive_tile_capacity(levels) {
250
244
  /**
251
245
  * @param {number} uniform_count uniform probes
252
246
  * @param {number} levels of adaptive placement
253
- * @returns {number} adaptive probe slots: as many as the uniform probes, Lumen's `AdaptiveProbeAllocationFraction` at
254
- * one (half there), so a frame's probes are never more than twice the uniform ones however finely the view's depth
255
- * breaks up; none without adaptive levels
247
+ * @returns {number} adaptive probe slots: as many as the uniform probes, so a frame's probes are never more than twice
248
+ * the uniform ones however finely the view's depth breaks up; none without adaptive levels
256
249
  */
257
250
  export function screen_probe_adaptive_capacity(uniform_count, levels) {
258
251
  return levels > 0 ? uniform_count : 0;
@@ -18,23 +18,21 @@ export class ScreenProbeSettings {
18
18
  set downsample_factor(v: number);
19
19
  /**
20
20
  * Pixels between the uniform probes along each axis: one probe stands on the G-buffer in every square tile of
21
- * this many pixels a side, Lumen's `ScreenProbeGather.DownsampleFactor`. Adaptive probes fill in between where
22
- * interpolating the uniform ones would cross an edge ({@link adaptive_min_downsample_factor}). Every ray a probe
23
- * casts and every pixel's interpolation scale with the count, so the cost goes as the inverse square of this.
24
- * Structure.
21
+ * this many pixels a side. Adaptive probes fill in between where interpolating the uniform ones would cross an
22
+ * edge ({@link adaptive_min_downsample_factor}). Every ray a probe casts and every pixel's interpolation scale with
23
+ * the count, so the cost goes as the inverse square of this. Structure.
25
24
  * @returns {number}
26
25
  */
27
26
  get downsample_factor(): number;
28
27
  /**
29
- * @param {number} v 4, 8 or 16: Lumen's range, whose top is what a probe's workgroup sorts and accumulates in its
30
- * memory (`SCREEN_PROBE_OCTAHEDRON_MINIMUM`, `SCREEN_PROBE_OCTAHEDRON_LIMIT`)
28
+ * @param {number} v 4, 8 or 16, the top being what a probe's workgroup sorts and accumulates in its memory
29
+ * (`SCREEN_PROBE_OCTAHEDRON_MINIMUM`, `SCREEN_PROBE_OCTAHEDRON_LIMIT`)
31
30
  */
32
31
  set octahedron_resolution(v: number);
33
32
  /**
34
33
  * Texels a side of a probe's radiance, over the sphere by Clarberg's equal-area map: each probe casts this
35
- * squared rays a frame, one a texel, Lumen's `TracingOctahedronResolution`. With importance sampling a ray may
36
- * instead stand in a quarter of a texel at twice this resolution, where the probe's light is brightest.
37
- * Structure.
34
+ * squared rays a frame, one a texel. With importance sampling a ray may instead stand in a quarter of a texel at
35
+ * twice this resolution, where the probe's light is brightest. Structure.
38
36
  * @returns {number}
39
37
  */
40
38
  get octahedron_resolution(): number;
@@ -43,10 +41,10 @@ export class ScreenProbeSettings {
43
41
  */
44
42
  set adaptive_min_downsample_factor(v: number);
45
43
  /**
46
- * The finest spacing adaptive probes are placed at, in pixels, Lumen's `AdaptiveProbeMinDownsampleFactor`.
47
- * Placement runs at half the {@link downsample_factor}, then a quarter, while the spacing is at least this:
48
- * a pixel on that finer grid gets a probe where the probes already placed would not interpolate to it. At or
49
- * above the downsample factor no adaptive probe is placed.
44
+ * The finest spacing adaptive probes are placed at, in pixels. Placement runs at half the
45
+ * {@link downsample_factor}, then a quarter, while the spacing is at least this: a pixel on that finer grid gets a
46
+ * probe where the probes already placed would not interpolate to it. At or above the downsample factor no adaptive
47
+ * probe is placed.
50
48
  * @returns {number}
51
49
  */
52
50
  get adaptive_min_downsample_factor(): number;
@@ -55,7 +53,7 @@ export class ScreenProbeSettings {
55
53
  */
56
54
  set importance_sampling(v: boolean);
57
55
  /**
58
- * Whether a probe's rays follow where its light comes from (Lumen's structured importance sampling): each texel
56
+ * Whether a probe's rays follow where its light comes from (structured importance sampling): each texel
59
57
  * is weighed by the cosine lobes of the pixels around the probe and by the light the probe's history saw there;
60
58
  * the rays of texels the pixels cannot see go, three at a time, to split the brightest texels into four. Off,
61
59
  * every texel takes one ray. Takes effect the next frame.
@@ -78,10 +76,10 @@ export class ScreenProbeSettings {
78
76
  */
79
77
  set rough_specular(v: boolean);
80
78
  /**
81
- * Whether the probes light the specular of rough surfaces, as Lumen's screen probe gather does: each pixel's
82
- * radiance along its GGX lobe from the probes' radiance, the probes' irradiance over π for the roughest, taking the
83
- * specular over from the world-space probes by roughness (`SCREEN_PROBE_ROUGH_SPECULAR_ROUGHNESS`). Off, the
84
- * world-space probes light every surface's specular. Takes effect the next frame.
79
+ * Whether the probes light the specular of rough surfaces: each pixel's radiance along its GGX lobe from the
80
+ * probes' radiance, the probes' irradiance over π for the roughest, taking the specular over from the world-space
81
+ * probes by roughness (`SCREEN_PROBE_ROUGH_SPECULAR_ROUGHNESS`). Off, the world-space probes light every surface's
82
+ * specular. Takes effect the next frame.
85
83
  * @returns {boolean}
86
84
  */
87
85
  get rough_specular(): boolean;
@@ -90,9 +88,8 @@ export class ScreenProbeSettings {
90
88
  */
91
89
  set spatial_filter_passes(v: number);
92
90
  /**
93
- * Passes of the filter between neighbouring probes, Lumen's `SpatialFilterNumPasses`: each texel takes its four
94
- * neighbours' along the same direction where they stand on its surface and saw the same point. Zero records none.
95
- * Takes effect the next frame.
91
+ * Passes of the filter between neighbouring probes: each texel takes its four neighbours' along the same direction
92
+ * where they stand on its surface and saw the same point. Zero records none. Takes effect the next frame.
96
93
  * @returns {number}
97
94
  */
98
95
  get spatial_filter_passes(): number;
@@ -101,9 +98,9 @@ export class ScreenProbeSettings {
101
98
  */
102
99
  set temporal_frames(v: number);
103
100
  /**
104
- * The most frames the temporal filter averages a pixel's diffuse and rough specular over, Lumen's `Temporal.MaxFramesAccumulated`:
105
- * a pixel whose history holds blends its new light by 1 / (1 + frames). Where the probes' rays saw something
106
- * move, it takes fewer. Takes effect the next frame.
101
+ * The most frames the temporal filter averages a pixel's diffuse and rough specular over: a pixel whose history
102
+ * holds blends its new light by 1 / (1 + frames). Where the probes' rays saw something move, it takes fewer.
103
+ * Takes effect the next frame.
107
104
  * @returns {number}
108
105
  */
109
106
  get temporal_frames(): number;