@woosh/meep-engine 3.70.0 → 3.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/MIGRATION_2_TO_3.md +1 -1
  3. package/package.json +1 -1
  4. package/src/engine/graphics3/VolumetricLightMapSystem.d.ts +1 -1
  5. package/src/engine/graphics3/VolumetricLightMapSystem.js +261 -261
  6. package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
  7. package/src/engine/sound/simulation/probe/probe_place_sdf_cover.d.ts +1 -2
  8. package/src/engine/sound/simulation/probe/probe_place_sdf_cover.d.ts.map +1 -1
  9. package/src/engine/sound/simulation/probe/probe_place_sdf_cover.js +1 -2
  10. package/src/shade/renderer/Renderer.d.ts +0 -12
  11. package/src/shade/renderer/Renderer.d.ts.map +1 -1
  12. package/src/shade/renderer/Renderer.js +0 -101
  13. package/src/shade/renderer/ShadeIndirectLightingMode.d.ts +0 -1
  14. package/src/shade/renderer/ShadeIndirectLightingMode.js +0 -2
  15. package/src/shade/renderer/atmosphere/ATMOSPHERE_PARAMETERS_STRUCT.d.ts.map +1 -1
  16. package/src/shade/renderer/atmosphere/ATMOSPHERE_PARAMETERS_STRUCT.js +7 -0
  17. package/src/shade/renderer/atmosphere/shader_sky_irradiance_lut.d.ts.map +1 -1
  18. package/src/shade/renderer/atmosphere/shader_sky_irradiance_lut.js +1 -4
  19. package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +3 -3
  20. package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +1 -1
  21. package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +7 -7
  22. package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
  23. package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
  24. package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +1 -1
  25. package/src/shade/renderer/light/GPULightCollection.d.ts +3 -2
  26. package/src/shade/renderer/light/GPULightCollection.d.ts.map +1 -1
  27. package/src/shade/renderer/light/GPULightCollection.js +28 -2
  28. package/src/shade/renderer/light/environment/shader_project_environment_sh.d.ts +2 -2
  29. package/src/shade/renderer/light/environment/shader_project_environment_sh.js +2 -2
  30. package/src/shade/renderer/light/make_sunlight.d.ts +14 -0
  31. package/src/shade/renderer/light/make_sunlight.d.ts.map +1 -1
  32. package/src/shade/renderer/light/make_sunlight.js +16 -2
  33. package/src/shade/renderer/light/model/DirectionalLight.d.ts +9 -0
  34. package/src/shade/renderer/light/model/DirectionalLight.d.ts.map +1 -1
  35. package/src/shade/renderer/light/model/DirectionalLight.js +10 -1
  36. package/src/shade/renderer/light/model/Light.d.ts +4 -2
  37. package/src/shade/renderer/light/model/Light.d.ts.map +1 -1
  38. package/src/shade/renderer/light/model/Light.js +4 -2
  39. package/src/shade/renderer/light/model/io/light_record_directional.d.ts.map +1 -1
  40. package/src/shade/renderer/light/model/io/light_record_directional.js +3 -0
  41. package/src/shade/renderer/light/shader_refresh_light_poses.d.ts +16 -1
  42. package/src/shade/renderer/light/shader_refresh_light_poses.d.ts.map +1 -1
  43. package/src/shade/renderer/light/shader_refresh_light_poses.js +211 -154
  44. package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
  45. package/src/shade/renderer/postprocess/nss/NSS.d.ts +1 -1
  46. package/src/shade/renderer/postprocess/ssr/SSR.d.ts +2 -5
  47. package/src/shade/renderer/postprocess/ssr/SSR.d.ts.map +1 -1
  48. package/src/shade/renderer/postprocess/ssr/SSR.js +1 -13
  49. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_add_hit_irradiance.d.ts +2 -9
  50. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_add_hit_irradiance.d.ts.map +1 -1
  51. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_add_hit_irradiance.js +2 -38
  52. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.d.ts +0 -5
  53. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.d.ts.map +1 -1
  54. package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.js +0 -16
  55. package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.d.ts.map +1 -1
  56. package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.js +3 -10
  57. package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect.d.ts +0 -2
  58. package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect.d.ts.map +1 -1
  59. package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect.js +0 -3
  60. package/src/shade/renderer/scene/GPUSceneContext.d.ts +0 -6
  61. package/src/shade/renderer/scene/GPUSceneContext.d.ts.map +1 -1
  62. package/src/shade/renderer/scene/GPUSceneContext.js +0 -19
  63. package/src/shade/renderer/scene/Scene.d.ts +1 -7
  64. package/src/shade/renderer/scene/Scene.d.ts.map +1 -1
  65. package/src/shade/renderer/scene/Scene.js +1 -8
  66. package/src/shade/renderer/scene/bvh/sdf_build_from_scene.d.ts.map +1 -0
  67. package/src/shade/renderer/{global_illumination/lpv/placement/software → scene/bvh}/sdf_build_from_scene.js +6 -6
  68. package/src/shade/renderer/scene/bvh/sdf_find_local_maxima.d.ts.map +1 -0
  69. package/src/shade/renderer/{global_illumination/lpv/placement/software → scene/bvh}/sdf_find_local_maxima.js +1 -1
  70. package/src/shade/renderer/shader/chunk/light/DIRECTIONAL_LIGHT_STRUCT.d.ts.map +1 -1
  71. package/src/shade/renderer/shader/chunk/light/DIRECTIONAL_LIGHT_STRUCT.js +12 -2
  72. package/src/shade/renderer/shader/chunk/light/io/chunk_point_lights_iterate.d.ts +1 -1
  73. package/src/shade/renderer/shader/chunk/light/io/chunk_point_lights_iterate.js +1 -1
  74. package/src/shade/renderer/{global_illumination/probe/octahedral/sample → shader/chunk/light/probe}/chunk_parallax_correct_spherical_probe.d.ts +1 -1
  75. package/src/shade/renderer/shader/chunk/light/probe/chunk_parallax_correct_spherical_probe.d.ts.map +1 -0
  76. package/src/shade/renderer/{global_illumination/probe/octahedral/sample → shader/chunk/light/probe}/chunk_parallax_correct_spherical_probe.js +2 -2
  77. package/src/shade/renderer/shader/chunk/light/probe/chunk_probe_visibility_weight.d.ts +1 -1
  78. package/src/shade/renderer/shader/chunk/light/probe/chunk_probe_visibility_weight.js +1 -1
  79. package/src/shade/renderer/shader/chunk/spherical_harmonics/dering/chunk_sh2_dering_optimize_positive.d.ts +1 -2
  80. package/src/shade/renderer/shader/chunk/spherical_harmonics/dering/chunk_sh2_dering_optimize_positive.d.ts.map +1 -1
  81. package/src/shade/renderer/shader/chunk/spherical_harmonics/dering/chunk_sh2_dering_optimize_positive.js +1 -2
  82. package/src/shade/renderer/trails/GPUTrailSystem.d.ts +4 -0
  83. package/src/shade/renderer/trails/GPUTrailSystem.d.ts.map +1 -1
  84. package/src/shade/renderer/trails/GPUTrailSystem.js +9 -3
  85. package/src/shade/renderer/volumetrics/GPUViewVolumetrics.d.ts +1 -3
  86. package/src/shade/renderer/volumetrics/GPUViewVolumetrics.d.ts.map +1 -1
  87. package/src/shade/renderer/volumetrics/GPUViewVolumetrics.js +0 -3
  88. package/src/shade/renderer/volumetrics/chunk_volumetrics_irradiance_sh.d.ts +2 -2
  89. package/src/shade/renderer/volumetrics/chunk_volumetrics_irradiance_sh.js +2 -2
  90. package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts +1 -3
  91. package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts.map +1 -1
  92. package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.js +0 -9
  93. package/src/shade/renderer/volumetrics/irradiance_clipmap/chunk_irradiance_clipmap_gi_sample.d.ts +0 -5
  94. package/src/shade/renderer/volumetrics/irradiance_clipmap/chunk_irradiance_clipmap_gi_sample.d.ts.map +1 -1
  95. package/src/shade/renderer/volumetrics/irradiance_clipmap/chunk_irradiance_clipmap_gi_sample.js +0 -29
  96. package/src/shade/renderer/volumetrics/irradiance_clipmap/shader_irradiance_clipmap_build.d.ts.map +1 -1
  97. package/src/shade/renderer/volumetrics/irradiance_clipmap/shader_irradiance_clipmap_build.js +0 -2
  98. package/src/shade/renderer/volumetrics/shader_volumetrics_build_lighting.d.ts.map +1 -1
  99. package/src/shade/renderer/volumetrics/shader_volumetrics_build_lighting.js +11 -6
  100. package/src/shade/renderer/volumetrics/shader_volumetrics_build_scattering_lut.d.ts.map +1 -1
  101. package/src/shade/renderer/volumetrics/shader_volumetrics_build_scattering_lut.js +10 -4
  102. package/src/shade/renderer/water/chunk_water_gi.d.ts +1 -1
  103. package/src/shade/renderer/water/chunk_water_gi.d.ts.map +1 -1
  104. package/src/shade/renderer/water/chunk_water_gi.js +1 -3
  105. package/src/shade/renderer/water/query/GPUWaterQueries.d.ts +1 -1
  106. package/src/shade/renderer/wind/GPUSceneWind.d.ts +1 -1
  107. package/src/shade/renderer/deferred/indirect/chunk_gi_sample_lpv_cache.d.ts +0 -3
  108. package/src/shade/renderer/deferred/indirect/chunk_gi_sample_lpv_cache.d.ts.map +0 -1
  109. package/src/shade/renderer/deferred/indirect/chunk_gi_sample_lpv_cache.js +0 -41
  110. package/src/shade/renderer/deferred/indirect/chunk_lpv_2d_cache_sample_irradiance.d.ts +0 -6
  111. package/src/shade/renderer/deferred/indirect/chunk_lpv_2d_cache_sample_irradiance.d.ts.map +0 -1
  112. package/src/shade/renderer/deferred/indirect/chunk_lpv_2d_cache_sample_irradiance.js +0 -108
  113. package/src/shade/renderer/deferred/indirect/chunk_lpv_sample_light.d.ts +0 -6
  114. package/src/shade/renderer/deferred/indirect/chunk_lpv_sample_light.d.ts.map +0 -1
  115. package/src/shade/renderer/deferred/indirect/chunk_lpv_sample_light.js +0 -100
  116. package/src/shade/renderer/global_illumination/lpv/GPULightProbeVolume.d.ts +0 -51
  117. package/src/shade/renderer/global_illumination/lpv/GPULightProbeVolume.d.ts.map +0 -1
  118. package/src/shade/renderer/global_illumination/lpv/GPULightProbeVolume.js +0 -384
  119. package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_STRUCT.d.ts +0 -3
  120. package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_STRUCT.d.ts.map +0 -1
  121. package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_STRUCT.js +0 -20
  122. package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_VOLUME_METADATA_STRUCT.d.ts +0 -3
  123. package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_VOLUME_METADATA_STRUCT.d.ts.map +0 -1
  124. package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_VOLUME_METADATA_STRUCT.js +0 -10
  125. package/src/shade/renderer/global_illumination/lpv/LightProbeVolume.d.ts +0 -63
  126. package/src/shade/renderer/global_illumination/lpv/LightProbeVolume.d.ts.map +0 -1
  127. package/src/shade/renderer/global_illumination/lpv/LightProbeVolume.js +0 -177
  128. package/src/shade/renderer/global_illumination/lpv/TETRAHEDRAL_MESH_CELL_STRUCT.d.ts +0 -3
  129. package/src/shade/renderer/global_illumination/lpv/TETRAHEDRAL_MESH_CELL_STRUCT.d.ts.map +0 -1
  130. package/src/shade/renderer/global_illumination/lpv/TETRAHEDRAL_MESH_CELL_STRUCT.js +0 -7
  131. package/src/shade/renderer/global_illumination/lpv/bake/GPULightProbeVolumeRenderer.d.ts +0 -68
  132. package/src/shade/renderer/global_illumination/lpv/bake/GPULightProbeVolumeRenderer.d.ts.map +0 -1
  133. package/src/shade/renderer/global_illumination/lpv/bake/GPULightProbeVolumeRenderer.js +0 -410
  134. package/src/shade/renderer/global_illumination/lpv/bake/PROBE_RAYS_PER_WORKGROUP.d.ts +0 -2
  135. package/src/shade/renderer/global_illumination/lpv/bake/PROBE_RAYS_PER_WORKGROUP.d.ts.map +0 -1
  136. package/src/shade/renderer/global_illumination/lpv/bake/PROBE_RAYS_PER_WORKGROUP.js +0 -1
  137. package/src/shade/renderer/global_illumination/lpv/debug/shader_visualize_probe_depth.d.ts +0 -3
  138. package/src/shade/renderer/global_illumination/lpv/debug/shader_visualize_probe_depth.d.ts.map +0 -1
  139. package/src/shade/renderer/global_illumination/lpv/debug/shader_visualize_probe_depth.js +0 -38
  140. package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_RESOLUTION.d.ts +0 -8
  141. package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_RESOLUTION.d.ts.map +0 -1
  142. package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_RESOLUTION.js +0 -7
  143. package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_STRUCT.d.ts +0 -3
  144. package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_STRUCT.d.ts.map +0 -1
  145. package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_STRUCT.js +0 -8
  146. package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_get_visibility_mask.d.ts +0 -3
  147. package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_get_visibility_mask.d.ts.map +0 -1
  148. package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_get_visibility_mask.js +0 -48
  149. package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_coordinate_to_address.d.ts +0 -3
  150. package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_coordinate_to_address.d.ts.map +0 -1
  151. package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_coordinate_to_address.js +0 -11
  152. package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_get_pixel.d.ts +0 -3
  153. package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_get_pixel.d.ts.map +0 -1
  154. package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_get_pixel.js +0 -20
  155. package/src/shade/renderer/global_illumination/lpv/deprecated/probe_trace_compute_shader_code.d.ts +0 -5
  156. package/src/shade/renderer/global_illumination/lpv/deprecated/probe_trace_compute_shader_code.d.ts.map +0 -1
  157. package/src/shade/renderer/global_illumination/lpv/deprecated/probe_trace_compute_shader_code.js +0 -206
  158. package/src/shade/renderer/global_illumination/lpv/edit/AddProbeAction.d.ts +0 -14
  159. package/src/shade/renderer/global_illumination/lpv/edit/AddProbeAction.d.ts.map +0 -1
  160. package/src/shade/renderer/global_illumination/lpv/edit/AddProbeAction.js +0 -39
  161. package/src/shade/renderer/global_illumination/lpv/graph_bake_irradiance_lookup_2d.d.ts +0 -16
  162. package/src/shade/renderer/global_illumination/lpv/graph_bake_irradiance_lookup_2d.d.ts.map +0 -1
  163. package/src/shade/renderer/global_illumination/lpv/graph_bake_irradiance_lookup_2d.js +0 -201
  164. package/src/shade/renderer/global_illumination/lpv/lpv_jitter_points.d.ts +0 -10
  165. package/src/shade/renderer/global_illumination/lpv/lpv_jitter_points.d.ts.map +0 -1
  166. package/src/shade/renderer/global_illumination/lpv/lpv_jitter_points.js +0 -27
  167. package/src/shade/renderer/global_illumination/lpv/lpv_visualise_probes.d.ts +0 -18
  168. package/src/shade/renderer/global_illumination/lpv/lpv_visualise_probes.d.ts.map +0 -1
  169. package/src/shade/renderer/global_illumination/lpv/lpv_visualise_probes.js +0 -265
  170. package/src/shade/renderer/global_illumination/lpv/placement/chunk_refine_probe_placement.d.ts +0 -7
  171. package/src/shade/renderer/global_illumination/lpv/placement/chunk_refine_probe_placement.d.ts.map +0 -1
  172. package/src/shade/renderer/global_illumination/lpv/placement/chunk_refine_probe_placement.js +0 -126
  173. package/src/shade/renderer/global_illumination/lpv/placement/graph_generate_probe_locations.d.ts +0 -13
  174. package/src/shade/renderer/global_illumination/lpv/placement/graph_generate_probe_locations.d.ts.map +0 -1
  175. package/src/shade/renderer/global_illumination/lpv/placement/graph_generate_probe_locations.js +0 -373
  176. package/src/shade/renderer/global_illumination/lpv/placement/software/lpv_generate_probe_locations2.d.ts +0 -14
  177. package/src/shade/renderer/global_illumination/lpv/placement/software/lpv_generate_probe_locations2.d.ts.map +0 -1
  178. package/src/shade/renderer/global_illumination/lpv/placement/software/lpv_generate_probe_locations2.js +0 -225
  179. package/src/shade/renderer/global_illumination/lpv/placement/software/sdf_build_from_scene.d.ts.map +0 -1
  180. package/src/shade/renderer/global_illumination/lpv/placement/software/sdf_find_local_maxima.d.ts.map +0 -1
  181. package/src/shade/renderer/global_illumination/lpv/shader_diffuse_LPV.d.ts +0 -3
  182. package/src/shade/renderer/global_illumination/lpv/shader_diffuse_LPV.d.ts.map +0 -1
  183. package/src/shade/renderer/global_illumination/lpv/shader_diffuse_LPV.js +0 -91
  184. package/src/shade/renderer/global_illumination/probe/chunk_compute_probe_dering.d.ts +0 -5
  185. package/src/shade/renderer/global_illumination/probe/chunk_compute_probe_dering.d.ts.map +0 -1
  186. package/src/shade/renderer/global_illumination/probe/chunk_compute_probe_dering.js +0 -45
  187. package/src/shade/renderer/global_illumination/probe/compute_pipeline_probe_dering.d.ts +0 -3
  188. package/src/shade/renderer/global_illumination/probe/compute_pipeline_probe_dering.d.ts.map +0 -1
  189. package/src/shade/renderer/global_illumination/probe/compute_pipeline_probe_dering.js +0 -17
  190. package/src/shade/renderer/global_illumination/probe/lpv_dering_software.d.ts +0 -6
  191. package/src/shade/renderer/global_illumination/probe/lpv_dering_software.d.ts.map +0 -1
  192. package/src/shade/renderer/global_illumination/probe/lpv_dering_software.js +0 -21
  193. package/src/shade/renderer/global_illumination/probe/octahedral/GPUProbeAtlas.d.ts +0 -79
  194. package/src/shade/renderer/global_illumination/probe/octahedral/GPUProbeAtlas.d.ts.map +0 -1
  195. package/src/shade/renderer/global_illumination/probe/octahedral/GPUProbeAtlas.js +0 -437
  196. package/src/shade/renderer/global_illumination/probe/octahedral/LPV_ACCUMULATION_PUSH_CONSTANTS.d.ts +0 -3
  197. package/src/shade/renderer/global_illumination/probe/octahedral/LPV_ACCUMULATION_PUSH_CONSTANTS.d.ts.map +0 -1
  198. package/src/shade/renderer/global_illumination/probe/octahedral/LPV_ACCUMULATION_PUSH_CONSTANTS.js +0 -14
  199. package/src/shade/renderer/global_illumination/probe/octahedral/LPV_SHADER_RESOURCE_GROUP.d.ts +0 -42
  200. package/src/shade/renderer/global_illumination/probe/octahedral/LPV_SHADER_RESOURCE_GROUP.d.ts.map +0 -1
  201. package/src/shade/renderer/global_illumination/probe/octahedral/LPV_SHADER_RESOURCE_GROUP.js +0 -68
  202. package/src/shade/renderer/global_illumination/probe/octahedral/ProbeGBufferTypes.d.ts +0 -9
  203. package/src/shade/renderer/global_illumination/probe/octahedral/ProbeGBufferTypes.d.ts.map +0 -1
  204. package/src/shade/renderer/global_illumination/probe/octahedral/ProbeGBufferTypes.js +0 -20
  205. package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_map_index_to_border.d.ts +0 -3
  206. package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_map_index_to_border.d.ts.map +0 -1
  207. package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_map_index_to_border.js +0 -47
  208. package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_paint_borders_body.d.ts +0 -3
  209. package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_paint_borders_body.d.ts.map +0 -1
  210. package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_paint_borders_body.js +0 -55
  211. package/src/shade/renderer/global_illumination/probe/octahedral/border/graph_lpv_paint_border_depth.d.ts +0 -19
  212. package/src/shade/renderer/global_illumination/probe/octahedral/border/graph_lpv_paint_border_depth.d.ts.map +0 -1
  213. package/src/shade/renderer/global_illumination/probe/octahedral/border/graph_lpv_paint_border_depth.js +0 -85
  214. package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_border_read.d.ts +0 -3
  215. package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_border_read.d.ts.map +0 -1
  216. package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_border_read.js +0 -78
  217. package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_depth.d.ts +0 -7
  218. package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_depth.d.ts.map +0 -1
  219. package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_depth.js +0 -70
  220. package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_radiance.d.ts +0 -7
  221. package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_radiance.d.ts.map +0 -1
  222. package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_radiance.js +0 -20
  223. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/chunk_compute_coefficient_address.d.ts +0 -3
  224. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/chunk_compute_coefficient_address.d.ts.map +0 -1
  225. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/chunk_compute_coefficient_address.js +0 -20
  226. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lpv_store_sh.d.ts +0 -19
  227. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lpv_store_sh.d.ts.map +0 -1
  228. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lpv_store_sh.js +0 -128
  229. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lvp_atlas_to_sh.d.ts +0 -22
  230. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lvp_atlas_to_sh.d.ts.map +0 -1
  231. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lvp_atlas_to_sh.js +0 -200
  232. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_reduce_atlas_to_sh.d.ts +0 -23
  233. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_reduce_atlas_to_sh.d.ts.map +0 -1
  234. package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_reduce_atlas_to_sh.js +0 -179
  235. package/src/shade/renderer/global_illumination/probe/octahedral/graph_lpv_shade.d.ts +0 -13
  236. package/src/shade/renderer/global_illumination/probe/octahedral/graph_lpv_shade.d.ts.map +0 -1
  237. package/src/shade/renderer/global_illumination/probe/octahedral/graph_lpv_shade.js +0 -416
  238. package/src/shade/renderer/global_illumination/probe/octahedral/graph_sample_light_probes.d.ts +0 -16
  239. package/src/shade/renderer/global_illumination/probe/octahedral/graph_sample_light_probes.d.ts.map +0 -1
  240. package/src/shade/renderer/global_illumination/probe/octahedral/graph_sample_light_probes.js +0 -268
  241. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_patch_texel_coord.d.ts +0 -17
  242. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_patch_texel_coord.d.ts.map +0 -1
  243. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_patch_texel_coord.js +0 -38
  244. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_read_patch_texel.d.ts +0 -3
  245. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_read_patch_texel.d.ts.map +0 -1
  246. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_read_patch_texel.js +0 -34
  247. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance.d.ts +0 -3
  248. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance.d.ts.map +0 -1
  249. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance.js +0 -62
  250. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance_nearest.d.ts +0 -3
  251. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance_nearest.d.ts.map +0 -1
  252. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance_nearest.js +0 -37
  253. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_mesh_interpolate_radiance_via_atlas.d.ts +0 -7
  254. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_mesh_interpolate_radiance_via_atlas.d.ts.map +0 -1
  255. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_mesh_interpolate_radiance_via_atlas.js +0 -62
  256. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_radiance_sample_reflection.d.ts +0 -7
  257. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_radiance_sample_reflection.d.ts.map +0 -1
  258. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_radiance_sample_reflection.js +0 -61
  259. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_parallax_correct_spherical_probe.d.ts.map +0 -1
  260. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_parallax_correct_spherical_probe_iterative.d.ts +0 -3
  261. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_parallax_correct_spherical_probe_iterative.d.ts.map +0 -1
  262. package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_parallax_correct_spherical_probe_iterative.js +0 -80
  263. package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_accumulate_depth.d.ts +0 -3
  264. package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_accumulate_depth.d.ts.map +0 -1
  265. package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_accumulate_depth.js +0 -143
  266. package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_atlas_write_depth.d.ts +0 -3
  267. package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_atlas_write_depth.d.ts.map +0 -1
  268. package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_atlas_write_depth.js +0 -59
  269. package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_build_gbuffer.d.ts +0 -3
  270. package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_build_gbuffer.d.ts.map +0 -1
  271. package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_build_gbuffer.js +0 -227
  272. package/src/shade/renderer/shader/chunk/light/lpv/INVALID_TET_DECLARATION.d.ts +0 -7
  273. package/src/shade/renderer/shader/chunk/light/lpv/INVALID_TET_DECLARATION.d.ts.map +0 -1
  274. package/src/shade/renderer/shader/chunk/light/lpv/INVALID_TET_DECLARATION.js +0 -12
  275. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_interpolate_probe_irradiance8.d.ts +0 -7
  276. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_interpolate_probe_irradiance8.d.ts.map +0 -1
  277. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_interpolate_probe_irradiance8.js +0 -37
  278. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_barycentric_coordinates.d.ts +0 -3
  279. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_barycentric_coordinates.d.ts.map +0 -1
  280. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_barycentric_coordinates.js +0 -29
  281. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_neighbours.d.ts +0 -3
  282. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_neighbours.d.ts.map +0 -1
  283. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_neighbours.js +0 -20
  284. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_vertices.d.ts +0 -3
  285. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_vertices.d.ts.map +0 -1
  286. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_vertices.js +0 -22
  287. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe.d.ts +0 -4
  288. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe.d.ts.map +0 -1
  289. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe.js +0 -53
  290. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance.d.ts +0 -7
  291. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance.d.ts.map +0 -1
  292. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance.js +0 -48
  293. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance_pre.d.ts +0 -7
  294. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance_pre.d.ts.map +0 -1
  295. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance_pre.js +0 -35
  296. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolation_probe_sh.d.ts +0 -3
  297. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolation_probe_sh.d.ts.map +0 -1
  298. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolation_probe_sh.js +0 -38
  299. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_lookup_nearest_cell.d.ts +0 -3
  300. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_lookup_nearest_cell.d.ts.map +0 -1
  301. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_lookup_nearest_cell.js +0 -67
  302. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_walk_to_tetrahedron.d.ts +0 -3
  303. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_walk_to_tetrahedron.d.ts.map +0 -1
  304. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_walk_to_tetrahedron.js +0 -52
  305. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_data.d.ts +0 -3
  306. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_data.d.ts.map +0 -1
  307. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_data.js +0 -22
  308. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_position.d.ts +0 -3
  309. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_position.d.ts.map +0 -1
  310. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_position.js +0 -17
  311. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance.d.ts +0 -3
  312. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance.d.ts.map +0 -1
  313. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance.js +0 -48
  314. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_8.d.ts +0 -9
  315. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_8.d.ts.map +0 -1
  316. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_8.js +0 -126
  317. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_no_depth.d.ts +0 -3
  318. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_no_depth.d.ts.map +0 -1
  319. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_no_depth.js +0 -45
  320. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_radiance.d.ts +0 -3
  321. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_radiance.d.ts.map +0 -1
  322. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_radiance.js +0 -61
  323. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_sh3_at.d.ts +0 -3
  324. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_sh3_at.d.ts.map +0 -1
  325. package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_sh3_at.js +0 -33
  326. package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_mask_weights_by_visibility.d.ts +0 -4
  327. package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_mask_weights_by_visibility.d.ts.map +0 -1
  328. package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_mask_weights_by_visibility.js +0 -161
  329. package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_probe_sample_depth_array.d.ts +0 -3
  330. package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_probe_sample_depth_array.d.ts.map +0 -1
  331. package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_probe_sample_depth_array.js +0 -59
  332. package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_sample_depth_atlas.d.ts +0 -4
  333. package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_sample_depth_atlas.d.ts.map +0 -1
  334. package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_sample_depth_atlas.js +0 -97
  335. /package/src/shade/renderer/{global_illumination/lpv/placement/software → scene/bvh}/sdf_build_from_scene.d.ts +0 -0
  336. /package/src/shade/renderer/{global_illumination/lpv/placement/software → scene/bvh}/sdf_find_local_maxima.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"chunk_ssr_sample_radiance.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH,4CAFU,SAAS,CAUc;AAEjC;;;;GAIG;AACH,+CAFU,SAAS,CAUoB;AAEvC;;;GAGG;AACH,4CAFU,SAAS,CAUiB;AAEpC;;;;;;GAMG;AACH,sDAFU,SAAS,CAiB2E;AAE9F;;;;;;;;;;GAUG;AACH,wCAFU,eAAe,CAEwD;0BAjFvD,uCAAuC;gCACjC,6CAA6C"}
