@woosh/meep-engine 3.69.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 +45 -1
- package/MIGRATION_2_TO_3.md +1 -1
- package/build/bundle-worker-terrain.js +1 -1
- package/package.json +1 -1
- package/src/core/bvh8/build/BVH8Converter.d.ts +16 -0
- package/src/core/bvh8/build/BVH8Converter.d.ts.map +1 -1
- package/src/core/bvh8/build/BVH8Converter.js +64 -37
- package/src/core/bvh8/build/bvh8_assign_slots_greedy.d.ts +25 -0
- package/src/core/bvh8/build/bvh8_assign_slots_greedy.d.ts.map +1 -0
- package/src/core/bvh8/build/bvh8_assign_slots_greedy.js +68 -0
- package/src/core/bvh8/build/bvh8_from_proxy.d.ts.map +1 -1
- package/src/core/bvh8/build/bvh8_from_proxy.js +2 -33
- package/src/core/bvh8/build/bvh8_node_fit_slots.d.ts +22 -0
- package/src/core/bvh8/build/bvh8_node_fit_slots.d.ts.map +1 -0
- package/src/core/bvh8/build/bvh8_node_fit_slots.js +115 -0
- package/src/core/bvh8/bvh8_depth.d.ts +8 -0
- package/src/core/bvh8/bvh8_depth.d.ts.map +1 -0
- package/src/core/bvh8/bvh8_depth.js +39 -0
- package/src/core/math/complex/complex_fft_radix2.d.ts +19 -0
- package/src/core/math/complex/complex_fft_radix2.d.ts.map +1 -0
- package/src/core/math/complex/complex_fft_radix2.js +71 -0
- package/src/engine/graphics3/GPUFluidSystem.d.ts +17 -4
- package/src/engine/graphics3/GPUFluidSystem.d.ts.map +1 -1
- package/src/engine/graphics3/GPUFluidSystem.js +113 -16
- package/src/engine/graphics3/VolumetricLightMapSystem.d.ts +1 -1
- package/src/engine/graphics3/VolumetricLightMapSystem.js +261 -261
- package/src/engine/physics/cloth/playground/wind_main.js +7 -6
- package/src/engine/physics/cloth/wind/AbstractClothWind.d.ts +2 -2
- package/src/engine/physics/cloth/wind/AbstractClothWind.js +2 -2
- package/src/engine/physics/cloth/wind/ClothFluidWind.d.ts +3 -3
- package/src/engine/physics/cloth/wind/ClothFluidWind.d.ts.map +1 -1
- package/src/engine/physics/cloth/wind/ClothFluidWind.js +7 -9
- package/src/engine/physics/cloth/wind/ClothGPUFluidWind.d.ts +10 -10
- package/src/engine/physics/cloth/wind/ClothGPUFluidWind.d.ts.map +1 -1
- package/src/engine/physics/cloth/wind/ClothGPUFluidWind.js +14 -22
- package/src/engine/physics/fluid/FluidAtmosphere.d.ts +16 -2
- package/src/engine/physics/fluid/FluidAtmosphere.d.ts.map +1 -1
- package/src/engine/physics/fluid/FluidAtmosphere.js +17 -3
- package/src/engine/physics/fluid/ecs/FluidEffectorsComponentSerializationAdapter.d.ts +1 -2
- package/src/engine/physics/fluid/ecs/FluidEffectorsComponentSerializationAdapter.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/FluidEffectorsComponentSerializationAdapter.js +1 -2
- package/src/engine/physics/fluid/ecs/FluidEffectorsSystem.d.ts +8 -5
- package/src/engine/physics/fluid/ecs/FluidEffectorsSystem.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/FluidEffectorsSystem.js +60 -17
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
- package/src/engine/physics/fluid/effector/AbstractFluidEffector.d.ts +1 -1
- package/src/engine/physics/fluid/effector/AbstractFluidEffector.js +1 -1
- package/src/engine/physics/fluid/effector/GlobalFluidEffector.d.ts +33 -47
- package/src/engine/physics/fluid/effector/GlobalFluidEffector.d.ts.map +1 -1
- package/src/engine/physics/fluid/effector/GlobalFluidEffector.js +38 -176
- package/src/engine/physics/fluid/effector/GlobalFluidEffectorSerializationAdapter.d.ts +8 -11
- package/src/engine/physics/fluid/effector/GlobalFluidEffectorSerializationAdapter.d.ts.map +1 -1
- package/src/engine/physics/fluid/effector/GlobalFluidEffectorSerializationAdapter.js +13 -24
- package/src/engine/physics/fluid/effector/GlobalFluidEffectorSerializationUpgrader_0_1.d.ts +16 -0
- package/src/engine/physics/fluid/effector/GlobalFluidEffectorSerializationUpgrader_0_1.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/GlobalFluidEffectorSerializationUpgrader_0_1.js +35 -0
- package/src/engine/physics/fluid/fluid_apply_atmosphere.d.ts +1 -1
- package/src/engine/physics/fluid/fluid_apply_atmosphere.js +1 -1
- package/src/engine/physics/fluid/turbulence/FLUID_TURBULENCE_TILE.d.ts +28 -0
- package/src/engine/physics/fluid/turbulence/FLUID_TURBULENCE_TILE.d.ts.map +1 -0
- package/src/engine/physics/fluid/turbulence/FLUID_TURBULENCE_TILE.js +29 -0
- package/src/engine/physics/fluid/turbulence/fluid_atmosphere_velocity_at.d.ts +16 -0
- package/src/engine/physics/fluid/turbulence/fluid_atmosphere_velocity_at.d.ts.map +1 -0
- package/src/engine/physics/fluid/turbulence/fluid_atmosphere_velocity_at.js +49 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_inverse_tile_size.d.ts +11 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_inverse_tile_size.d.ts.map +1 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_inverse_tile_size.js +18 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_tile_data.d.ts +25 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_tile_data.d.ts.map +1 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_tile_data.js +65 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_tile_generate.d.ts +56 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_tile_generate.d.ts.map +1 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_tile_generate.js +313 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_tile_sample.d.ts +16 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_tile_sample.d.ts.map +1 -0
- package/src/engine/physics/fluid/turbulence/fluid_turbulence_tile_sample.js +69 -0
- 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/generation/foliage/mesh/branch_ring_triangulate.d.ts +1 -1
- package/src/generation/foliage/mesh/branch_ring_triangulate.js +1 -1
- package/src/shade/playground/bvh_repro/README.md +8 -6
- package/src/shade/playground/bvh_repro/index.html +125 -124
- package/src/shade/playground/bvh_repro/main.js +259 -254
- package/src/shade/playground/foliage_wind/foliage_world.d.ts.map +1 -1
- package/src/shade/playground/foliage_wind/foliage_world.js +7 -4
- package/src/shade/playground/grass_surfaces/main.js +3 -2
- package/src/shade/playground/particle_ecs/bonfire_wind.d.ts +23 -13
- package/src/shade/playground/particle_ecs/bonfire_wind.d.ts.map +1 -1
- package/src/shade/playground/particle_ecs/bonfire_wind.js +30 -33
- package/src/shade/playground/skinned_blas_refit/README.md +26 -14
- package/src/shade/playground/skinned_blas_refit/shader_blas_audit_leaf_triangles.d.ts +14 -9
- package/src/shade/playground/skinned_blas_refit/shader_blas_audit_leaf_triangles.d.ts.map +1 -1
- package/src/shade/playground/skinned_blas_refit/shader_blas_audit_leaf_triangles.js +126 -127
- package/src/shade/playground/skinned_blas_refit/shader_blas_audit_points.js +95 -95
- package/src/shade/playground/skinned_blas_refit/shader_blas_audit_visibility.d.ts +9 -1
- package/src/shade/playground/skinned_blas_refit/shader_blas_audit_visibility.d.ts.map +1 -1
- package/src/shade/playground/skinned_blas_refit/shader_blas_audit_visibility.js +146 -135
- package/src/shade/playground/skinned_blas_refit/verify_clone_leaves.d.ts +6 -6
- package/src/shade/playground/skinned_blas_refit/verify_clone_leaves.d.ts.map +1 -1
- package/src/shade/playground/skinned_blas_refit/verify_clone_leaves.js +148 -134
- package/src/shade/playground/skinned_blas_refit/verify_leaf_triangles.d.ts +11 -8
- package/src/shade/playground/skinned_blas_refit/verify_leaf_triangles.d.ts.map +1 -1
- package/src/shade/playground/skinned_blas_refit/verify_leaf_triangles.js +342 -202
- package/src/shade/playground/skinned_blas_refit/verify_skinned_blas_refit.d.ts +12 -13
- package/src/shade/playground/skinned_blas_refit/verify_skinned_blas_refit.d.ts.map +1 -1
- package/src/shade/playground/skinned_blas_refit/verify_skinned_blas_refit.js +136 -116
- package/src/shade/playground/skinned_blas_refit/verify_traversal_reachability.d.ts +4 -4
- package/src/shade/playground/skinned_blas_refit/verify_traversal_reachability.d.ts.map +1 -1
- package/src/shade/playground/skinned_blas_refit/verify_traversal_reachability.js +255 -249
- package/src/shade/playground/water_surface/main.js +6 -3
- 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/animation/GPUAnimationManager.js +2 -2
- package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.d.ts.map +1 -1
- package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.js +7 -8
- 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/FLUID_FAR_FIELD_STRUCT.d.ts +111 -0
- package/src/shade/renderer/fluid/FLUID_FAR_FIELD_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/FLUID_FAR_FIELD_STRUCT.js +162 -0
- package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +40 -11
- package/src/shade/renderer/fluid/GPUFluidCascade.d.ts.map +1 -1
- package/src/shade/renderer/fluid/GPUFluidCascade.js +149 -47
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +11 -4
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts.map +1 -1
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.js +69 -10
- package/src/shade/renderer/fluid/chunk_fluid_far_field.d.ts +19 -0
- package/src/shade/renderer/fluid/chunk_fluid_far_field.d.ts.map +1 -0
- package/src/shade/renderer/fluid/chunk_fluid_far_field.js +43 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_PARENT_STRUCT.d.ts +10 -9
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_PARENT_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_PARENT_STRUCT.js +14 -12
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_RESTRICT_STRUCT.d.ts +3 -2
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_RESTRICT_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_RESTRICT_STRUCT.js +7 -5
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_epilogue.d.ts +17 -9
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_epilogue.d.ts.map +1 -1
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_epilogue.js +58 -18
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_parent.d.ts +23 -11
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_parent.d.ts.map +1 -1
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_parent.js +371 -335
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_fill.d.ts.map +1 -1
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_fill.js +2 -1
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_ghosts.d.ts.map +1 -1
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_ghosts.js +109 -108
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_restrict.d.ts +5 -3
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_restrict.d.ts.map +1 -1
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_restrict.js +24 -12
- package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +7 -7
- package/src/shade/renderer/fluid/mac/FLUID_MAC_STEP_STRUCT.d.ts +6 -2
- package/src/shade/renderer/fluid/mac/FLUID_MAC_STEP_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/fluid/mac/FLUID_MAC_STEP_STRUCT.js +10 -5
- package/src/shade/renderer/fluid/mac/FluidMacPasses.d.ts +20 -21
- package/src/shade/renderer/fluid/mac/FluidMacPasses.d.ts.map +1 -1
- package/src/shade/renderer/fluid/mac/FluidMacPasses.js +453 -427
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_advect_correct.d.ts.map +1 -1
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_advect_correct.js +2 -1
- package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
- package/src/shade/renderer/fluid/publish/FluidWindPublish.d.ts +13 -5
- package/src/shade/renderer/fluid/publish/FluidWindPublish.d.ts.map +1 -1
- package/src/shade/renderer/fluid/publish/FluidWindPublish.js +20 -10
- package/src/shade/renderer/fluid/publish/chunk_fluid_wind_publish_cell.d.ts +2 -2
- package/src/shade/renderer/fluid/publish/chunk_fluid_wind_publish_cell.js +2 -2
- package/src/shade/renderer/fluid/publish/shader_fluid_wind_publish.d.ts +5 -3
- package/src/shade/renderer/fluid/publish/shader_fluid_wind_publish.d.ts.map +1 -1
- package/src/shade/renderer/fluid/publish/shader_fluid_wind_publish.js +147 -142
- package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
- package/src/shade/renderer/fluid/query/GPUFluidQueries.js +2 -2
- package/src/shade/renderer/geometry/GPUGeometryManager.d.ts.map +1 -1
- package/src/shade/renderer/geometry/GPUGeometryManager.js +5 -7
- package/src/shade/renderer/geometry/MeshletGeometry.d.ts +4 -1
- package/src/shade/renderer/geometry/MeshletGeometry.d.ts.map +1 -1
- package/src/shade/renderer/geometry/MeshletGeometry.js +4 -1
- package/src/shade/renderer/geometry/MeshletGeometrySerializationAdapter.d.ts +20 -0
- package/src/shade/renderer/geometry/MeshletGeometrySerializationAdapter.d.ts.map +1 -1
- package/src/shade/renderer/geometry/MeshletGeometrySerializationAdapter.js +35 -3
- package/src/shade/renderer/geometry/blas_from_meshlets.d.ts +9 -3
- package/src/shade/renderer/geometry/blas_from_meshlets.d.ts.map +1 -1
- package/src/shade/renderer/geometry/blas_from_meshlets.js +16 -30
- package/src/shade/renderer/geometry/bvh/BLAS8_REFIT_TARGET_STRUCT.d.ts +14 -0
- package/src/shade/renderer/geometry/bvh/BLAS8_REFIT_TARGET_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/geometry/bvh/BLAS8_REFIT_TARGET_STRUCT.js +33 -0
- package/src/shade/renderer/geometry/bvh/GPUBLASRefitBatch.d.ts +18 -21
- package/src/shade/renderer/geometry/bvh/GPUBLASRefitBatch.d.ts.map +1 -1
- package/src/shade/renderer/geometry/bvh/GPUBLASRefitBatch.js +78 -158
- package/src/shade/renderer/geometry/bvh/GPUGeometryBVHManager.d.ts +18 -39
- package/src/shade/renderer/geometry/bvh/GPUGeometryBVHManager.d.ts.map +1 -1
- package/src/shade/renderer/geometry/bvh/GPUGeometryBVHManager.js +39 -398
- package/src/shade/renderer/geometry/bvh/GPUGeometryMeshletsBVH.d.ts +6 -7
- package/src/shade/renderer/geometry/bvh/GPUGeometryMeshletsBVH.d.ts.map +1 -1
- package/src/shade/renderer/geometry/bvh/GPUGeometryMeshletsBVH.js +5 -7
- package/src/shade/renderer/geometry/bvh/bvh8_build_for_meshlets.d.ts +36 -0
- package/src/shade/renderer/geometry/bvh/bvh8_build_for_meshlets.d.ts.map +1 -0
- package/src/shade/renderer/geometry/bvh/bvh8_build_for_meshlets.js +179 -0
- package/src/shade/renderer/geometry/bvh/meshlet_batch_to_clustered_bvh.d.ts +30 -0
- package/src/shade/renderer/geometry/bvh/meshlet_batch_to_clustered_bvh.d.ts.map +1 -0
- package/src/shade/renderer/geometry/bvh/meshlet_batch_to_clustered_bvh.js +207 -0
- package/src/shade/renderer/geometry/bvh/shader_blas8_refit_batch.d.ts +52 -0
- package/src/shade/renderer/geometry/bvh/shader_blas8_refit_batch.d.ts.map +1 -0
- package/src/shade/renderer/geometry/bvh/shader_blas8_refit_batch.js +464 -0
- package/src/shade/renderer/geometry/meshlet/MeshletBatch.d.ts +12 -0
- package/src/shade/renderer/geometry/meshlet/MeshletBatch.d.ts.map +1 -1
- package/src/shade/renderer/geometry/meshlet/MeshletBatch.js +37 -0
- package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_classify.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_classify.js +4 -4
- package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_evaluate.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/bake/shader_mesh_sdf_evaluate.js +2 -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 +2 -2
- package/src/shade/renderer/geometry/sdf/shader_sdf_visualize.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/shader_sdf_visualize.js +4 -4
- package/src/shade/renderer/geometry/sdf/surface/shader_mesh_surface_trace.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/surface/shader_mesh_surface_trace.js +2 -2
- package/src/shade/renderer/geometry/sr_create_group_RTX.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sr_create_group_RTX.js +4 -4
- package/src/shade/renderer/global_illumination/brick4/gpu/bake/brick4_bake_basic.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/bake/brick4_bake_basic.js +1 -0
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MESH_BRICK.d.ts +9 -10
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MESH_BRICK.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/MESH_BRICK.js +10 -11
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/chunk_mesh_brick_walk.d.ts +2 -2
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/chunk_mesh_brick_walk.js +2 -2
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/shader_mesh_brick_gather.d.ts +12 -8
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/shader_mesh_brick_gather.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/mesh/shader_mesh_brick_gather.js +109 -60
- package/src/shade/renderer/global_illumination/probe_clipmap/debug/graph_probe_clipmap_debug_mesh_sdf.js +2 -2
- package/src/shade/renderer/global_illumination/probe_clipmap/debug/graph_probe_clipmap_debug_mesh_surfaces.js +2 -2
- package/src/shade/renderer/gpu_primitive/bvh/BVH_BUFFER_LAYOUT.d.ts +2 -2
- package/src/shade/renderer/gpu_primitive/bvh/BVH_BUFFER_LAYOUT.js +70 -70
- package/src/shade/renderer/gpu_primitive/bvh/BVH_BUILD_SETTINGS_STRUCT.d.ts +6 -7
- package/src/shade/renderer/gpu_primitive/bvh/BVH_BUILD_SETTINGS_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/bvh/BVH_BUILD_SETTINGS_STRUCT.js +6 -7
- package/src/shade/renderer/gpu_primitive/bvh/graph_bvh_build_lbvh.d.ts +3 -3
- package/src/shade/renderer/gpu_primitive/bvh/graph_bvh_build_lbvh.js +3 -3
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_build_single_workgroup.js +1 -1
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_emit_hierarchy.d.ts +2 -2
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_emit_hierarchy.js +3 -3
- package/src/shade/renderer/gpu_primitive/bvh8/BVH8_TREE_BUFFER_LAYOUT.d.ts +69 -0
- package/src/shade/renderer/gpu_primitive/bvh8/BVH8_TREE_BUFFER_LAYOUT.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/BVH8_TREE_BUFFER_LAYOUT.js +89 -0
- package/src/shade/renderer/gpu_primitive/bvh8/bvh8_encode_from_bvh2.d.ts +41 -0
- package/src/shade/renderer/gpu_primitive/bvh8/bvh8_encode_from_bvh2.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/bvh8_encode_from_bvh2.js +348 -0
- package/src/shade/renderer/gpu_primitive/bvh8/check_bvh8_tree.d.ts +34 -0
- package/src/shade/renderer/gpu_primitive/bvh8/check_bvh8_tree.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/check_bvh8_tree.js +291 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_assign.d.ts +31 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_assign.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_assign.js +175 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_depth.d.ts +27 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_depth.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_depth.js +48 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_gather.d.ts +26 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_gather.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_gather.js +118 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_node.d.ts +22 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_node.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_node.js +143 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_sums.d.ts +36 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_sums.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/chunk_bvh8_encode_sums.js +97 -0
- package/src/shade/renderer/gpu_primitive/bvh8/graph_bvh8_encode_from_bvh2.d.ts +49 -0
- package/src/shade/renderer/gpu_primitive/bvh8/graph_bvh8_encode_from_bvh2.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/graph_bvh8_encode_from_bvh2.js +265 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_assign.d.ts +37 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_assign.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_assign.js +109 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_count.d.ts +15 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_count.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_count.js +85 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_count_single_workgroup.d.ts +26 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_count_single_workgroup.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_count_single_workgroup.js +200 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_parents.d.ts +19 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_parents.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_parents.js +81 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_write.d.ts +14 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_write.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/shader_bvh8_encode_write.js +101 -0
- package/src/shade/renderer/gpu_primitive/bvh8/verify_gpu_bvh8_encode.d.ts +19 -0
- package/src/shade/renderer/gpu_primitive/bvh8/verify_gpu_bvh8_encode.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh8/verify_gpu_bvh8_encode.js +361 -0
- package/src/shade/renderer/grass/surface/shader_grass_surface_bake.d.ts.map +1 -1
- package/src/shade/renderer/grass/surface/shader_grass_surface_bake.js +5 -6
- 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/lightmap/GPULightMap.d.ts.map +1 -1
- package/src/shade/renderer/lightmap/GPULightMap.js +1 -0
- package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
- package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.d.ts.map +1 -1
- package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.js +1 -0
- package/src/shade/renderer/path_tracer/graph_path_trace_scene.d.ts.map +1 -1
- package/src/shade/renderer/path_tracer/graph_path_trace_scene.js +1 -0
- 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/GPUInstancesAccelerationStructure.d.ts +8 -4
- package/src/shade/renderer/scene/GPUInstancesAccelerationStructure.d.ts.map +1 -1
- package/src/shade/renderer/scene/GPUInstancesAccelerationStructure.js +60 -33
- 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/scene/verify_gpu_tlas_build.d.ts +6 -6
- package/src/shade/renderer/scene/verify_gpu_tlas_build.d.ts.map +1 -1
- package/src/shade/renderer/scene/verify_gpu_tlas_build.js +23 -53
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/BVH8_INODE_STRUCT.d.ts +3 -1
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/BVH8_INODE_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/BVH8_INODE_STRUCT.js +5 -3
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/BVH8_MAX_DEPTH.d.ts +28 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/BVH8_MAX_DEPTH.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/BVH8_MAX_DEPTH.js +29 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_node_grid.d.ts +25 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_node_grid.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_node_grid.js +97 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_node_intersect.d.ts +8 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_node_intersect.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_node_intersect.js +23 -14
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_node_slot_distances.d.ts +36 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_node_slot_distances.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_node_slot_distances.js +222 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_ray_direction_rcp.d.ts +20 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_ray_direction_rcp.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_ray_direction_rcp.js +30 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_tree_read.d.ts +30 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_tree_read.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_tree_read.js +91 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_waiting_slots.d.ts +23 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_waiting_slots.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_waiting_slots.js +40 -0
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_blas_nearest.d.ts +22 -0
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_blas_nearest.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_blas_nearest.js +121 -70
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_blas_occluded.d.ts +13 -1
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_blas_occluded.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_blas_occluded.js +117 -61
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_nearest.d.ts +21 -0
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_nearest.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_nearest.js +111 -72
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_nearest_among.d.ts +1 -2
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_nearest_among.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_nearest_among.js +83 -54
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_occluded.d.ts +14 -0
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_occluded.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_ray_query_occluded.js +92 -60
- 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/sdf/chunk_point_query_blas_nearest.d.ts +22 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_point_query_blas_nearest.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/sdf/chunk_point_query_blas_nearest.js +153 -106
- package/src/shade/renderer/shader/chunk/sdf/chunk_scene_point_query_nearest.d.ts +21 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_scene_point_query_nearest.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/sdf/chunk_scene_point_query_nearest.js +115 -74
- package/src/shade/renderer/shader/chunk/sdf/chunk_scene_sdf_raymarch.d.ts +5 -2
- package/src/shade/renderer/shader/chunk/sdf/chunk_scene_sdf_raymarch.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/sdf/chunk_scene_sdf_raymarch.js +89 -63
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf_query_distance.d.ts +15 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf_query_distance.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf_query_distance.js +108 -63
- 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/shadow/sdf/chunk_ray_query_sdf_raycast.d.ts +14 -0
- package/src/shade/renderer/shadow/sdf/chunk_ray_query_sdf_raycast.d.ts.map +1 -1
- package/src/shade/renderer/shadow/sdf/chunk_ray_query_sdf_raycast.js +94 -60
- package/src/shade/renderer/shadow/sdf/graph_draw_sdf_shadows.d.ts.map +1 -1
- package/src/shade/renderer/shadow/sdf/graph_draw_sdf_shadows.js +4 -4
- 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/graph_build_volumetrics.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/water/query/shader_water_surface_query.d.ts.map +1 -1
- package/src/shade/renderer/water/query/shader_water_surface_query.js +227 -227
- package/src/shade/renderer/water/surface/particles/chunk_water_particle_step.d.ts.map +1 -1
- package/src/shade/renderer/water/surface/particles/chunk_water_particle_step.js +7 -4
- package/src/shade/renderer/water/surface/particles/shader_water_particles.js +2 -2
- package/src/shade/renderer/wind/GPUSceneWind.d.ts +37 -5
- package/src/shade/renderer/wind/GPUSceneWind.d.ts.map +1 -1
- package/src/shade/renderer/wind/GPUSceneWind.js +150 -4
- package/src/shade/renderer/wind/WIND_FIELD_STRUCT.d.ts +9 -3
- package/src/shade/renderer/wind/WIND_FIELD_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/wind/WIND_FIELD_STRUCT.js +13 -3
- package/src/shade/renderer/wind/WIND_FIELD_UNIFORM.d.ts +6 -6
- package/src/shade/renderer/wind/WIND_FIELD_UNIFORM.js +6 -6
- package/src/shade/renderer/wind/chunk_fluid_turbulence.d.ts +39 -0
- package/src/shade/renderer/wind/chunk_fluid_turbulence.d.ts.map +1 -0
- package/src/shade/renderer/wind/chunk_fluid_turbulence.js +63 -0
- package/src/shade/renderer/wind/chunk_wind_field_sample_cascades.d.ts +10 -7
- package/src/shade/renderer/wind/chunk_wind_field_sample_cascades.d.ts.map +1 -1
- package/src/shade/renderer/wind/chunk_wind_field_sample_cascades.js +34 -11
- package/src/shade/renderer/wind/chunk_wind_field_sample_uniform.d.ts +2 -2
- package/src/shade/renderer/wind/chunk_wind_field_sample_uniform.js +2 -2
- package/src/shade/renderer/wind/wind_field_add_resources.d.ts +6 -4
- package/src/shade/renderer/wind/wind_field_add_resources.d.ts.map +1 -1
- package/src/shade/renderer/wind/wind_field_add_resources.js +9 -6
- 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/geometry/bvh/BLAS_REFIT_TARGET_STRUCT.d.ts +0 -18
- package/src/shade/renderer/geometry/bvh/BLAS_REFIT_TARGET_STRUCT.d.ts.map +0 -1
- package/src/shade/renderer/geometry/bvh/BLAS_REFIT_TARGET_STRUCT.js +0 -50
- package/src/shade/renderer/geometry/bvh/bvh2_derive_topology.d.ts +0 -23
- package/src/shade/renderer/geometry/bvh/bvh2_derive_topology.d.ts.map +0 -1
- package/src/shade/renderer/geometry/bvh/bvh2_derive_topology.js +0 -87
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch.d.ts +0 -42
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch.d.ts.map +0 -1
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch.js +0 -141
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch_seed.d.ts +0 -21
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch_seed.d.ts.map +0 -1
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch_seed.js +0 -75
- package/src/shade/renderer/geometry/meshlet_batch_to_bvh.d.ts +0 -17
- package/src/shade/renderer/geometry/meshlet_batch_to_bvh.d.ts.map +0 -1
- package/src/shade/renderer/geometry/meshlet_batch_to_bvh.js +0 -247
- 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 -409
- 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 -377
- 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/bvh/bvh8/webgpu/chunk_bvh8_ray_query_blas_occlusion.d.ts +0 -7
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_ray_query_blas_occlusion.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_ray_query_blas_occlusion.js +0 -226
- 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_mask_visibility_via_rays.d.ts +0 -8
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mask_visibility_via_rays.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mask_visibility_via_rays.js +0 -45
- 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/shader/chunk/light/sample/chunk_ray_sample_light.d.ts +0 -3
- package/src/shade/renderer/shader/chunk/light/sample/chunk_ray_sample_light.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/light/sample/chunk_ray_sample_light.js +0 -105
- package/src/shade/renderer/shadow/sdf/chunk_ray_query_sdf_distance.d.ts +0 -6
- package/src/shade/renderer/shadow/sdf/chunk_ray_query_sdf_distance.d.ts.map +0 -1
- package/src/shade/renderer/shadow/sdf/chunk_ray_query_sdf_distance.js +0 -86
- package/src/shade/renderer/shadow/sdf/chunk_ray_query_sdf_raycast_traversal_count.d.ts +0 -2
- package/src/shade/renderer/shadow/sdf/chunk_ray_query_sdf_raycast_traversal_count.d.ts.map +0 -1
- package/src/shade/renderer/shadow/sdf/chunk_ray_query_sdf_raycast_traversal_count.js +0 -136
- /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
package/src/shade/renderer/shader/chunk/bvh/bvh8/webgpu/chunk_bvh8_ray_query_blas_occlusion.js
DELETED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { CodeChunk } from "../../../../compiler/CodeChunk.js";
|
|
2
|
-
import { chunk_extract_byte } from "../../../binary/chunk_extract_byte.js";
|
|
3
|
-
import { chunk_first_bit_high } from "../../../binary/chunk_first_bit_high.js";
|
|
4
|
-
import {
|
|
5
|
-
chunk_geometry_read_triangle_vertices
|
|
6
|
-
} from "../../../geometry/format/chunk_geometry_read_triangle_vertices.js";
|
|
7
|
-
import { chunk_ray_intersects_sphere } from "../../../geometry/ray/chunk_ray_intersects_sphere.js";
|
|
8
|
-
import { chunk_ray_triangle_intersect } from "../../../geometry/ray/chunk_ray_triangle_intersect.js";
|
|
9
|
-
import { RAY_STRUCT } from "../../../geometry/ray/RAY_STRUCT.js";
|
|
10
|
-
import { BVH8_INODE_STRUCT } from "./BVH8_INODE_STRUCT.js";
|
|
11
|
-
import { chunk_bvh8_node_intersect } from "./chunk_bvh8_node_intersect.js";
|
|
12
|
-
import { chunk_ray_get_octant_inv4 } from "./chunk_ray_get_octant_inv4.js";
|
|
13
|
-
|
|
14
|
-
const BVH_STACK_SIZE = 32;
|
|
15
|
-
/**
|
|
16
|
-
* Portion of the Stack that resides in Shared Memory
|
|
17
|
-
* Original paper "Efficient Incoherent Ray Traversal on GPUs Through Compressed Wide BVHs" recommends 12 to be the sweet spot, with 8 being close second
|
|
18
|
-
* The effect of shared stack becomes more pronounced for larger bounce counts
|
|
19
|
-
* @type {number}
|
|
20
|
-
*/
|
|
21
|
-
const SHARED_STACK_SIZE = 8;
|
|
22
|
-
|
|
23
|
-
const LOCAL_STACK_SIZE = (BVH_STACK_SIZE - SHARED_STACK_SIZE);
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* On shared memory:
|
|
27
|
-
* - it seems to be allocated separately, so it's a "use it or lose it" case. Although recent NVIDIA articles suggest otherwise
|
|
28
|
-
* - According to original paper, using shared stack improved memory access patterns, see "Efficient Incoherent Ray Traversal on GPUs Through Compressed Wide BVHs" Appendix A.3 table 9
|
|
29
|
-
* @type {CodeChunk}
|
|
30
|
-
*/
|
|
31
|
-
const chunk_bvh8_query_context = CodeChunk.from(
|
|
32
|
-
//language=WGSL
|
|
33
|
-
`
|
|
34
|
-
var<private> thread_idx : i32;
|
|
35
|
-
`
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
const chunk_bvh8_initialize_context = CodeChunk.from(
|
|
39
|
-
//language=WGSL
|
|
40
|
-
`
|
|
41
|
-
fn bvh8_initialize_context(invocation: vec3<u32>){
|
|
42
|
-
thread_idx = invocation.x;
|
|
43
|
-
}
|
|
44
|
-
`, [
|
|
45
|
-
chunk_bvh8_query_context
|
|
46
|
-
]
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* TODO consider transposing the layout, might result in better performance
|
|
51
|
-
* @see https://github.com/fynv/webpbf/blob/430c5832bd2199b8fe7e3c1a2d430392b1b991f5/client/raycast_depth.js#L177
|
|
52
|
-
* @type {CodeChunk}
|
|
53
|
-
*/
|
|
54
|
-
const chunk_bvh8_compute_shared_stack_index = CodeChunk.from(
|
|
55
|
-
//language=WGSL
|
|
56
|
-
`
|
|
57
|
-
fn bvh8_compute_shared_stack_index(offset: i32) -> i32 {
|
|
58
|
-
return thread_idx * ${SHARED_STACK_SIZE} + offset;
|
|
59
|
-
}
|
|
60
|
-
`
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @see https://github.com/jan-van-bergen/GPU-Raytracer/blob/6559ae2241c8fdea0ddaec959fe1a47ec9b3ab0d/Src/CUDA/Raytracing/BVH.h#L25
|
|
65
|
-
* @type {CodeChunk}
|
|
66
|
-
*/
|
|
67
|
-
const chunk_bvh8_stack_push = CodeChunk.from(
|
|
68
|
-
//language=WGSL
|
|
69
|
-
`
|
|
70
|
-
fn bvh8_stack_push(local_stack:ptr<function,array<vec2u,${LOCAL_STACK_SIZE}>>, stack_size: ptr<function,i32>, item: vec2u) {
|
|
71
|
-
|
|
72
|
-
local_stack[*stack_size] = item;
|
|
73
|
-
|
|
74
|
-
*stack_size++;
|
|
75
|
-
}
|
|
76
|
-
`, [
|
|
77
|
-
chunk_bvh8_query_context,
|
|
78
|
-
chunk_bvh8_compute_shared_stack_index,
|
|
79
|
-
]
|
|
80
|
-
);
|
|
81
|
-
/**
|
|
82
|
-
* https://github.com/jan-van-bergen/GPU-Raytracer/blob/6559ae2241c8fdea0ddaec959fe1a47ec9b3ab0d/Src/CUDA/Raytracing/BVH.h#L38
|
|
83
|
-
* @type {CodeChunk}
|
|
84
|
-
*/
|
|
85
|
-
const chunk_bvh8_stack_pop = CodeChunk.from(
|
|
86
|
-
//language=WGSL
|
|
87
|
-
`
|
|
88
|
-
fn bvh8_stack_pop(local_stack:ptr<function,array<vec2u,${LOCAL_STACK_SIZE}>>, stack_size: ptr<function,i32> ) -> vec2u{
|
|
89
|
-
|
|
90
|
-
*stack_size--;
|
|
91
|
-
|
|
92
|
-
return local_stack[*stack_size];
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
`, [
|
|
96
|
-
chunk_bvh8_query_context,
|
|
97
|
-
chunk_bvh8_compute_shared_stack_index,
|
|
98
|
-
]
|
|
99
|
-
);
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @see https://github.com/jan-van-bergen/GPU-Raytracer/blob/6559ae2241c8fdea0ddaec959fe1a47ec9b3ab0d/Src/CUDA/Raytracing/BVH8.h#L277
|
|
103
|
-
* @type {CodeChunk}
|
|
104
|
-
*/
|
|
105
|
-
export const chunk_bvh8_ray_query_blas_occlusion = CodeChunk.from(
|
|
106
|
-
//language=WGSL
|
|
107
|
-
`
|
|
108
|
-
fn bvh8_ray_query_blas_occlusion(
|
|
109
|
-
ray: ${RAY_STRUCT.wgsl_ref},
|
|
110
|
-
geometry_index: u32,
|
|
111
|
-
) -> bool {
|
|
112
|
-
|
|
113
|
-
let geometry = geometries[geometry_index];
|
|
114
|
-
|
|
115
|
-
let bounding_sphere = geometry.bounding_sphere;
|
|
116
|
-
|
|
117
|
-
if(!ray_intersects_sphere(ray, bounding_sphere.xyz, bounding_sphere.w)){
|
|
118
|
-
// typically this lets us get misses much quicker
|
|
119
|
-
return false;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
let blas_address = blas_lookup[geometry_index];
|
|
123
|
-
|
|
124
|
-
var stack: array<vec2u, ${LOCAL_STACK_SIZE}>;
|
|
125
|
-
var stack_size = 0;
|
|
126
|
-
|
|
127
|
-
let oct_inv4 = ray_get_octant_inv4(ray.direction);
|
|
128
|
-
|
|
129
|
-
// initialize 'current group' with the BLAS root
|
|
130
|
-
// Root is always traversed, first hits bit set to 1 all the rest 0s
|
|
131
|
-
// Current group |child node base index | hits | pad | imask |
|
|
132
|
-
// | 32 bits | 8 bits | 16 bits | 8 bits |
|
|
133
|
-
var current_group = vec2(0u, 0x80000000u);
|
|
134
|
-
|
|
135
|
-
loop {
|
|
136
|
-
// Triangle group |triangle base index | pad | triangle hits |
|
|
137
|
-
// | 32 bits | 8 bits | 24 bits |
|
|
138
|
-
var triangle_group : vec2u;
|
|
139
|
-
|
|
140
|
-
let hits_imask = current_group.y;
|
|
141
|
-
|
|
142
|
-
// Get first node hit
|
|
143
|
-
let child_index_offset = first_bit_high(hits_imask);
|
|
144
|
-
let child_index_base = current_group.x;
|
|
145
|
-
|
|
146
|
-
// Remove node from current_group
|
|
147
|
-
current_group.y &= ~(1u << child_index_offset);
|
|
148
|
-
|
|
149
|
-
// If the node group is not yet empty, push it on the stack
|
|
150
|
-
if ( (current_group.y & 0xff000000u) != 0 ) {
|
|
151
|
-
stack[stack_size] = current_group;
|
|
152
|
-
stack_size++;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
// reversing the traversal priority computation
|
|
156
|
-
let slot_index = (child_index_offset - 24u) ^ (oct_inv4 & 0xffu);
|
|
157
|
-
|
|
158
|
-
// Relative index of the node is obtained by computing the number of neighboring nodes
|
|
159
|
-
// stored in the lower child slots:
|
|
160
|
-
let relative_index = countOneBits(hits_imask & ~(0xffffffffu << slot_index));
|
|
161
|
-
let child_node_index = blas_address + child_index_base + relative_index;
|
|
162
|
-
|
|
163
|
-
let node: ${BVH8_INODE_STRUCT.wgsl_ref} = blas_data[child_node_index];
|
|
164
|
-
|
|
165
|
-
let hitmask = bvh8_node_intersect(ray, oct_inv4, node);
|
|
166
|
-
|
|
167
|
-
let imask = extract_byte( bitcast<u32>(node.data[0].w), 3);
|
|
168
|
-
|
|
169
|
-
current_group.x = bitcast<u32>(node.data[1].x); // Child base offset
|
|
170
|
-
triangle_group.x = bitcast<u32>(node.data[1].y); // Triangle base offset
|
|
171
|
-
|
|
172
|
-
current_group.y = (hitmask & 0xff000000u) | imask;
|
|
173
|
-
triangle_group.y = (hitmask & 0x00ffffffu);
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
// While the triangle group is not empty
|
|
177
|
-
// Intersect all triangles in the current node
|
|
178
|
-
while (triangle_group.y != 0u) {
|
|
179
|
-
|
|
180
|
-
// Get next triangle index and remove it from the list
|
|
181
|
-
let triangle_index = first_bit_high(triangle_group.y);
|
|
182
|
-
triangle_group.y &= ~(1u << triangle_index);
|
|
183
|
-
|
|
184
|
-
let tri_idx = triangle_group.x + triangle_index;
|
|
185
|
-
|
|
186
|
-
let triangle = geometry_read_triangle_vertices(geometry, tri_idx);
|
|
187
|
-
|
|
188
|
-
let intersection = ray_triangle_intersect(ray,triangle);
|
|
189
|
-
|
|
190
|
-
if (intersection) {
|
|
191
|
-
return true;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if ((current_group.y & 0xff000000u) == 0) {
|
|
197
|
-
if (stack_size == 0) {
|
|
198
|
-
// we didn't hit anything, stack is empty, bail
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// get next element on the stack
|
|
203
|
-
stack_size--;
|
|
204
|
-
current_group = stack[stack_size];
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
// no hit
|
|
210
|
-
return false;
|
|
211
|
-
}
|
|
212
|
-
`, [
|
|
213
|
-
BVH8_INODE_STRUCT.declaration_chunk,
|
|
214
|
-
RAY_STRUCT.declaration_chunk,
|
|
215
|
-
chunk_bvh8_stack_push,
|
|
216
|
-
chunk_bvh8_stack_pop,
|
|
217
|
-
chunk_bvh8_compute_shared_stack_index,
|
|
218
|
-
chunk_extract_byte,
|
|
219
|
-
chunk_ray_get_octant_inv4,
|
|
220
|
-
chunk_bvh8_node_intersect,
|
|
221
|
-
chunk_ray_triangle_intersect,
|
|
222
|
-
chunk_ray_intersects_sphere,
|
|
223
|
-
chunk_geometry_read_triangle_vertices,
|
|
224
|
-
chunk_first_bit_high,
|
|
225
|
-
]
|
|
226
|
-
);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is INVALID_NEIGHBOUR from tet mesh, shifted by 2 bits:
|
|
3
|
-
* 0xFFFFFFFF >>> 2 = 1073741823
|
|
4
|
-
*/
|
|
5
|
-
export const INVALID_TET_DECLARATION: CodeChunk;
|
|
6
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
7
|
-
//# sourceMappingURL=INVALID_TET_DECLARATION.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"INVALID_TET_DECLARATION.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/light/lpv/INVALID_TET_DECLARATION.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,gDAKE;0BAXwB,gCAAgC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* This is INVALID_NEIGHBOUR from tet mesh, shifted by 2 bits:
|
|
5
|
-
* 0xFFFFFFFF >>> 2 = 1073741823
|
|
6
|
-
*/
|
|
7
|
-
export const INVALID_TET_DECLARATION = CodeChunk.from(
|
|
8
|
-
//language=WGSL
|
|
9
|
-
`
|
|
10
|
-
const INVALID_TET = 1073741823u;
|
|
11
|
-
`
|
|
12
|
-
);
|
package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_interpolate_probe_irradiance8.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE: weights should add up to 1
|
|
3
|
-
* @type {CodeChunk}
|
|
4
|
-
*/
|
|
5
|
-
export const chunk_lpv_interpolate_probe_irradiance8: CodeChunk;
|
|
6
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
7
|
-
//# sourceMappingURL=chunk_lpv_interpolate_probe_irradiance8.d.ts.map
|
package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_interpolate_probe_irradiance8.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_lpv_interpolate_probe_irradiance8.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_interpolate_probe_irradiance8.js"],"names":[],"mappings":"AAIA;;;GAGG;AACH,sDAFU,SAAS,CA8BlB;0BApCyB,gCAAgC"}
|
package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_interpolate_probe_irradiance8.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
2
|
-
import { chunk_sh2_color_get_irradiance_at } from "../../spherical_harmonics/chunk_sh2_color_get_irradiance_at.js";
|
|
3
|
-
import { chunk_lpv_probe_get_data } from "./chunk_lpv_probe_get_data.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* NOTE: weights should add up to 1
|
|
7
|
-
* @type {CodeChunk}
|
|
8
|
-
*/
|
|
9
|
-
export const chunk_lpv_interpolate_probe_irradiance8 = CodeChunk.from(
|
|
10
|
-
//language=WGSL
|
|
11
|
-
`
|
|
12
|
-
fn lpv_interpolate_probe_irradiance8(
|
|
13
|
-
direction: vec3<f32>,
|
|
14
|
-
weights: array< f32, 8>,
|
|
15
|
-
probe_indices: array<u32, 8>
|
|
16
|
-
) -> vec3<f32> {
|
|
17
|
-
|
|
18
|
-
var combined_sh :array<vec3<f32>, 4>;
|
|
19
|
-
|
|
20
|
-
for( var i = 0; i < 8; i++){
|
|
21
|
-
|
|
22
|
-
let sh3 = lpv_probe_get_data(probe_indices[i]);
|
|
23
|
-
|
|
24
|
-
for( var c = 0; c < 4; c++){
|
|
25
|
-
combined_sh[c] += sh3[c] * weights[i];
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
let projected = sh2_color_get_irradiance_at(direction, combined_sh);
|
|
30
|
-
|
|
31
|
-
return projected;
|
|
32
|
-
}
|
|
33
|
-
`, [
|
|
34
|
-
chunk_sh2_color_get_irradiance_at,
|
|
35
|
-
chunk_lpv_probe_get_data,
|
|
36
|
-
]
|
|
37
|
-
)
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Perform visibility checks for probes using Raytracing
|
|
3
|
-
* see {@link chunk_lpv_sample_irradiance}
|
|
4
|
-
* @type {CodeChunk}
|
|
5
|
-
*/
|
|
6
|
-
export const chunk_lpv_mask_visibility_via_rays: CodeChunk;
|
|
7
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
8
|
-
//# sourceMappingURL=chunk_lpv_mask_visibility_via_rays.d.ts.map
|
package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mask_visibility_via_rays.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_lpv_mask_visibility_via_rays.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mask_visibility_via_rays.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,iDAFU,SAAS,CAmCb;0BA5CoB,gCAAgC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
2
|
-
import { chunk_offset_ray } from "../../geometry/ray/chunk_offset_ray.js";
|
|
3
|
-
import { chunk_ray_query_occluded } from "../../geometry/ray/chunk_ray_query_occluded.js";
|
|
4
|
-
import { RAY_STRUCT } from "../../geometry/ray/RAY_STRUCT.js";
|
|
5
|
-
import { chunk_f32_array_as_vec3 } from "../../geometry/vec3/chunk_f32_array_as_vec3.js";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Perform visibility checks for probes using Raytracing
|
|
9
|
-
* see {@link chunk_lpv_sample_irradiance}
|
|
10
|
-
* @type {CodeChunk}
|
|
11
|
-
*/
|
|
12
|
-
export const chunk_lpv_mask_visibility_via_rays = CodeChunk.from(
|
|
13
|
-
//language=WGSL
|
|
14
|
-
`
|
|
15
|
-
fn lpv_mask_visibility_via_rays(vertices:array<u32, 4>, position_ws: vec3<f32>, shading_normal: vec3<f32>) -> vec4<f32> {
|
|
16
|
-
var weights: vec4<f32> = vec4(1.0);
|
|
17
|
-
|
|
18
|
-
// do shadow rays towards tet corners
|
|
19
|
-
for(var i=0u; i < 4; i++){
|
|
20
|
-
let i_probe_index = vertices[i];
|
|
21
|
-
|
|
22
|
-
let i_probe = lpv_probes[i_probe_index];
|
|
23
|
-
let i_probe_position = f32_array_as_vec3(i_probe.position);
|
|
24
|
-
|
|
25
|
-
let to_probe = (i_probe_position - position_ws);
|
|
26
|
-
|
|
27
|
-
var shadow_ray:${RAY_STRUCT.wgsl_ref};
|
|
28
|
-
|
|
29
|
-
shadow_ray.direction = normalize(to_probe);
|
|
30
|
-
shadow_ray.origin = offset_ray(position_ws, shading_normal) + shadow_ray.direction * 1e-6;
|
|
31
|
-
shadow_ray.tmax = length(to_probe);
|
|
32
|
-
|
|
33
|
-
if(ray_query_occluded(shadow_ray)){
|
|
34
|
-
weights[i] = 0;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return weights;
|
|
39
|
-
}
|
|
40
|
-
`, [
|
|
41
|
-
RAY_STRUCT.declaration_chunk,
|
|
42
|
-
chunk_f32_array_as_vec3,
|
|
43
|
-
chunk_offset_ray,
|
|
44
|
-
chunk_ray_query_occluded,
|
|
45
|
-
])
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_lpv_mesh_get_barycentric_coordinates.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_barycentric_coordinates.js"],"names":[],"mappings":"AAKA,mEAqBE;0BA1BwB,gCAAgC"}
|
package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_barycentric_coordinates.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
2
|
-
import { chunk_tetrahedron_barycentric } from "../../geometry/tetrahedron/chunk_tetrahedron_barycentric.js";
|
|
3
|
-
import { chunk_lpv_mesh_get_vertices } from "./chunk_lpv_mesh_get_vertices.js";
|
|
4
|
-
import { chunk_lpv_probe_get_position } from "./chunk_lpv_probe_get_position.js";
|
|
5
|
-
|
|
6
|
-
export const chunk_lpv_mesh_get_barycentric_coordinates = CodeChunk.from(
|
|
7
|
-
//language=WGSL
|
|
8
|
-
`
|
|
9
|
-
fn lpv_mesh_get_barycentric_coordinates(tet_index: u32, position: vec3<f32>) -> vec4<f32>{
|
|
10
|
-
|
|
11
|
-
let vertices = lpv_mesh_get_vertices(tet_index);
|
|
12
|
-
|
|
13
|
-
let p0 = lpv_probe_get_position(vertices.x);
|
|
14
|
-
let p1 = lpv_probe_get_position(vertices.y);
|
|
15
|
-
let p2 = lpv_probe_get_position(vertices.z);
|
|
16
|
-
let p3 = lpv_probe_get_position(vertices.w);
|
|
17
|
-
|
|
18
|
-
return tetrahedron_barycentric(p0, p1, p2, p3, position);
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
`,
|
|
22
|
-
[
|
|
23
|
-
chunk_lpv_mesh_get_vertices,
|
|
24
|
-
chunk_lpv_probe_get_position,
|
|
25
|
-
chunk_tetrahedron_barycentric,
|
|
26
|
-
]
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_lpv_mesh_get_neighbours.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_neighbours.js"],"names":[],"mappings":"AAIA,sDAeE;0BAlBwB,gCAAgC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TETRAHEDRAL_MESH_CELL_STRUCT } from "../../../../global_illumination/lpv/TETRAHEDRAL_MESH_CELL_STRUCT.js";
|
|
2
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
3
|
-
import { chunk_u32_array_as_vec4 } from "../../geometry/vec4/chunk_f32_array_as_vec4.js";
|
|
4
|
-
|
|
5
|
-
export const chunk_lpv_mesh_get_neighbours = CodeChunk.from(
|
|
6
|
-
//language=WGSL
|
|
7
|
-
`
|
|
8
|
-
fn lpv_mesh_get_neighbours(tet_index: u32) -> vec4<u32>{
|
|
9
|
-
|
|
10
|
-
let cell = lpv_mesh[tet_index];
|
|
11
|
-
|
|
12
|
-
// shift to remove vertex index bits
|
|
13
|
-
return cell.neighbours >> vec4(2u);
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
`,
|
|
17
|
-
[
|
|
18
|
-
TETRAHEDRAL_MESH_CELL_STRUCT.declaration_chunk,
|
|
19
|
-
]
|
|
20
|
-
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_lpv_mesh_get_vertices.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_vertices.js"],"names":[],"mappings":"AAKA,oDAcE;0BAlBwB,gCAAgC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { TETRAHEDRAL_MESH_CELL_STRUCT } from "../../../../global_illumination/lpv/TETRAHEDRAL_MESH_CELL_STRUCT.js";
|
|
2
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
3
|
-
import { chunk_u32_array_as_vec4 } from "../../geometry/vec4/chunk_f32_array_as_vec4.js";
|
|
4
|
-
import { LPV_MESH_RESOURCE } from "../../../../global_illumination/probe/octahedral/LPV_SHADER_RESOURCE_GROUP.js";
|
|
5
|
-
|
|
6
|
-
export const chunk_lpv_mesh_get_vertices = CodeChunk.from(
|
|
7
|
-
//language=WGSL
|
|
8
|
-
`
|
|
9
|
-
fn lpv_mesh_get_vertices(tet_index: u32) -> vec4<u32>{
|
|
10
|
-
|
|
11
|
-
let cell = lpv_mesh[tet_index];
|
|
12
|
-
|
|
13
|
-
return cell.vertices;
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
`,
|
|
17
|
-
[
|
|
18
|
-
TETRAHEDRAL_MESH_CELL_STRUCT.declaration_chunk,
|
|
19
|
-
]
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
chunk_lpv_mesh_get_vertices.requireResource(LPV_MESH_RESOURCE);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_lpv_mesh_interpolate_probe.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe.js"],"names":[],"mappings":"AAKA,+CAcE;AAEF,yDA8BE;0BAnDwB,gCAAgC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
2
|
-
import { chunk_lpv_mesh_get_vertices } from "./chunk_lpv_mesh_get_vertices.js";
|
|
3
|
-
|
|
4
|
-
import { chunk_lpv_probe_get_data } from "./chunk_lpv_probe_get_data.js";
|
|
5
|
-
|
|
6
|
-
export const chunk_sh3_to_sh2_color = CodeChunk.from(
|
|
7
|
-
//language=WGSL
|
|
8
|
-
`
|
|
9
|
-
fn sh3_to_sh2_color(input: array<vec3<f32>,9>) -> array< vec3<f32>, 4 >{
|
|
10
|
-
// just truncate to first 2 harmonics
|
|
11
|
-
return array<vec3<f32>, 4>(
|
|
12
|
-
input[0],
|
|
13
|
-
input[1],
|
|
14
|
-
input[2],
|
|
15
|
-
input[3],
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
`
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
export const chunk_lpv_mesh_interpolate_probe = CodeChunk.from(
|
|
23
|
-
//language=WGSL
|
|
24
|
-
`
|
|
25
|
-
fn lpv_mesh_interpolate_probe(weights: vec4<f32>, tet:u32) -> array< vec3<f32>, 4 >{
|
|
26
|
-
let vertices = lpv_mesh_get_vertices(tet);
|
|
27
|
-
|
|
28
|
-
let probe0 = lpv_probe_get_data(vertices[0]);
|
|
29
|
-
let probe1 = lpv_probe_get_data(vertices[1]);
|
|
30
|
-
let probe2 = lpv_probe_get_data(vertices[2]);
|
|
31
|
-
let probe3 = lpv_probe_get_data(vertices[3]);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var result: array<vec3<f32>, 4>;
|
|
36
|
-
|
|
37
|
-
for (var i = 0; i < 4; i++) {
|
|
38
|
-
|
|
39
|
-
result[i] = probe0[i] * weights[0]
|
|
40
|
-
+ probe1[i] * weights[1]
|
|
41
|
-
+ probe2[i] * weights[2]
|
|
42
|
-
+ probe3[i] * weights[3];
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
|
-
`, [
|
|
49
|
-
chunk_lpv_mesh_get_vertices,
|
|
50
|
-
chunk_lpv_probe_get_data
|
|
51
|
-
]
|
|
52
|
-
);
|
|
53
|
-
|
package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Note that the result is already convolved with cosine lobe (irradiance).
|
|
3
|
-
* @type {CodeChunk}
|
|
4
|
-
*/
|
|
5
|
-
export const chunk_lpv_mesh_interpolate_probe_irradiance: CodeChunk;
|
|
6
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
7
|
-
//# sourceMappingURL=chunk_lpv_mesh_interpolate_probe_irradiance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_lpv_mesh_interpolate_probe_irradiance.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH,0DAFU,SAAS,CAoCjB;0BA7CwB,gCAAgC"}
|
package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
2
|
-
import { chunk_color_mix_4_linear } from "../../color/chunk_color_mix_4_linear.js";
|
|
3
|
-
import { chunk_sh2_color_get_irradiance_at } from "../../spherical_harmonics/chunk_sh2_color_get_irradiance_at.js";
|
|
4
|
-
import { chunk_lpv_mesh_get_vertices } from "./chunk_lpv_mesh_get_vertices.js";
|
|
5
|
-
import { chunk_lpv_probe_get_data } from "./chunk_lpv_probe_get_data.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Note that the result is already convolved with cosine lobe (irradiance).
|
|
10
|
-
* @type {CodeChunk}
|
|
11
|
-
*/
|
|
12
|
-
export const chunk_lpv_mesh_interpolate_probe_irradiance = CodeChunk.from(
|
|
13
|
-
//language=WGSL
|
|
14
|
-
`
|
|
15
|
-
fn lpv_mesh_interpolate_probe_irradiance(
|
|
16
|
-
direction: vec3<f32>,
|
|
17
|
-
weights: vec4<f32>,
|
|
18
|
-
tetrahedron: u32,
|
|
19
|
-
) -> vec3<f32> {
|
|
20
|
-
let vertices = lpv_mesh_get_vertices(tetrahedron);
|
|
21
|
-
|
|
22
|
-
// read SH coefficients
|
|
23
|
-
let probe0 = lpv_probe_get_data(vertices[0]);
|
|
24
|
-
let probe1 = lpv_probe_get_data(vertices[1]);
|
|
25
|
-
let probe2 = lpv_probe_get_data(vertices[2]);
|
|
26
|
-
let probe3 = lpv_probe_get_data(vertices[3]);
|
|
27
|
-
|
|
28
|
-
let irradiance_0 = sh2_color_get_irradiance_at(direction, probe0);
|
|
29
|
-
let irradiance_1 = sh2_color_get_irradiance_at(direction, probe1);
|
|
30
|
-
let irradiance_2 = sh2_color_get_irradiance_at(direction, probe2);
|
|
31
|
-
let irradiance_3 = sh2_color_get_irradiance_at(direction, probe3);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
let perceptual_mix = color_mix_4_linear(irradiance_0, irradiance_1, irradiance_2, irradiance_3, weights);
|
|
37
|
-
|
|
38
|
-
return perceptual_mix;
|
|
39
|
-
}
|
|
40
|
-
`, [
|
|
41
|
-
chunk_sh2_color_get_irradiance_at,
|
|
42
|
-
chunk_lpv_mesh_get_vertices,
|
|
43
|
-
chunk_lpv_probe_get_data,
|
|
44
|
-
chunk_color_mix_4_linear,
|
|
45
|
-
]
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Note that the result is already convolved with cosine lobe (irradiance).
|
|
3
|
-
* @type {CodeChunk}
|
|
4
|
-
*/
|
|
5
|
-
export const chunk_lpv_mesh_interpolate_probe_irradiance_pre: CodeChunk;
|
|
6
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
7
|
-
//# sourceMappingURL=chunk_lpv_mesh_interpolate_probe_irradiance_pre.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_lpv_mesh_interpolate_probe_irradiance_pre.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance_pre.js"],"names":[],"mappings":"AAQA;;;GAGG;AACH,8DAFU,SAAS,CAwBjB;0BAlCwB,gCAAgC"}
|
package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolate_probe_irradiance_pre.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { CodeChunk } from "../../../compiler/CodeChunk.js";
|
|
2
|
-
import { chunk_sh2_color_get_irradiance_at } from "../../spherical_harmonics/chunk_sh2_color_get_irradiance_at.js";
|
|
3
|
-
import {
|
|
4
|
-
chunk_sh3_color_get_irradiance_at
|
|
5
|
-
} from "../../spherical_harmonics/chunk_sh3_color_get_irradiance_at.js";
|
|
6
|
-
import { chunk_lpv_mesh_interpolation_probe_sh } from "./chunk_lpv_mesh_interpolation_probe_sh.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Note that the result is already convolved with cosine lobe (irradiance).
|
|
11
|
-
* @type {CodeChunk}
|
|
12
|
-
*/
|
|
13
|
-
export const chunk_lpv_mesh_interpolate_probe_irradiance_pre = CodeChunk.from(
|
|
14
|
-
//language=WGSL
|
|
15
|
-
`
|
|
16
|
-
fn lpv_mesh_interpolate_probe_irradiance(
|
|
17
|
-
direction: vec3<f32>,
|
|
18
|
-
weights: vec4<f32>,
|
|
19
|
-
tetrahedron: u32,
|
|
20
|
-
) -> vec3<f32> {
|
|
21
|
-
|
|
22
|
-
let mixed_sh = lpv_mesh_interpolation_probe_sh(
|
|
23
|
-
weights,
|
|
24
|
-
tetrahedron
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
let irradiance = sh2_color_get_irradiance_at(direction, mixed_sh);
|
|
28
|
-
|
|
29
|
-
return irradiance;
|
|
30
|
-
}
|
|
31
|
-
`, [
|
|
32
|
-
chunk_lpv_mesh_interpolation_probe_sh,
|
|
33
|
-
chunk_sh2_color_get_irradiance_at,
|
|
34
|
-
]
|
|
35
|
-
);
|
package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolation_probe_sh.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_lpv_mesh_interpolation_probe_sh.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_interpolation_probe_sh.js"],"names":[],"mappings":"AAMA,8DA+BC;0BArCyB,gCAAgC"}
|