@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.
- package/CHANGELOG.md +15 -0
- package/MIGRATION_2_TO_3.md +1 -1
- package/package.json +1 -1
- package/src/engine/graphics3/VolumetricLightMapSystem.d.ts +1 -1
- package/src/engine/graphics3/VolumetricLightMapSystem.js +261 -261
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
- package/src/engine/sound/simulation/probe/probe_place_sdf_cover.d.ts +1 -2
- package/src/engine/sound/simulation/probe/probe_place_sdf_cover.d.ts.map +1 -1
- package/src/engine/sound/simulation/probe/probe_place_sdf_cover.js +1 -2
- package/src/shade/renderer/Renderer.d.ts +0 -12
- package/src/shade/renderer/Renderer.d.ts.map +1 -1
- package/src/shade/renderer/Renderer.js +0 -101
- package/src/shade/renderer/ShadeIndirectLightingMode.d.ts +0 -1
- package/src/shade/renderer/ShadeIndirectLightingMode.js +0 -2
- package/src/shade/renderer/atmosphere/ATMOSPHERE_PARAMETERS_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/atmosphere/ATMOSPHERE_PARAMETERS_STRUCT.js +7 -0
- package/src/shade/renderer/atmosphere/shader_sky_irradiance_lut.d.ts.map +1 -1
- package/src/shade/renderer/atmosphere/shader_sky_irradiance_lut.js +1 -4
- package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +3 -3
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +1 -1
- package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +7 -7
- package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
- package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +1 -1
- package/src/shade/renderer/light/GPULightCollection.d.ts +3 -2
- package/src/shade/renderer/light/GPULightCollection.d.ts.map +1 -1
- package/src/shade/renderer/light/GPULightCollection.js +28 -2
- package/src/shade/renderer/light/environment/shader_project_environment_sh.d.ts +2 -2
- package/src/shade/renderer/light/environment/shader_project_environment_sh.js +2 -2
- package/src/shade/renderer/light/make_sunlight.d.ts +14 -0
- package/src/shade/renderer/light/make_sunlight.d.ts.map +1 -1
- package/src/shade/renderer/light/make_sunlight.js +16 -2
- package/src/shade/renderer/light/model/DirectionalLight.d.ts +9 -0
- package/src/shade/renderer/light/model/DirectionalLight.d.ts.map +1 -1
- package/src/shade/renderer/light/model/DirectionalLight.js +10 -1
- package/src/shade/renderer/light/model/Light.d.ts +4 -2
- package/src/shade/renderer/light/model/Light.d.ts.map +1 -1
- package/src/shade/renderer/light/model/Light.js +4 -2
- package/src/shade/renderer/light/model/io/light_record_directional.d.ts.map +1 -1
- package/src/shade/renderer/light/model/io/light_record_directional.js +3 -0
- package/src/shade/renderer/light/shader_refresh_light_poses.d.ts +16 -1
- package/src/shade/renderer/light/shader_refresh_light_poses.d.ts.map +1 -1
- package/src/shade/renderer/light/shader_refresh_light_poses.js +211 -154
- package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
- package/src/shade/renderer/postprocess/nss/NSS.d.ts +1 -1
- package/src/shade/renderer/postprocess/ssr/SSR.d.ts +2 -5
- package/src/shade/renderer/postprocess/ssr/SSR.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/SSR.js +1 -13
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_add_hit_irradiance.d.ts +2 -9
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_add_hit_irradiance.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_add_hit_irradiance.js +2 -38
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.d.ts +0 -5
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.js +0 -16
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.js +3 -10
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect.d.ts +0 -2
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect.js +0 -3
- package/src/shade/renderer/scene/GPUSceneContext.d.ts +0 -6
- package/src/shade/renderer/scene/GPUSceneContext.d.ts.map +1 -1
- package/src/shade/renderer/scene/GPUSceneContext.js +0 -19
- package/src/shade/renderer/scene/Scene.d.ts +1 -7
- package/src/shade/renderer/scene/Scene.d.ts.map +1 -1
- package/src/shade/renderer/scene/Scene.js +1 -8
- package/src/shade/renderer/scene/bvh/sdf_build_from_scene.d.ts.map +1 -0
- package/src/shade/renderer/{global_illumination/lpv/placement/software → scene/bvh}/sdf_build_from_scene.js +6 -6
- package/src/shade/renderer/scene/bvh/sdf_find_local_maxima.d.ts.map +1 -0
- package/src/shade/renderer/{global_illumination/lpv/placement/software → scene/bvh}/sdf_find_local_maxima.js +1 -1
- package/src/shade/renderer/shader/chunk/light/DIRECTIONAL_LIGHT_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/light/DIRECTIONAL_LIGHT_STRUCT.js +12 -2
- package/src/shade/renderer/shader/chunk/light/io/chunk_point_lights_iterate.d.ts +1 -1
- package/src/shade/renderer/shader/chunk/light/io/chunk_point_lights_iterate.js +1 -1
- package/src/shade/renderer/{global_illumination/probe/octahedral/sample → shader/chunk/light/probe}/chunk_parallax_correct_spherical_probe.d.ts +1 -1
- package/src/shade/renderer/shader/chunk/light/probe/chunk_parallax_correct_spherical_probe.d.ts.map +1 -0
- package/src/shade/renderer/{global_illumination/probe/octahedral/sample → shader/chunk/light/probe}/chunk_parallax_correct_spherical_probe.js +2 -2
- package/src/shade/renderer/shader/chunk/light/probe/chunk_probe_visibility_weight.d.ts +1 -1
- package/src/shade/renderer/shader/chunk/light/probe/chunk_probe_visibility_weight.js +1 -1
- package/src/shade/renderer/shader/chunk/spherical_harmonics/dering/chunk_sh2_dering_optimize_positive.d.ts +1 -2
- package/src/shade/renderer/shader/chunk/spherical_harmonics/dering/chunk_sh2_dering_optimize_positive.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/spherical_harmonics/dering/chunk_sh2_dering_optimize_positive.js +1 -2
- package/src/shade/renderer/trails/GPUTrailSystem.d.ts +4 -0
- package/src/shade/renderer/trails/GPUTrailSystem.d.ts.map +1 -1
- package/src/shade/renderer/trails/GPUTrailSystem.js +9 -3
- package/src/shade/renderer/volumetrics/GPUViewVolumetrics.d.ts +1 -3
- package/src/shade/renderer/volumetrics/GPUViewVolumetrics.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/GPUViewVolumetrics.js +0 -3
- package/src/shade/renderer/volumetrics/chunk_volumetrics_irradiance_sh.d.ts +2 -2
- package/src/shade/renderer/volumetrics/chunk_volumetrics_irradiance_sh.js +2 -2
- package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts +1 -3
- package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/irradiance_clipmap/GPUIrradianceClipmap.js +0 -9
- package/src/shade/renderer/volumetrics/irradiance_clipmap/chunk_irradiance_clipmap_gi_sample.d.ts +0 -5
- package/src/shade/renderer/volumetrics/irradiance_clipmap/chunk_irradiance_clipmap_gi_sample.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/irradiance_clipmap/chunk_irradiance_clipmap_gi_sample.js +0 -29
- package/src/shade/renderer/volumetrics/irradiance_clipmap/shader_irradiance_clipmap_build.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/irradiance_clipmap/shader_irradiance_clipmap_build.js +0 -2
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_lighting.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_lighting.js +11 -6
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_scattering_lut.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_scattering_lut.js +10 -4
- package/src/shade/renderer/water/chunk_water_gi.d.ts +1 -1
- package/src/shade/renderer/water/chunk_water_gi.d.ts.map +1 -1
- package/src/shade/renderer/water/chunk_water_gi.js +1 -3
- package/src/shade/renderer/water/query/GPUWaterQueries.d.ts +1 -1
- package/src/shade/renderer/wind/GPUSceneWind.d.ts +1 -1
- package/src/shade/renderer/deferred/indirect/chunk_gi_sample_lpv_cache.d.ts +0 -3
- package/src/shade/renderer/deferred/indirect/chunk_gi_sample_lpv_cache.d.ts.map +0 -1
- package/src/shade/renderer/deferred/indirect/chunk_gi_sample_lpv_cache.js +0 -41
- package/src/shade/renderer/deferred/indirect/chunk_lpv_2d_cache_sample_irradiance.d.ts +0 -6
- package/src/shade/renderer/deferred/indirect/chunk_lpv_2d_cache_sample_irradiance.d.ts.map +0 -1
- package/src/shade/renderer/deferred/indirect/chunk_lpv_2d_cache_sample_irradiance.js +0 -108
- package/src/shade/renderer/deferred/indirect/chunk_lpv_sample_light.d.ts +0 -6
- package/src/shade/renderer/deferred/indirect/chunk_lpv_sample_light.d.ts.map +0 -1
- package/src/shade/renderer/deferred/indirect/chunk_lpv_sample_light.js +0 -100
- package/src/shade/renderer/global_illumination/lpv/GPULightProbeVolume.d.ts +0 -51
- package/src/shade/renderer/global_illumination/lpv/GPULightProbeVolume.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/GPULightProbeVolume.js +0 -384
- package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_STRUCT.d.ts +0 -3
- package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_STRUCT.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_STRUCT.js +0 -20
- package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_VOLUME_METADATA_STRUCT.d.ts +0 -3
- package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_VOLUME_METADATA_STRUCT.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/LIGHT_PROBE_VOLUME_METADATA_STRUCT.js +0 -10
- package/src/shade/renderer/global_illumination/lpv/LightProbeVolume.d.ts +0 -63
- package/src/shade/renderer/global_illumination/lpv/LightProbeVolume.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/LightProbeVolume.js +0 -177
- package/src/shade/renderer/global_illumination/lpv/TETRAHEDRAL_MESH_CELL_STRUCT.d.ts +0 -3
- package/src/shade/renderer/global_illumination/lpv/TETRAHEDRAL_MESH_CELL_STRUCT.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/TETRAHEDRAL_MESH_CELL_STRUCT.js +0 -7
- package/src/shade/renderer/global_illumination/lpv/bake/GPULightProbeVolumeRenderer.d.ts +0 -68
- package/src/shade/renderer/global_illumination/lpv/bake/GPULightProbeVolumeRenderer.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/bake/GPULightProbeVolumeRenderer.js +0 -410
- package/src/shade/renderer/global_illumination/lpv/bake/PROBE_RAYS_PER_WORKGROUP.d.ts +0 -2
- package/src/shade/renderer/global_illumination/lpv/bake/PROBE_RAYS_PER_WORKGROUP.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/bake/PROBE_RAYS_PER_WORKGROUP.js +0 -1
- package/src/shade/renderer/global_illumination/lpv/debug/shader_visualize_probe_depth.d.ts +0 -3
- package/src/shade/renderer/global_illumination/lpv/debug/shader_visualize_probe_depth.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/debug/shader_visualize_probe_depth.js +0 -38
- package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_RESOLUTION.d.ts +0 -8
- package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_RESOLUTION.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_RESOLUTION.js +0 -7
- package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_STRUCT.d.ts +0 -3
- package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_STRUCT.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/deprecated/LIGHT_PROBE_DEPTH_STRUCT.js +0 -8
- package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_get_visibility_mask.d.ts +0 -3
- package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_get_visibility_mask.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_get_visibility_mask.js +0 -48
- package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_coordinate_to_address.d.ts +0 -3
- package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_coordinate_to_address.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_coordinate_to_address.js +0 -11
- package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_get_pixel.d.ts +0 -3
- package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_get_pixel.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_probe_depth_get_pixel.js +0 -20
- package/src/shade/renderer/global_illumination/lpv/deprecated/probe_trace_compute_shader_code.d.ts +0 -5
- package/src/shade/renderer/global_illumination/lpv/deprecated/probe_trace_compute_shader_code.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/deprecated/probe_trace_compute_shader_code.js +0 -206
- package/src/shade/renderer/global_illumination/lpv/edit/AddProbeAction.d.ts +0 -14
- package/src/shade/renderer/global_illumination/lpv/edit/AddProbeAction.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/edit/AddProbeAction.js +0 -39
- package/src/shade/renderer/global_illumination/lpv/graph_bake_irradiance_lookup_2d.d.ts +0 -16
- package/src/shade/renderer/global_illumination/lpv/graph_bake_irradiance_lookup_2d.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/graph_bake_irradiance_lookup_2d.js +0 -201
- package/src/shade/renderer/global_illumination/lpv/lpv_jitter_points.d.ts +0 -10
- package/src/shade/renderer/global_illumination/lpv/lpv_jitter_points.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/lpv_jitter_points.js +0 -27
- package/src/shade/renderer/global_illumination/lpv/lpv_visualise_probes.d.ts +0 -18
- package/src/shade/renderer/global_illumination/lpv/lpv_visualise_probes.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/lpv_visualise_probes.js +0 -265
- package/src/shade/renderer/global_illumination/lpv/placement/chunk_refine_probe_placement.d.ts +0 -7
- package/src/shade/renderer/global_illumination/lpv/placement/chunk_refine_probe_placement.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/placement/chunk_refine_probe_placement.js +0 -126
- package/src/shade/renderer/global_illumination/lpv/placement/graph_generate_probe_locations.d.ts +0 -13
- package/src/shade/renderer/global_illumination/lpv/placement/graph_generate_probe_locations.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/placement/graph_generate_probe_locations.js +0 -373
- package/src/shade/renderer/global_illumination/lpv/placement/software/lpv_generate_probe_locations2.d.ts +0 -14
- package/src/shade/renderer/global_illumination/lpv/placement/software/lpv_generate_probe_locations2.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/placement/software/lpv_generate_probe_locations2.js +0 -225
- package/src/shade/renderer/global_illumination/lpv/placement/software/sdf_build_from_scene.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/placement/software/sdf_find_local_maxima.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/shader_diffuse_LPV.d.ts +0 -3
- package/src/shade/renderer/global_illumination/lpv/shader_diffuse_LPV.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/lpv/shader_diffuse_LPV.js +0 -91
- package/src/shade/renderer/global_illumination/probe/chunk_compute_probe_dering.d.ts +0 -5
- package/src/shade/renderer/global_illumination/probe/chunk_compute_probe_dering.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/chunk_compute_probe_dering.js +0 -45
- package/src/shade/renderer/global_illumination/probe/compute_pipeline_probe_dering.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/compute_pipeline_probe_dering.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/compute_pipeline_probe_dering.js +0 -17
- package/src/shade/renderer/global_illumination/probe/lpv_dering_software.d.ts +0 -6
- package/src/shade/renderer/global_illumination/probe/lpv_dering_software.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/lpv_dering_software.js +0 -21
- package/src/shade/renderer/global_illumination/probe/octahedral/GPUProbeAtlas.d.ts +0 -79
- package/src/shade/renderer/global_illumination/probe/octahedral/GPUProbeAtlas.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/GPUProbeAtlas.js +0 -437
- package/src/shade/renderer/global_illumination/probe/octahedral/LPV_ACCUMULATION_PUSH_CONSTANTS.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/LPV_ACCUMULATION_PUSH_CONSTANTS.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/LPV_ACCUMULATION_PUSH_CONSTANTS.js +0 -14
- package/src/shade/renderer/global_illumination/probe/octahedral/LPV_SHADER_RESOURCE_GROUP.d.ts +0 -42
- package/src/shade/renderer/global_illumination/probe/octahedral/LPV_SHADER_RESOURCE_GROUP.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/LPV_SHADER_RESOURCE_GROUP.js +0 -68
- package/src/shade/renderer/global_illumination/probe/octahedral/ProbeGBufferTypes.d.ts +0 -9
- package/src/shade/renderer/global_illumination/probe/octahedral/ProbeGBufferTypes.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/ProbeGBufferTypes.js +0 -20
- package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_map_index_to_border.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_map_index_to_border.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_map_index_to_border.js +0 -47
- package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_paint_borders_body.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_paint_borders_body.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/border/chunk_lpv_paint_borders_body.js +0 -55
- package/src/shade/renderer/global_illumination/probe/octahedral/border/graph_lpv_paint_border_depth.d.ts +0 -19
- package/src/shade/renderer/global_illumination/probe/octahedral/border/graph_lpv_paint_border_depth.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/border/graph_lpv_paint_border_depth.js +0 -85
- package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_border_read.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_border_read.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_border_read.js +0 -78
- package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_depth.d.ts +0 -7
- package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_depth.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_depth.js +0 -70
- package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_radiance.d.ts +0 -7
- package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_radiance.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/border/shader_lpv_atlas_paint_borders_radiance.js +0 -20
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/chunk_compute_coefficient_address.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/chunk_compute_coefficient_address.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/chunk_compute_coefficient_address.js +0 -20
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lpv_store_sh.d.ts +0 -19
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lpv_store_sh.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lpv_store_sh.js +0 -128
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lvp_atlas_to_sh.d.ts +0 -22
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lvp_atlas_to_sh.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_lvp_atlas_to_sh.js +0 -200
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_reduce_atlas_to_sh.d.ts +0 -23
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_reduce_atlas_to_sh.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/convolve/graph_reduce_atlas_to_sh.js +0 -179
- package/src/shade/renderer/global_illumination/probe/octahedral/graph_lpv_shade.d.ts +0 -13
- package/src/shade/renderer/global_illumination/probe/octahedral/graph_lpv_shade.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/graph_lpv_shade.js +0 -416
- package/src/shade/renderer/global_illumination/probe/octahedral/graph_sample_light_probes.d.ts +0 -16
- package/src/shade/renderer/global_illumination/probe/octahedral/graph_sample_light_probes.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/graph_sample_light_probes.js +0 -268
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_patch_texel_coord.d.ts +0 -17
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_patch_texel_coord.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_patch_texel_coord.js +0 -38
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_read_patch_texel.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_read_patch_texel.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_read_patch_texel.js +0 -34
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance.js +0 -62
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance_nearest.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance_nearest.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_atlas_sample_probe_radiance_nearest.js +0 -37
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_mesh_interpolate_radiance_via_atlas.d.ts +0 -7
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_mesh_interpolate_radiance_via_atlas.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_mesh_interpolate_radiance_via_atlas.js +0 -62
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_radiance_sample_reflection.d.ts +0 -7
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_radiance_sample_reflection.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_radiance_sample_reflection.js +0 -61
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_parallax_correct_spherical_probe.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_parallax_correct_spherical_probe_iterative.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_parallax_correct_spherical_probe_iterative.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_parallax_correct_spherical_probe_iterative.js +0 -80
- package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_accumulate_depth.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_accumulate_depth.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_accumulate_depth.js +0 -143
- package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_atlas_write_depth.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_atlas_write_depth.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_atlas_write_depth.js +0 -59
- package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_build_gbuffer.d.ts +0 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_build_gbuffer.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/shader_lpv_build_gbuffer.js +0 -227
- package/src/shade/renderer/shader/chunk/light/lpv/INVALID_TET_DECLARATION.d.ts +0 -7
- package/src/shade/renderer/shader/chunk/light/lpv/INVALID_TET_DECLARATION.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/INVALID_TET_DECLARATION.js +0 -12
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_interpolate_probe_irradiance8.d.ts +0 -7
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_interpolate_probe_irradiance8.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_interpolate_probe_irradiance8.js +0 -37
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_barycentric_coordinates.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_barycentric_coordinates.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_barycentric_coordinates.js +0 -29
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_neighbours.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_neighbours.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_neighbours.js +0 -20
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_vertices.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_vertices.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_vertices.js +0 -22
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe.d.ts +0 -4
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe.js +0 -53
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance.d.ts +0 -7
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance.js +0 -48
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance_pre.d.ts +0 -7
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance_pre.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance_pre.js +0 -35
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolation_probe_sh.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolation_probe_sh.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolation_probe_sh.js +0 -38
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_lookup_nearest_cell.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_lookup_nearest_cell.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_lookup_nearest_cell.js +0 -67
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_walk_to_tetrahedron.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_walk_to_tetrahedron.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_walk_to_tetrahedron.js +0 -52
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_data.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_data.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_data.js +0 -22
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_position.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_position.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_position.js +0 -17
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance.js +0 -48
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_8.d.ts +0 -9
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_8.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_8.js +0 -126
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_no_depth.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_no_depth.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_irradiance_no_depth.js +0 -45
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_radiance.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_radiance.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_radiance.js +0 -61
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_sh3_at.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_sh3_at.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_sh3_at.js +0 -33
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_mask_weights_by_visibility.d.ts +0 -4
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_mask_weights_by_visibility.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_mask_weights_by_visibility.js +0 -161
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_probe_sample_depth_array.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_probe_sample_depth_array.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_probe_sample_depth_array.js +0 -59
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_sample_depth_atlas.d.ts +0 -4
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_sample_depth_atlas.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_sample_depth_atlas.js +0 -97
- /package/src/shade/renderer/{global_illumination/lpv/placement/software → scene/bvh}/sdf_build_from_scene.d.ts +0 -0
- /package/src/shade/renderer/{global_illumination/lpv/placement/software → scene/bvh}/sdf_find_local_maxima.d.ts +0 -0
|
@@ -431,17 +431,6 @@ export class Renderer {
|
|
|
431
431
|
* Primarily instructs resetting history on temporal accumulation
|
|
432
432
|
*/
|
|
433
433
|
indicate_view_change(): void;
|
|
434
|
-
/**
|
|
435
|
-
* For internal and debug use only
|
|
436
|
-
* @param {Scene} scene
|
|
437
|
-
* @returns {GPULightProbeVolumeRenderer}
|
|
438
|
-
*/
|
|
439
|
-
getProbeRendererForScene(scene: Scene): GPULightProbeVolumeRenderer;
|
|
440
|
-
/**
|
|
441
|
-
*
|
|
442
|
-
* @param {Scene} scene
|
|
443
|
-
*/
|
|
444
|
-
update_lpv(scene: Scene): void;
|
|
445
434
|
/** SSR settings, available after initialize(). @returns {import("./postprocess/ssr/SSR.js").SSR} */
|
|
446
435
|
get ssr(): import("./postprocess/ssr/SSR.js").SSR;
|
|
447
436
|
/**
|
|
@@ -598,7 +587,6 @@ import Vector2 from "../../core/geom/Vector2.js";
|
|
|
598
587
|
import { GPUTextureContext } from "./texture/GPUTextureContext.js";
|
|
599
588
|
import { FramePhase } from "./extension/FramePhase.js";
|
|
600
589
|
import { CascadedSceneSDF } from "./shadow/sdf/cascade/CascadedSceneSDF.js";
|
|
601
|
-
import { GPULightProbeVolumeRenderer } from "./global_illumination/lpv/bake/GPULightProbeVolumeRenderer.js";
|
|
602
590
|
import { ReSTIRDI } from "./restir/di/ReSTIRDI.js";
|
|
603
591
|
import { GPUParticleSystem } from "./particles/GPUParticleSystem.js";
|
|
604
592
|
import { ShadeUpscalerType } from "./ShadeUpscalerType.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Renderer.d.ts","sourceRoot":"","sources":["../../../../src/shade/renderer/Renderer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Renderer.d.ts","sourceRoot":"","sources":["../../../../src/shade/renderer/Renderer.js"],"names":[],"mappings":"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"}
|
|
@@ -46,8 +46,6 @@ import {
|
|
|
46
46
|
shader_probe_clipmap_indirect_lighting
|
|
47
47
|
} from "./global_illumination/probe_clipmap/probe/shader_probe_clipmap_indirect_lighting.js";
|
|
48
48
|
import { shader_specular_IBL } from "./global_illumination/ibl/shader_specular_IBL.js";
|
|
49
|
-
import { GPULightProbeVolumeRenderer } from "./global_illumination/lpv/bake/GPULightProbeVolumeRenderer.js";
|
|
50
|
-
import { shader_diffuse_LPV } from "./global_illumination/lpv/shader_diffuse_LPV.js";
|
|
51
49
|
import { GPUProbeClipmapGI } from "./global_illumination/probe_clipmap/GPUProbeClipmapGI.js";
|
|
52
50
|
import { ProbeClipmapSettings } from "./global_illumination/probe_clipmap/ProbeClipmapSettings.js";
|
|
53
51
|
import { ProbeClipmapDebugView } from "./global_illumination/probe_clipmap/debug/ProbeClipmapDebugView.js";
|
|
@@ -1145,13 +1143,6 @@ export class Renderer {
|
|
|
1145
1143
|
}
|
|
1146
1144
|
|
|
1147
1145
|
|
|
1148
|
-
/**
|
|
1149
|
-
*
|
|
1150
|
-
* @type {Map<Scene, GPULightProbeVolumeRenderer>}
|
|
1151
|
-
*/
|
|
1152
|
-
#probe_bakers = new Map();
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
1146
|
/**
|
|
1156
1147
|
*
|
|
1157
1148
|
* @type {Map<Scene, CascadedSceneSDF>}
|
|
@@ -1203,55 +1194,6 @@ export class Renderer {
|
|
|
1203
1194
|
this.#screen_probe_gi?.reset_history();
|
|
1204
1195
|
}
|
|
1205
1196
|
|
|
1206
|
-
/**
|
|
1207
|
-
* For internal and debug use only
|
|
1208
|
-
* @param {Scene} scene
|
|
1209
|
-
* @returns {GPULightProbeVolumeRenderer}
|
|
1210
|
-
*/
|
|
1211
|
-
getProbeRendererForScene(scene) {
|
|
1212
|
-
|
|
1213
|
-
const scene_ctx = this.#scenes.obtain(scene);
|
|
1214
|
-
|
|
1215
|
-
let baker = this.#probe_bakers.get(scene);
|
|
1216
|
-
|
|
1217
|
-
if (baker === undefined) {
|
|
1218
|
-
baker = new GPULightProbeVolumeRenderer(this.#graphics, scene_ctx);
|
|
1219
|
-
this.#probe_bakers.set(scene, baker);
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
return baker;
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
/**
|
|
1227
|
-
*
|
|
1228
|
-
* @param {Scene} scene
|
|
1229
|
-
*/
|
|
1230
|
-
update_lpv(scene) {
|
|
1231
|
-
|
|
1232
|
-
//
|
|
1233
|
-
// let baker = this.getProbeRendererForScene(scene);
|
|
1234
|
-
//
|
|
1235
|
-
// baker.autoSetRaysPerProbe(1);
|
|
1236
|
-
// baker.bake();
|
|
1237
|
-
|
|
1238
|
-
const scene_ctx = this.#scenes.obtain(scene);
|
|
1239
|
-
|
|
1240
|
-
const graph = new FrameGraph("LPV");
|
|
1241
|
-
|
|
1242
|
-
const cmd = ShadeGPUCommandContext.create(this.graphics, 'LPV');
|
|
1243
|
-
|
|
1244
|
-
scene_ctx.light_probe_volume.atlas.graph_update({
|
|
1245
|
-
graph,
|
|
1246
|
-
scene: scene_ctx,
|
|
1247
|
-
graphics: this.graphics,
|
|
1248
|
-
update_ray_count: 100_000
|
|
1249
|
-
});
|
|
1250
|
-
|
|
1251
|
-
cmd.encodeGraph(graph);
|
|
1252
|
-
cmd.finish();
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
1197
|
/**
|
|
1256
1198
|
* The inputs of the probe clipmap's fused indirect pass (`shader_probe_clipmap_indirect_lighting`), less the
|
|
1257
1199
|
* probes' own bindings, which `GPUProbeClipmapGI.write_sampling_bindings` adds: for the frame's pass and for
|
|
@@ -1333,12 +1275,10 @@ export class Renderer {
|
|
|
1333
1275
|
// Prefer fusion where supported to avoid intermediate diffuse/specular
|
|
1334
1276
|
// targets and repeated G-buffer reads. This is a local graph policy.
|
|
1335
1277
|
const prefer_fused = true;
|
|
1336
|
-
const lpv = scene_ctx.light_probe_volume;
|
|
1337
1278
|
let diffuse_pass;
|
|
1338
1279
|
let specular_pass;
|
|
1339
1280
|
// the running mode's source, for SSR's resolve to fall back to; it is given no other mode's
|
|
1340
1281
|
let ssr_brick4;
|
|
1341
|
-
let ssr_lpv;
|
|
1342
1282
|
|
|
1343
1283
|
// Each mode owns its diffuse/specular pair and any fused implementation.
|
|
1344
1284
|
// SSR overrides specular below using the same explicitly selected mode.
|
|
@@ -1518,37 +1458,6 @@ export class Renderer {
|
|
|
1518
1458
|
};
|
|
1519
1459
|
break;
|
|
1520
1460
|
|
|
1521
|
-
case ShadeIndirectLightingMode.LPV:
|
|
1522
|
-
ssr_lpv = lpv;
|
|
1523
|
-
diffuse_pass = {
|
|
1524
|
-
shader: shader_diffuse_LPV,
|
|
1525
|
-
inputs: {
|
|
1526
|
-
camera: gr_buffer_camera_current,
|
|
1527
|
-
tDepth: gr_texture_depth_current,
|
|
1528
|
-
tBentNormals: bent_normals,
|
|
1529
|
-
tGBufferAlbedo: gr_texture_material_albedo_ao,
|
|
1530
|
-
lpv_atlas_radiance: lpv.atlas.texture_radiance,
|
|
1531
|
-
lpv_atlas_depth: lpv.atlas.texture_depth,
|
|
1532
|
-
lpv_lookup: lpv.buffer_mesh_bvh,
|
|
1533
|
-
lpv_metadata: lpv.buffer_metadata,
|
|
1534
|
-
lpv_mesh: lpv.buffer_mesh,
|
|
1535
|
-
lpv_probes: lpv.buffer_probes,
|
|
1536
|
-
},
|
|
1537
|
-
};
|
|
1538
|
-
// Without SSR, LPV uses environment-map specular.
|
|
1539
|
-
specular_pass = {
|
|
1540
|
-
shader: shader_specular_IBL,
|
|
1541
|
-
inputs: {
|
|
1542
|
-
tBentNormals: bent_normals,
|
|
1543
|
-
tNormals: gr_texture_normal,
|
|
1544
|
-
tDepth: gr_texture_depth_current,
|
|
1545
|
-
tPBR: gr_texture_pbr,
|
|
1546
|
-
tEnvironment: gr_texture_environment,
|
|
1547
|
-
camera: gr_buffer_camera_current,
|
|
1548
|
-
},
|
|
1549
|
-
};
|
|
1550
|
-
break;
|
|
1551
|
-
|
|
1552
1461
|
default:
|
|
1553
1462
|
throw new Error(`Unsupported indirect lighting mode: ${mode}`);
|
|
1554
1463
|
}
|
|
@@ -1580,7 +1489,6 @@ export class Renderer {
|
|
|
1580
1489
|
camera_previous: gr_buffer_camera_previous,
|
|
1581
1490
|
input_environment: gr_texture_environment,
|
|
1582
1491
|
brick4: ssr_brick4,
|
|
1583
|
-
lpv: ssr_lpv,
|
|
1584
1492
|
input_indirect_diffuse: mode === ShadeIndirectLightingMode.ProbeClipmap || mode === ShadeIndirectLightingMode.ScreenProbes ? indirect_diffuse : undefined,
|
|
1585
1493
|
// in every mode: a clipmap of no cascade while it has no probes
|
|
1586
1494
|
probes: this.#probe_clipmap_gi,
|
|
@@ -2164,11 +2072,6 @@ export class Renderer {
|
|
|
2164
2072
|
}
|
|
2165
2073
|
this.#particle_systems.clear();
|
|
2166
2074
|
|
|
2167
|
-
for (const baker of this.#probe_bakers.values()) {
|
|
2168
|
-
baker.destroy();
|
|
2169
|
-
}
|
|
2170
|
-
this.#probe_bakers.clear();
|
|
2171
|
-
|
|
2172
2075
|
for (const sdf of this.#scene_sdfs.values()) {
|
|
2173
2076
|
sdf.destroy();
|
|
2174
2077
|
}
|
|
@@ -2672,9 +2575,6 @@ export class Renderer {
|
|
|
2672
2575
|
this.#begin_frame();
|
|
2673
2576
|
|
|
2674
2577
|
|
|
2675
|
-
if (this.indirect_lighting_mode === ShadeIndirectLightingMode.LPV) {
|
|
2676
|
-
this.update_lpv(scene);
|
|
2677
|
-
}
|
|
2678
2578
|
|
|
2679
2579
|
const view = View.from(camera, scene);
|
|
2680
2580
|
view.label = "Main View";
|
|
@@ -3128,7 +3028,6 @@ export class Renderer {
|
|
|
3128
3028
|
shader_switches: this.#shader_switches,
|
|
3129
3029
|
// the running mode's GI source, for froxel GI; it is given no other mode's
|
|
3130
3030
|
brick4: this.indirect_lighting_mode === ShadeIndirectLightingMode.Brick4 ? view_ctx.scene.volumetric_light_map : undefined,
|
|
3131
|
-
lpv: this.indirect_lighting_mode === ShadeIndirectLightingMode.LPV ? view_ctx.scene.light_probe_volume : undefined,
|
|
3132
3031
|
// in every mode: a clipmap of no cascade while it has no probes
|
|
3133
3032
|
probes: this.#probe_clipmap_gi,
|
|
3134
3033
|
});
|
|
@@ -9,8 +9,6 @@ export const ShadeIndirectLightingMode = {
|
|
|
9
9
|
IBL: 0,
|
|
10
10
|
/** Sparse Volumetric Lightmap (Brick4) */
|
|
11
11
|
Brick4: 1,
|
|
12
|
-
/** Light Probe Volume (LPV) */
|
|
13
|
-
LPV: 2,
|
|
14
12
|
/**
|
|
15
13
|
* Probes on a 3-D clipmap around the camera, traced against a clipmap of SDF bricks
|
|
16
14
|
* (`global_illumination/probe_clipmap/PROBE_CLIPMAP_PROPOSAL_2026_10_27.md`). Settings are
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ATMOSPHERE_PARAMETERS_STRUCT.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/atmosphere/ATMOSPHERE_PARAMETERS_STRUCT.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,2CAFU,YAAY,CAmBK;AAE3B;;GAEG;AACH,qEAQK;AAEL;;;;;GAKG;AACH,0CAFU,SAAS,
|
|
1
|
+
{"version":3,"file":"ATMOSPHERE_PARAMETERS_STRUCT.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/atmosphere/ATMOSPHERE_PARAMETERS_STRUCT.js"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,2CAFU,YAAY,CAmBK;AAE3B;;GAEG;AACH,qEAQK;AAEL;;;;;GAKG;AACH,0CAFU,SAAS,CAmHjB;6BAnK2B,gCAAgC;0BAFnC,iCAAiC"}
|
|
@@ -94,6 +94,13 @@ fn atmosphere_clamped_observer_relative(
|
|
|
94
94
|
return up * clamp(r_raw, min_r, max_r);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
// An altitude above sea level (in metres) as a height in GPU atmosphere units (km), clamped away
|
|
98
|
+
// from the ground and top-of-atmosphere boundaries.
|
|
99
|
+
fn atmosphere_clamped_height_for(atm: ${ATMOSPHERE_PARAMETERS_STRUCT.wgsl_ref}, altitude: f32) -> f32 {
|
|
100
|
+
let cutoff = ${ATMOSPHERE_ALTITUDE_CUTOFF.toFixed(1)} * METERS_TO_ATMOSPHERE_UNITS;
|
|
101
|
+
return clamp(altitude * METERS_TO_ATMOSPHERE_UNITS, cutoff, max(cutoff, atm.atmosphere_height - cutoff));
|
|
102
|
+
}
|
|
103
|
+
|
|
97
104
|
fn atmosphere_density_for(atm: ${ATMOSPHERE_PARAMETERS_STRUCT.wgsl_ref}, h: f32) -> vec3<f32> {
|
|
98
105
|
let clamped_h = max(h, 0.0);
|
|
99
106
|
let rayleigh = exp(-clamped_h / max(atm.rayleigh_scale_height, MIN_ATMOSPHERE_LENGTH_UNITS));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shader_sky_irradiance_lut.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/atmosphere/shader_sky_irradiance_lut.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shader_sky_irradiance_lut.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/atmosphere/shader_sky_irradiance_lut.js"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,4CAFU,MAAM,CAEiC;AAEjD,8DAK+B;AAuD/B,oDAWG;6BAzF0B,gCAAgC;4BAJjC,0BAA0B"}
|
|
@@ -10,7 +10,6 @@ import { ShaderResourceSetDescriptor } from "../shader/resource/ShaderResourceSe
|
|
|
10
10
|
import { ShaderDescriptor } from "../shader/ShaderDescriptor.js";
|
|
11
11
|
import { f32, u32, vec3f } from "../shader/type/WEBGPU_WGSL_PRIMITIVE_TYPES.js";
|
|
12
12
|
import { WebGPUStruct } from "../shader/type/WebGPUStruct.js";
|
|
13
|
-
import { ATMOSPHERE_ALTITUDE_CUTOFF } from "./ATMOSPHERE_ALTITUDE_CUTOFF.js";
|
|
14
13
|
import { ATMOSPHERE_PARAMETERS_STRUCT } from "./ATMOSPHERE_PARAMETERS_STRUCT.js";
|
|
15
14
|
import { chunk_raymarch_sky_scattering } from "./chunk_raymarch_sky_scattering.js";
|
|
16
15
|
import {
|
|
@@ -60,9 +59,7 @@ fn main(
|
|
|
60
59
|
|
|
61
60
|
let sun_dir = settings.sun_direction * inverseSqrt(sun_len_sq);
|
|
62
61
|
|
|
63
|
-
let
|
|
64
|
-
let max_alt = max(min_alt, atmosphere.atmosphere_height - min_alt);
|
|
65
|
-
let clamped_alt = clamp(settings.reference_altitude * METERS_TO_ATMOSPHERE_UNITS, min_alt, max_alt);
|
|
62
|
+
let clamped_alt = atmosphere_clamped_height_for(atmosphere, settings.reference_altitude);
|
|
66
63
|
let view_rel = vec3<f32>(0.0, atmosphere.planet_radius + clamped_alt, 0.0);
|
|
67
64
|
|
|
68
65
|
// Skirt texels decode their interior twin's world direction so the one-texel border matches
|
|
@@ -145,7 +145,7 @@ export class GPUFluidCascade {
|
|
|
145
145
|
* @param {*} _resources
|
|
146
146
|
* @param {{encoder: ShadeGPUCommandContext}} context
|
|
147
147
|
*/
|
|
148
|
-
static "__#
|
|
148
|
+
static "__#286@#execute_restrict"(record: object, _resources: any, context: {
|
|
149
149
|
encoder: ShadeGPUCommandContext;
|
|
150
150
|
}): void;
|
|
151
151
|
/**
|
|
@@ -153,7 +153,7 @@ export class GPUFluidCascade {
|
|
|
153
153
|
* @param {*} _resources
|
|
154
154
|
* @param {{encoder: ShadeGPUCommandContext}} context
|
|
155
155
|
*/
|
|
156
|
-
static "__#
|
|
156
|
+
static "__#286@#execute_fill"(record: object, _resources: any, context: {
|
|
157
157
|
encoder: ShadeGPUCommandContext;
|
|
158
158
|
}): void;
|
|
159
159
|
/**
|
|
@@ -161,7 +161,7 @@ export class GPUFluidCascade {
|
|
|
161
161
|
* @param {import("../../../engine/graphics/render/frame_graph/FramePassResources.js").FramePassResources} resources
|
|
162
162
|
* @param {{encoder: ShadeGPUCommandContext}} context
|
|
163
163
|
*/
|
|
164
|
-
static "__#
|
|
164
|
+
static "__#286@#execute"(record: object, resources: import("../../../engine/graphics/render/frame_graph/FramePassResources.js").FramePassResources, context: {
|
|
165
165
|
encoder: ShadeGPUCommandContext;
|
|
166
166
|
}): void;
|
|
167
167
|
/**
|
|
@@ -65,7 +65,7 @@ export class GPUFluidCascadeStack {
|
|
|
65
65
|
* @param {*} _resources
|
|
66
66
|
* @param {{encoder: import("../../device/ShadeGPUCommandContext.js").ShadeGPUCommandContext}} context
|
|
67
67
|
*/
|
|
68
|
-
static "__#
|
|
68
|
+
static "__#288@#execute_publish"(pass: object, _resources: any, context: {
|
|
69
69
|
encoder: import("../../device/ShadeGPUCommandContext.js").ShadeGPUCommandContext;
|
|
70
70
|
}): void;
|
|
71
71
|
/**
|
|
@@ -86,7 +86,7 @@ export class GPUFluidForcing {
|
|
|
86
86
|
* @param {FluidObstacleRecord} record
|
|
87
87
|
* @returns {number} metres
|
|
88
88
|
*/
|
|
89
|
-
static "__#
|
|
89
|
+
static "__#289@#resolved_extent"(record: FluidObstacleRecord): number;
|
|
90
90
|
/**
|
|
91
91
|
* The descriptor of a transient of `role`, `size` bytes, from `kept` (by role): the one kept for
|
|
92
92
|
* the role while its size holds, a new one when it moves. A role's usage and clear range never
|
|
@@ -99,19 +99,19 @@ export class GPUFluidForcing {
|
|
|
99
99
|
* @param {number} clear_size bytes cleared from 0 when the pool reuses the buffer
|
|
100
100
|
* @returns {BufferResourceDescriptor}
|
|
101
101
|
*/
|
|
102
|
-
static "__#
|
|
102
|
+
static "__#289@#descriptor"(kept: BufferResourceDescriptor[], role: number, size: number, usage: number, clear_size: number): BufferResourceDescriptor;
|
|
103
103
|
/**
|
|
104
104
|
* @param {object} record
|
|
105
105
|
* @param {FramePassResources} resources
|
|
106
106
|
* @param {{encoder: ShadeGPUCommandContext}} context
|
|
107
107
|
*/
|
|
108
|
-
static "__#
|
|
108
|
+
static "__#289@#execute_extract"(record: object, resources: FramePassResources, context: {
|
|
109
109
|
encoder: ShadeGPUCommandContext;
|
|
110
110
|
}): void;
|
|
111
|
-
static "__#
|
|
112
|
-
static "__#
|
|
113
|
-
static "__#
|
|
114
|
-
static "__#
|
|
111
|
+
static "__#289@#execute_clear"(record: any, _resources: any, context: any): void;
|
|
112
|
+
static "__#289@#execute_query"(record: any, resources: any, context: any): void;
|
|
113
|
+
static "__#289@#execute_command"(record: any, resources: any, context: any): void;
|
|
114
|
+
static "__#289@#execute_apply"(record: any, resources: any, context: any): void;
|
|
115
115
|
/**
|
|
116
116
|
* @param {object} options
|
|
117
117
|
* @param {GPUDevice} options.device
|
|
@@ -41,7 +41,7 @@ export class GPUFluidPressureSolve {
|
|
|
41
41
|
* @param {*} _resources
|
|
42
42
|
* @param {{encoder: ShadeGPUCommandContext}} context
|
|
43
43
|
*/
|
|
44
|
-
static "__#
|
|
44
|
+
static "__#285@#execute"(data: {
|
|
45
45
|
solve: GPUFluidPressureSolve;
|
|
46
46
|
arm: number;
|
|
47
47
|
count: number;
|
|
@@ -49,7 +49,7 @@ export class GPUFluidQueries {
|
|
|
49
49
|
* @param {import("../../../../engine/graphics/render/frame_graph/FramePassResources.js").FramePassResources} resources
|
|
50
50
|
* @param {{encoder: import("../../../device/ShadeGPUCommandContext.js").ShadeGPUCommandContext}} context
|
|
51
51
|
*/
|
|
52
|
-
static "__#
|
|
52
|
+
static "__#290@#execute"(pass: object, resources: import("../../../../engine/graphics/render/frame_graph/FramePassResources.js").FramePassResources, context: {
|
|
53
53
|
encoder: import("../../../device/ShadeGPUCommandContext.js").ShadeGPUCommandContext;
|
|
54
54
|
}): void;
|
|
55
55
|
/**
|
|
@@ -34,7 +34,7 @@ export class GPUProbeClipmapGI {
|
|
|
34
34
|
* @param {ProbeClipmapSettings} settings
|
|
35
35
|
* @returns {boolean} whether it is what the settings' world cache describes, in their frustum's windows
|
|
36
36
|
*/
|
|
37
|
-
static "__#
|
|
37
|
+
static "__#209@#world_cache_built_for"(world_cache: GPUProbeClipmap, settings: ProbeClipmapSettings): boolean;
|
|
38
38
|
/**
|
|
39
39
|
* @param {GraphicsContext} graphics
|
|
40
40
|
*/
|
|
@@ -85,8 +85,9 @@ export class GPULightCollection {
|
|
|
85
85
|
*/
|
|
86
86
|
sync_rows(rows: import("../scene/rows/GPUSceneRows.js").GPUSceneRows): void;
|
|
87
87
|
/**
|
|
88
|
-
* Write every light record's pose from its entity's row — after the hierarchy pass composed it
|
|
89
|
-
*
|
|
88
|
+
* Write every light record's pose from its entity's row — after the hierarchy pass composed it
|
|
89
|
+
* — and every directional light's colour as it reaches the scene through the atmosphere; see
|
|
90
|
+
* {@link shader_refresh_light_poses}. Nothing to dispatch while there is no light.
|
|
90
91
|
*
|
|
91
92
|
* @param {ShadeGPUCommandContext} cmd_ctx
|
|
92
93
|
* @param {GPUBuffer} scene_database
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPULightCollection.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/light/GPULightCollection.js"],"names":[],"mappings":"AA8DA;IAEI;;;;;OAKG;IACH,iCAFW,eAAe,QAQzB;IAqND;;;;;;OAMG;IACH,sBALW,eAAe,aACf,eAAe,EA+CzB;IA1PD;;;OAGG;IACH,6DAEC;IAeD;;OAEG;IACH,4BAEC;IAED;;;;;;OAMG;IACH,6BAEC;IAED;;;;;;;OAOG;IACH,qFAEC;IAWD;;OAEG;IACH,+CAEC;IAgGD;;;OAGG;IACH,qCAEC;IAED;;;;;;OAMG;IACH,gCAEC;IAED;;;;;;OAMG;IACH,yCAEC;IAGD,4BAMC;IA8RD;;;OAGG;IACH,YAFW,eAAe,QAoCzB;IAED;;;;;;;;;;;OAWG;IACH,gBAFW,OAAO,+BAA+B,EAAE,YAAY,QA2B9D;
|
|
1
|
+
{"version":3,"file":"GPULightCollection.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/light/GPULightCollection.js"],"names":[],"mappings":"AA8DA;IAEI;;;;;OAKG;IACH,iCAFW,eAAe,QAQzB;IAqND;;;;;;OAMG;IACH,sBALW,eAAe,aACf,eAAe,EA+CzB;IA1PD;;;OAGG;IACH,6DAEC;IAeD;;OAEG;IACH,4BAEC;IAED;;;;;;OAMG;IACH,6BAEC;IAED;;;;;;;OAOG;IACH,qFAEC;IAWD;;OAEG;IACH,+CAEC;IAgGD;;;OAGG;IACH,qCAEC;IAED;;;;;;OAMG;IACH,gCAEC;IAED;;;;;;OAMG;IACH,yCAEC;IAGD,4BAMC;IA8RD;;;OAGG;IACH,YAFW,eAAe,QAoCzB;IAED;;;;;;;;;;;OAWG;IACH,gBAFW,OAAO,+BAA+B,EAAE,YAAY,QA2B9D;IA6BD;;;;;;;OAOG;IACH,uBAHW,sBAAsB,mCA8ChC;IAwED,gBAaC;;CACJ;8BA/wBY,OAAO,0CAA0C,EAAE,eAAe;8BAClE,OAAO,uBAAuB,EAAE,eAAe;8BAC/C,OAAO,6BAA6B,EAAE,eAAe;8BACrD,OAAO,sBAAsB,EAAE,eAAe;4BA7B/B,gCAAgC;yCACnB,2CAA2C;kCAClD,iCAAiC;uCAL5B,wCAAwC"}
|
|
@@ -670,8 +670,17 @@ export class GPULightCollection {
|
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
/**
|
|
673
|
-
*
|
|
674
|
-
|
|
673
|
+
* Reusable immediate settings payload for {@link shader_refresh_light_poses}.
|
|
674
|
+
*/
|
|
675
|
+
#refresh_poses_settings = {
|
|
676
|
+
reference_altitude: 0,
|
|
677
|
+
atmosphere_enabled: 0,
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Write every light record's pose from its entity's row — after the hierarchy pass composed it
|
|
682
|
+
* — and every directional light's colour as it reaches the scene through the atmosphere; see
|
|
683
|
+
* {@link shader_refresh_light_poses}. Nothing to dispatch while there is no light.
|
|
675
684
|
*
|
|
676
685
|
* @param {ShadeGPUCommandContext} cmd_ctx
|
|
677
686
|
* @param {GPUBuffer} scene_database
|
|
@@ -689,13 +698,30 @@ export class GPULightCollection {
|
|
|
689
698
|
return;
|
|
690
699
|
}
|
|
691
700
|
|
|
701
|
+
const atmosphere = this.#scene_ctx.scene.atmosphere;
|
|
702
|
+
const sky = this.#scene_ctx.sky;
|
|
703
|
+
|
|
704
|
+
if (atmosphere.enabled) {
|
|
705
|
+
// the LUT the pass reads, in commands of the sky's own, submitted before `cmd_ctx`'s
|
|
706
|
+
sky.update();
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
const settings = this.#refresh_poses_settings;
|
|
710
|
+
|
|
711
|
+
settings.reference_altitude = atmosphere.reference_altitude;
|
|
712
|
+
settings.atmosphere_enabled = atmosphere.enabled ? 1 : 0;
|
|
713
|
+
|
|
692
714
|
shader_refresh_light_poses.dispatch({
|
|
693
715
|
encoder: cmd_ctx,
|
|
694
716
|
group_count_x: group_count,
|
|
695
717
|
group_count_y: REFRESH_LIGHT_POSES_TABLE_COUNT,
|
|
696
718
|
bindings: {
|
|
719
|
+
settings,
|
|
697
720
|
scene_database,
|
|
698
721
|
light_database: database.buffer,
|
|
722
|
+
atmosphere: sky.parameters_buffer.buffer,
|
|
723
|
+
// bound either way, there being no optional bindings; read only while enabled
|
|
724
|
+
tSkyLutTransmittance: sky.lut_transmittance.obtainView(),
|
|
699
725
|
},
|
|
700
726
|
});
|
|
701
727
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The layout {@link shader_project_environment_sh} writes: the environment's radiance as RGB SH2,
|
|
3
3
|
* coefficient `k` in `.xyz` of element `k`, ordered `[DC, y, z, x]` in the project's all-positive
|
|
4
4
|
* basis (`sh2_basis_at`); `.w` is unused. Radiance, not cosine-convolved — the convention the probes
|
|
5
|
-
* of Brick4
|
|
5
|
+
* of Brick4 are stored in — so `sh2_color_get_irradiance_at` turns it
|
|
6
6
|
* into the irradiance of a surface facing the direction evaluated at.
|
|
7
7
|
*
|
|
8
8
|
* @type {WebGPUArray}
|
|
@@ -18,7 +18,7 @@ export const ENVIRONMENT_SH_TYPE: WebGPUArray;
|
|
|
18
18
|
export const ENVIRONMENT_SH_SAMPLE_COUNT: number;
|
|
19
19
|
/**
|
|
20
20
|
* The environment as RGB SH2 of radiance ({@link ENVIRONMENT_SH_TYPE}): the form the renderer's other
|
|
21
|
-
* indirect lighting — Brick4, the
|
|
21
|
+
* indirect lighting — Brick4, the probe clipmap — already hands over, so the froxel GI stage
|
|
22
22
|
* (`volumetrics/gi/`) takes the environment as one more source of it. What the froxel irradiance
|
|
23
23
|
* volume is started with under IBL, and what a lit particle's ambient is there; reading the
|
|
24
24
|
* environment itself per pixel, as the forward mesh path does, cost 880 us of lighting's 1,090 us on
|
|
@@ -14,7 +14,7 @@ import { ENVIRONMENT_MAP_SAMPLER_RESOURCE } from "./ENVIRONMENT_MAP_SAMPLER_RESO
|
|
|
14
14
|
* The layout {@link shader_project_environment_sh} writes: the environment's radiance as RGB SH2,
|
|
15
15
|
* coefficient `k` in `.xyz` of element `k`, ordered `[DC, y, z, x]` in the project's all-positive
|
|
16
16
|
* basis (`sh2_basis_at`); `.w` is unused. Radiance, not cosine-convolved — the convention the probes
|
|
17
|
-
* of Brick4
|
|
17
|
+
* of Brick4 are stored in — so `sh2_color_get_irradiance_at` turns it
|
|
18
18
|
* into the irradiance of a surface facing the direction evaluated at.
|
|
19
19
|
*
|
|
20
20
|
* @type {WebGPUArray}
|
|
@@ -118,7 +118,7 @@ body.addExtension(WebGPUExtensionType.Subgroups);
|
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* The environment as RGB SH2 of radiance ({@link ENVIRONMENT_SH_TYPE}): the form the renderer's other
|
|
121
|
-
* indirect lighting — Brick4, the
|
|
121
|
+
* indirect lighting — Brick4, the probe clipmap — already hands over, so the froxel GI stage
|
|
122
122
|
* (`volumetrics/gi/`) takes the environment as one more source of it. What the froxel irradiance
|
|
123
123
|
* volume is started with under IBL, and what a lit particle's ambient is there; reading the
|
|
124
124
|
* environment itself per pixel, as the forward mesh path does, cost 880 us of lighting's 1,090 us on
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A sun: a shadow-casting {@link DirectionalLight} with the solar disc's radius.
|
|
3
|
+
*
|
|
4
|
+
* A directional light is authored as it is above the air, and `intensity` and `temperature` say
|
|
5
|
+
* what this one is there. The defaults are the light that the default atmosphere, from the default
|
|
6
|
+
* `direction`, turns into about a 5500 K light of intensity 2.2 on the ground: bluer and brighter
|
|
7
|
+
* than that by what the air takes on the way down.
|
|
8
|
+
*
|
|
9
|
+
* @param {object} [options]
|
|
10
|
+
* @param {number} [options.intensity]
|
|
11
|
+
* @param {Vector3} [options.direction] the way the light shines
|
|
12
|
+
* @param {number} [options.temperature] in kelvin
|
|
13
|
+
* @returns {DirectionalLight}
|
|
14
|
+
*/
|
|
1
15
|
export function make_sunlight({ intensity, direction, temperature }?: {
|
|
2
16
|
intensity?: number;
|
|
3
17
|
direction?: Vector3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"make_sunlight.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/light/make_sunlight.js"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"make_sunlight.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/light/make_sunlight.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH;IAL4B,SAAS,GAA1B,MAAM;IACY,SAAS,GAA3B,OAAO;IACU,WAAW,GAA5B,MAAM;IACJ,gBAAgB,CAgC5B;oBA/CmB,+BAA+B;iCAClB,6BAA6B"}
|
|
@@ -3,10 +3,24 @@ import Quaternion from "../../../core/geom/Quaternion.js";
|
|
|
3
3
|
import Vector3 from "../../../core/geom/Vector3.js";
|
|
4
4
|
import { DirectionalLight } from "./model/DirectionalLight.js";
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* A sun: a shadow-casting {@link DirectionalLight} with the solar disc's radius.
|
|
8
|
+
*
|
|
9
|
+
* A directional light is authored as it is above the air, and `intensity` and `temperature` say
|
|
10
|
+
* what this one is there. The defaults are the light that the default atmosphere, from the default
|
|
11
|
+
* `direction`, turns into about a 5500 K light of intensity 2.2 on the ground: bluer and brighter
|
|
12
|
+
* than that by what the air takes on the way down.
|
|
13
|
+
*
|
|
14
|
+
* @param {object} [options]
|
|
15
|
+
* @param {number} [options.intensity]
|
|
16
|
+
* @param {Vector3} [options.direction] the way the light shines
|
|
17
|
+
* @param {number} [options.temperature] in kelvin
|
|
18
|
+
* @returns {DirectionalLight}
|
|
19
|
+
*/
|
|
6
20
|
export function make_sunlight({
|
|
7
|
-
intensity = 2.
|
|
21
|
+
intensity = 2.5,
|
|
8
22
|
direction = new Vector3(-0.2, -1, 0.2),
|
|
9
|
-
temperature =
|
|
23
|
+
temperature = 7100
|
|
10
24
|
} = {}) {
|
|
11
25
|
const light = new DirectionalLight();
|
|
12
26
|
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A light at infinity, shining along its transform's +Z.
|
|
3
|
+
*
|
|
4
|
+
* **Authored as it is above the air.** While the scene's {@link SceneAtmosphere} is enabled the
|
|
5
|
+
* light reaches a surface through the atmosphere toward it: dimmed and reddened as it nears the
|
|
6
|
+
* horizon, black below it, by its direction alone. So `color` and `intensity` say what the light
|
|
7
|
+
* is before the atmosphere, the same for every hour of a day cycle, and the first one in the scene
|
|
8
|
+
* is also what lights the sky. With the atmosphere disabled the light is used as authored.
|
|
9
|
+
*/
|
|
1
10
|
export class DirectionalLight extends Light {
|
|
2
11
|
/**
|
|
3
12
|
* @readonly
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DirectionalLight.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/light/model/DirectionalLight.js"],"names":[],"mappings":"AAEA;IASA;;;OAGG;IACH,6BAFU,OAAO,CAE4B;CAN5C;
|
|
1
|
+
{"version":3,"file":"DirectionalLight.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/light/model/DirectionalLight.js"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH;IASA;;;OAGG;IACH,6BAFU,OAAO,CAE4B;CAN5C;sBAlBqB,YAAY"}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { Light } from "./Light.js";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* A light at infinity, shining along its transform's +Z.
|
|
5
|
+
*
|
|
6
|
+
* **Authored as it is above the air.** While the scene's {@link SceneAtmosphere} is enabled the
|
|
7
|
+
* light reaches a surface through the atmosphere toward it: dimmed and reddened as it nears the
|
|
8
|
+
* horizon, black below it, by its direction alone. So `color` and `intensity` say what the light
|
|
9
|
+
* is before the atmosphere, the same for every hour of a day cycle, and the first one in the scene
|
|
10
|
+
* is also what lights the sky. With the atmosphere disabled the light is used as authored.
|
|
11
|
+
*/
|
|
3
12
|
export class DirectionalLight extends Light {
|
|
4
13
|
|
|
5
14
|
// direction is derived from transform matrix
|
|
@@ -13,4 +22,4 @@ export class DirectionalLight extends Light {
|
|
|
13
22
|
* @readonly
|
|
14
23
|
* @type {boolean}
|
|
15
24
|
*/
|
|
16
|
-
DirectionalLight.prototype.isDirectionalLight = true;
|
|
25
|
+
DirectionalLight.prototype.isDirectionalLight = true;
|
|
@@ -45,8 +45,10 @@ export class Light {
|
|
|
45
45
|
* (cd). The shader's inverse-square step turns this into lux at the
|
|
46
46
|
* receiver. For lumens-flavored input, use `intensity_lumens`.
|
|
47
47
|
* - {@link DirectionalLight}: illuminance in lux (lx) — what a sun-facing
|
|
48
|
-
* receiver gets
|
|
49
|
-
*
|
|
48
|
+
* receiver gets above the scene's atmosphere, and on the ground once the
|
|
49
|
+
* atmosphere has dimmed it (see {@link DirectionalLight}). Lumens /
|
|
50
|
+
* candelas don't apply (no enclosing solid angle for an infinitely-far
|
|
51
|
+
* source).
|
|
50
52
|
*
|
|
51
53
|
* @type {number}
|
|
52
54
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Light.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/light/model/Light.js"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH;IACI;;;;OAIG;IACH,MAFU,MAAM,CAEN;IAEV;;;;;;;;;OASG;IACH,WAFU,WAAW,CAES;IAE9B;;;;;;;;;OASG;IACH,OAFU,KAAK,CAEY;IAE3B
|
|
1
|
+
{"version":3,"file":"Light.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/light/model/Light.js"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH;IACI;;;;OAIG;IACH,MAFU,MAAM,CAEN;IAEV;;;;;;;;;OASG;IACH,WAFU,WAAW,CAES;IAE9B;;;;;;;;;OASG;IACH,OAFU,KAAK,CAEY;IAE3B;;;;;;;;;;;;;;OAcG;IACH,WAFU,MAAM,CAEF;IAEd;;;OAGG;IACH,QAFU,MAAM,CAEL;IAEX;;;;OAIG;IACH,oBAFU,MAAM,CAEO;IAEvB;;;OAGG;IACH,cAFU,OAAO,CAEG;IAEpB;;;OAGG;IACH,mBAFU,MAAM,CAEO;IAEvB,mBAEC;IAGL;;;OAGG;IACH,kBAFU,OAAO,CAEM;CANtB;4BAzF2B,iDAAiD;sBADvD,iCAAiC"}
|
|
@@ -51,8 +51,10 @@ export class Light {
|
|
|
51
51
|
* (cd). The shader's inverse-square step turns this into lux at the
|
|
52
52
|
* receiver. For lumens-flavored input, use `intensity_lumens`.
|
|
53
53
|
* - {@link DirectionalLight}: illuminance in lux (lx) — what a sun-facing
|
|
54
|
-
* receiver gets
|
|
55
|
-
*
|
|
54
|
+
* receiver gets above the scene's atmosphere, and on the ground once the
|
|
55
|
+
* atmosphere has dimmed it (see {@link DirectionalLight}). Lumens /
|
|
56
|
+
* candelas don't apply (no enclosing solid angle for an infinitely-far
|
|
57
|
+
* source).
|
|
56
58
|
*
|
|
57
59
|
* @type {number}
|
|
58
60
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"light_record_directional.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/light/model/io/light_record_directional.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;GAYG;AACH,iFAJW,MAAM,
|
|
1
|
+
{"version":3,"file":"light_record_directional.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/light/model/io/light_record_directional.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;GAYG;AACH,iFAJW,MAAM,OA6BhB"}
|