1
+ {"version":3,"file":"chunk_ssr_sample_radiance.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.js"],"names":[],"mappings":"AAWA;;;GAGG;AACH,4CAFU,SAAS,CAUc;AAEjC;;;;GAIG;AACH,+CAFU,SAAS,CAUoB;AAEvC;;;;;;GAMG;AACH,sDAFU,SAAS,CAiB2E;AAE9F;;;;;;;;;;GAUG;AACH,wCAFU,eAAe,CAEwD;0BAnEvD,uCAAuC;gCACjC,6CAA6C"}
@@ -5,7 +5,6 @@ import {
5
5
  } from "../../../global_illumination/probe_clipmap/probe/chunk_probe_clipmap_sample_radiance.js";
6
6
  import { INDIRECT_LIGHTING } from "../../../INDIRECT_LIGHTING.js";
7
7
  import { ShadeIndirectLightingMode } from "../../../ShadeIndirectLightingMode.js";
8
- import { chunk_lpv_sample_radiance } from "../../../shader/chunk/light/lpv/chunk_lpv_sample_radiance.js";
9
8
  import { chunk_stbn_sample_vec2 } from "../../../shader/chunk/noise/chunk_stbn_sample_vec2.js";
10
9
  import { CodeChunk } from "../../../shader/compiler/CodeChunk.js";
