@woosh/meep-engine 3.78.3 → 3.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +80 -13
- package/editor/view/node-graph/NodeGraphView.d.ts +1 -1
- package/editor/view/node-graph/NodeGraphView.js +1 -1
- package/package.json +1 -1
- package/src/core/math/physics/brdf/fresnel_Schlick_optimized.d.ts +2 -1
- package/src/core/math/physics/brdf/fresnel_Schlick_optimized.d.ts.map +1 -1
- package/src/core/math/physics/brdf/fresnel_Schlick_optimized.js +2 -1
- package/src/core/math/snap_to_integer.d.ts +13 -0
- package/src/core/math/snap_to_integer.d.ts.map +1 -0
- package/src/core/math/snap_to_integer.js +20 -0
- package/src/core/model/node-graph/NodeGraph.d.ts +0 -1
- package/src/core/model/node-graph/NodeGraph.d.ts.map +1 -1
- package/src/core/model/node-graph/NodeGraph.js +0 -1
- package/src/engine/asset/GameAssetType.d.ts +2 -0
- package/src/engine/asset/GameAssetType.js +10 -0
- package/src/engine/asset/guessAssetType.d.ts.map +1 -1
- package/src/engine/asset/guessAssetType.js +4 -0
- package/src/engine/asset/load_model_scene_bundle.d.ts +1 -1
- package/src/engine/asset/load_model_scene_bundle.js +2 -2
- package/src/engine/asset/loaders/MTFSceneBundleAssetLoader.d.ts +42 -0
- package/src/engine/asset/loaders/MTFSceneBundleAssetLoader.d.ts.map +1 -0
- package/src/engine/asset/loaders/MTFSceneBundleAssetLoader.js +83 -0
- package/src/engine/asset/loaders/MTFTextureAssetLoader.d.ts +36 -0
- package/src/engine/asset/loaders/MTFTextureAssetLoader.d.ts.map +1 -0
- package/src/engine/asset/loaders/MTFTextureAssetLoader.js +78 -0
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionSerializer.d.ts +6 -1
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionSerializer.d.ts.map +1 -1
- package/src/engine/ecs/storage/binary/collection/BinaryCollectionSerializer.js +8 -2
- package/src/engine/graphics/hair/groom_bind_to_mesh.d.ts +1 -1
- package/src/engine/graphics/hair/groom_bind_to_mesh.js +1 -1
- package/src/engine/graphics/hair/groom_build_guides.d.ts +1 -1
- package/src/engine/graphics/hair/groom_build_guides.js +1 -1
- package/src/engine/graphics/impostors/voxel/README.md +11 -11
- package/src/engine/physics/cloth/collider/ClothColliderKind.js +1 -1
- package/src/engine/physics/cloth/ecs/cloth_geodesic.d.ts +1 -1
- package/src/engine/physics/cloth/ecs/cloth_geodesic.js +1 -1
- package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.d.ts +2 -3
- package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/constraint/cloth_backstop_row.js +2 -3
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
- package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.d.ts +0 -2
- package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.d.ts.map +1 -1
- package/src/generation/filtering/numeric/sampling/AbstractCellFilterSampleGridLayer.js +0 -5
- package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerCubic.d.ts.map +1 -1
- package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerCubic.js +5 -3
- package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerLinear.d.ts.map +1 -1
- package/src/generation/filtering/numeric/sampling/CellFilterSampleLayerLinear.js +5 -3
- package/src/generation/grid/coords/grid_to_texel.d.ts +7 -1
- package/src/generation/grid/coords/grid_to_texel.d.ts.map +1 -1
- package/src/generation/grid/coords/grid_to_texel.js +11 -1
- package/src/generation/grid/coords/grid_to_texel_span.d.ts +15 -0
- package/src/generation/grid/coords/grid_to_texel_span.d.ts.map +1 -0
- package/src/generation/grid/coords/grid_to_texel_span.js +38 -0
- package/src/generation/grid/coords/texel_to_grid.d.ts +2 -1
- package/src/generation/grid/coords/texel_to_grid.d.ts.map +1 -1
- package/src/generation/grid/coords/texel_to_grid.js +6 -1
- package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts +32 -1
- package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.d.ts.map +1 -1
- package/src/generation/grid/generation/discrete/GridTaskWaveFunctionCollapse.js +114 -9
- package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.d.ts +8 -0
- package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.d.ts.map +1 -1
- package/src/generation/grid/generation/discrete/layer/GridTaskBuildSourceDistanceMap.js +91 -29
- package/src/generation/grid/layers/GridDataLayer.d.ts +21 -2
- package/src/generation/grid/layers/GridDataLayer.d.ts.map +1 -1
- package/src/generation/grid/layers/GridDataLayer.js +43 -4
- package/src/generation/placement/action/GridCellActionPlaceTags.d.ts +7 -1
- package/src/generation/placement/action/GridCellActionPlaceTags.d.ts.map +1 -1
- package/src/generation/placement/action/GridCellActionPlaceTags.js +42 -16
- package/src/generation/placement/action/GridCellActionWriteFilterToLayer.d.ts +5 -0
- package/src/generation/placement/action/GridCellActionWriteFilterToLayer.d.ts.map +1 -1
- package/src/generation/placement/action/GridCellActionWriteFilterToLayer.js +32 -9
- package/src/generation/rules/CellMatcherLayerBitMaskTest.d.ts.map +1 -1
- package/src/generation/rules/CellMatcherLayerBitMaskTest.js +6 -2
- package/src/generation/wfc/GridWFCCompiledTileSet.d.ts +4 -2
- package/src/generation/wfc/GridWFCCompiledTileSet.d.ts.map +1 -1
- package/src/generation/wfc/GridWFCCompiledTileSet.js +2 -2
- package/src/generation/wfc/GridWFCTileSet.d.ts +16 -7
- package/src/generation/wfc/GridWFCTileSet.d.ts.map +1 -1
- package/src/generation/wfc/GridWFCTileSet.js +32 -8
- package/src/shade/playground/contact_shadows/shader_contact_lab_composite.js +2 -2
- package/src/shade/playground/particle_editor/README.md +2 -2
- package/src/shade/playground/probe_clipmap/index.html +1 -1
- package/src/shade/playground/screen_probes/README.md +5 -5
- package/src/shade/playground/screen_probes/main.js +1 -1
- package/src/shade/playground/tonemap_sdr/README.md +3 -2
- package/src/shade/playground/vgeo_scene/README.md +1 -3
- package/src/shade/playground/vgeo_scene/main.js +3 -3
- package/src/shade/renderer/Renderer.d.ts +3 -3
- package/src/shade/renderer/Renderer.js +4 -4
- package/src/shade/renderer/ShadeIndirectLightingMode.js +1 -1
- package/src/shade/renderer/acoustics/GPUAcousticLattice.d.ts +1 -1
- package/src/shade/renderer/acoustics/GPUAcousticProbes.d.ts +1 -1
- package/src/shade/renderer/acoustics/GPUAcoustics.d.ts +1 -1
- package/src/shade/renderer/animation/ShadeAnimationClipSerializationAdapter.d.ts +33 -0
- package/src/shade/renderer/animation/ShadeAnimationClipSerializationAdapter.d.ts.map +1 -0
- package/src/shade/renderer/animation/ShadeAnimationClipSerializationAdapter.js +196 -0
- package/src/shade/renderer/animation/SkinSerializationAdapter.d.ts +25 -0
- package/src/shade/renderer/animation/SkinSerializationAdapter.d.ts.map +1 -0
- package/src/shade/renderer/animation/SkinSerializationAdapter.js +85 -0
- package/src/shade/renderer/camera/PerspectiveCamera.js +1 -1
- package/src/shade/renderer/deferred/tonemap/ColorGrade.d.ts +11 -13
- package/src/shade/renderer/deferred/tonemap/ColorGrade.d.ts.map +1 -1
- package/src/shade/renderer/deferred/tonemap/ColorGrade.js +11 -13
- package/src/shade/renderer/deferred/tonemap/TONE_MAP_OPERATOR_ACES.d.ts.map +1 -1
- package/src/shade/renderer/deferred/tonemap/TONE_MAP_OPERATOR_ACES.js +6 -7
- package/src/shade/renderer/deferred/tonemap/ToneMapper.d.ts +1 -1
- package/src/shade/renderer/deferred/tonemap/ToneMapper.js +1 -1
- package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.d.ts +6 -8
- package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.d.ts.map +1 -1
- package/src/shade/renderer/deferred/tonemap/m3_white_balance_rec709.js +7 -10
- package/src/shade/renderer/geometry/sdf/MESH_SDF.d.ts +1 -1
- package/src/shade/renderer/geometry/sdf/MESH_SDF.js +1 -1
- package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_classify.d.ts +1 -1
- package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_classify.js +1 -1
- package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_evaluate.d.ts +1 -1
- package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_evaluate.js +1 -1
- package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.d.ts +1 -2
- package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/chunk_blas_query_band_sdf.js +1 -2
- package/src/shade/renderer/geometry/sdf/chunk_scene_point_query_volume_sign.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/chunk_scene_point_query_volume_sign.js +2 -1
- package/src/shade/renderer/geometry/sdf/surface/MESH_SURFACE_BAKE.d.ts +1 -1
- package/src/shade/renderer/geometry/sdf/surface/MESH_SURFACE_BAKE.js +1 -1
- package/src/shade/renderer/geometry/virtual/build/level/vgeo_build_cluster_graph.js +1 -1
- package/src/shade/renderer/geometry/virtual/format/page/VGEO_DEFAULT_PAGE_SIZE.d.ts +2 -2
- package/src/shade/renderer/geometry/virtual/format/page/VGEO_DEFAULT_PAGE_SIZE.js +2 -2
- package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.d.ts +2 -2
- package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_access.js +4 -4
- package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_instance.d.ts +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/cut/chunk_vgeo_cut_instance.js +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/cut/shader_vgeo_cut_collect.js +1 -1
- package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.d.ts +3 -3
- package/src/shade/renderer/geometry/virtual/runtime/layout/VGEO_INSTANCE_OFFSET.js +3 -3
- package/src/shade/renderer/global_illumination/brick4/README.md +2 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts +4 -6
- package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSettings.js +4 -6
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/BRICK_MOVERS.d.ts +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/BRICK_MOVERS.js +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js +2 -2
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/chunk_mesh_brick_texel.d.ts +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/chunk_mesh_brick_texel.js +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.d.ts +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/GPUScreenProbeGI.js +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts +28 -35
- package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.js +28 -35
- package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts +21 -24
- package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js +21 -24
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.d.ts +8 -8
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe.js +8 -8
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_brdf_density.d.ts +4 -4
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_brdf_density.js +4 -4
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.d.ts +3 -5
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_interpolate.js +3 -5
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_lighting_history.d.ts +4 -4
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_lighting_history.js +4 -4
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts +2 -3
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_rough_specular.js +2 -3
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_screen_march.d.ts +4 -4
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_screen_march.js +4 -4
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.d.ts +2 -4
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/chunk_screen_probe_surface.js +2 -4
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.d.ts +2 -4
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_brick.js +2 -4
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts +13 -17
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_gather.js +13 -17
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.d.ts +11 -14
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_importance.js +11 -14
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_pick.d.ts +2 -2
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_pick.js +2 -2
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_place.d.ts +9 -9
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_place.js +9 -9
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts +15 -18
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_resolve.js +16 -19
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.d.ts +10 -11
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/screen_probe/shader_screen_probe_trace_screen.js +11 -12
- package/src/shade/renderer/hair/GPUHairSystem.d.ts.map +1 -1
- package/src/shade/renderer/hair/GPUHairSystem.js +16 -7
- package/src/shade/renderer/hair/HAIR.d.ts +5 -3
- package/src/shade/renderer/hair/HAIR.d.ts.map +1 -1
- package/src/shade/renderer/hair/HAIR.js +6 -4
- package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts +9 -8
- package/src/shade/renderer/hair/chunk_hair_bsdf.d.ts.map +1 -1
- package/src/shade/renderer/hair/chunk_hair_bsdf.js +10 -9
- package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts +5 -6
- package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts.map +1 -1
- package/src/shade/renderer/hair/chunk_hair_dual_scattering.js +5 -6
- package/src/shade/renderer/hair/hair_lighting.d.ts +3 -3
- package/src/shade/renderer/hair/hair_lighting.d.ts.map +1 -1
- package/src/shade/renderer/hair/hair_lighting.js +4 -5
- package/src/shade/renderer/hair/hair_scattering_lut.d.ts +5 -5
- package/src/shade/renderer/hair/hair_scattering_lut.js +5 -5
- package/src/shade/renderer/hair/hair_shadow_draw.d.ts +10 -10
- package/src/shade/renderer/hair/hair_shadow_draw.d.ts.map +1 -1
- package/src/shade/renderer/hair/hair_shadow_draw.js +21 -17
- package/src/shade/renderer/hair/shader_hair_cull.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_cull.js +6 -2
- package/src/shade/renderer/hair/shader_hair_roots.d.ts +2 -2
- package/src/shade/renderer/hair/shader_hair_roots.js +2 -2
- package/src/shade/renderer/hair/shader_hair_shadow_list.d.ts +5 -4
- package/src/shade/renderer/hair/shader_hair_shadow_list.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_shadow_list.js +10 -12
- package/src/shade/renderer/light/environment/DEFINES.d.ts +1 -1
- package/src/shade/renderer/light/environment/DEFINES.js +1 -1
- package/src/shade/renderer/light/environment/shader_convolve_reflection_map_from_blurred.js +2 -2
- package/src/shade/renderer/loader/SceneNodeSerializationAdapter.d.ts +38 -0
- package/src/shade/renderer/loader/SceneNodeSerializationAdapter.d.ts.map +1 -0
- package/src/shade/renderer/loader/SceneNodeSerializationAdapter.js +198 -0
- package/src/shade/renderer/loader/mtf/MTFTexture.d.ts +88 -0
- package/src/shade/renderer/loader/mtf/MTFTexture.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/MTFTexture.js +159 -0
- package/src/shade/renderer/loader/mtf/MTFTextureSerializationAdapter.d.ts +30 -0
- package/src/shade/renderer/loader/mtf/MTFTextureSerializationAdapter.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/MTFTextureSerializationAdapter.js +136 -0
- package/src/shade/renderer/loader/mtf/MTF_PACKAGE_MAGIC.d.ts +7 -0
- package/src/shade/renderer/loader/mtf/MTF_PACKAGE_MAGIC.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/MTF_PACKAGE_MAGIC.js +6 -0
- package/src/shade/renderer/loader/mtf/MTF_PACKAGE_VERSION.d.ts +8 -0
- package/src/shade/renderer/loader/mtf/MTF_PACKAGE_VERSION.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/MTF_PACKAGE_VERSION.js +7 -0
- package/src/shade/renderer/loader/mtf/MTF_TEXTURE_MAGIC.d.ts +7 -0
- package/src/shade/renderer/loader/mtf/MTF_TEXTURE_MAGIC.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/MTF_TEXTURE_MAGIC.js +6 -0
- package/src/shade/renderer/loader/mtf/MTF_TEXTURE_VERSION.d.ts +7 -0
- package/src/shade/renderer/loader/mtf/MTF_TEXTURE_VERSION.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/MTF_TEXTURE_VERSION.js +6 -0
- package/src/shade/renderer/loader/mtf/load_mtf.d.ts +41 -0
- package/src/shade/renderer/loader/mtf/load_mtf.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/load_mtf.js +73 -0
- package/src/shade/renderer/loader/mtf/mtf_bundle_textures.d.ts +19 -0
- package/src/shade/renderer/loader/mtf/mtf_bundle_textures.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_bundle_textures.js +57 -0
- package/src/shade/renderer/loader/mtf/mtf_encode_texture.d.ts +9 -0
- package/src/shade/renderer/loader/mtf/mtf_encode_texture.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_encode_texture.js +78 -0
- package/src/shade/renderer/loader/mtf/mtf_export.d.ts +45 -0
- package/src/shade/renderer/loader/mtf/mtf_export.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_export.js +161 -0
- package/src/shade/renderer/loader/mtf/mtf_is_texture.d.ts +9 -0
- package/src/shade/renderer/loader/mtf/mtf_is_texture.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_is_texture.js +12 -0
- package/src/shade/renderer/loader/mtf/mtf_read_collection.d.ts +24 -0
- package/src/shade/renderer/loader/mtf/mtf_read_collection.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_read_collection.js +37 -0
- package/src/shade/renderer/loader/mtf/mtf_read_scene.d.ts +27 -0
- package/src/shade/renderer/loader/mtf/mtf_read_scene.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_read_scene.js +121 -0
- package/src/shade/renderer/loader/mtf/mtf_read_textures.d.ts +18 -0
- package/src/shade/renderer/loader/mtf/mtf_read_textures.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_read_textures.js +51 -0
- package/src/shade/renderer/loader/mtf/mtf_resolve_uri.d.ts +21 -0
- package/src/shade/renderer/loader/mtf/mtf_resolve_uri.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_resolve_uri.js +98 -0
- package/src/shade/renderer/loader/mtf/mtf_serialization_registry.d.ts +25 -0
- package/src/shade/renderer/loader/mtf/mtf_serialization_registry.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_serialization_registry.js +51 -0
- package/src/shade/renderer/loader/mtf/mtf_texture_read.d.ts +20 -0
- package/src/shade/renderer/loader/mtf/mtf_texture_read.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_texture_read.js +80 -0
- package/src/shade/renderer/loader/mtf/mtf_texture_select.d.ts +24 -0
- package/src/shade/renderer/loader/mtf/mtf_texture_select.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_texture_select.js +42 -0
- package/src/shade/renderer/loader/mtf/mtf_texture_write.d.ts +31 -0
- package/src/shade/renderer/loader/mtf/mtf_texture_write.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_texture_write.js +87 -0
- package/src/shade/renderer/loader/mtf/mtf_write.d.ts +36 -0
- package/src/shade/renderer/loader/mtf/mtf_write.d.ts.map +1 -0
- package/src/shade/renderer/loader/mtf/mtf_write.js +161 -0
- package/src/shade/renderer/material/StandardShadeMaterialSerializationAdapter.d.ts +39 -0
- package/src/shade/renderer/material/StandardShadeMaterialSerializationAdapter.d.ts.map +1 -0
- package/src/shade/renderer/material/StandardShadeMaterialSerializationAdapter.js +207 -0
- package/src/shade/renderer/material/dispatch/MaterialDispatch.d.ts +1 -2
- package/src/shade/renderer/material/dispatch/MaterialDispatch.d.ts.map +1 -1
- package/src/shade/renderer/material/dispatch/MaterialDispatch.js +1 -2
- package/src/shade/renderer/material/standard/fragment_gbuffer.d.ts.map +1 -1
- package/src/shade/renderer/material/standard/fragment_gbuffer.js +2 -1
- package/src/shade/renderer/material/util/dielectric_specular_color.d.ts +1 -1
- package/src/shade/renderer/material/util/dielectric_specular_color.js +1 -1
- package/src/shade/renderer/postprocess/dof/gather/DOF2_CONFIG.d.ts +1 -1
- package/src/shade/renderer/postprocess/dof/gather/DOF2_CONFIG.js +1 -1
- package/src/shade/renderer/postprocess/dof/gather/DOF2_PRESETS.js +1 -1
- package/src/shade/renderer/postprocess/dof/gather/DOF2_SETTINGS_STRUCT.d.ts +1 -1
- package/src/shade/renderer/postprocess/dof/gather/DOF2_SETTINGS_STRUCT.js +1 -1
- package/src/shade/renderer/postprocess/dof/gather/DOF2_TEXTURE_FORMAT.d.ts +1 -1
- package/src/shade/renderer/postprocess/dof/gather/DOF2_TEXTURE_FORMAT.js +1 -1
- package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts +3 -4
- package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/dof/gather/DepthOfFieldU.js +3 -4
- package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.d.ts +1 -1
- package/src/shade/renderer/postprocess/dof/gather/graph_postprocess_dof2.js +1 -1
- package/src/shade/renderer/postprocess/eye/GPUCameraExposureManager.d.ts +1 -1
- package/src/shade/renderer/postprocess/eye/GPUCameraExposureManager.js +1 -1
- package/src/shade/renderer/postprocess/gtao/ao_reproject_shader.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/gtao/ao_reproject_shader.js +2 -3
- package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.d.ts +1 -2
- package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/motion_blur/MOTION_BLUR_CONFIG.js +1 -2
- package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.d.ts +2 -3
- package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/taa/chunk_fsr2_compute_depth_clip.js +2 -3
- package/src/shade/renderer/postprocess/taa/filter_blackman_harris.d.ts +1 -1
- package/src/shade/renderer/postprocess/taa/filter_blackman_harris.js +1 -1
- package/src/shade/renderer/rasterize/native/depth/shadow_cascade_rasterization_pass_descriptor.d.ts +1 -1
- package/src/shade/renderer/rasterize/native/depth/shadow_cascade_rasterization_pass_descriptor.js +1 -1
- package/src/shade/renderer/rasterize/native/depth/shadow_rasterization_alpha_tested_pass_descriptor.js +1 -1
- package/src/shade/renderer/restir/di/ReSTIRDI.d.ts +3 -3
- package/src/shade/renderer/restir/di/ReSTIRDI.js +3 -3
- package/src/shade/renderer/restir/di/chunk_restir_trace_visibility.d.ts +1 -1
- package/src/shade/renderer/restir/di/chunk_restir_trace_visibility.js +1 -1
- package/src/shade/renderer/scene/optimization/source_to_sampler2d.d.ts.map +1 -1
- package/src/shade/renderer/scene/optimization/source_to_sampler2d.js +3 -1
- package/src/shade/renderer/scene/serialization/STANDARD_MATERIAL_SERIALIZED_BYTE_SIZE.d.ts +5 -5
- package/src/shade/renderer/scene/serialization/STANDARD_MATERIAL_SERIALIZED_BYTE_SIZE.js +5 -5
- package/src/shade/renderer/scene/serialization/deserialize_scene.d.ts.map +1 -1
- package/src/shade/renderer/scene/serialization/deserialize_scene.js +491 -528
- package/src/shade/renderer/scene/serialization/serialize_scene.d.ts +0 -10
- package/src/shade/renderer/scene/serialization/serialize_scene.d.ts.map +1 -1
- package/src/shade/renderer/scene/serialization/serialize_scene.js +15 -71
- package/src/shade/renderer/shader/chunk/brdf/chunk_MIN_DIELECTRICS_F0.d.ts +1 -1
- package/src/shade/renderer/shader/chunk/brdf/chunk_MIN_DIELECTRICS_F0.js +1 -1
- package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts +1 -2
- package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/brdf/chunk_shadowed_F90.js +1 -2
- package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.d.ts +4 -5
- package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_REC709_AP1.js +4 -5
- package/src/shade/renderer/shader/chunk/color/grade/chunk_color_grade.js +2 -2
- package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_aces_ue_matrices.d.ts +2 -2
- package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_aces_ue_matrices.js +2 -2
- package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.d.ts +14 -17
- package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/color/tonemap/aces/chunk_tonemap_ue_filmic.js +18 -21
- package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris.d.ts +1 -1
- package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris.js +1 -1
- package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris229.d.ts +1 -1
- package/src/shade/renderer/shader/chunk/filter/chunk_filter_blackman_harris229.js +1 -1
- package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.d.ts +3 -4
- package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/filter/chunk_multiscale_mean.js +3 -4
- package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.d.ts +1 -1
- package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.js +1 -1
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +3 -3
- package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.d.ts +6 -8
- package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_cascade.js +8 -10
- package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.d.ts +5 -7
- package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/shader/chunk_shadow_caster_depth_bias.js +5 -7
- package/src/shade/renderer/texture/format/gpu_texture_format_without_srgb.d.ts +11 -0
- package/src/shade/renderer/texture/format/gpu_texture_format_without_srgb.d.ts.map +1 -0
- package/src/shade/renderer/texture/format/gpu_texture_format_without_srgb.js +14 -0
- package/src/shade/renderer/texture/texture_role_image_quality.d.ts +10 -0
- package/src/shade/renderer/texture/texture_role_image_quality.d.ts.map +1 -0
- package/src/shade/renderer/texture/texture_role_image_quality.js +29 -0
- package/src/shade/renderer/texture/virtual/README.md +257 -257
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_lighting.js +2 -2
|
@@ -14,9 +14,8 @@ export function screen_probe_adaptive_tile_capacity(levels: number): number;
|
|
|
14
14
|
/**
|
|
15
15
|
* @param {number} uniform_count uniform probes
|
|
16
16
|
* @param {number} levels of adaptive placement
|
|
17
|
-
* @returns {number} adaptive probe slots: as many as the uniform probes,
|
|
18
|
-
*
|
|
19
|
-
* breaks up; none without adaptive levels
|
|
17
|
+
* @returns {number} adaptive probe slots: as many as the uniform probes, so a frame's probes are never more than twice
|
|
18
|
+
* the uniform ones however finely the view's depth breaks up; none without adaptive levels
|
|
20
19
|
*/
|
|
21
20
|
export function screen_probe_adaptive_capacity(uniform_count: number, levels: number): number;
|
|
22
21
|
/**
|
|
@@ -45,78 +44,75 @@ export const SCREEN_PROBE_RAY_SLOT_BITS: number;
|
|
|
45
44
|
*/
|
|
46
45
|
export const SCREEN_PROBE_OCTAHEDRON_LIMIT: number;
|
|
47
46
|
/**
|
|
48
|
-
* The smallest octahedron a probe can have, n = 4, the bottom of
|
|
47
|
+
* The smallest octahedron a probe can have, n = 4, the bottom of the range a probe's octahedron takes (4 to 16).
|
|
49
48
|
* @type {number}
|
|
50
49
|
*/
|
|
51
50
|
export const SCREEN_PROBE_OCTAHEDRON_MINIMUM: number;
|
|
52
51
|
/**
|
|
53
|
-
* The plane weight's scale
|
|
52
|
+
* The plane weight's scale: a probe weighs `exp2(−k·r²)`, r its distance from the receiver's plane over the
|
|
54
53
|
* receiver's depth. ½ at r = 1%, 0.01 at r ≈ 2.6%.
|
|
55
54
|
* @type {number}
|
|
56
55
|
*/
|
|
57
56
|
export const SCREEN_PROBE_PLANE_WEIGHT_SCALE: number;
|
|
58
57
|
/**
|
|
59
|
-
* A corner weighing no more than this is no corner
|
|
58
|
+
* A corner weighing no more than this is no corner: interpolation looks for an adaptive probe in its place,
|
|
60
59
|
* and a sum of weights under this is no light (the pixel is the temporal filter's to fill).
|
|
61
60
|
* @type {number}
|
|
62
61
|
*/
|
|
63
62
|
export const SCREEN_PROBE_WEIGHT_EPSILON: number;
|
|
64
63
|
/**
|
|
65
|
-
*
|
|
64
|
+
* The plane weight scale for the integration's jitter: a pixel's lookup moves only onto a pixel this coplanar
|
|
66
65
|
* with it, weight 0.01 at r ≈ 0.26%.
|
|
67
66
|
* @type {number}
|
|
68
67
|
*/
|
|
69
68
|
export const SCREEN_PROBE_JITTER_PLANE_WEIGHT_SCALE: number;
|
|
70
69
|
/**
|
|
71
70
|
* A pixel around a probe adds its cosine lobe to the probe's BRDF while the probe's plane weight from it is past
|
|
72
|
-
* this
|
|
71
|
+
* this: r under 1.8% of the probe's depth.
|
|
73
72
|
* @type {number}
|
|
74
73
|
*/
|
|
75
74
|
export const SCREEN_PROBE_BRDF_PIXEL_WEIGHT: number;
|
|
76
75
|
/**
|
|
77
|
-
*
|
|
78
|
-
* away. One any of whose directions the BRDF density reaches this is held at it
|
|
79
|
-
* light ranks what the pixels' lobes keep and culls none of it; a texel the lobes
|
|
80
|
-
* bright enough to lift it.
|
|
76
|
+
* The least density a texel traces at. A texel whose density, its BRDF's times its light's (times n²), is under this
|
|
77
|
+
* gives its ray away. One any of whose directions the BRDF density reaches this is held at it
|
|
78
|
+
* (`screen_probe_brdf_keeps`), so the light ranks what the pixels' lobes keep and culls none of it; a texel the lobes
|
|
79
|
+
* do not keep stays where its light is bright enough to lift it.
|
|
81
80
|
* @type {number}
|
|
82
81
|
*/
|
|
83
82
|
export const SCREEN_PROBE_MIN_PDF: number;
|
|
84
83
|
/**
|
|
85
|
-
* Frames the uniform probes' place in their tiles cycles over, a Hammersley set of points across the tile
|
|
86
|
-
* Lumen's `GetScreenTileJitter` does.
|
|
84
|
+
* Frames the uniform probes' place in their tiles cycles over, a Hammersley set of points across the tile.
|
|
87
85
|
* @type {number}
|
|
88
86
|
*/
|
|
89
87
|
export const SCREEN_PROBE_JITTER_PERIOD: number;
|
|
90
88
|
/**
|
|
91
|
-
* The most a ray's radiance may hold, in the display's units (radiance times the exposure it was last shown at)
|
|
92
|
-
*
|
|
93
|
-
*
|
|
89
|
+
* The most a ray's radiance may hold, in the display's units (radiance times the exposure it was last shown at): the
|
|
90
|
+
* composite holds each ray to it, the fireflies of a sun glint or an emissive seen through a crack, and its fixed-point
|
|
91
|
+
* sums are scaled by it.
|
|
94
92
|
* @type {number}
|
|
95
93
|
*/
|
|
96
94
|
export const SCREEN_PROBE_MAX_RAY_INTENSITY: number;
|
|
97
95
|
/**
|
|
98
|
-
* Steps of a screen trace through the depth buffer's hierarchy
|
|
99
|
-
*
|
|
96
|
+
* Steps of a screen trace through the depth buffer's hierarchy: a budget for one thread. A ray that spends them is a
|
|
97
|
+
* miss of the screen, which the bricks take on from where it got.
|
|
100
98
|
* @type {number}
|
|
101
99
|
*/
|
|
102
100
|
export const SCREEN_PROBE_SCREEN_TRACE_STEPS: number;
|
|
103
101
|
/**
|
|
104
|
-
* How far behind the depth buffer a screen trace still counts as on the surface, as a share of the surface's depth
|
|
105
|
-
* Lumen's `HZBTraversal.RelativeDepthThickness`.
|
|
102
|
+
* How far behind the depth buffer a screen trace still counts as on the surface, as a share of the surface's depth.
|
|
106
103
|
* @type {number}
|
|
107
104
|
*/
|
|
108
105
|
export const SCREEN_PROBE_SCREEN_THICKNESS: number;
|
|
109
106
|
/**
|
|
110
|
-
* The share of the screen, along each side, over which a screen hit fades to a miss
|
|
111
|
-
*
|
|
107
|
+
* The share of the screen, along each side, over which a screen hit fades to a miss: from 80% of the way from the
|
|
108
|
+
* centre to the edge, in screen position.
|
|
112
109
|
* @type {number}
|
|
113
110
|
*/
|
|
114
111
|
export const SCREEN_PROBE_SCREEN_EDGE: number;
|
|
115
112
|
/**
|
|
116
113
|
* How far past its probe a ray is traced before the world-space probes answer for the rest, in spacings of the
|
|
117
114
|
* cascade the probe reads them from: the furthest a corner probe of its cage stands from the point it serves,
|
|
118
|
-
* relocation included, `PROBE_DEPTH_LIMIT`. Past it the ray has left every corner's cage
|
|
119
|
-
* cell's diagonal before its radiance cache takes them.
|
|
115
|
+
* relocation included, `PROBE_DEPTH_LIMIT`. Past it the ray has left every corner's cage.
|
|
120
116
|
* @type {number}
|
|
121
117
|
*/
|
|
122
118
|
export const SCREEN_PROBE_REACH_SPACINGS: number;
|
|
@@ -128,20 +124,19 @@ export const SCREEN_PROBE_REACH_SPACINGS: number;
|
|
|
128
124
|
export const SCREEN_PROBE_ORIGIN_STEPS: number;
|
|
129
125
|
/**
|
|
130
126
|
* A ray hit something moving when the speeds of its hit and its probe differ by more than this share of the probe's
|
|
131
|
-
* depth, held to a metre from below
|
|
127
|
+
* depth, held to a metre from below.
|
|
132
128
|
* @type {number}
|
|
133
129
|
*/
|
|
134
130
|
export const SCREEN_PROBE_MOVING_SPEED: number;
|
|
135
131
|
/**
|
|
136
132
|
* The temporal filter's history at a pixel is another surface when its depth differs from the one reprojected there
|
|
137
|
-
* by this share of the depth, dithered over ×½ to ×1½ and widened at grazing angles
|
|
138
|
-
* `Temporal.DistanceThreshold`.
|
|
133
|
+
* by this share of the depth, dithered over ×½ to ×1½ and widened at grazing angles.
|
|
139
134
|
* @type {number}
|
|
140
135
|
*/
|
|
141
136
|
export const SCREEN_PROBE_TEMPORAL_DISTANCE: number;
|
|
142
137
|
/**
|
|
143
|
-
*
|
|
144
|
-
* its history the fast update ever drops.
|
|
138
|
+
* The temporal filter's fast update: the share of a pixel's light seen moving at which it takes its new light whole,
|
|
139
|
+
* and the most of its history the fast update ever drops.
|
|
145
140
|
* @type {number}
|
|
146
141
|
*/
|
|
147
142
|
export const SCREEN_PROBE_FAST_UPDATE_MOVING: number;
|
|
@@ -149,8 +144,7 @@ export const SCREEN_PROBE_FAST_UPDATE_LIMIT: 0.9;
|
|
|
149
144
|
/**
|
|
150
145
|
* Where the screen probes' rough specular takes a surface's specular over from the world-space probes, by its
|
|
151
146
|
* perceptual roughness: the world probes' whole below `ROUGHNESS − FADE`, the screen probes' whole from `ROUGHNESS`,
|
|
152
|
-
* linear between.
|
|
153
|
-
* (0.1), its traced reflections being the world probes here.
|
|
147
|
+
* linear between.
|
|
154
148
|
* @type {number}
|
|
155
149
|
*/
|
|
156
150
|
export const SCREEN_PROBE_ROUGH_SPECULAR_ROUGHNESS: number;
|
|
@@ -158,14 +152,13 @@ export const SCREEN_PROBE_ROUGH_SPECULAR_FADE: 0.1;
|
|
|
158
152
|
/**
|
|
159
153
|
* Where the rough specular stops sampling the probes' radiance along the GGX lobe and takes their irradiance at the
|
|
160
154
|
* bent normal over π instead, by perceptual roughness: sampled whole below `ROUGHNESS − FADE`, the irradiance whole
|
|
161
|
-
* from `ROUGHNESS`, linear between.
|
|
162
|
-
* `GetDiffuseLerp`'s fade (0.2).
|
|
155
|
+
* from `ROUGHNESS`, linear between.
|
|
163
156
|
* @type {number}
|
|
164
157
|
*/
|
|
165
158
|
export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLED_ROUGHNESS: number;
|
|
166
159
|
export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLED_FADE: 0.2;
|
|
167
160
|
/**
|
|
168
|
-
* Directions a pixel's rough specular draws from the GGX lobe a frame
|
|
161
|
+
* Directions a pixel's rough specular draws from the GGX lobe a frame.
|
|
169
162
|
* @type {number}
|
|
170
163
|
*/
|
|
171
164
|
export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLES: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SCREEN_PROBE.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SCREEN_PROBE.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/SCREEN_PROBE.js"],"names":[],"mappings":"AA0NA;;;;;GAKG;AACH,gEALW,MAAM,kCACN,MAAM,GACJ,MAAM,CAWlB;AAED;;;;GAIG;AACH,4DAJW,MAAM,GACJ,MAAM,CAKlB;AAED;;;;;GAKG;AACH,8DALW,MAAM,UACN,MAAM,GACJ,MAAM,CAKlB;AAxPD;;;;GAIG;AACH,iDAFU,MAAM,CAE2D;AAE3E;;;GAGG;AACH,+CAFU,MAAM,CAEkC;AAElD;;;;GAIG;AACH,yCAFU,MAAM,CAE4B;AAE5C;;;;;;GAMG;AACH,4CAFU,MAAM,CAEgC;AAEhD;;;GAGG;AACH,8CAFU,MAAM,CAEiC;AAEjD;;;;GAIG;AACH,8CAFU,MAAM,CAEqC;AAErD;;;;GAIG;AACH,0CAFU,MAAM,CAEgC;AAEhD;;;;GAIG;AACH,qDAFU,MAAM,CAE8C;AAE9D;;;;GAIG;AACH,6CAFU,MAAM,CAEkC;AAElD;;;;;;GAMG;AACH,mCAFU,MAAM,CAEwB;AAExC;;;GAGG;AACH,yCAFU,MAAM,CAE4B;AAE5C;;;;;GAKG;AACH,6CAFU,MAAM,CAEiC;AAEjD;;;;GAIG;AACH,8CAFU,MAAM,CAEkC;AAElD;;;GAGG;AACH,4CAFU,MAAM,CAEkC;AAElD;;;;GAIG;AACH,uCAFU,MAAM,CAE4B;AAE5C;;;;;GAKG;AACH,0CAFU,MAAM,CAE6C;AAE7D;;;;GAIG;AACH,wCAFU,MAAM,CAE2B;AAE3C;;;;GAIG;AACH,wCAFU,MAAM,CAE+B;AAE/C;;;;GAIG;AACH,6CAFU,MAAM,CAEoC;AAEpD;;;;GAIG;AACH,8CAFU,MAAM,CAEmC;AACnD,iDAAkD;AAElD;;;;;GAKG;AACH,oDAFU,MAAM,CAEyC;AACzD,mDAAoD;AAEpD;;;;;GAKG;AACH,4DAFU,MAAM,CAEiD;AACjE,2DAA4D;AAE5D;;;GAGG;AACH,kDAFU,MAAM,CAEqC;AAErD;;;;;;;;;;GAUG;AACH,2CAA4C;AAC5C,0CAA2C;AAC3C,uCAAwC;AACxC,wCAAyC;AACzC,uCAAwC;AACxC,uCAAwC;AACxC,8CAA+C;AAC/C,wCAAyC;AACzC,6CAA8C;AAE9C;;;GAGG;AACH,wCAFU,MAAM,CAE2B;AAE3C;;;;GAIG;AACH,6CAA8C;AAC9C,8CAA+C;AAC/C,2CAA4C;AAC5C,iDAAkD;AAClD,mDAAoD;AACpD,uDAAwD;AACxD,6CAA8C;AAE9C;;;GAGG;AACH,8CAA+C;AAC/C,gDAAiD;AACjD,2CAA4C"}
|
|
@@ -31,27 +31,27 @@ export const SCREEN_PROBE_RAY_SLOT_BITS = 8;
|
|
|
31
31
|
export const SCREEN_PROBE_OCTAHEDRON_LIMIT = 16;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* The smallest octahedron a probe can have, n = 4, the bottom of
|
|
34
|
+
* The smallest octahedron a probe can have, n = 4, the bottom of the range a probe's octahedron takes (4 to 16).
|
|
35
35
|
* @type {number}
|
|
36
36
|
*/
|
|
37
37
|
export const SCREEN_PROBE_OCTAHEDRON_MINIMUM = 4;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* The plane weight's scale
|
|
40
|
+
* The plane weight's scale: a probe weighs `exp2(−k·r²)`, r its distance from the receiver's plane over the
|
|
41
41
|
* receiver's depth. ½ at r = 1%, 0.01 at r ≈ 2.6%.
|
|
42
42
|
* @type {number}
|
|
43
43
|
*/
|
|
44
44
|
export const SCREEN_PROBE_PLANE_WEIGHT_SCALE = 10000;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* A corner weighing no more than this is no corner
|
|
47
|
+
* A corner weighing no more than this is no corner: interpolation looks for an adaptive probe in its place,
|
|
48
48
|
* and a sum of weights under this is no light (the pixel is the temporal filter's to fill).
|
|
49
49
|
* @type {number}
|
|
50
50
|
*/
|
|
51
51
|
export const SCREEN_PROBE_WEIGHT_EPSILON = 0.01;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* The plane weight scale for the integration's jitter: a pixel's lookup moves only onto a pixel this coplanar
|
|
55
55
|
* with it, weight 0.01 at r ≈ 0.26%.
|
|
56
56
|
* @type {number}
|
|
57
57
|
*/
|
|
@@ -59,52 +59,50 @@ export const SCREEN_PROBE_JITTER_PLANE_WEIGHT_SCALE = 1000000;
|
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* A pixel around a probe adds its cosine lobe to the probe's BRDF while the probe's plane weight from it is past
|
|
62
|
-
* this
|
|
62
|
+
* this: r under 1.8% of the probe's depth.
|
|
63
63
|
* @type {number}
|
|
64
64
|
*/
|
|
65
65
|
export const SCREEN_PROBE_BRDF_PIXEL_WEIGHT = 0.1;
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
* away. One any of whose directions the BRDF density reaches this is held at it
|
|
70
|
-
* light ranks what the pixels' lobes keep and culls none of it; a texel the lobes
|
|
71
|
-
* bright enough to lift it.
|
|
68
|
+
* The least density a texel traces at. A texel whose density, its BRDF's times its light's (times n²), is under this
|
|
69
|
+
* gives its ray away. One any of whose directions the BRDF density reaches this is held at it
|
|
70
|
+
* (`screen_probe_brdf_keeps`), so the light ranks what the pixels' lobes keep and culls none of it; a texel the lobes
|
|
71
|
+
* do not keep stays where its light is bright enough to lift it.
|
|
72
72
|
* @type {number}
|
|
73
73
|
*/
|
|
74
74
|
export const SCREEN_PROBE_MIN_PDF = 0.1;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Frames the uniform probes' place in their tiles cycles over, a Hammersley set of points across the tile
|
|
78
|
-
* Lumen's `GetScreenTileJitter` does.
|
|
77
|
+
* Frames the uniform probes' place in their tiles cycles over, a Hammersley set of points across the tile.
|
|
79
78
|
* @type {number}
|
|
80
79
|
*/
|
|
81
80
|
export const SCREEN_PROBE_JITTER_PERIOD = 8;
|
|
82
81
|
|
|
83
82
|
/**
|
|
84
|
-
* The most a ray's radiance may hold, in the display's units (radiance times the exposure it was last shown at)
|
|
85
|
-
*
|
|
86
|
-
*
|
|
83
|
+
* The most a ray's radiance may hold, in the display's units (radiance times the exposure it was last shown at): the
|
|
84
|
+
* composite holds each ray to it, the fireflies of a sun glint or an emissive seen through a crack, and its fixed-point
|
|
85
|
+
* sums are scaled by it.
|
|
87
86
|
* @type {number}
|
|
88
87
|
*/
|
|
89
88
|
export const SCREEN_PROBE_MAX_RAY_INTENSITY = 40;
|
|
90
89
|
|
|
91
90
|
/**
|
|
92
|
-
* Steps of a screen trace through the depth buffer's hierarchy
|
|
93
|
-
*
|
|
91
|
+
* Steps of a screen trace through the depth buffer's hierarchy: a budget for one thread. A ray that spends them is a
|
|
92
|
+
* miss of the screen, which the bricks take on from where it got.
|
|
94
93
|
* @type {number}
|
|
95
94
|
*/
|
|
96
95
|
export const SCREEN_PROBE_SCREEN_TRACE_STEPS = 50;
|
|
97
96
|
|
|
98
97
|
/**
|
|
99
|
-
* How far behind the depth buffer a screen trace still counts as on the surface, as a share of the surface's depth
|
|
100
|
-
* Lumen's `HZBTraversal.RelativeDepthThickness`.
|
|
98
|
+
* How far behind the depth buffer a screen trace still counts as on the surface, as a share of the surface's depth.
|
|
101
99
|
* @type {number}
|
|
102
100
|
*/
|
|
103
101
|
export const SCREEN_PROBE_SCREEN_THICKNESS = 0.02;
|
|
104
102
|
|
|
105
103
|
/**
|
|
106
|
-
* The share of the screen, along each side, over which a screen hit fades to a miss
|
|
107
|
-
*
|
|
104
|
+
* The share of the screen, along each side, over which a screen hit fades to a miss: from 80% of the way from the
|
|
105
|
+
* centre to the edge, in screen position.
|
|
108
106
|
* @type {number}
|
|
109
107
|
*/
|
|
110
108
|
export const SCREEN_PROBE_SCREEN_EDGE = 0.2;
|
|
@@ -112,8 +110,7 @@ export const SCREEN_PROBE_SCREEN_EDGE = 0.2;
|
|
|
112
110
|
/**
|
|
113
111
|
* How far past its probe a ray is traced before the world-space probes answer for the rest, in spacings of the
|
|
114
112
|
* cascade the probe reads them from: the furthest a corner probe of its cage stands from the point it serves,
|
|
115
|
-
* relocation included, `PROBE_DEPTH_LIMIT`. Past it the ray has left every corner's cage
|
|
116
|
-
* cell's diagonal before its radiance cache takes them.
|
|
113
|
+
* relocation included, `PROBE_DEPTH_LIMIT`. Past it the ray has left every corner's cage.
|
|
117
114
|
* @type {number}
|
|
118
115
|
*/
|
|
119
116
|
export const SCREEN_PROBE_REACH_SPACINGS = PROBE_DEPTH_LIMIT;
|
|
@@ -127,22 +124,21 @@ export const SCREEN_PROBE_ORIGIN_STEPS = 3;
|
|
|
127
124
|
|
|
128
125
|
/**
|
|
129
126
|
* A ray hit something moving when the speeds of its hit and its probe differ by more than this share of the probe's
|
|
130
|
-
* depth, held to a metre from below
|
|
127
|
+
* depth, held to a metre from below.
|
|
131
128
|
* @type {number}
|
|
132
129
|
*/
|
|
133
130
|
export const SCREEN_PROBE_MOVING_SPEED = 0.005;
|
|
134
131
|
|
|
135
132
|
/**
|
|
136
133
|
* The temporal filter's history at a pixel is another surface when its depth differs from the one reprojected there
|
|
137
|
-
* by this share of the depth, dithered over ×½ to ×1½ and widened at grazing angles
|
|
138
|
-
* `Temporal.DistanceThreshold`.
|
|
134
|
+
* by this share of the depth, dithered over ×½ to ×1½ and widened at grazing angles.
|
|
139
135
|
* @type {number}
|
|
140
136
|
*/
|
|
141
137
|
export const SCREEN_PROBE_TEMPORAL_DISTANCE = 0.005;
|
|
142
138
|
|
|
143
139
|
/**
|
|
144
|
-
*
|
|
145
|
-
* its history the fast update ever drops.
|
|
140
|
+
* The temporal filter's fast update: the share of a pixel's light seen moving at which it takes its new light whole,
|
|
141
|
+
* and the most of its history the fast update ever drops.
|
|
146
142
|
* @type {number}
|
|
147
143
|
*/
|
|
148
144
|
export const SCREEN_PROBE_FAST_UPDATE_MOVING = 0.1;
|
|
@@ -151,8 +147,7 @@ export const SCREEN_PROBE_FAST_UPDATE_LIMIT = 0.9;
|
|
|
151
147
|
/**
|
|
152
148
|
* Where the screen probes' rough specular takes a surface's specular over from the world-space probes, by its
|
|
153
149
|
* perceptual roughness: the world probes' whole below `ROUGHNESS − FADE`, the screen probes' whole from `ROUGHNESS`,
|
|
154
|
-
* linear between.
|
|
155
|
-
* (0.1), its traced reflections being the world probes here.
|
|
150
|
+
* linear between.
|
|
156
151
|
* @type {number}
|
|
157
152
|
*/
|
|
158
153
|
export const SCREEN_PROBE_ROUGH_SPECULAR_ROUGHNESS = 0.4;
|
|
@@ -161,15 +156,14 @@ export const SCREEN_PROBE_ROUGH_SPECULAR_FADE = 0.1;
|
|
|
161
156
|
/**
|
|
162
157
|
* Where the rough specular stops sampling the probes' radiance along the GGX lobe and takes their irradiance at the
|
|
163
158
|
* bent normal over π instead, by perceptual roughness: sampled whole below `ROUGHNESS − FADE`, the irradiance whole
|
|
164
|
-
* from `ROUGHNESS`, linear between.
|
|
165
|
-
* `GetDiffuseLerp`'s fade (0.2).
|
|
159
|
+
* from `ROUGHNESS`, linear between.
|
|
166
160
|
* @type {number}
|
|
167
161
|
*/
|
|
168
162
|
export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLED_ROUGHNESS = 0.8;
|
|
169
163
|
export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLED_FADE = 0.2;
|
|
170
164
|
|
|
171
165
|
/**
|
|
172
|
-
* Directions a pixel's rough specular draws from the GGX lobe a frame
|
|
166
|
+
* Directions a pixel's rough specular draws from the GGX lobe a frame.
|
|
173
167
|
* @type {number}
|
|
174
168
|
*/
|
|
175
169
|
export const SCREEN_PROBE_ROUGH_SPECULAR_SAMPLES = 4;
|
|
@@ -250,9 +244,8 @@ export function screen_probe_adaptive_tile_capacity(levels) {
|
|
|
250
244
|
/**
|
|
251
245
|
* @param {number} uniform_count uniform probes
|
|
252
246
|
* @param {number} levels of adaptive placement
|
|
253
|
-
* @returns {number} adaptive probe slots: as many as the uniform probes,
|
|
254
|
-
*
|
|
255
|
-
* breaks up; none without adaptive levels
|
|
247
|
+
* @returns {number} adaptive probe slots: as many as the uniform probes, so a frame's probes are never more than twice
|
|
248
|
+
* the uniform ones however finely the view's depth breaks up; none without adaptive levels
|
|
256
249
|
*/
|
|
257
250
|
export function screen_probe_adaptive_capacity(uniform_count, levels) {
|
|
258
251
|
return levels > 0 ? uniform_count : 0;
|
|
@@ -18,23 +18,21 @@ export class ScreenProbeSettings {
|
|
|
18
18
|
set downsample_factor(v: number);
|
|
19
19
|
/**
|
|
20
20
|
* Pixels between the uniform probes along each axis: one probe stands on the G-buffer in every square tile of
|
|
21
|
-
* this many pixels a side
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Structure.
|
|
21
|
+
* this many pixels a side. Adaptive probes fill in between where interpolating the uniform ones would cross an
|
|
22
|
+
* edge ({@link adaptive_min_downsample_factor}). Every ray a probe casts and every pixel's interpolation scale with
|
|
23
|
+
* the count, so the cost goes as the inverse square of this. Structure.
|
|
25
24
|
* @returns {number}
|
|
26
25
|
*/
|
|
27
26
|
get downsample_factor(): number;
|
|
28
27
|
/**
|
|
29
|
-
* @param {number} v 4, 8 or 16
|
|
30
|
-
*
|
|
28
|
+
* @param {number} v 4, 8 or 16, the top being what a probe's workgroup sorts and accumulates in its memory
|
|
29
|
+
* (`SCREEN_PROBE_OCTAHEDRON_MINIMUM`, `SCREEN_PROBE_OCTAHEDRON_LIMIT`)
|
|
31
30
|
*/
|
|
32
31
|
set octahedron_resolution(v: number);
|
|
33
32
|
/**
|
|
34
33
|
* Texels a side of a probe's radiance, over the sphere by Clarberg's equal-area map: each probe casts this
|
|
35
|
-
* squared rays a frame, one a texel
|
|
36
|
-
*
|
|
37
|
-
* Structure.
|
|
34
|
+
* squared rays a frame, one a texel. With importance sampling a ray may instead stand in a quarter of a texel at
|
|
35
|
+
* twice this resolution, where the probe's light is brightest. Structure.
|
|
38
36
|
* @returns {number}
|
|
39
37
|
*/
|
|
40
38
|
get octahedron_resolution(): number;
|
|
@@ -43,10 +41,10 @@ export class ScreenProbeSettings {
|
|
|
43
41
|
*/
|
|
44
42
|
set adaptive_min_downsample_factor(v: number);
|
|
45
43
|
/**
|
|
46
|
-
* The finest spacing adaptive probes are placed at, in pixels
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
44
|
+
* The finest spacing adaptive probes are placed at, in pixels. Placement runs at half the
|
|
45
|
+
* {@link downsample_factor}, then a quarter, while the spacing is at least this: a pixel on that finer grid gets a
|
|
46
|
+
* probe where the probes already placed would not interpolate to it. At or above the downsample factor no adaptive
|
|
47
|
+
* probe is placed.
|
|
50
48
|
* @returns {number}
|
|
51
49
|
*/
|
|
52
50
|
get adaptive_min_downsample_factor(): number;
|
|
@@ -55,7 +53,7 @@ export class ScreenProbeSettings {
|
|
|
55
53
|
*/
|
|
56
54
|
set importance_sampling(v: boolean);
|
|
57
55
|
/**
|
|
58
|
-
* Whether a probe's rays follow where its light comes from (
|
|
56
|
+
* Whether a probe's rays follow where its light comes from (structured importance sampling): each texel
|
|
59
57
|
* is weighed by the cosine lobes of the pixels around the probe and by the light the probe's history saw there;
|
|
60
58
|
* the rays of texels the pixels cannot see go, three at a time, to split the brightest texels into four. Off,
|
|
61
59
|
* every texel takes one ray. Takes effect the next frame.
|
|
@@ -78,10 +76,10 @@ export class ScreenProbeSettings {
|
|
|
78
76
|
*/
|
|
79
77
|
set rough_specular(v: boolean);
|
|
80
78
|
/**
|
|
81
|
-
* Whether the probes light the specular of rough surfaces
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
79
|
+
* Whether the probes light the specular of rough surfaces: each pixel's radiance along its GGX lobe from the
|
|
80
|
+
* probes' radiance, the probes' irradiance over π for the roughest, taking the specular over from the world-space
|
|
81
|
+
* probes by roughness (`SCREEN_PROBE_ROUGH_SPECULAR_ROUGHNESS`). Off, the world-space probes light every surface's
|
|
82
|
+
* specular. Takes effect the next frame.
|
|
85
83
|
* @returns {boolean}
|
|
86
84
|
*/
|
|
87
85
|
get rough_specular(): boolean;
|
|
@@ -90,9 +88,8 @@ export class ScreenProbeSettings {
|
|
|
90
88
|
*/
|
|
91
89
|
set spatial_filter_passes(v: number);
|
|
92
90
|
/**
|
|
93
|
-
* Passes of the filter between neighbouring probes
|
|
94
|
-
*
|
|
95
|
-
* Takes effect the next frame.
|
|
91
|
+
* Passes of the filter between neighbouring probes: each texel takes its four neighbours' along the same direction
|
|
92
|
+
* where they stand on its surface and saw the same point. Zero records none. Takes effect the next frame.
|
|
96
93
|
* @returns {number}
|
|
97
94
|
*/
|
|
98
95
|
get spatial_filter_passes(): number;
|
|
@@ -101,9 +98,9 @@ export class ScreenProbeSettings {
|
|
|
101
98
|
*/
|
|
102
99
|
set temporal_frames(v: number);
|
|
103
100
|
/**
|
|
104
|
-
* The most frames the temporal filter averages a pixel's diffuse and rough specular over
|
|
105
|
-
*
|
|
106
|
-
*
|
|
101
|
+
* The most frames the temporal filter averages a pixel's diffuse and rough specular over: a pixel whose history
|
|
102
|
+
* holds blends its new light by 1 / (1 + frames). Where the probes' rays saw something move, it takes fewer.
|
|
103
|
+
* Takes effect the next frame.
|
|
107
104
|
* @returns {number}
|
|
108
105
|
*/
|
|
109
106
|
get temporal_frames(): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenProbeSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH;
|
|
1
|
+
{"version":3,"file":"ScreenProbeSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/screen_probe/ScreenProbeSettings.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH;IAeI;;OAEG;IACH,iCAKC;IAnBD;;;;;;OAMG;IACH,gCAEC;IAwBD;;;OAGG;IACH,qCAKC;IAnBD;;;;;OAKG;IACH,oCAEC;IA0BD;;OAEG;IACH,8CAKC;IAnBD;;;;;;OAMG;IACH,6CAEC;IAyBD;;OAEG;IACH,oCAIC;IAlBD;;;;;;OAMG;IACH,mCAEC;IAuBD;;OAEG;IACH,8BAIC;IAjBD;;;;;OAKG;IACH,6BAEC;IAwBD;;OAEG;IACH,+BAIC;IAlBD;;;;;;OAMG;IACH,8BAEC;IAsBD;;OAEG;IACH,qCAIC;IAhBD;;;;OAIG;IACH,oCAEC;IAuBD;;OAEG;IACH,+BAKC;IAlBD;;;;;OAKG;IACH,8BAEC;IAuBD;;OAEG;IACH,0BAIC;IAhBD;;;;OAIG;IACH,yBAEC;IAWD;;;;OAIG;IACH,YAFW,mBAAmB,QAY7B;;CACJ"}
|
|
@@ -22,10 +22,9 @@ export class ScreenProbeSettings {
|
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Pixels between the uniform probes along each axis: one probe stands on the G-buffer in every square tile of
|
|
25
|
-
* this many pixels a side
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* Structure.
|
|
25
|
+
* this many pixels a side. Adaptive probes fill in between where interpolating the uniform ones would cross an
|
|
26
|
+
* edge ({@link adaptive_min_downsample_factor}). Every ray a probe casts and every pixel's interpolation scale with
|
|
27
|
+
* the count, so the cost goes as the inverse square of this. Structure.
|
|
29
28
|
* @returns {number}
|
|
30
29
|
*/
|
|
31
30
|
get downsample_factor() {
|
|
@@ -46,9 +45,8 @@ export class ScreenProbeSettings {
|
|
|
46
45
|
|
|
47
46
|
/**
|
|
48
47
|
* Texels a side of a probe's radiance, over the sphere by Clarberg's equal-area map: each probe casts this
|
|
49
|
-
* squared rays a frame, one a texel
|
|
50
|
-
*
|
|
51
|
-
* Structure.
|
|
48
|
+
* squared rays a frame, one a texel. With importance sampling a ray may instead stand in a quarter of a texel at
|
|
49
|
+
* twice this resolution, where the probe's light is brightest. Structure.
|
|
52
50
|
* @returns {number}
|
|
53
51
|
*/
|
|
54
52
|
get octahedron_resolution() {
|
|
@@ -56,8 +54,8 @@ export class ScreenProbeSettings {
|
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
/**
|
|
59
|
-
* @param {number} v 4, 8 or 16
|
|
60
|
-
*
|
|
57
|
+
* @param {number} v 4, 8 or 16, the top being what a probe's workgroup sorts and accumulates in its memory
|
|
58
|
+
* (`SCREEN_PROBE_OCTAHEDRON_MINIMUM`, `SCREEN_PROBE_OCTAHEDRON_LIMIT`)
|
|
61
59
|
*/
|
|
62
60
|
set octahedron_resolution(v) {
|
|
63
61
|
assert.isPositiveInteger(v, 'octahedron_resolution');
|
|
@@ -69,10 +67,10 @@ export class ScreenProbeSettings {
|
|
|
69
67
|
#adaptive_min_downsample_factor = 4;
|
|
70
68
|
|
|
71
69
|
/**
|
|
72
|
-
* The finest spacing adaptive probes are placed at, in pixels
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
70
|
+
* The finest spacing adaptive probes are placed at, in pixels. Placement runs at half the
|
|
71
|
+
* {@link downsample_factor}, then a quarter, while the spacing is at least this: a pixel on that finer grid gets a
|
|
72
|
+
* probe where the probes already placed would not interpolate to it. At or above the downsample factor no adaptive
|
|
73
|
+
* probe is placed.
|
|
76
74
|
* @returns {number}
|
|
77
75
|
*/
|
|
78
76
|
get adaptive_min_downsample_factor() {
|
|
@@ -92,7 +90,7 @@ export class ScreenProbeSettings {
|
|
|
92
90
|
#importance_sampling = true;
|
|
93
91
|
|
|
94
92
|
/**
|
|
95
|
-
* Whether a probe's rays follow where its light comes from (
|
|
93
|
+
* Whether a probe's rays follow where its light comes from (structured importance sampling): each texel
|
|
96
94
|
* is weighed by the cosine lobes of the pixels around the probe and by the light the probe's history saw there;
|
|
97
95
|
* the rays of texels the pixels cannot see go, three at a time, to split the brightest texels into four. Off,
|
|
98
96
|
* every texel takes one ray. Takes effect the next frame.
|
|
@@ -135,10 +133,10 @@ export class ScreenProbeSettings {
|
|
|
135
133
|
#rough_specular = true;
|
|
136
134
|
|
|
137
135
|
/**
|
|
138
|
-
* Whether the probes light the specular of rough surfaces
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
136
|
+
* Whether the probes light the specular of rough surfaces: each pixel's radiance along its GGX lobe from the
|
|
137
|
+
* probes' radiance, the probes' irradiance over π for the roughest, taking the specular over from the world-space
|
|
138
|
+
* probes by roughness (`SCREEN_PROBE_ROUGH_SPECULAR_ROUGHNESS`). Off, the world-space probes light every surface's
|
|
139
|
+
* specular. Takes effect the next frame.
|
|
142
140
|
* @returns {boolean}
|
|
143
141
|
*/
|
|
144
142
|
get rough_specular() {
|
|
@@ -157,9 +155,8 @@ export class ScreenProbeSettings {
|
|
|
157
155
|
#spatial_filter_passes = 3;
|
|
158
156
|
|
|
159
157
|
/**
|
|
160
|
-
* Passes of the filter between neighbouring probes
|
|
161
|
-
*
|
|
162
|
-
* Takes effect the next frame.
|
|
158
|
+
* Passes of the filter between neighbouring probes: each texel takes its four neighbours' along the same direction
|
|
159
|
+
* where they stand on its surface and saw the same point. Zero records none. Takes effect the next frame.
|
|
163
160
|
* @returns {number}
|
|
164
161
|
*/
|
|
165
162
|
get spatial_filter_passes() {
|
|
@@ -178,9 +175,9 @@ export class ScreenProbeSettings {
|
|
|
178
175
|
#temporal_frames = 10;
|
|
179
176
|
|
|
180
177
|
/**
|
|
181
|
-
* The most frames the temporal filter averages a pixel's diffuse and rough specular over
|
|
182
|
-
*
|
|
183
|
-
*
|
|
178
|
+
* The most frames the temporal filter averages a pixel's diffuse and rough specular over: a pixel whose history
|
|
179
|
+
* holds blends its new light by 1 / (1 + frames). Where the probes' rays saw something move, it takes fewer.
|
|
180
|
+
* Takes effect the next frame.
|
|
184
181
|
* @returns {number}
|
|
185
182
|
*/
|
|
186
183
|
get temporal_frames() {
|
|
@@ -23,7 +23,7 @@ export const SCREEN_PROBE_RAY_STRUCT: WebGPUStruct;
|
|
|
23
23
|
export const SCREEN_PROBE_FRAME_RESOURCE: ShaderResourceDescriptor;
|
|
24
24
|
/**
|
|
25
25
|
* The factor the display multiplies radiance by ahead of its tone curve, as the last frame was shown: what the
|
|
26
|
-
* probes' radiance is pre-exposed by
|
|
26
|
+
* probes' radiance is pre-exposed by.
|
|
27
27
|
* @type {ShaderResourceDescriptor}
|
|
28
28
|
*/
|
|
29
29
|
export const SCREEN_PROBE_EXPOSURE_RESOURCE: ShaderResourceDescriptor;
|
|
@@ -84,7 +84,7 @@ export const SCREEN_PROBE_TRACE_HIT_READ_RESOURCE: ShaderResourceDescriptor;
|
|
|
84
84
|
/** @type {ShaderResourceDescriptor} */
|
|
85
85
|
export const SCREEN_PROBE_TRACE_HIT_WRITE_RESOURCE: ShaderResourceDescriptor;
|
|
86
86
|
/**
|
|
87
|
-
* Probe addressing, the probes' records and their rays' words
|
|
87
|
+
* Probe addressing, the probes' records and their rays' words:
|
|
88
88
|
*
|
|
89
89
|
* ```wgsl
|
|
90
90
|
* fn screen_probe_atlas(probe: u32) -> vec2<u32> // the probe's place in the atlas, in probes
|
|
@@ -106,8 +106,8 @@ export const SCREEN_PROBE_TRACE_HIT_WRITE_RESOURCE: ShaderResourceDescriptor;
|
|
|
106
106
|
* - **The atlas**: probe i at (i mod tile_count.x, i div tile_count.x), the uniform probes on their tiles and the
|
|
107
107
|
* adaptive ones in the rows below, a probe's n² texels at n times its place in every per-ray and per-texel texture.
|
|
108
108
|
* - **The plane weight**: `exp2(−k·(|n·p − d| / depth)²)`, `SCREEN_PROBE_PLANE_WEIGHT_SCALE`, the distance of a point
|
|
109
|
-
* from a receiver's plane over the receiver's depth
|
|
110
|
-
*
|
|
109
|
+
* from a receiver's plane over the receiver's depth, the plane the face normal's rather than the shading normal's, so
|
|
110
|
+
* a normal map does not part probes on one flat surface.
|
|
111
111
|
* - **A ray's info**: the texel at its level's resolution, 2n at level 0 and n at level 1, and the level.
|
|
112
112
|
* - **A ray's direction**: Clarberg's equal-area map at its texel plus the probe's jitter over the level's resolution,
|
|
113
113
|
* so a probe's texels all hold the same solid angle, 4π/n², and a child a quarter of it.
|
|
@@ -124,10 +124,10 @@ export const chunk_screen_probe: CodeChunk;
|
|
|
124
124
|
* fn screen_probe_ray_jitter(tile: vec2<u32>) -> vec2<f32>
|
|
125
125
|
* ```
|
|
126
126
|
*
|
|
127
|
-
* The spatio-temporal blue noise at the probe's tile and the frame
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
127
|
+
* The spatio-temporal blue noise at the probe's tile and the frame, shared by the tile's probes: neighbouring probes'
|
|
128
|
+
* jitters are spread apart, and a probe's spread over the frames the temporal filter averages. A uniform probe's tile
|
|
129
|
+
* is its place in the atlas; an adaptive probe's, the tile its pixel stands in (`pixel`, its record's), so a probe's
|
|
130
|
+
* noise is keyed by its screen tile. Every pass that places a probe's
|
|
131
131
|
* rays or reads them back by direction takes the tile from here.
|
|
132
132
|
*
|
|
133
133
|
* @type {CodeChunk}
|