11
10
  import { CodeChunkChoice } from "../../../shader/compiler/CodeChunkChoice.js";
@@ -39,20 +38,6 @@ fn ssr_sample_radiance(
39
38
  }
40
39
  `, [chunk_brick4_sample_specular]);
41
40
 
42
- /**
43
- * {@link chunk_ssr_sample_radiance} from the light probe volume. Reads the LPV's buffers and its atlas.
44
- * @type {CodeChunk}
45
- */
46
- export const chunk_ssr_sample_radiance_lpv = CodeChunk.from(
47
- //language=WGSL
48
- `
49
- fn ssr_sample_radiance(
50
- position_ws: vec3f, normal_ws: vec3f, view_direction_ws: vec3f, roughness: f32, coord: vec2u,
51
- ) -> vec3f {
52
- return lpv_sample_radiance(position_ws, normal_ws, view_direction_ws, roughness);
53
- }
54
- `, [chunk_lpv_sample_radiance]);
55
-
56
41
  /**
57
42
  * {@link chunk_ssr_sample_radiance} from the probe clipmap (PROBE_CLIPMAP_PROPOSAL_2026_10_27.md §9.5): the probes'
58
43
  * specular at the point, picked by its normal and view with STBN at the pixel and the resolve's frame index, as
@@ -92,7 +77,6 @@ export const chunk_ssr_sample_radiance = CodeChunkChoice.from(INDIRECT_LIGHTING)
92
77
 
93
78
  chunk_ssr_sample_radiance.add(ShadeIndirectLightingMode.IBL, chunk_ssr_sample_radiance_ibl);
94
79
  chunk_ssr_sample_radiance.add(ShadeIndirectLightingMode.Brick4, chunk_ssr_sample_radiance_brick4);
95
- chunk_ssr_sample_radiance.add(ShadeIndirectLightingMode.LPV, chunk_ssr_sample_radiance_lpv);
96
80
  chunk_ssr_sample_radiance.add(ShadeIndirectLightingMode.ProbeClipmap, chunk_ssr_sample_radiance_probe_clipmap);
97
81
  // the screen probes light only the deferred opaque surfaces: every other reader takes the world-space probes
98
82
  chunk_ssr_sample_radiance.add(ShadeIndirectLightingMode.ScreenProbes, chunk_ssr_sample_radiance_probe_clipmap);
@@ -1 +1 @@
1
- {"version":3,"file":"ssr_resolve_shader.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.js"],"names":[],"mappings":"AA4WA;;;;;;;GAOG;AACH,iCAFU,WAAW,CAgBlB;4BA9WyB,gCAAgC"}
1
+ {"version":3,"file":"ssr_resolve_shader.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.js"],"names":[],"mappings":"AAqWA;;;;;;;GAOG;AACH,iCAFU,WAAW,CAgBlB;4BAvWyB,gCAAgC"}
@@ -27,10 +27,7 @@ import { chunk_get_ray_mip_level } from "./chunk_get_ray_mip_level.js";
27
27
  import { chunk_reconstruct_pdf } from "./chunk_reconstruct_pdf.js";
28
28
  import { BRICK4_DATA_STRUCT } from "../../../global_illumination/brick4/gpu/BRICK4_DATA_STRUCT.js";
29
29
  import { PROBE_CLIPMAP_SAMPLING_GROUP } from "../../../global_illumination/probe_clipmap/probe/chunk_probe_clipmap_pick.js";
30
- import { LPV_SHADER_RESOURCE_GROUP_WITH_DEFAULTS } from "../../../global_illumination/probe/octahedral/LPV_SHADER_RESOURCE_GROUP.js";
31
30
  import { ShaderResourceSetDescriptor } from "../../../shader/resource/ShaderResourceSetDescriptor.js";
32
- import { BLACK_PIXEL_TEXTURE } from "../../../texture/util/BLACK_PIXEL_TEXTURE.js";
33
- import { ZERO_UINT_PIXEL_TEXTURE } from "../../../texture/util/ZERO_UINT_PIXEL_TEXTURE.js";
34
31
  import { chunk_ssr_add_hit_irradiance, SSR_INDIRECT_DIFFUSE_RESOURCE } from "./chunk_ssr_add_hit_irradiance.js";
35
32
  import { chunk_ssr_sample_radiance } from "./chunk_ssr_sample_radiance.js";
36
33
  import { ENVIRONMENT_MAP_SAMPLER_RESOURCE } from "../../../light/environment/ENVIRONMENT_MAP_SAMPLER_RESOURCE.js";
@@ -43,19 +40,15 @@ const resources = new ShaderResourceSetDescriptor();
43
40
 
44
41
  // What every indirect lighting mode samples where the trace found nothing, or adds at a hit, whichever the
45
42
  // variant reads (chunk_ssr_sample_radiance, chunk_ssr_add_hit_irradiance): the environment, Brick4's probes
46
- // and the noise that jitters them, the light probe volume, and the deferred pass's indirect diffuse, which
47
- // the probe clipmap's bounce reads. The pass binds only the running mode's, and each mode's source has a
48
- // default for the others: black textures, transient buffers, a volume of no probes.
43
+ // and the noise that jitters them, and the deferred pass's indirect diffuse, which the probe clipmap's
44
+ // bounce reads. The pass binds only the running mode's, and each mode's source has a default for the
45
+ // others: black textures, transient buffers.
49
46
  resources.createGroup()
50
47
  .addTexture("tEnvironment", "float")
51
48
  .add(ENVIRONMENT_MAP_SAMPLER_RESOURCE)
52
49
  .addStorageBuffer("brick4", BRICK4_DATA_STRUCT, false, true)
53
50
  .addTexture("tSTBN_vec2", "unfilterable-float", "3d")
54
- .addTexture("lpv_atlas_radiance", "uint", "2d", false, ZERO_UINT_PIXEL_TEXTURE)
55
- .addTexture("lpv_atlas_depth", "float", "2d", false, BLACK_PIXEL_TEXTURE)
56
51
  .add(SSR_INDIRECT_DIFFUSE_RESOURCE);
57
- // the light probe volume
58
- resources.addGroup(LPV_SHADER_RESOURCE_GROUP_WITH_DEFAULTS);
59
52
 
60
53
  // per-pass, four bytes, read-only: immediate data rather than a uniform buffer
61
54
  resources.setImmediate("settings", RESOLVE_UNIFORMS);
@@ -12,8 +12,6 @@
12
12
  *
13
13
  * - IBL: the environment map ({@link chunk_forward_sample_indirect_environment});
14
14
  * - Brick4: the light map's probes ({@link chunk_forward_sample_indirect_brick4});
15
- * - LPV: the environment map. The probe volume has no forward sampling; transparent surfaces under
16
- * LPV are lit as under IBL.
17
15
  * - ProbeClipmap: both from one pick of the probes, the environment map where none weighs anything
18
16
  * ({@link chunk_forward_sample_indirect_probe_clipmap}).
19
17
  *
@@ -1 +1 @@
1
- {"version":3,"file":"chunk_forward_sample_indirect.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,4CAFU,eAAe,CAE4D;gCA7BrD,0CAA0C"}
1
+ {"version":3,"file":"chunk_forward_sample_indirect.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,4CAFU,eAAe,CAE4D;gCA3BrD,0CAA0C"}
@@ -19,8 +19,6 @@ import { chunk_forward_sample_indirect_probe_clipmap } from "./chunk_forward_sam
19
19
  *
20
20
  * - IBL: the environment map ({@link chunk_forward_sample_indirect_environment});
21
21
  * - Brick4: the light map's probes ({@link chunk_forward_sample_indirect_brick4});
22
- * - LPV: the environment map. The probe volume has no forward sampling; transparent surfaces under
23
- * LPV are lit as under IBL.
24
22
  * - ProbeClipmap: both from one pick of the probes, the environment map where none weighs anything
25
23
  * ({@link chunk_forward_sample_indirect_probe_clipmap}).
26
24
  *
@@ -33,7 +31,6 @@ export const chunk_forward_sample_indirect = CodeChunkChoice.from(INDIRECT_LIGHT
33
31
 
34
32
  chunk_forward_sample_indirect.add(ShadeIndirectLightingMode.IBL, chunk_forward_sample_indirect_environment);
35
33
  chunk_forward_sample_indirect.add(ShadeIndirectLightingMode.Brick4, chunk_forward_sample_indirect_brick4);
36
- chunk_forward_sample_indirect.add(ShadeIndirectLightingMode.LPV, chunk_forward_sample_indirect_environment);
37
34
  chunk_forward_sample_indirect.add(ShadeIndirectLightingMode.ProbeClipmap, chunk_forward_sample_indirect_probe_clipmap);
38
35
  // the screen probes light only the deferred opaque surfaces: every other reader takes the world-space probes
39
36
  chunk_forward_sample_indirect.add(ShadeIndirectLightingMode.ScreenProbes, chunk_forward_sample_indirect_probe_clipmap);
@@ -66,11 +66,6 @@ export class GPUSceneContext {
66
66
  * @returns {GPULightCollection}
67
67
  */
68
68
  get lights(): GPULightCollection;
69
- /**
70
- *
71
- * @returns {GPULightProbeVolume}
72
- */
73
- get light_probe_volume(): GPULightProbeVolume;
74
69
  /**
75
70
  *
76
71
  * @returns {GPUInstancesAccelerationStructure}
@@ -267,7 +262,6 @@ import { GPUSceneVolumetrics } from "../volumetrics/GPUSceneVolumetrics.js";
267
262
  import { GPUSceneWind } from "../wind/GPUSceneWind.js";
268
263
  import { GPUSky } from "../atmosphere/GPUSky.js";
269
264
  import { GPULightCollection } from "../light/GPULightCollection.js";
270
- import { GPULightProbeVolume } from "../global_illumination/lpv/GPULightProbeVolume.js";
271
265
  import { GPUInstancesAccelerationStructure } from "./GPUInstancesAccelerationStructure.js";
272
266
  import { GPUVirtualGeometryRuntime } from "../geometry/virtual/runtime/GPUVirtualGeometryRuntime.js";
273
267
  import { VGeoResidency } from "../geometry/virtual/runtime/VGeoResidency.js";
@@ -1 +1 @@
1
- {"version":3,"file":"GPUSceneContext.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/scene/GPUSceneContext.js"],"names":[],"mappings":"AA4EA;;;;;;;;;GASG;AACH;IAEI;;;;;;;OAOG;IACH,iCAFW,eAAe,QAUzB;IA4KD;;;;OAIG;IACH,sBAHW,eAAe,SACf,KAAK,EAyCf;IAtND;;;OAGG;IACH,aAFU,MAAM,CAEE;IAElB;;OAEG;IACH,YAFU,kBAAkB,CAEjB;IAEX;;OAEG;IACH,WAFU,kBAAkB,CAElB;IAGV;;OAEG;IACH,sBAFU,cAAc,CAEH;IASrB;;;OAGG;IACH,mBAEC;IAOD,uCAEC;IAOD;;;;;OAKG;IACH,yBAEC;IAUD;;;;;OAKG;IACH,kBAEC;IAQD;;;OAGG;IACH,iCAEC;IAOD;;;OAGG;IACH,8CAEC;IAOD;;;OAGG;IACH,8CAEC;IA2ID;;OAEG;IACH,kDAEC;IAED;;OAEG;IACH,gDAEC;IAED;;OAEG;IACH,kDAEC;IAED;;OAEG;IACH,+CAEC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH;QAH0C,SAAS,GAAxC,oBAAoB;QAClB,yBAAyB,CA4DrC;IAED;;OAEG;IACH,6CAEC;IAYD;;;;;OAKG;IACH,gEAEC;IAED;;;OAGG;IACH,kCAEC;IAED;;;;;OAKG;IACH,uCAEC;IAED;;;;;;;;;;;OAWG;IACH,uCAUC;IAED,+BAUC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,yBAEC;IAED;;;;;OAKG;IACH,sCAMC;IAOD;;;;;;;OAOG;IACH,8EAEC;IA6BD;;;;;OAKG;IACH,cAsEC;IAED;;;;;OAKG;IACH,YAFW,eAAe,QA4BzB;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,cAHW,sBAAsB,cACtB,MAAM,QAuBhB;IAUD;;;;;;;;;;;OAWG;IACH,oBAHW,UAAU,GACR,MAAM,CAQlB;IAoCD;;;;;;;OAOG;IACH,gBAuBC;IAwCL;;;OAGG;IACH,4BAFU,OAAO,CAE0B;;CAN1C;8BAt3BY,OAAO,0CAA0C,EAAE,eAAe;8BAClE,OAAO,uBAAuB,EAAE,eAAe;iCAC/C,OAAO,mCAAmC,EAAE,kBAAkB;iCAC9D,OAAO,mCAAmC,EAAE,kBAAkB;4BAC9D,OAAO,8BAA8B,EAAE,aAAa;8BACpD,OAAO,iDAAiD,EAAE,eAAe;yBACzE,OAAO,2DAA2D,EAAE,UAAU;+BA5B5D,iDAAiD;sBAM1D,YAAY;oCAFE,uCAAuC;6BAC9C,yBAAyB;uBAH/B,yBAAyB;mCACb,gCAAgC;oCAF/B,mDAAmD;kDAMrC,wCAAwC;0CAlBhD,0DAA0D;8BAItE,8CAA8C;iCAF3C,iDAAiD;+BAInD,2CAA2C;qCADrC,qDAAqD;oCAItD,qCAAqC;4BAC7C,gCAAgC;uCASrB,iDAAiD;6BAQ3D,wBAAwB;wCADb,mCAAmC;uCAlBpC,wCAAwC"}
1
+ {"version":3,"file":"GPUSceneContext.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/scene/GPUSceneContext.js"],"names":[],"mappings":"AA2EA;;;;;;;;;GASG;AACH;IAEI;;;;;;;OAOG;IACH,iCAFW,eAAe,QAUzB;IA+JD;;;;OAIG;IACH,sBAHW,eAAe,SACf,KAAK,EAuCf;IAvMD;;;OAGG;IACH,aAFU,MAAM,CAEE;IAElB;;OAEG;IACH,YAFU,kBAAkB,CAEjB;IAEX;;OAEG;IACH,WAFU,kBAAkB,CAElB;IAGV;;OAEG;IACH,sBAFU,cAAc,CAEH;IASrB;;;OAGG;IACH,mBAEC;IAOD,uCAEC;IAOD;;;;;OAKG;IACH,yBAEC;IAUD;;;;;OAKG;IACH,kBAEC;IAQD;;;OAGG;IACH,iCAEC;IAOD;;;OAGG;IACH,8CAEC;IAyID;;OAEG;IACH,kDAEC;IAED;;OAEG;IACH,gDAEC;IAED;;OAEG;IACH,kDAEC;IAED;;OAEG;IACH,+CAEC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH;QAH0C,SAAS,GAAxC,oBAAoB;QAClB,yBAAyB,CA4DrC;IAED;;OAEG;IACH,6CAEC;IAYD;;;;;OAKG;IACH,gEAEC;IAED;;;OAGG;IACH,kCAEC;IAED;;;;;OAKG;IACH,uCAEC;IAED;;;;;;;;;;;OAWG;IACH,uCAUC;IAED,+BASC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,yBAEC;IAED;;;;;OAKG;IACH,sCAMC;IAOD;;;;;;;OAOG;IACH,8EAEC;IA6BD;;;;;OAKG;IACH,cAsEC;IAED;;;;;OAKG;IACH,YAFW,eAAe,QA2BzB;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,cAHW,sBAAsB,cACtB,MAAM,QAuBhB;IAUD;;;;;;;;;;;OAWG;IACH,oBAHW,UAAU,GACR,MAAM,CAQlB;IAoCD;;;;;;;OAOG;IACH,gBAsBC;IAwCL;;;OAGG;IACH,4BAFU,OAAO,CAE0B;;CAN1C;8BAp2BY,OAAO,0CAA0C,EAAE,eAAe;8BAClE,OAAO,uBAAuB,EAAE,eAAe;iCAC/C,OAAO,mCAAmC,EAAE,kBAAkB;iCAC9D,OAAO,mCAAmC,EAAE,kBAAkB;4BAC9D,OAAO,8BAA8B,EAAE,aAAa;8BACpD,OAAO,iDAAiD,EAAE,eAAe;yBACzE,OAAO,2DAA2D,EAAE,UAAU;+BA3B5D,iDAAiD;sBAK1D,YAAY;oCAFE,uCAAuC;6BAC9C,yBAAyB;uBAH/B,yBAAyB;mCACb,gCAAgC;kDAIjB,wCAAwC;0CAjBhD,0DAA0D;8BAItE,8CAA8C;iCAF3C,iDAAiD;+BAInD,2CAA2C;qCADrC,qDAAqD;oCAItD,qCAAqC;4BAC7C,gCAAgC;uCAQrB,iDAAiD;6BAQ3D,wBAAwB;wCADb,mCAAmC;uCAjBpC,wCAAwC"}
@@ -11,7 +11,6 @@ import { ShadeGPUCommandContext } from "../../device/ShadeGPUCommandContext.js";
11
11
  import { GPUAnimationManager } from "../animation/GPUAnimationManager.js";
12
12
  import { GPUDatabase } from "../buffer/table/GPUDatabase.js";
13
13
  import { Brick4LightMap } from "../global_illumination/brick4/Brick4LightMap.js";
14
- import { GPULightProbeVolume } from "../global_illumination/lpv/GPULightProbeVolume.js";
15
14
  import { GPUSky } from "../atmosphere/GPUSky.js";
16
15
  import { GPULightCollection } from "../light/GPULightCollection.js";
17
16
  import { GPUSceneVolumetrics } from "../volumetrics/GPUSceneVolumetrics.js";
@@ -197,19 +196,6 @@ export class GPUSceneContext {
197
196
  return this.#lights;
198
197
  }
199
198
 
200
- /**
201
- * @type {GPULightProbeVolume}
202
- */
203
- #light_probe_volume;
204
-
205
- /**
206
- *
207
- * @returns {GPULightProbeVolume}
208
- */
209
- get light_probe_volume() {
210
- return this.#light_probe_volume;
211
- }
212
-
213
199
  /**
214
200
  * @type {GPUInstancesAccelerationStructure}
215
201
  */
@@ -303,8 +289,6 @@ export class GPUSceneContext {
303
289
  label: "GPUSceneContext/Database",
304
290
  });
305
291
 
306
- this.#light_probe_volume = new GPULightProbeVolume(device, scene.light_probe_volume);
307
-
308
292
  this.volumetric_light_map = new Brick4LightMap(device);
309
293
 
310
294
  this.#volumetrics = new GPUSceneVolumetrics(
@@ -544,7 +528,6 @@ export class GPUSceneContext {
544
528
  r+= this.#scene_database.gpu_memory_usage;
545
529
 
546
530
  r += this.#lights.gpu_memory_usage;
547
- r += this.#light_probe_volume.gpu_memory_usage;
548
531
  r += this.volumetric_light_map.gpu_memory_usage;
549
532
 
550
533
  return r;
@@ -721,7 +704,6 @@ export class GPUSceneContext {
721
704
  // anything this frame reads it, and never mid-update.
722
705
  this.#scene_database.readback.apply();
723
706
 
724
- this.#light_probe_volume.update();
725
707
  this.#lights.update(ctx);
726
708
  this.#volumetrics.update(ctx, 0);
727
709
 
@@ -867,7 +849,6 @@ export class GPUSceneContext {
867
849
  this.#scene_database.destroy();
868
850
  this.#tlas.destroy();
869
851
  this.#lights.destroy();
870
- this.#light_probe_volume.destroy();
871
852
  this.#volumetrics.destroy();
872
853
  this.#wind.destroy();
873
854
  this.#sky.destroy();
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * A scene: the dataset whose entities are what it draws and poses, and the things that are
6
- * not entities — its lights' collection, atmosphere, a light probe volume, volumetrics.
6
+ * not entities — its lights' collection, atmosphere, volumetrics.
7
7
  *
8
8
  * Everything drawn is an entity of {@link dataset} holding a row of the scene's GPU database
9
9
  * (`GPUSceneContext.rows`), at `entity + 1`. A game's systems take rows as components appear; a
@@ -33,11 +33,6 @@ export class Scene {
33
33
  * @type {SceneAtmosphere}
34
34
  */
35
35
  atmosphere: SceneAtmosphere;
36
- /**
37
- *
38
- * @type {LightProbeVolume}
39
- */
40
- light_probe_volume: LightProbeVolume;
41
36
  /**
42
37
  *
43
38
  * @type {SceneVolumetrics}
@@ -52,6 +47,5 @@ export class Scene {
52
47
  export type EntityComponentDataset = import("../../../engine/ecs/EntityComponentDataset.js").EntityComponentDataset;
53
48
  import { LightCollection } from "../light/LightCollection.js";
54
49
  import { SceneAtmosphere } from "../atmosphere/SceneAtmosphere.js";
55
- import { LightProbeVolume } from "../global_illumination/lpv/LightProbeVolume.js";
56
50
  import { SceneVolumetrics } from "../volumetrics/SceneVolumetrics.js";
57
51
  //# sourceMappingURL=Scene.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Scene.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/scene/Scene.js"],"names":[],"mappings":"AAKA;;GAEG;AAEH;;;;;;;;GAQG;AACH;IACI;;;;;;;OAOG;IACH,SAFU,sBAAsB,GAAC,IAAI,CAEtB;IAEf;;;;;OAKG;IACH,QAFU,eAAe,CAEM;IAE/B;;;;OAIG;IACH,YAFU,eAAe,CAEU;IAEnC;;;OAGG;IACH,oBAFU,gBAAgB,CAEkB;IAE5C;;;OAGG;IACH,aAFU,gBAAgB,CAEW;IAGzC;;;OAGG;IACH,kBAFU,OAAO,CAEM;CANtB;qCAjDY,OAAO,+CAA+C,EAAE,sBAAsB;gCAJ3D,6BAA6B;gCAF7B,kCAAkC;iCACjC,gDAAgD;iCAEhD,oCAAoC"}
1
+ {"version":3,"file":"Scene.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/scene/Scene.js"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;;;;;;GAQG;AACH;IACI;;;;;;;OAOG;IACH,SAFU,sBAAsB,GAAC,IAAI,CAEtB;IAEf;;;;;OAKG;IACH,QAFU,eAAe,CAEM;IAE/B;;;;OAIG;IACH,YAFU,eAAe,CAEU;IAEnC;;;OAGG;IACH,aAFU,gBAAgB,CAEW;IAGzC;;;OAGG;IACH,kBAFU,OAAO,CAEM;CANtB;qCA3CY,OAAO,+CAA+C,EAAE,sBAAsB;gCAJ3D,6BAA6B;gCAD7B,kCAAkC;iCAEjC,oCAAoC"}
@@ -1,5 +1,4 @@
1
1
  import { SceneAtmosphere } from "../atmosphere/SceneAtmosphere.js";
2
- import { LightProbeVolume } from "../global_illumination/lpv/LightProbeVolume.js";
3
2
  import { LightCollection } from "../light/LightCollection.js";
4
3
  import { SceneVolumetrics } from "../volumetrics/SceneVolumetrics.js";
5
4
 
@@ -9,7 +8,7 @@ import { SceneVolumetrics } from "../volumetrics/SceneVolumetrics.js";
9
8
 
10
9
  /**
11
10
  * A scene: the dataset whose entities are what it draws and poses, and the things that are
12
- * not entities — its lights' collection, atmosphere, a light probe volume, volumetrics.
11
+ * not entities — its lights' collection, atmosphere, volumetrics.
13
12
  *
14
13
  * Everything drawn is an entity of {@link dataset} holding a row of the scene's GPU database
15
14
  * (`GPUSceneContext.rows`), at `entity + 1`. A game's systems take rows as components appear; a
@@ -42,12 +41,6 @@ export class Scene {
42
41
  */
43
42
  atmosphere = new SceneAtmosphere();
44
43
 
45
- /**
46
- *
47
- * @type {LightProbeVolume}
48
- */
49
- light_probe_volume = new LightProbeVolume();
50
-
51
44
  /**
52
45
  *
53
46
  * @type {SceneVolumetrics}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdf_build_from_scene.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/scene/bvh/sdf_build_from_scene.js"],"names":[],"mappings":"AAsBA;;;;;;;;GAQG;AACH,0CAPW,YAAY,0DAGZ,MAAM,gBACN,MAAM,gBACN,MAAM,QAwGhB"}
@@ -1,9 +1,9 @@
1
- import { assert } from "../../../../../../core/assert.js";
2
- import { SurfacePoint3 } from "../../../../../../core/geom/3d/SurfacePoint3.js";
3
- import { v3_distance } from "../../../../../../core/geom/vec3/v3_distance.js";
4
- import { lerp } from "../../../../../../core/math/lerp.js";
5
- import { sign_not_zero } from "../../../../../../core/math/sign_not_zero.js";
6
- import { scbvh_query_point_volume_sign } from "../../../../scene/bvh/scbvh_query_point_volume_sign.js";
1
+ import { assert } from "../../../../core/assert.js";
2
+ import { SurfacePoint3 } from "../../../../core/geom/3d/SurfacePoint3.js";
3
+ import { v3_distance } from "../../../../core/geom/vec3/v3_distance.js";
4
+ import { lerp } from "../../../../core/math/lerp.js";
5
+ import { sign_not_zero } from "../../../../core/math/sign_not_zero.js";
6
+ import { scbvh_query_point_volume_sign } from "./scbvh_query_point_volume_sign.js";
7
7
 
8
8
  /**
9
9
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdf_find_local_maxima.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/scene/bvh/sdf_find_local_maxima.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,uDATW,MAAM,EAAE,OACR,YAAY,SACZ,MAAM,SACN,MAAM,SACN,MAAM,WACN,MAAM,WACN,MAAM,WACN,MAAM,QAyHhB"}
@@ -1,4 +1,4 @@
1
- import { clamp } from "../../../../../../core/math/clamp.js";
1
+ import { clamp } from "../../../../core/math/clamp.js";
2
2
 
3
3
  /**
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"DIRECTIONAL_LIGHT_STRUCT.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/shader/chunk/light/DIRECTIONAL_LIGHT_STRUCT.js"],"names":[],"mappings":"AAGA,oDA6B8B;6BA/BD,4BAA4B"}
1
+ {"version":3,"file":"DIRECTIONAL_LIGHT_STRUCT.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/shader/chunk/light/DIRECTIONAL_LIGHT_STRUCT.js"],"names":[],"mappings":"AAGA,oDAuC8B;6BAzCD,4BAA4B"}
@@ -4,9 +4,18 @@ import { WebGPUStruct } from "../../type/WebGPUStruct.js";
4
4
  export const DIRECTIONAL_LIGHT_STRUCT = WebGPUStruct.from({
5
5
  direction: vec3f,
6
6
  /**
7
- * Includes intensity
7
+ * What of the light reaches the scene, intensity included: {@link color_above_atmosphere}
8
+ * through the scene's atmosphere toward the light, as seen from
9
+ * {@link SceneAtmosphere#reference_altitude}, and equal to it while the atmosphere is disabled.
10
+ * `shader_refresh_light_poses` writes it every frame. What lights a surface reads this.
8
11
  */
9
12
  color: vec3f,
13
+ /**
14
+ * The light as authored, intensity included: what it is above the air. A consumer that takes
15
+ * the atmosphere toward the light at its own position, as the fog does per froxel, starts from
16
+ * this one.
17
+ */
18
+ color_above_atmosphere: vec3f,
10
19
  /**
11
20
  * radius of the "sun" disk, this is an approximation, larger radius makes shadows softer generally and smaller radius makes them harder.
12
21
  * Must be non-negative.
@@ -27,7 +36,8 @@ export const DIRECTIONAL_LIGHT_STRUCT = WebGPUStruct.from({
27
36
  shadow_id: u32,
28
37
  /**
29
38
  * The `transforms` row of the light's entity, one on. `shader_refresh_light_poses` writes the
30
- * pose above from this row's `global` every frame, after the hierarchy pass.
39
+ * direction above from this row's `global` every frame, after the hierarchy pass, and
40
+ * {@link color} for that direction.
31
41
  */
32
42
  node: u32,
33
43
  }, "DirectionalLight").pack();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Per-thread, non-shared iteration primitives for the `light_point`
3
3
  * table. No workgroup memory, so consumers running per-pixel or
4
- * per-probe (LPV shading, RT importance sampling, etc.) keep their
4
+ * per-probe (probe shading, RT importance sampling, etc.) keep their
5
5
  * register budget for the actual shading work.
6
6
  *
7
7
  * The full table is iterated — there's no fixed cap on point lights.
@@ -6,7 +6,7 @@ const POINT_TABLE = LIGHT_DATABASE_SPEC.get('light_point');
6
6
  /**
7
7
  * Per-thread, non-shared iteration primitives for the `light_point`
8
8
  * table. No workgroup memory, so consumers running per-pixel or
9
- * per-probe (LPV shading, RT importance sampling, etc.) keep their
9
+ * per-probe (probe shading, RT importance sampling, etc.) keep their
10
10
  * register budget for the actual shading work.
11
11
  *
12
12
  * The full table is iterated — there's no fixed cap on point lights.
@@ -5,5 +5,5 @@
5
5
  * @type {CodeChunk}
6
6
  */
7
7
  export const chunk_parallax_correct_spherical_probe: CodeChunk;
8
- import { CodeChunk } from "../../../../shader/compiler/CodeChunk.js";
8
+ import { CodeChunk } from "../../../compiler/CodeChunk.js";
9
9
  //# sourceMappingURL=chunk_parallax_correct_spherical_probe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk_parallax_correct_spherical_probe.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/light/probe/chunk_parallax_correct_spherical_probe.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,qDAFU,SAAS,CA0BlB;0BAhCyB,gCAAgC"}
@@ -1,5 +1,5 @@
1
- import { chunk_sphere_intersection } from "../../../../shader/chunk/atmosphere/chunk_sphere_intersection.js";
2
- import { CodeChunk } from "../../../../shader/compiler/CodeChunk.js";
1
+ import { chunk_sphere_intersection } from "../../atmosphere/chunk_sphere_intersection.js";
2
+ import { CodeChunk } from "../../../compiler/CodeChunk.js";
3
3
 
4
4
  /**
5
5
  * NOTE: R is the reflected view vector, normalized
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * How much a probe's light reaches a receiving point, past the trilinear weight: the visibility terms
3
3
  * of DDGI 2021 (Majercik et al., "Scaling Probe-Based Real-Time Dynamic Global Illumination for
4
- * Production"), as LPV weighs its probes and the probe clipmap's pick weighs its corners.
4
+ * Production"), as the probe clipmap's pick weighs its corners.
5
5
  *
6
6
  * ```wgsl
7
7
  * fn probe_visibility_chebyshev(moments: vec2<f32>, distance: f32) -> f32
@@ -3,7 +3,7 @@ import { CodeChunk } from "../../../compiler/CodeChunk.js";
3
3
  /**
4
4
  * How much a probe's light reaches a receiving point, past the trilinear weight: the visibility terms
5
5
  * of DDGI 2021 (Majercik et al., "Scaling Probe-Based Real-Time Dynamic Global Illumination for
6
- * Production"), as LPV weighs its probes and the probe clipmap's pick weighs its corners.
6
+ * Production"), as the probe clipmap's pick weighs its corners.
7
7
  *
8
8
  * ```wgsl
9
9
  * fn probe_visibility_chebyshev(moments: vec2<f32>, distance: f32) -> f32
@@ -11,8 +11,7 @@
11
11
  * monotonically, so "largest cutoff with min >= 0" and "largest band-1 scale with
12
12
  * min >= 0" are the same point).
13
13
  *
14
- * Input/output layout matches `LIGHT_PROBE_STRUCT.coefficients`: 4 coefficient triplets,
15
- * `c0.rgb .. c3.rgb` (see {@link chunk_lpv_probe_get_data}).
14
+ * Input and output are 4 coefficient triplets, `c0.rgb .. c3.rgb`.
16
15
  */
17
16
  export const chunk_sh2_dering_optimize_positive: CodeChunk;
18
17
  import { CodeChunk } from "../../../compiler/CodeChunk.js";
@@ -1 +1 @@
1
- {"version":3,"file":"chunk_sh2_dering_optimize_positive.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/spherical_harmonics/dering/chunk_sh2_dering_optimize_positive.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,2DAyCE;0BA5DwB,gCAAgC"}
1
+ {"version":3,"file":"chunk_sh2_dering_optimize_positive.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/spherical_harmonics/dering/chunk_sh2_dering_optimize_positive.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,2DAyCE;0BA3DwB,gCAAgC"}
@@ -14,8 +14,7 @@ import { SH3_COEFFICIENTS_DECLARATION } from "../SH3_COEFFICIENTS_DECLARATION.js
14
14
  * monotonically, so "largest cutoff with min >= 0" and "largest band-1 scale with
15
15
  * min >= 0" are the same point).
16
16
  *
17
- * Input/output layout matches `LIGHT_PROBE_STRUCT.coefficients`: 4 coefficient triplets,
18
- * `c0.rgb .. c3.rgb` (see {@link chunk_lpv_probe_get_data}).
17
+ * Input and output are 4 coefficient triplets, `c0.rgb .. c3.rgb`.
19
18
  */
20
19
  export const chunk_sh2_dering_optimize_positive = CodeChunk.from(
21
20
  //language=WGSL
@@ -125,6 +125,10 @@ export class GPUTrailSystem {
125
125
  * Expire every knot and collapse the tube onto the head at the next frame, keeping the trail's birth
126
126
  * and its knots' frames: `Trail3D.clear()`.
127
127
  *
128
+ * A trail with a seed already waiting is left to it. That seed collapses the tube at the next frame
129
+ * whichever kind it is, and a build stays a build: until it has run, the trail's knots hold no
130
+ * frame, thickness or row to keep.
131
+ *
128
132
  * @param {GPUTrailContext} context
129
133
  */
130
134
  clear(context: GPUTrailContext): void;
@@ -1 +1 @@
1
- {"version":3,"file":"GPUTrailSystem.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/trails/GPUTrailSystem.js"],"names":[],"mappings":"AA4BA;;;GAGG;AACH;IACI,uDAAuD;IACvD,KADW,MAAM,CACR;IAET,2DAA2D;IAC3D,MADW,MAAM,CACR;IAET,uGAAuG;IACvG,OADW,OAAO,mDAAmD,EAAE,UAAU,GAAC,IAAI,CACzE;IAEb,yEAAyE;IACzE,MADW,OAAO,8BAA8B,EAAE,cAAc,GAAC,IAAI,CACzD;IAEZ,uDAAuD;IACvD,YADW,MAAM,CACD;IAEhB,yDAAyD;IACzD,OADW,MAAM,CACP;IAEV,gGAAgG;IAChG,QADW,OAAO,CACH;IAEf,mDAAmD;IACnD,QADW,eAAe,CACK;CAClC;AAED;;GAEG;AACH;IACI,qBAAqB;IACrB,QADW,MAAM,CACN;IAEX,yCAAyC;IACzC,YADW,MAAM,CACF;IAEf,8FAA8F;IAC9F,UADW,MAAM,CACJ;CAChB;AAQD;;;;;;;;;;;;GAYG;AACH;IA2FI;;OAEG;IACH,sBAFW,OAAO,uBAAuB,EAAE,eAAe,EAqBzD;IAED,iEAAiE;IACjE,gEAEC;IAED,kEAAkE;IAClE,+BAEC;IAED;;;OAGG;IACH,qCAEC;IAED;;;;;;OAMG;IACH,qBAHW,MAAM,aAmChB;IAED,wDAAwD;IACxD,4BAEC;IAED,0EAA0E;IAC1E,2EAEC;IAED,0EAA0E;IAC1E,iFAEC;IAED,+BAA+B;IAC/B,2BAEC;IAED,iCAAiC;IACjC,6BAEC;IAED,0CAA0C;IAC1C,oBAEC;IAED;;OAEG;IACH,kBAEC;IAED;;;OAGG;IACH,8BAEC;IAED;;OAEG;IACH,uCAEC;IAED;;;;OAIG;IACH,iBAFW,MAAM,QAMhB;IAED;;;;;;OAMG;IACH,gBAJW,eAAe,QACf,MAAM,GACJ,eAAe,GAAC,IAAI,CA2BhC;IAED;;;;;;;OAOG;IACH,eAJW,eAAe,cACf,eAAe,GACb,OAAO,CA+CnB;IAED;;;;;OAKG;IACH,kBAHW,eAAe,QACf,MAAM,QAYhB;IAED;;;;;OAKG;IACH,eAFW,eAAe,QAWzB;IAED;;OAEG;IACH,gBAFW,eAAe,QAwBzB;IAED;;;;OAIG;IACH,oBAYC;IAED;;;;OAIG;IACH,cAFa,WAAW,CAavB;IAED;;;;;;;;OAQG;IACH,yBAJW,OAAO,2DAA2D,EAAE,UAAU,kBAC9E,MAAM,GACJ,OAAO,mBAAmB,EAAE,sBAAsB,CAgB9D;IAED,gBAaC;;CA0KJ;gCA1sB+B,8BAA8B;4BARlC,gCAAgC;8BAO9B,4BAA4B;gCAD1B,8BAA8B"}
1
+ {"version":3,"file":"GPUTrailSystem.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/trails/GPUTrailSystem.js"],"names":[],"mappings":"AA4BA;;;GAGG;AACH;IACI,uDAAuD;IACvD,KADW,MAAM,CACR;IAET,2DAA2D;IAC3D,MADW,MAAM,CACR;IAET,uGAAuG;IACvG,OADW,OAAO,mDAAmD,EAAE,UAAU,GAAC,IAAI,CACzE;IAEb,yEAAyE;IACzE,MADW,OAAO,8BAA8B,EAAE,cAAc,GAAC,IAAI,CACzD;IAEZ,uDAAuD;IACvD,YADW,MAAM,CACD;IAEhB,yDAAyD;IACzD,OADW,MAAM,CACP;IAEV,gGAAgG;IAChG,QADW,OAAO,CACH;IAEf,mDAAmD;IACnD,QADW,eAAe,CACK;CAClC;AAED;;GAEG;AACH;IACI,qBAAqB;IACrB,QADW,MAAM,CACN;IAEX,yCAAyC;IACzC,YADW,MAAM,CACF;IAEf,8FAA8F;IAC9F,UADW,MAAM,CACJ;CAChB;AAQD;;;;;;;;;;;;GAYG;AACH;IA2FI;;OAEG;IACH,sBAFW,OAAO,uBAAuB,EAAE,eAAe,EAqBzD;IAED,iEAAiE;IACjE,gEAEC;IAED,kEAAkE;IAClE,+BAEC;IAED;;;OAGG;IACH,qCAEC;IAED;;;;;;OAMG;IACH,qBAHW,MAAM,aAmChB;IAED,wDAAwD;IACxD,4BAEC;IAED,0EAA0E;IAC1E,2EAEC;IAED,0EAA0E;IAC1E,iFAEC;IAED,+BAA+B;IAC/B,2BAEC;IAED,iCAAiC;IACjC,6BAEC;IAED,0CAA0C;IAC1C,oBAEC;IAED;;OAEG;IACH,kBAEC;IAED;;;OAGG;IACH,8BAEC;IAED;;OAEG;IACH,uCAEC;IAED;;;;OAIG;IACH,iBAFW,MAAM,QAMhB;IAED;;;;;;OAMG;IACH,gBAJW,eAAe,QACf,MAAM,GACJ,eAAe,GAAC,IAAI,CA2BhC;IAED;;;;;;;OAOG;IACH,eAJW,eAAe,cACf,eAAe,GACb,OAAO,CA+CnB;IAED;;;;;OAKG;IACH,kBAHW,eAAe,QACf,MAAM,QAYhB;IAED;;;;;;;;;OASG;IACH,eAFW,eAAe,QAazB;IAED;;OAEG;IACH,gBAFW,eAAe,QAwBzB;IAED;;;;OAIG;IACH,oBAYC;IAED;;;;OAIG;IACH,cAFa,WAAW,CAavB;IAED;;;;;;;;OAQG;IACH,yBAJW,OAAO,2DAA2D,EAAE,UAAU,kBAC9E,MAAM,GACJ,OAAO,mBAAmB,EAAE,sBAAsB,CAgB9D;IAED,gBAaC;;CA0KJ;gCAhtB+B,8BAA8B;4BARlC,gCAAgC;8BAO9B,4BAA4B;gCAD1B,8BAA8B"}
@@ -437,17 +437,23 @@ export class GPUTrailSystem {
437
437
  * Expire every knot and collapse the tube onto the head at the next frame, keeping the trail's birth
438
438
  * and its knots' frames: `Trail3D.clear()`.
439
439
  *
440
+ * A trail with a seed already waiting is left to it. That seed collapses the tube at the next frame
441
+ * whichever kind it is, and a build stays a build: until it has run, the trail's knots hold no
442
+ * frame, thickness or row to keep.
443
+ *
440
444
  * @param {GPUTrailContext} context
441
445
  */
442
446
  clear(context) {
447
+ if (this.#seeds.includes(context)) {
448
+ return;
449
+ }
450
+
443
451
  context.epoch++;
444
452
  context.reseed = true;
445
453
 
446
454
  this.table.set(context.row, this.#write_record(context, context.staged));
447
455
 
448
- if (!this.#seeds.includes(context)) {
449
- this.#seeds.push(context);
450
- }
456
+ this.#seeds.push(context);
451
457
  }
452
458
 
453
459
  /**
@@ -73,12 +73,11 @@ export class GPUViewVolumetrics {
73
73
  * @param {number} options.shadowmap_atlas
74
74
  * @param {ShaderSwitchSet} [options.shader_switches]
75
75
  * @param {import("../global_illumination/brick4/Brick4LightMap.js").Brick4LightMap} [options.brick4]
76
- * @param {import("../global_illumination/lpv/GPULightProbeVolume.js").GPULightProbeVolume} [options.lpv]
77
76
  * @param {import("../global_illumination/probe_clipmap/GPUProbeClipmapGI.js").GPUProbeClipmapGI} options.probes
78
77
  * the renderer's probe clipmap GI, whose probes the irradiance clipmap binds in every mode
79
78
  * @returns {{resolved: number, metadata: number, irradiance: {Y: number, CoCg: number, uniform: number}, lut_transmittance?: number, lut_multiple_scattering?: number}}
80
79
  */
81
- graph_update({ graph, view, light_cluster_data, light_cluster_lookup, light_cluster_parameters, shadowmap_atlas, shader_switches, brick4, lpv, probes, }: {
80
+ graph_update({ graph, view, light_cluster_data, light_cluster_lookup, light_cluster_parameters, shadowmap_atlas, shader_switches, brick4, probes, }: {
82
81
  graph: FrameGraph;
83
82
  view: GPUViewContext;
84
83
  light_cluster_data: number;
@@ -87,7 +86,6 @@ export class GPUViewVolumetrics {
87
86
  shadowmap_atlas: number;
88
87
  shader_switches?: ShaderSwitchSet;
89
88
  brick4?: import("../global_illumination/brick4/Brick4LightMap.js").Brick4LightMap;
90
- lpv?: import("../global_illumination/lpv/GPULightProbeVolume.js").GPULightProbeVolume;
91
89
  probes: import("../global_illumination/probe_clipmap/GPUProbeClipmapGI.js").GPUProbeClipmapGI;
92
90
  }): {
93
91
  resolved: number;
@@ -1 +1 @@
1
- {"version":3,"file":"GPUViewVolumetrics.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/volumetrics/GPUViewVolumetrics.js"],"names":[],"mappings":"AAuBA;;;GAGG;AAEH;IAkNI;;;OAGG;IACH,+BAuCC;IAvND;;OAEG;IACH,4BAOC;IAjBD;;OAEG;IACH,2BAEC;IA8CD;;OAEG;IACH,yBAIC;IApBD;;;;;;;;OAQG;IACH,wBAEC;IAqBD;;;OAGG;IACH,4BAMC;IApBD;;;;;OAKG;IACH,2BAEC;IAsCD;;OAEG;IACH,0BAEC;IAZD;;OAEG;IACH,yBAEC;IAwHD;;OAEG;IACH,+CAEC;IAED;;;;OAIG;IACH,sBAEC;IAED,gBAcC;IA+MD;;;;;;;;;;;;;;;;OAgBG;IACH;QAd+B,KAAK,EAAzB,UAAU;QACc,IAAI,EAA5B,cAAc;QAEE,kBAAkB,EAAlC,MAAM;QACU,oBAAoB,EAApC,MAAM;QACU,wBAAwB,EAAxC,MAAM;QACU,eAAe,EAA/B,MAAM;QACoB,eAAe,GAAzC,eAAe;QACoE,MAAM,GAAzF,OAAO,iDAAiD,EAAE,cAAc;QACkB,GAAG,GAA7F,OAAO,mDAAmD,EAAE,mBAAmB;QACgB,MAAM,EAArG,OAAO,2DAA2D,EAAE,iBAAiB;QAEnF;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAC,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAAC,uBAAuB,CAAC,EAAE,MAAM,CAAA;KAAC,CA4HtK;;CAEJ;yBA7nBY,OAAO,2DAA2D,EAAE,UAAU;6BAC9E,OAAO,2BAA2B,EAAE,cAAc;qCAX1B,8CAA8C;gCAXnD,uCAAuC"}
1
+ {"version":3,"file":"GPUViewVolumetrics.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/volumetrics/GPUViewVolumetrics.js"],"names":[],"mappings":"AAuBA;;;GAGG;AAEH;IAkNI;;;OAGG;IACH,+BAuCC;IAvND;;OAEG;IACH,4BAOC;IAjBD;;OAEG;IACH,2BAEC;IA8CD;;OAEG;IACH,yBAIC;IApBD;;;;;;;;OAQG;IACH,wBAEC;IAqBD;;;OAGG;IACH,4BAMC;IApBD;;;;;OAKG;IACH,2BAEC;IAsCD;;OAEG;IACH,0BAEC;IAZD;;OAEG;IACH,yBAEC;IAwHD;;OAEG;IACH,+CAEC;IAED;;;;OAIG;IACH,sBAEC;IAED,gBAcC;IA+MD;;;;;;;;;;;;;;;OAeG;IACH;QAb+B,KAAK,EAAzB,UAAU;QACc,IAAI,EAA5B,cAAc;QAEE,kBAAkB,EAAlC,MAAM;QACU,oBAAoB,EAApC,MAAM;QACU,wBAAwB,EAAxC,MAAM;QACU,eAAe,EAA/B,MAAM;QACoB,eAAe,GAAzC,eAAe;QACoE,MAAM,GAAzF,OAAO,iDAAiD,EAAE,cAAc;QACuB,MAAM,EAArG,OAAO,2DAA2D,EAAE,iBAAiB;QAEnF;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAC,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAAC,uBAAuB,CAAC,EAAE,MAAM,CAAA;KAAC,CA0HtK;;CAEJ;yBA1nBY,OAAO,2DAA2D,EAAE,UAAU;6BAC9E,OAAO,2BAA2B,EAAE,cAAc;qCAX1B,8CAA8C;gCAXnD,uCAAuC"}
@@ -530,7 +530,6 @@ export class GPUViewVolumetrics {
530
530
  * @param {number} options.shadowmap_atlas
531
531
  * @param {ShaderSwitchSet} [options.shader_switches]
532
532
  * @param {import("../global_illumination/brick4/Brick4LightMap.js").Brick4LightMap} [options.brick4]
533
- * @param {import("../global_illumination/lpv/GPULightProbeVolume.js").GPULightProbeVolume} [options.lpv]
534
533
  * @param {import("../global_illumination/probe_clipmap/GPUProbeClipmapGI.js").GPUProbeClipmapGI} options.probes
535
534
  * the renderer's probe clipmap GI, whose probes the irradiance clipmap binds in every mode
536
535
  * @returns {{resolved: number, metadata: number, irradiance: {Y: number, CoCg: number, uniform: number}, lut_transmittance?: number, lut_multiple_scattering?: number}}
@@ -544,7 +543,6 @@ export class GPUViewVolumetrics {
544
543
  shadowmap_atlas,
545
544
  shader_switches = ShaderSwitchSet.EMPTY,
546
545
  brick4,
547
- lpv,
548
546
  probes,
549
547
  }) {
550
548
 
@@ -586,7 +584,6 @@ export class GPUViewVolumetrics {
586
584
  shadowmap_atlas,
587
585
  shader_switches,
588
586
  brick4,
589
- lpv,
590
587
  probes,
591
588
  view_uniform: view.uniform_buffer.buffer,
592
589
  });
@@ -2,7 +2,7 @@
2
2
  * The froxel irradiance volume: the light a transparent surface standing in a froxel receives, for
3
3
  * surfaces the lighting pass cannot see — the particles. The froxel GI stage (`gi/`) starts it with
4
4
  * whatever the renderer's indirect lighting mode says a point there receives — the environment,
5
- * Brick4, the light probe volume — and `shader_volumetrics_build_irradiance` adds every directional,
5
+ * Brick4, the probe clipmap — and `shader_volumetrics_build_irradiance` adds every directional,
6
6
  * point and spot light with its shadow. idTech 8 builds the same volume ("Froxels Irradiance Volume",
7
7
  * Sousa, SIGGRAPH 2025, p.29), in the pass that lights its fog; here it has a pass of its own and no
8
8
  * fog in it, so a particle is lit as the surfaces beside it are, and the volume costs the same with
@@ -25,7 +25,7 @@
25
25
  * - `volumetrics_irradiance_sh_add_radiance(sh, radiance)` — a whole radiance field arriving at the
26
26
  * point, as RGB SH2: coefficients of radiance, not cosine-convolved, ordered `[DC, y, z, x]` in
27
27
  * the project's all-positive basis (`sh2_basis_at`). The form every GI source hands over — the
28
- * probes of Brick4 and of the light probe volume, and `GPULightCollection.environment_sh`. A light
28
+ * probes of Brick4 and of the probe clipmap, and `GPULightCollection.environment_sh`. A light
29
29
  * is the delta field `E sh2_basis_at(l)`, and adding it this way adds exactly what
30
30
  * `volumetrics_irradiance_sh_add` does.
31
31
  * - `volumetrics_irradiance_sh_storable(sh)` — what an `rgba16float` volume can hold. A clustered
@@ -11,7 +11,7 @@ import { CodeChunk } from "../shader/compiler/CodeChunk.js";
11
11
  * The froxel irradiance volume: the light a transparent surface standing in a froxel receives, for
12
12
  * surfaces the lighting pass cannot see — the particles. The froxel GI stage (`gi/`) starts it with
13
13
  * whatever the renderer's indirect lighting mode says a point there receives — the environment,
14
- * Brick4, the light probe volume — and `shader_volumetrics_build_irradiance` adds every directional,
14
+ * Brick4, the probe clipmap — and `shader_volumetrics_build_irradiance` adds every directional,
15
15
  * point and spot light with its shadow. idTech 8 builds the same volume ("Froxels Irradiance Volume",
16
16
  * Sousa, SIGGRAPH 2025, p.29), in the pass that lights its fog; here it has a pass of its own and no
17
17
  * fog in it, so a particle is lit as the surfaces beside it are, and the volume costs the same with
@@ -34,7 +34,7 @@ import { CodeChunk } from "../shader/compiler/CodeChunk.js";
34
34
  * - `volumetrics_irradiance_sh_add_radiance(sh, radiance)` — a whole radiance field arriving at the
35
35
  * point, as RGB SH2: coefficients of radiance, not cosine-convolved, ordered `[DC, y, z, x]` in
36
36
  * the project's all-positive basis (`sh2_basis_at`). The form every GI source hands over — the
37
- * probes of Brick4 and of the light probe volume, and `GPULightCollection.environment_sh`. A light
37
+ * probes of Brick4 and of the probe clipmap, and `GPULightCollection.environment_sh`. A light
38
38
  * is the delta field `E sh2_basis_at(l)`, and adding it this way adds exactly what
39
39
  * `volumetrics_irradiance_sh_add` does.
40
40
  * - `volumetrics_irradiance_sh_storable(sh)` — what an `rgba16float` volume can hold. A clustered
@@ -85,20 +85,18 @@ export class GPUIrradianceClipmap {
85
85
  * @param {number} options.shadowmap_atlas
86
86
  * @param {ShaderSwitchSet} [options.shader_switches]
87
87
  * @param {import("../../global_illumination/brick4/Brick4LightMap.js").Brick4LightMap} [options.brick4]
88
- * @param {import("../../global_illumination/lpv/GPULightProbeVolume.js").GPULightProbeVolume} [options.lpv]
89
88
  * @param {import("../../global_illumination/probe_clipmap/GPUProbeClipmapGI.js").GPUProbeClipmapGI} options.probes
90
89
  * the renderer's probe clipmap GI, whose probes the build binds in every mode
91
90
  * @param {GPUBuffer} options.view_uniform the view's uniforms, whose frame index jitters the probes' pick
92
91
  * @returns {{Y: number, CoCg: number, uniform: number}}
93
92
  */
94
- graph_update({ graph, camera, scene_ctx, shadowmap_atlas, shader_switches, brick4, lpv, probes, view_uniform, }: {
93
+ graph_update({ graph, camera, scene_ctx, shadowmap_atlas, shader_switches, brick4, probes, view_uniform, }: {
95
94
  graph: import("../../../../engine/graphics/render/frame_graph/FrameGraph.js").FrameGraph;
96
95
  camera: import("../../camera/GPUCameraContext.js").GPUCameraContext;
97
96
  scene_ctx: import("../../scene/GPUSceneContext.js").GPUSceneContext;
98
97
  shadowmap_atlas: number;
99
98
  shader_switches?: ShaderSwitchSet;
100
99
  brick4?: import("../../global_illumination/brick4/Brick4LightMap.js").Brick4LightMap;
101
- lpv?: import("../../global_illumination/lpv/GPULightProbeVolume.js").GPULightProbeVolume;
102
100
  probes: import("../../global_illumination/probe_clipmap/GPUProbeClipmapGI.js").GPUProbeClipmapGI;
103
101
  view_uniform: GPUBuffer;
104
102
  }): {
@@ -1 +1 @@
1
- {"version":3,"file":"GPUIrradianceClipmap.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.js"],"names":[],"mappings":"AAiDA;;;;;;;;;;;;;GAaG;AACH;IA2CI;;;;;;;OAOG;IACH;QAL4B,aAAa,GAA9B,MAAM;QAC6B,UAAU,GAA7C,MAAM,GAAC,UAAU,MAAM,CAAC;QACP,SAAS,GAA1B,MAAM;QACW,WAAW,GAA5B,MAAM;OA+DhB;IAED;;OAEG;IACH,4BAEC;IAED;;OAEG;IACH,gFAEC;IAED;;OAEG;IACH,mFAEC;IAED;;OAEG;IACH,yBAEC;IAED;;OAEG;IACH,4BAEC;IAED;;;OAGG;IACH,0BAEC;IAED;;OAEG;IACH,4CAEC;IAED;;OAEG;IACH,uBAEC;IAED;;;;;;;;OAQG;IACH,oBALW,MAAM,KACN,MAAM,KACN,MAAM,oBACN,eAAe,QAgFzB;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH;QAZsG,KAAK,EAAhG,OAAO,8DAA8D,EAAE,UAAU;QACZ,MAAM,EAA3E,OAAO,kCAAkC,EAAE,gBAAgB;QACO,SAAS,EAA3E,OAAO,gCAAgC,EAAE,eAAe;QACxC,eAAe,EAA/B,MAAM;QACoB,eAAe,GAAzC,eAAe;QACuE,MAAM,GAA5F,OAAO,oDAAoD,EAAE,cAAc;QACkB,GAAG,GAAhG,OAAO,sDAAsD,EAAE,mBAAmB;QACgB,MAAM,EAAxG,OAAO,8DAA8D,EAAE,iBAAiB;QAErE,YAAY;QAC7B;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAkJtD;IAED;;OAEG;IACH,gBAQC;;CACJ;gCAxeY,OAAO,oCAAoC,EAAE,iBAAiB;+BAJ5C,uCAAuC;2CAmB3B,iCAAiC;gCAxB5C,0CAA0C"}
1
+ {"version":3,"file":"GPUIrradianceClipmap.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.js"],"names":[],"mappings":"AAiDA;;;;;;;;;;;;;GAaG;AACH;IA2CI;;;;;;;OAOG;IACH;QAL4B,aAAa,GAA9B,MAAM;QAC6B,UAAU,GAA7C,MAAM,GAAC,UAAU,MAAM,CAAC;QACP,SAAS,GAA1B,MAAM;QACW,WAAW,GAA5B,MAAM;OA+DhB;IAED;;OAEG;IACH,4BAEC;IAED;;OAEG;IACH,gFAEC;IAED;;OAEG;IACH,mFAEC;IAED;;OAEG;IACH,yBAEC;IAED;;OAEG;IACH,4BAEC;IAED;;;OAGG;IACH,0BAEC;IAED;;OAEG;IACH,4CAEC;IAED;;OAEG;IACH,uBAEC;IAED;;;;;;;;OAQG;IACH,oBALW,MAAM,KACN,MAAM,KACN,MAAM,oBACN,eAAe,QAgFzB;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH;QAXsG,KAAK,EAAhG,OAAO,8DAA8D,EAAE,UAAU;QACZ,MAAM,EAA3E,OAAO,kCAAkC,EAAE,gBAAgB;QACO,SAAS,EAA3E,OAAO,gCAAgC,EAAE,eAAe;QACxC,eAAe,EAA/B,MAAM;QACoB,eAAe,GAAzC,eAAe;QACuE,MAAM,GAA5F,OAAO,oDAAoD,EAAE,cAAc;QACuB,MAAM,EAAxG,OAAO,8DAA8D,EAAE,iBAAiB;QAErE,YAAY;QAC7B;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CA0ItD;IAED;;OAEG;IACH,gBAQC;;CACJ;gCA/dY,OAAO,oCAAoC,EAAE,iBAAiB;+BAJ5C,uCAAuC;2CAmB3B,iCAAiC;gCAxB5C,0CAA0C"}