@woosh/meep-engine 3.47.0 → 3.50.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/build/bundle-worker-terrain.js +1 -1
- package/editor/particles/effect/ParticleReferenceSimulation.d.ts +12 -2
- package/editor/particles/effect/ParticleReferenceSimulation.d.ts.map +1 -1
- package/editor/particles/effect/ParticleReferenceSimulation.js +30 -4
- package/editor/view/particles/effect/ParticleGraphEditorView.d.ts.map +1 -1
- package/editor/view/particles/effect/ParticleGraphEditorView.js +3 -1
- package/package.json +1 -1
- package/src/core/color/xyz/m3_rgb_to_xyz_from_primaries.d.ts +11 -0
- package/src/core/color/xyz/m3_rgb_to_xyz_from_primaries.d.ts.map +1 -0
- package/src/core/color/xyz/m3_rgb_to_xyz_from_primaries.js +40 -0
- package/src/core/geom/3d/mat4/m4_decompose_rigid_array.d.ts +24 -0
- package/src/core/geom/3d/mat4/m4_decompose_rigid_array.d.ts.map +1 -0
- package/src/core/geom/3d/mat4/m4_decompose_rigid_array.js +80 -0
- package/src/core/geom/3d/shape/PosedShape3D.d.ts +10 -0
- package/src/core/geom/3d/shape/PosedShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/PosedShape3D.js +50 -11
- package/src/core/geom/3d/shape/TransformedShape3D.d.ts +37 -0
- package/src/core/geom/3d/shape/TransformedShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/TransformedShape3D.js +73 -49
- package/src/core/geom/3d/shape/UnionShape3D.d.ts +13 -0
- package/src/core/geom/3d/shape/UnionShape3D.d.ts.map +1 -1
- package/src/core/geom/3d/shape/UnionShape3D.js +17 -4
- package/src/core/geom/3d/shape/record/ShapeRecord.d.ts +65 -0
- package/src/core/geom/3d/shape/record/ShapeRecord.d.ts.map +1 -0
- package/src/core/geom/3d/shape/record/ShapeRecord.js +72 -0
- package/src/core/geom/3d/shape/record/ShapeRecordKind.d.ts +13 -0
- package/src/core/geom/3d/shape/record/ShapeRecordKind.d.ts.map +1 -0
- package/src/core/geom/3d/shape/record/ShapeRecordKind.js +39 -0
- package/src/core/geom/3d/shape/record/shape_record_local_bounds.d.ts +19 -0
- package/src/core/geom/3d/shape/record/shape_record_local_bounds.d.ts.map +1 -0
- package/src/core/geom/3d/shape/record/shape_record_local_bounds.js +61 -0
- package/src/core/geom/3d/shape/record/shape_record_pack.d.ts +88 -0
- package/src/core/geom/3d/shape/record/shape_record_pack.d.ts.map +1 -0
- package/src/core/geom/3d/shape/record/shape_record_pack.js +418 -0
- package/src/core/geom/3d/shape/record/shape_record_pack_bounding_box.d.ts +23 -0
- package/src/core/geom/3d/shape/record/shape_record_pack_bounding_box.d.ts.map +1 -0
- package/src/core/geom/3d/shape/record/shape_record_pack_bounding_box.js +69 -0
- package/src/core/geom/3d/shape/record/shape_record_signed_distance.d.ts +52 -0
- package/src/core/geom/3d/shape/record/shape_record_signed_distance.d.ts.map +1 -0
- package/src/core/geom/3d/shape/record/shape_record_signed_distance.js +135 -0
- package/src/core/geom/3d/shape/sdf/sdf3_plane.d.ts +7 -0
- package/src/core/geom/3d/shape/sdf/sdf3_plane.d.ts.map +1 -1
- package/src/core/geom/3d/shape/sdf/sdf3_plane.js +7 -0
- package/src/core/geom/3d/shape/util/compute_signed_distance_gradient_by_sampling.d.ts +3 -0
- package/src/core/geom/3d/shape/util/compute_signed_distance_gradient_by_sampling.d.ts.map +1 -1
- package/src/core/geom/3d/shape/util/compute_signed_distance_gradient_by_sampling.js +19 -13
- package/src/core/geom/clipmap/ClipmapWindowSet.d.ts +141 -0
- package/src/core/geom/clipmap/ClipmapWindowSet.d.ts.map +1 -0
- package/src/core/geom/clipmap/ClipmapWindowSet.js +301 -0
- package/src/core/geom/clipmap/clipmap_select_finest.d.ts +20 -0
- package/src/core/geom/clipmap/clipmap_select_finest.d.ts.map +1 -0
- package/src/core/geom/clipmap/clipmap_select_finest.js +53 -0
- package/src/core/geom/clipmap/quantize_hysteretic.d.ts +22 -0
- package/src/core/geom/clipmap/quantize_hysteretic.d.ts.map +1 -0
- package/src/core/geom/clipmap/quantize_hysteretic.js +33 -0
- package/src/core/geom/clipmap/window_scroll_regions.d.ts +25 -0
- package/src/core/geom/clipmap/window_scroll_regions.d.ts.map +1 -0
- package/src/core/geom/clipmap/window_scroll_regions.js +83 -0
- package/src/core/geom/vec3/v3_clamp_to_cone.d.ts +59 -0
- package/src/core/geom/vec3/v3_clamp_to_cone.d.ts.map +1 -0
- package/src/core/geom/vec3/v3_clamp_to_cone.js +197 -0
- package/src/core/math/falloff_quadratic.d.ts +13 -0
- package/src/core/math/falloff_quadratic.d.ts.map +1 -0
- package/src/core/math/falloff_quadratic.js +20 -0
- package/src/core/math/physics/fluid/vortex_swirl.d.ts +40 -0
- package/src/core/math/physics/fluid/vortex_swirl.d.ts.map +1 -0
- package/src/core/math/physics/fluid/vortex_swirl.js +91 -0
- package/src/core/math/physics/kinematics/rigid_velocity_at_point.d.ts +27 -0
- package/src/core/math/physics/kinematics/rigid_velocity_at_point.d.ts.map +1 -0
- package/src/core/math/physics/kinematics/rigid_velocity_at_point.js +40 -0
- package/src/engine/EngineHarness.d.ts.map +1 -1
- package/src/engine/EngineHarness.js +6 -0
- package/src/engine/ecs/EntityComponentDataset.d.ts +48 -4
- package/src/engine/ecs/EntityComponentDataset.d.ts.map +1 -1
- package/src/engine/ecs/EntityComponentDataset.js +120 -11
- package/src/engine/ecs/async/WORKER_SYSTEM_PLAN.md +27 -11
- package/src/engine/ecs/fow/FogOfWarVisibilityPredicate.d.ts.map +1 -1
- package/src/engine/ecs/fow/FogOfWarVisibilityPredicate.js +1 -3
- package/src/engine/ecs/storage/populateEngineSerializationRegistry.d.ts.map +1 -1
- package/src/engine/ecs/storage/populateEngineSerializationRegistry.js +13 -0
- package/src/engine/ecs/terrain/util/obtainTerrain.d.ts.map +1 -1
- package/src/engine/ecs/terrain/util/obtainTerrain.js +5 -0
- package/src/engine/graphics/ecs/particles/ParticleEffect.d.ts +2 -2
- package/src/engine/graphics/ecs/particles/ParticleEffect.d.ts.map +1 -1
- package/src/engine/graphics/ecs/particles/ParticleEffect.js +7 -7
- package/src/engine/graphics/ecs/particles/ParticleEffectSerializationAdapter.d.ts +8 -0
- package/src/engine/graphics/ecs/particles/ParticleEffectSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/particles/ParticleEffectSerializationAdapter.js +11 -3
- package/src/engine/graphics/ecs/particles/ParticleEffectSerializationUpgrader_1_2.d.ts +26 -0
- package/src/engine/graphics/ecs/particles/ParticleEffectSerializationUpgrader_1_2.d.ts.map +1 -0
- package/src/engine/graphics/ecs/particles/ParticleEffectSerializationUpgrader_1_2.js +91 -0
- package/src/engine/graphics/ecs/water/WaterWaves.d.ts +8 -21
- package/src/engine/graphics/ecs/water/WaterWaves.d.ts.map +1 -1
- package/src/engine/graphics/ecs/water/WaterWaves.js +8 -31
- package/src/engine/graphics/ecs/water/WaterWavesSerializationAdapter.d.ts +4 -0
- package/src/engine/graphics/ecs/water/WaterWavesSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/ecs/water/WaterWavesSerializationAdapter.js +5 -5
- package/src/engine/graphics/ecs/water/WaterWavesSerializationUpgrader_1_2.d.ts +9 -0
- package/src/engine/graphics/ecs/water/WaterWavesSerializationUpgrader_1_2.d.ts.map +1 -0
- package/src/engine/graphics/ecs/water/WaterWavesSerializationUpgrader_1_2.js +19 -0
- package/src/engine/graphics/texture/3d/scs3d_sample_linear3.d.ts +21 -0
- package/src/engine/graphics/texture/3d/scs3d_sample_linear3.d.ts.map +1 -1
- package/src/engine/graphics/texture/3d/scs3d_sample_linear3.js +78 -0
- package/src/engine/graphics3/GPUFluidSystem.d.ts +266 -0
- package/src/engine/graphics3/GPUFluidSystem.d.ts.map +1 -0
- package/src/engine/graphics3/GPUFluidSystem.js +1613 -0
- package/src/engine/graphics3/GPUParticleEmitterSystem.js +2 -2
- package/src/engine/graphics3/GraphicsEngine.d.ts.map +1 -1
- package/src/engine/graphics3/GraphicsEngine.js +8 -1
- package/src/engine/graphics3/ParticipatingMedia.d.ts +90 -1
- package/src/engine/graphics3/ParticipatingMedia.d.ts.map +1 -1
- package/src/engine/graphics3/ParticipatingMedia.js +145 -5
- package/src/engine/graphics3/ParticipatingMediaSerializationAdapter.d.ts +6 -2
- package/src/engine/graphics3/ParticipatingMediaSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics3/ParticipatingMediaSerializationAdapter.js +29 -4
- package/src/engine/graphics3/ParticipatingMediaSerializationUpgrader_0_1.d.ts +10 -0
- package/src/engine/graphics3/ParticipatingMediaSerializationUpgrader_0_1.d.ts.map +1 -0
- package/src/engine/graphics3/ParticipatingMediaSerializationUpgrader_0_1.js +38 -0
- package/src/engine/graphics3/ParticipatingMediaSystem.d.ts +32 -22
- package/src/engine/graphics3/ParticipatingMediaSystem.d.ts.map +1 -1
- package/src/engine/graphics3/ParticipatingMediaSystem.js +236 -45
- package/src/engine/graphics3/WaterSystem.d.ts +9 -2
- package/src/engine/graphics3/WaterSystem.d.ts.map +1 -1
- package/src/engine/graphics3/WaterSystem.js +53 -15
- package/src/engine/network/NetworkSession.d.ts +16 -5
- package/src/engine/network/NetworkSession.d.ts.map +1 -1
- package/src/engine/network/NetworkSession.js +104 -7
- package/src/engine/network/README.md +27 -1
- package/src/engine/network/orchestrator/ServerAuthoritativeServer.d.ts +40 -18
- package/src/engine/network/orchestrator/ServerAuthoritativeServer.d.ts.map +1 -1
- package/src/engine/network/orchestrator/ServerAuthoritativeServer.js +180 -190
- package/src/engine/network/replication/Replicator.d.ts +15 -4
- package/src/engine/network/replication/Replicator.d.ts.map +1 -1
- package/src/engine/network/replication/Replicator.js +50 -16
- package/src/engine/network/state/RecordArrivalRing.d.ts +57 -0
- package/src/engine/network/state/RecordArrivalRing.d.ts.map +1 -0
- package/src/engine/network/state/RecordArrivalRing.js +144 -0
- package/src/engine/physics/cloth/MEASUREMENTS.md +393 -0
- package/src/engine/physics/cloth/PLAN.md +106 -7
- package/src/engine/physics/cloth/collider/ClothColliderKind.d.ts.map +1 -1
- package/src/engine/physics/cloth/collider/ClothColliderKind.js +14 -7
- package/src/engine/physics/cloth/collider/ClothColliderRecord.d.ts +19 -5
- package/src/engine/physics/cloth/collider/ClothColliderRecord.d.ts.map +1 -1
- package/src/engine/physics/cloth/collider/ClothColliderRecord.js +28 -5
- package/src/engine/physics/cloth/collider/cloth_collider_pack.d.ts +3 -2
- package/src/engine/physics/cloth/collider/cloth_collider_pack.d.ts.map +1 -1
- package/src/engine/physics/cloth/collider/cloth_collider_pack.js +26 -108
- package/src/engine/physics/cloth/collider/cloth_collider_sdf.d.ts +6 -5
- package/src/engine/physics/cloth/collider/cloth_collider_sdf.d.ts.map +1 -1
- package/src/engine/physics/cloth/collider/cloth_collider_sdf.js +18 -28
- package/src/engine/physics/cloth/ecs/ClothInstance.d.ts +6 -21
- package/src/engine/physics/cloth/ecs/ClothInstance.d.ts.map +1 -1
- package/src/engine/physics/cloth/ecs/ClothInstance.js +6 -22
- package/src/engine/physics/cloth/ecs/ClothSystem.d.ts +5 -3
- package/src/engine/physics/cloth/ecs/ClothSystem.d.ts.map +1 -1
- package/src/engine/physics/cloth/ecs/ClothSystem.js +10 -3
- package/src/engine/physics/cloth/ecs/ClothWorld.d.ts +38 -28
- package/src/engine/physics/cloth/ecs/ClothWorld.d.ts.map +1 -1
- package/src/engine/physics/cloth/ecs/ClothWorld.js +140 -43
- package/src/engine/physics/cloth/ecs/WorkerClothSystem.d.ts +2 -1
- package/src/engine/physics/cloth/ecs/WorkerClothSystem.d.ts.map +1 -1
- package/src/engine/physics/cloth/ecs/WorkerClothSystem.js +6 -1
- package/src/engine/physics/cloth/ecs/cloth_build_rows.d.ts.map +1 -1
- package/src/engine/physics/cloth/ecs/cloth_build_rows.js +20 -10
- package/src/engine/physics/cloth/playground/README.md +8 -4
- package/src/engine/physics/cloth/playground/collide.html +5 -3
- package/src/engine/physics/cloth/playground/collide_main.js +14 -13
- package/src/engine/physics/cloth/playground/wind.html +4 -4
- package/src/engine/physics/cloth/playground/wind_build.d.ts +3 -2
- package/src/engine/physics/cloth/playground/wind_build.d.ts.map +1 -1
- package/src/engine/physics/cloth/playground/wind_build.js +4 -3
- package/src/engine/physics/cloth/playground/wind_main.js +58 -19
- package/src/engine/physics/cloth/solver/ClothState.d.ts +30 -2
- package/src/engine/physics/cloth/solver/ClothState.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/ClothState.js +62 -4
- package/src/engine/physics/cloth/solver/cloth_self_find.d.ts +11 -3
- package/src/engine/physics/cloth/solver/cloth_self_find.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/cloth_self_find.js +52 -11
- package/src/engine/physics/cloth/solver/cloth_self_radius.d.ts +42 -0
- package/src/engine/physics/cloth/solver/cloth_self_radius.d.ts.map +1 -0
- package/src/engine/physics/cloth/solver/cloth_self_radius.js +64 -0
- package/src/engine/physics/cloth/solver/cloth_solver_constants.d.ts +99 -24
- package/src/engine/physics/cloth/solver/cloth_solver_constants.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/cloth_solver_constants.js +102 -25
- package/src/engine/physics/cloth/solver/cloth_step.d.ts +5 -1
- package/src/engine/physics/cloth/solver/cloth_step.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/cloth_step.js +13 -3
- package/src/engine/physics/cloth/solver/cloth_step_instance.d.ts +0 -1
- package/src/engine/physics/cloth/solver/cloth_step_instance.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/cloth_step_instance.js +12 -14
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts +23 -4
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/constraint/cloth_contact_row.js +36 -8
- package/src/engine/physics/cloth/solver/constraint/cloth_self_row.d.ts.map +1 -1
- package/src/engine/physics/cloth/solver/constraint/cloth_self_row.js +4 -2
- package/src/engine/physics/cloth/wind/AbstractClothWind.d.ts +36 -35
- package/src/engine/physics/cloth/wind/AbstractClothWind.d.ts.map +1 -1
- package/src/engine/physics/cloth/wind/AbstractClothWind.js +36 -35
- package/src/engine/physics/cloth/wind/ClothFluidWind.d.ts +46 -25
- package/src/engine/physics/cloth/wind/ClothFluidWind.d.ts.map +1 -1
- package/src/engine/physics/cloth/wind/ClothFluidWind.js +70 -30
- package/src/engine/physics/cloth/wind/ClothGPUFluidWind.d.ts +96 -0
- package/src/engine/physics/cloth/wind/ClothGPUFluidWind.d.ts.map +1 -0
- package/src/engine/physics/cloth/wind/ClothGPUFluidWind.js +441 -0
- package/src/engine/physics/cloth/wind/cloth_sample_air.d.ts +9 -7
- package/src/engine/physics/cloth/wind/cloth_sample_air.d.ts.map +1 -1
- package/src/engine/physics/cloth/wind/cloth_sample_air.js +9 -7
- package/src/engine/physics/ecs/ColliderObserverSystem.d.ts +1 -1
- package/src/engine/physics/ecs/PhysicsSystem.d.ts +1 -1
- package/src/engine/physics/fluid/FluidAtmosphere.d.ts +80 -0
- package/src/engine/physics/fluid/FluidAtmosphere.d.ts.map +1 -0
- package/src/engine/physics/fluid/FluidAtmosphere.js +78 -0
- package/src/engine/physics/fluid/FluidField.d.ts +14 -2
- package/src/engine/physics/fluid/FluidField.d.ts.map +1 -1
- package/src/engine/physics/fluid/FluidField.js +26 -6
- package/src/engine/physics/fluid/FluidSimulator.d.ts +5 -1
- package/src/engine/physics/fluid/FluidSimulator.d.ts.map +1 -1
- package/src/engine/physics/fluid/FluidSimulator.js +13 -2
- package/src/engine/physics/fluid/GPU_FLUID_CASCADES_PROPOSAL_2026_10_16.md +1382 -0
- package/src/engine/physics/fluid/ecs/FluidEffectorsComponent.d.ts +10 -4
- package/src/engine/physics/fluid/ecs/FluidEffectorsComponent.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/FluidEffectorsComponent.js +13 -4
- package/src/engine/physics/fluid/ecs/FluidEffectorsComponentSerializationAdapter.d.ts +47 -0
- package/src/engine/physics/fluid/ecs/FluidEffectorsComponentSerializationAdapter.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/FluidEffectorsComponentSerializationAdapter.js +72 -0
- package/src/engine/physics/fluid/ecs/FluidEffectorsSystem.d.ts +67 -0
- package/src/engine/physics/fluid/ecs/FluidEffectorsSystem.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/FluidEffectorsSystem.js +307 -0
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +6 -6
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/FluidSystem.d.ts +24 -13
- package/src/engine/physics/fluid/ecs/FluidSystem.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/FluidSystem.js +79 -15
- package/src/engine/physics/fluid/ecs/FluidWorkerCore.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/FluidWorkerCore.js +17 -5
- package/src/engine/physics/fluid/ecs/GPUFluidComponent.d.ts +82 -0
- package/src/engine/physics/fluid/ecs/GPUFluidComponent.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/GPUFluidComponent.js +124 -0
- package/src/engine/physics/fluid/ecs/GPUFluidComponentSerializationAdapter.d.ts +30 -0
- package/src/engine/physics/fluid/ecs/GPUFluidComponentSerializationAdapter.d.ts.map +1 -0
- package/src/engine/physics/fluid/ecs/GPUFluidComponentSerializationAdapter.js +51 -0
- package/src/engine/physics/fluid/ecs/WorkerFluidSystem.d.ts +19 -10
- package/src/engine/physics/fluid/ecs/WorkerFluidSystem.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/WorkerFluidSystem.js +64 -14
- package/src/engine/physics/fluid/ecs/fluid_gather_visible_effectors.d.ts +4 -1
- package/src/engine/physics/fluid/ecs/fluid_gather_visible_effectors.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/fluid_gather_visible_effectors.js +9 -1
- package/src/engine/physics/fluid/ecs/fluid_reanchor_field.d.ts +1 -0
- package/src/engine/physics/fluid/ecs/fluid_reanchor_field.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/fluid_reanchor_field.js +9 -7
- package/src/engine/physics/fluid/ecs/fluid_sync_effectors_from_transform.d.ts +5 -3
- package/src/engine/physics/fluid/ecs/fluid_sync_effectors_from_transform.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/fluid_sync_effectors_from_transform.js +5 -3
- package/src/engine/physics/fluid/ecs/fluid_worker_protocol.d.ts +20 -2
- package/src/engine/physics/fluid/ecs/fluid_worker_protocol.d.ts.map +1 -1
- package/src/engine/physics/fluid/ecs/fluid_worker_protocol.js +34 -6
- package/src/engine/physics/fluid/effector/AbstractFluidEffector.d.ts +46 -3
- package/src/engine/physics/fluid/effector/AbstractFluidEffector.d.ts.map +1 -1
- package/src/engine/physics/fluid/effector/AbstractFluidEffector.js +53 -3
- package/src/engine/physics/fluid/effector/GlobalFluidEffector.d.ts +73 -13
- package/src/engine/physics/fluid/effector/GlobalFluidEffector.d.ts.map +1 -1
- package/src/engine/physics/fluid/effector/GlobalFluidEffector.js +207 -88
- package/src/engine/physics/fluid/effector/GlobalFluidEffectorSerializationAdapter.d.ts +35 -0
- package/src/engine/physics/fluid/effector/GlobalFluidEffectorSerializationAdapter.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/GlobalFluidEffectorSerializationAdapter.js +72 -0
- package/src/engine/physics/fluid/effector/ImpulseFluidEffector.d.ts +34 -10
- package/src/engine/physics/fluid/effector/ImpulseFluidEffector.d.ts.map +1 -1
- package/src/engine/physics/fluid/effector/ImpulseFluidEffector.js +139 -150
- package/src/engine/physics/fluid/effector/ImpulseFluidEffectorSerializationAdapter.d.ts +26 -0
- package/src/engine/physics/fluid/effector/ImpulseFluidEffectorSerializationAdapter.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/ImpulseFluidEffectorSerializationAdapter.js +51 -0
- package/src/engine/physics/fluid/effector/VortexFluidEffector.d.ts +55 -0
- package/src/engine/physics/fluid/effector/VortexFluidEffector.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/VortexFluidEffector.js +255 -0
- package/src/engine/physics/fluid/effector/VortexFluidEffectorSerializationAdapter.d.ts +25 -0
- package/src/engine/physics/fluid/effector/VortexFluidEffectorSerializationAdapter.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/VortexFluidEffectorSerializationAdapter.js +52 -0
- package/src/engine/physics/fluid/effector/WakeFluidEffector.d.ts +22 -20
- package/src/engine/physics/fluid/effector/WakeFluidEffector.d.ts.map +1 -1
- package/src/engine/physics/fluid/effector/WakeFluidEffector.js +181 -185
- package/src/engine/physics/fluid/effector/WakeFluidEffectorSerializationAdapter.d.ts +31 -0
- package/src/engine/physics/fluid/effector/WakeFluidEffectorSerializationAdapter.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/WakeFluidEffectorSerializationAdapter.js +56 -0
- package/src/engine/physics/fluid/effector/record/FLUID_EFFECTOR_RECORD_STRUCT.d.ts +52 -0
- package/src/engine/physics/fluid/effector/record/FLUID_EFFECTOR_RECORD_STRUCT.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/record/FLUID_EFFECTOR_RECORD_STRUCT.js +68 -0
- package/src/engine/physics/fluid/effector/record/FluidEffectorRecordKind.d.ts +10 -0
- package/src/engine/physics/fluid/effector/record/FluidEffectorRecordKind.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/record/FluidEffectorRecordKind.js +31 -0
- package/src/engine/physics/fluid/effector/record/chunk_fluid_effector_record_deposit.d.ts +25 -0
- package/src/engine/physics/fluid/effector/record/chunk_fluid_effector_record_deposit.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/record/chunk_fluid_effector_record_deposit.js +105 -0
- package/src/engine/physics/fluid/effector/record/chunk_fluid_effector_record_resolve.d.ts +17 -0
- package/src/engine/physics/fluid/effector/record/chunk_fluid_effector_record_resolve.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/record/chunk_fluid_effector_record_resolve.js +47 -0
- package/src/engine/physics/fluid/effector/record/fluid_effector_record_create.d.ts +54 -0
- package/src/engine/physics/fluid/effector/record/fluid_effector_record_create.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/record/fluid_effector_record_create.js +34 -0
- package/src/engine/physics/fluid/effector/record/fluid_effector_record_deposit.d.ts +98 -0
- package/src/engine/physics/fluid/effector/record/fluid_effector_record_deposit.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/record/fluid_effector_record_deposit.js +409 -0
- package/src/engine/physics/fluid/effector/record/fluid_effector_record_resolve.d.ts +25 -0
- package/src/engine/physics/fluid/effector/record/fluid_effector_record_resolve.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/record/fluid_effector_record_resolve.js +78 -0
- package/src/engine/physics/fluid/effector/record/fluid_record_apply.d.ts +27 -0
- package/src/engine/physics/fluid/effector/record/fluid_record_apply.d.ts.map +1 -0
- package/src/engine/physics/fluid/effector/record/fluid_record_apply.js +151 -0
- package/src/engine/physics/fluid/fluid_apply_atmosphere.d.ts +42 -0
- package/src/engine/physics/fluid/fluid_apply_atmosphere.d.ts.map +1 -0
- package/src/engine/physics/fluid/fluid_apply_atmosphere.js +148 -0
- package/src/engine/physics/fluid/fluid_atmosphere_to_grid.d.ts +16 -0
- package/src/engine/physics/fluid/fluid_atmosphere_to_grid.d.ts.map +1 -0
- package/src/engine/physics/fluid/fluid_atmosphere_to_grid.js +47 -0
- package/src/engine/physics/fluid/obstacle/FLUID_OBSTACLE_RECORD_STRUCT.d.ts +32 -0
- package/src/engine/physics/fluid/obstacle/FLUID_OBSTACLE_RECORD_STRUCT.d.ts.map +1 -0
- package/src/engine/physics/fluid/obstacle/FLUID_OBSTACLE_RECORD_STRUCT.js +50 -0
- package/src/engine/physics/fluid/obstacle/chunk_fluid_obstacle_record.d.ts +24 -0
- package/src/engine/physics/fluid/obstacle/chunk_fluid_obstacle_record.d.ts.map +1 -0
- package/src/engine/physics/fluid/obstacle/chunk_fluid_obstacle_record.js +61 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_record_create.d.ts +58 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_record_create.d.ts.map +1 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_record_create.js +35 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_record_evaluate.d.ts +34 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_record_evaluate.d.ts.map +1 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_record_evaluate.js +90 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_record_extent.d.ts +17 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_record_extent.d.ts.map +1 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_record_extent.js +44 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_write_gpu_record.d.ts +98 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_write_gpu_record.d.ts.map +1 -0
- package/src/engine/physics/fluid/obstacle/fluid_obstacle_write_gpu_record.js +281 -0
- package/src/engine/physics/fluid/prototype.js +2 -0
- package/src/engine/physics/narrowphase/rigid_subject_pose.d.ts.map +1 -1
- package/src/engine/physics/narrowphase/rigid_subject_pose.js +3 -43
- package/src/generation/markers/actions/terrain/MarkerNodeActionPaintTerrain.js +4 -4
- package/src/shade/assets/textures/split_sum.bin +0 -0
- package/src/shade/device/ShadeGPUCommandContext.d.ts +20 -0
- package/src/shade/device/ShadeGPUCommandContext.d.ts.map +1 -1
- package/src/shade/device/ShadeGPUCommandContext.js +25 -8
- package/src/shade/device/mock/SoftwareGPUComputePassEncoder.d.ts +6 -2
- package/src/shade/device/mock/SoftwareGPUComputePassEncoder.d.ts.map +1 -1
- package/src/shade/device/mock/SoftwareGPUComputePassEncoder.js +7 -3
- package/src/shade/device/mock/SoftwareGPUDevice.d.ts +15 -0
- package/src/shade/device/mock/SoftwareGPUDevice.d.ts.map +1 -1
- package/src/shade/device/mock/SoftwareGPUDevice.js +21 -0
- package/src/shade/device/pipeline/ComputePipelineManager.d.ts +20 -0
- package/src/shade/device/pipeline/ComputePipelineManager.d.ts.map +1 -1
- package/src/shade/device/pipeline/ComputePipelineManager.js +80 -6
- package/src/shade/device/pipeline/PipelineEnquiry.d.ts +52 -0
- package/src/shade/device/pipeline/PipelineEnquiry.d.ts.map +1 -0
- package/src/shade/device/pipeline/PipelineEnquiry.js +63 -0
- package/src/shade/device/pipeline/RenderPipelineManager.d.ts +21 -0
- package/src/shade/device/pipeline/RenderPipelineManager.d.ts.map +1 -1
- package/src/shade/device/pipeline/RenderPipelineManager.js +84 -4
- package/src/shade/playground/avboit/main.d.ts.map +1 -1
- package/src/shade/playground/avboit/main.js +9 -6
- package/src/shade/playground/contact_shadows/ContactShadowLab.d.ts +137 -0
- package/src/shade/playground/contact_shadows/ContactShadowLab.d.ts.map +1 -0
- package/src/shade/playground/contact_shadows/ContactShadowLab.js +654 -0
- package/src/shade/playground/contact_shadows/README.md +126 -0
- package/src/shade/playground/contact_shadows/index.html +191 -0
- package/src/shade/playground/contact_shadows/main.d.ts +2 -0
- package/src/shade/playground/contact_shadows/main.d.ts.map +1 -0
- package/src/shade/playground/contact_shadows/main.js +888 -0
- package/src/shade/playground/contact_shadows/scenes.d.ts +48 -0
- package/src/shade/playground/contact_shadows/scenes.d.ts.map +1 -0
- package/src/shade/playground/contact_shadows/scenes.js +620 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_composite.d.ts +36 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_composite.d.ts.map +1 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_composite.js +245 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_reference.d.ts +15 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_reference.d.ts.map +1 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_reference.js +120 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_stats.d.ts +55 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_stats.d.ts.map +1 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_stats.js +216 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_view.d.ts +20 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_view.d.ts.map +1 -0
- package/src/shade/playground/contact_shadows/shader_contact_lab_view.js +114 -0
- package/src/shade/playground/contact_shadows/shader_contact_shadow_march.d.ts +11 -0
- package/src/shade/playground/contact_shadows/shader_contact_shadow_march.d.ts.map +1 -0
- package/src/shade/playground/contact_shadows/shader_contact_shadow_march.js +90 -0
- package/src/shade/playground/contact_shadows/textures.d.ts +16 -0
- package/src/shade/playground/contact_shadows/textures.d.ts.map +1 -0
- package/src/shade/playground/contact_shadows/textures.js +123 -0
- package/src/shade/playground/particle_ecs/README.md +21 -1
- package/src/shade/playground/particle_ecs/bonfire_effects.d.ts +10 -0
- package/src/shade/playground/particle_ecs/bonfire_effects.d.ts.map +1 -1
- package/src/shade/playground/particle_ecs/bonfire_effects.js +10 -0
- package/src/shade/playground/particle_ecs/bonfire_wind.d.ts +48 -0
- package/src/shade/playground/particle_ecs/bonfire_wind.d.ts.map +1 -0
- package/src/shade/playground/particle_ecs/bonfire_wind.js +83 -0
- package/src/shade/playground/particle_ecs/effects/embers.json +1695 -1633
- package/src/shade/playground/particle_ecs/effects/flame.json +1994 -1881
- package/src/shade/playground/particle_ecs/effects/smoke.json +113 -15
- package/src/shade/playground/particle_ecs/effects/soot.json +214 -145
- package/src/shade/playground/particle_ecs/index.html +21 -0
- package/src/shade/playground/particle_ecs/main.js +35 -1
- package/src/shade/playground/path_traced_media/main.js +12 -10
- package/src/shade/playground/render_submitted_frames.d.ts +20 -0
- package/src/shade/playground/render_submitted_frames.d.ts.map +1 -0
- package/src/shade/playground/render_submitted_frames.js +29 -0
- package/src/shade/playground/skinned_blas_refit/main.d.ts.map +1 -1
- package/src/shade/playground/skinned_blas_refit/main.js +4 -6
- package/src/shade/playground/skinned_blas_refit/verify_instance_bounds.d.ts.map +1 -1
- package/src/shade/playground/skinned_blas_refit/verify_instance_bounds.js +267 -270
- 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 +3 -6
- package/src/shade/playground/skinned_mesh_soup/main.d.ts.map +1 -1
- package/src/shade/playground/skinned_mesh_soup/main.js +4 -5
- package/src/shade/playground/skinned_mesh_soup/verify_clone_vertices.js +438 -438
- package/src/shade/playground/ssr_motion/README.md +24 -22
- package/src/shade/playground/ssr_motion/main.js +150 -149
- package/src/shade/playground/ssr_reprojection/SpatialFilterProbe.js +1 -1
- package/src/shade/playground/ssr_reprojection/main.js +5 -3
- package/src/shade/playground/ssr_variance/capture.js +1 -1
- package/src/shade/playground/ssr_variance/main.js +247 -246
- package/src/shade/playground/submit_frame.d.ts +25 -0
- package/src/shade/playground/submit_frame.d.ts.map +1 -0
- package/src/shade/playground/submit_frame.js +36 -0
- package/src/shade/playground/tonemap_sdr/README.md +90 -0
- package/src/shade/playground/tonemap_sdr/ToneMapCompare.d.ts +105 -0
- package/src/shade/playground/tonemap_sdr/ToneMapCompare.d.ts.map +1 -0
- package/src/shade/playground/tonemap_sdr/ToneMapCompare.js +389 -0
- package/src/shade/playground/tonemap_sdr/chunk_tonemap_gt7_sdr_reference.d.ts +32 -0
- package/src/shade/playground/tonemap_sdr/chunk_tonemap_gt7_sdr_reference.d.ts.map +1 -0
- package/src/shade/playground/tonemap_sdr/chunk_tonemap_gt7_sdr_reference.js +104 -0
- package/src/shade/playground/tonemap_sdr/index.html +90 -0
- package/src/shade/playground/tonemap_sdr/main.d.ts +2 -0
- package/src/shade/playground/tonemap_sdr/main.d.ts.map +1 -0
- package/src/shade/playground/tonemap_sdr/main.js +306 -0
- package/src/shade/playground/tonemap_sdr/scenes.d.ts +26 -0
- package/src/shade/playground/tonemap_sdr/scenes.d.ts.map +1 -0
- package/src/shade/playground/tonemap_sdr/scenes.js +404 -0
- package/src/shade/playground/volumetrics_froxel/main.d.ts.map +1 -1
- package/src/shade/playground/volumetrics_froxel/main.js +91 -4
- package/src/shade/playground/water_refraction/README.md +30 -20
- package/src/shade/playground/water_refraction/index.html +1 -1
- package/src/shade/playground/water_refraction/main.js +19 -3
- package/src/shade/playground/water_refraction/world.d.ts.map +1 -1
- package/src/shade/playground/water_refraction/world.js +2 -1
- package/src/shade/playground/water_surface/README.md +15 -7
- package/src/shade/playground/water_surface/index.html +2 -1
- package/src/shade/playground/water_surface/main.js +39 -7
- package/src/shade/playground/water_surface/world.d.ts +2 -5
- package/src/shade/playground/water_surface/world.d.ts.map +1 -1
- package/src/shade/playground/water_surface/world.js +9 -8
- package/src/shade/renderer/INDIRECT_LIGHTING.d.ts +13 -0
- package/src/shade/renderer/INDIRECT_LIGHTING.d.ts.map +1 -0
- package/src/shade/renderer/INDIRECT_LIGHTING.js +14 -0
- package/src/shade/renderer/Renderer.d.ts +35 -3
- package/src/shade/renderer/Renderer.d.ts.map +1 -1
- package/src/shade/renderer/Renderer.js +260 -57
- package/src/shade/renderer/STATIC_GRAPHICS_ENGINE_ASSET_RESOURCES.d.ts +17 -0
- package/src/shade/renderer/STATIC_GRAPHICS_ENGINE_ASSET_RESOURCES.d.ts.map +1 -0
- package/src/shade/renderer/STATIC_GRAPHICS_ENGINE_ASSET_RESOURCES.js +19 -0
- package/src/shade/renderer/ShadeToneMappingMode.d.ts +14 -0
- package/src/shade/renderer/ShadeToneMappingMode.d.ts.map +1 -0
- package/src/shade/renderer/ShadeToneMappingMode.js +30 -0
- package/src/shade/renderer/animation/GPUAnimationManager.d.ts +9 -0
- package/src/shade/renderer/animation/GPUAnimationManager.d.ts.map +1 -1
- package/src/shade/renderer/animation/GPUAnimationManager.js +14 -0
- package/src/shade/renderer/animation/skinning/shader_meshlet_apply_skinning.d.ts.map +1 -1
- package/src/shade/renderer/animation/skinning/shader_meshlet_apply_skinning.js +5 -3
- package/src/shade/renderer/buffer/table/GPUDatabase.d.ts +7 -0
- package/src/shade/renderer/buffer/table/GPUDatabase.d.ts.map +1 -1
- package/src/shade/renderer/buffer/table/GPUDatabase.js +19 -4
- package/src/shade/renderer/buffer/table/GPUDatabaseReadback.d.ts +32 -2
- package/src/shade/renderer/buffer/table/GPUDatabaseReadback.d.ts.map +1 -1
- package/src/shade/renderer/buffer/table/GPUDatabaseReadback.js +231 -62
- package/src/shade/renderer/buffer/table/GPUTypedTable.d.ts +12 -0
- package/src/shade/renderer/buffer/table/GPUTypedTable.d.ts.map +1 -1
- package/src/shade/renderer/buffer/table/GPUTypedTable.js +51 -14
- package/src/shade/renderer/buffer/table/single/GPUSingleTypeTable.d.ts +8 -0
- package/src/shade/renderer/buffer/table/single/GPUSingleTypeTable.d.ts.map +1 -1
- package/src/shade/renderer/buffer/table/single/GPUSingleTypeTable.js +12 -0
- package/src/shade/renderer/camera/CAMERA_RESOURCE.d.ts +7 -0
- package/src/shade/renderer/camera/CAMERA_RESOURCE.d.ts.map +1 -0
- package/src/shade/renderer/camera/CAMERA_RESOURCE.js +8 -0
- package/src/shade/renderer/camera/GPUCameraContext.d.ts.map +1 -1
- package/src/shade/renderer/camera/GPUCameraContext.js +19 -8
- package/src/shade/renderer/deferred/GBUFFER_RESOURCES.d.ts +22 -0
- package/src/shade/renderer/deferred/GBUFFER_RESOURCES.d.ts.map +1 -0
- package/src/shade/renderer/deferred/GBUFFER_RESOURCES.js +25 -0
- package/src/shade/renderer/deferred/LOCAL_LIGHT_SHADING.d.ts +12 -0
- package/src/shade/renderer/deferred/LOCAL_LIGHT_SHADING.d.ts.map +1 -0
- package/src/shade/renderer/deferred/LOCAL_LIGHT_SHADING.js +13 -0
- package/src/shade/renderer/deferred/LocalLightShading.d.ts +10 -0
- package/src/shade/renderer/deferred/LocalLightShading.d.ts.map +1 -0
- package/src/shade/renderer/deferred/LocalLightShading.js +12 -0
- package/src/shade/renderer/deferred/SHADING_LIGHT_RESOURCE_GROUP.d.ts.map +1 -1
- package/src/shade/renderer/deferred/SHADING_LIGHT_RESOURCE_GROUP.js +15 -11
- package/src/shade/renderer/deferred/TonemapDisplaySettings.d.ts +50 -0
- package/src/shade/renderer/deferred/TonemapDisplaySettings.d.ts.map +1 -0
- package/src/shade/renderer/deferred/TonemapDisplaySettings.js +142 -0
- package/src/shade/renderer/deferred/chunk_read_gBuffer_material.d.ts.map +1 -1
- package/src/shade/renderer/deferred/chunk_read_gBuffer_material.js +10 -1
- package/src/shade/renderer/deferred/chunk_sample_volumetrics.d.ts.map +1 -1
- package/src/shade/renderer/deferred/chunk_sample_volumetrics.js +11 -1
- package/src/shade/renderer/deferred/chunk_shade_directional_lights.d.ts +1 -2
- package/src/shade/renderer/deferred/chunk_shade_directional_lights.d.ts.map +1 -1
- package/src/shade/renderer/deferred/chunk_shade_directional_lights.js +4 -2
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct.d.ts +10 -3
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct.d.ts.map +1 -1
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct.js +27 -5
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_deferred.d.ts +16 -0
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_deferred.d.ts.map +1 -0
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_deferred.js +23 -0
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_heavy.d.ts +3 -2
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_heavy.d.ts.map +1 -1
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_heavy.js +17 -16
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_restir.d.ts +3 -2
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_restir.d.ts.map +1 -1
- package/src/shade/renderer/deferred/chunk_shade_standard_material_direct_restir.js +13 -2
- package/src/shade/renderer/deferred/indirect/chunk_get_ibl_irradiance.d.ts.map +1 -1
- package/src/shade/renderer/deferred/indirect/chunk_get_ibl_irradiance.js +4 -1
- package/src/shade/renderer/deferred/indirect/chunk_get_ibl_radiance.d.ts.map +1 -1
- package/src/shade/renderer/deferred/indirect/chunk_get_ibl_radiance.js +4 -1
- package/src/shade/renderer/deferred/indirect/chunk_lpv_sample_light.d.ts.map +1 -1
- package/src/shade/renderer/deferred/indirect/chunk_lpv_sample_light.js +7 -0
- package/src/shade/renderer/deferred/shader_deferred_main.d.ts +11 -6
- package/src/shade/renderer/deferred/shader_deferred_main.d.ts.map +1 -1
- package/src/shade/renderer/deferred/shader_deferred_main.js +69 -87
- package/src/shade/renderer/deferred/shader_tonemap_HDR.d.ts +6 -0
- package/src/shade/renderer/deferred/shader_tonemap_HDR.d.ts.map +1 -1
- package/src/shade/renderer/deferred/shader_tonemap_HDR.js +22 -18
- package/src/shade/renderer/deferred/shader_tonemap_HDR_none.d.ts +9 -0
- package/src/shade/renderer/deferred/shader_tonemap_HDR_none.d.ts.map +1 -0
- package/src/shade/renderer/deferred/shader_tonemap_HDR_none.js +66 -0
- package/src/shade/renderer/deferred/shader_tonemap_HDR_pbr_neutral.d.ts +10 -0
- package/src/shade/renderer/deferred/shader_tonemap_HDR_pbr_neutral.d.ts.map +1 -0
- package/src/shade/renderer/deferred/shader_tonemap_HDR_pbr_neutral.js +80 -0
- package/src/shade/renderer/deferred/shader_tonemap_LDR.d.ts +6 -0
- package/src/shade/renderer/deferred/shader_tonemap_LDR.d.ts.map +1 -1
- package/src/shade/renderer/deferred/shader_tonemap_LDR.js +27 -7
- package/src/shade/renderer/deferred/shader_tonemap_LDR_none.d.ts +9 -0
- package/src/shade/renderer/deferred/shader_tonemap_LDR_none.d.ts.map +1 -0
- package/src/shade/renderer/deferred/shader_tonemap_LDR_none.js +71 -0
- package/src/shade/renderer/deferred/shader_tonemap_LDR_pbr_neutral.d.ts +10 -0
- package/src/shade/renderer/deferred/shader_tonemap_LDR_pbr_neutral.d.ts.map +1 -0
- package/src/shade/renderer/deferred/shader_tonemap_LDR_pbr_neutral.js +76 -0
- package/src/shade/renderer/fluid/FluidCascadePlacement.d.ts +142 -0
- package/src/shade/renderer/fluid/FluidCascadePlacement.d.ts.map +1 -0
- package/src/shade/renderer/fluid/FluidCascadePlacement.js +349 -0
- package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +383 -0
- package/src/shade/renderer/fluid/GPUFluidCascade.d.ts.map +1 -0
- package/src/shade/renderer/fluid/GPUFluidCascade.js +1217 -0
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +191 -0
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts.map +1 -0
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.js +463 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_FILL_STRUCT.d.ts +27 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_FILL_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_FILL_STRUCT.js +43 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_GHOSTS.d.ts +31 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_GHOSTS.d.ts.map +1 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_GHOSTS.js +38 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_PARENT_STRUCT.d.ts +46 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_PARENT_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_PARENT_STRUCT.js +61 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_RESTRICT_STRUCT.d.ts +25 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_RESTRICT_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/coupling/FLUID_CASCADE_RESTRICT_STRUCT.js +41 -0
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_epilogue.d.ts +52 -0
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_epilogue.d.ts.map +1 -0
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_epilogue.js +146 -0
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_parent.d.ts +41 -0
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_parent.d.ts.map +1 -0
- package/src/shade/renderer/fluid/coupling/chunk_fluid_cascade_parent.js +238 -0
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_fill.d.ts +32 -0
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_fill.d.ts.map +1 -0
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_fill.js +141 -0
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_ghosts.d.ts +34 -0
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_ghosts.d.ts.map +1 -0
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_ghosts.js +101 -0
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_restrict.d.ts +31 -0
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_restrict.d.ts.map +1 -0
- package/src/shade/renderer/fluid/coupling/shader_fluid_cascade_restrict.js +126 -0
- package/src/shade/renderer/fluid/fluid_cascade_ruler.d.ts +15 -0
- package/src/shade/renderer/fluid/fluid_cascade_ruler.d.ts.map +1 -0
- package/src/shade/renderer/fluid/fluid_cascade_ruler.js +38 -0
- package/src/shade/renderer/fluid/fluid_cascade_window.d.ts +41 -0
- package/src/shade/renderer/fluid/fluid_cascade_window.d.ts.map +1 -0
- package/src/shade/renderer/fluid/fluid_cascade_window.js +49 -0
- package/src/shade/renderer/fluid/forcing/FLUID_DATABASE_SPEC.d.ts +68 -0
- package/src/shade/renderer/fluid/forcing/FLUID_DATABASE_SPEC.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/FLUID_DATABASE_SPEC.js +103 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING.d.ts +71 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING.js +100 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING_APPLY_STRUCT.d.ts +21 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING_APPLY_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING_APPLY_STRUCT.js +35 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING_EXTRACT_STRUCT.d.ts +18 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING_EXTRACT_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING_EXTRACT_STRUCT.js +27 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING_QUERY_STRUCT.d.ts +17 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING_QUERY_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/FLUID_FORCING_QUERY_STRUCT.js +28 -0
- package/src/shade/renderer/fluid/forcing/FLUID_OBSTACLE_PLANE_STRUCT.d.ts +12 -0
- package/src/shade/renderer/fluid/forcing/FLUID_OBSTACLE_PLANE_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/FLUID_OBSTACLE_PLANE_STRUCT.js +16 -0
- package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +289 -0
- package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/GPUFluidForcing.js +1487 -0
- package/src/shade/renderer/fluid/forcing/chunk_fluid_forcing_cell.d.ts +32 -0
- package/src/shade/renderer/fluid/forcing/chunk_fluid_forcing_cell.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/chunk_fluid_forcing_cell.js +87 -0
- package/src/shade/renderer/fluid/forcing/chunk_fluid_forcing_leaf.d.ts +28 -0
- package/src/shade/renderer/fluid/forcing/chunk_fluid_forcing_leaf.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/chunk_fluid_forcing_leaf.js +99 -0
- package/src/shade/renderer/fluid/forcing/chunk_fluid_forcing_query_select.d.ts +29 -0
- package/src/shade/renderer/fluid/forcing/chunk_fluid_forcing_query_select.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/chunk_fluid_forcing_query_select.js +67 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_apply.d.ts +38 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_apply.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_apply.js +287 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_command.d.ts +18 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_command.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_command.js +64 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_extract.d.ts +22 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_extract.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_extract.js +168 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_query.d.ts +31 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_query.d.ts.map +1 -0
- package/src/shade/renderer/fluid/forcing/shader_fluid_forcing_query.js +208 -0
- package/src/shade/renderer/fluid/mac/FLUID_MAC_STEP_STRUCT.d.ts +35 -0
- package/src/shade/renderer/fluid/mac/FLUID_MAC_STEP_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/FLUID_MAC_STEP_STRUCT.js +50 -0
- package/src/shade/renderer/fluid/mac/FluidMacPasses.d.ts +162 -0
- package/src/shade/renderer/fluid/mac/FluidMacPasses.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/FluidMacPasses.js +384 -0
- package/src/shade/renderer/fluid/mac/FluidMacVelocitySet.d.ts +40 -0
- package/src/shade/renderer/fluid/mac/FluidMacVelocitySet.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/FluidMacVelocitySet.js +77 -0
- package/src/shade/renderer/fluid/mac/V3_MAC_LATTICE_TAP_STRUCT.d.ts +14 -0
- package/src/shade/renderer/fluid/mac/V3_MAC_LATTICE_TAP_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/V3_MAC_LATTICE_TAP_STRUCT.js +19 -0
- package/src/shade/renderer/fluid/mac/chunk_fluid_mac_seams.d.ts +35 -0
- package/src/shade/renderer/fluid/mac/chunk_fluid_mac_seams.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/chunk_fluid_mac_seams.js +178 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_advect_maccormack.d.ts +17 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_advect_maccormack.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_advect_maccormack.js +156 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_clip_trace.d.ts +31 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_clip_trace.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_clip_trace.js +63 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_compute_divergence.d.ts +27 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_compute_divergence.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_compute_divergence.js +42 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_face_carrier.d.ts +25 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_face_carrier.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_face_carrier.js +67 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_face_pinned.d.ts +23 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_face_pinned.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_face_pinned.js +38 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_lattice_corners.d.ts +33 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_lattice_corners.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_lattice_corners.js +231 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_subtract_pressure_gradient.d.ts +30 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_subtract_pressure_gradient.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_subtract_pressure_gradient.js +66 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_vorticity_confinement.d.ts +27 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_vorticity_confinement.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/chunk_v3_mac_vorticity_confinement.js +65 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_advect_correct.d.ts +43 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_advect_correct.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_advect_correct.js +245 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_advect_predict.d.ts +31 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_advect_predict.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_advect_predict.js +109 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_curl.d.ts +38 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_curl.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_curl.js +222 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_divergence.d.ts +26 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_divergence.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_divergence.js +92 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_gradient.d.ts +32 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_gradient.d.ts.map +1 -0
- package/src/shade/renderer/fluid/mac/shader_fluid_mac_gradient.js +181 -0
- package/src/shade/renderer/fluid/pressure/FLUID_MG.d.ts +112 -0
- package/src/shade/renderer/fluid/pressure/FLUID_MG.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/FLUID_MG.js +140 -0
- package/src/shade/renderer/fluid/pressure/FLUID_MG_PASS_STRUCT.d.ts +29 -0
- package/src/shade/renderer/fluid/pressure/FLUID_MG_PASS_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/FLUID_MG_PASS_STRUCT.js +45 -0
- package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +156 -0
- package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.js +605 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_coarse_word.d.ts +18 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_coarse_word.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_coarse_word.js +48 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_level0_word.d.ts +17 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_level0_word.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_level0_word.js +47 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_prolong.d.ts +21 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_prolong.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_prolong.js +47 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_relax.d.ts +27 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_relax.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_relax.js +79 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_restrict.d.ts +18 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_restrict.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_restrict.js +35 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_word.d.ts +17 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_word.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_mg_word.js +34 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_pressure_ghost.d.ts +21 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_pressure_ghost.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/chunk_fluid_pressure_ghost.js +34 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_coarse_weights.d.ts +10 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_coarse_weights.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_coarse_weights.js +45 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_coarsest.d.ts +17 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_coarsest.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_coarsest.js +126 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_level0_weights.d.ts +10 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_level0_weights.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_level0_weights.js +44 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_residual_restrict.d.ts +18 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_residual_restrict.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_residual_restrict.js +149 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_smooth.d.ts +30 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_smooth.d.ts.map +1 -0
- package/src/shade/renderer/fluid/pressure/shader_fluid_mg_smooth.js +183 -0
- package/src/shade/renderer/fluid/publish/FLUID_WIND_PUBLISH_STRUCT.d.ts +9 -0
- package/src/shade/renderer/fluid/publish/FLUID_WIND_PUBLISH_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/fluid/publish/FLUID_WIND_PUBLISH_STRUCT.js +12 -0
- package/src/shade/renderer/fluid/publish/FluidWindPublish.d.ts +49 -0
- package/src/shade/renderer/fluid/publish/FluidWindPublish.d.ts.map +1 -0
- package/src/shade/renderer/fluid/publish/FluidWindPublish.js +136 -0
- package/src/shade/renderer/fluid/publish/chunk_fluid_wind_publish_cell.d.ts +24 -0
- package/src/shade/renderer/fluid/publish/chunk_fluid_wind_publish_cell.d.ts.map +1 -0
- package/src/shade/renderer/fluid/publish/chunk_fluid_wind_publish_cell.js +37 -0
- package/src/shade/renderer/fluid/publish/shader_fluid_wind_publish.d.ts +41 -0
- package/src/shade/renderer/fluid/publish/shader_fluid_wind_publish.d.ts.map +1 -0
- package/src/shade/renderer/fluid/publish/shader_fluid_wind_publish.js +122 -0
- package/src/shade/renderer/fluid/query/FLUID_QUERY_DATABASE_SPEC.d.ts +66 -0
- package/src/shade/renderer/fluid/query/FLUID_QUERY_DATABASE_SPEC.d.ts.map +1 -0
- package/src/shade/renderer/fluid/query/FLUID_QUERY_DATABASE_SPEC.js +88 -0
- package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +157 -0
- package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts.map +1 -0
- package/src/shade/renderer/fluid/query/GPUFluidQueries.js +709 -0
- package/src/shade/renderer/fluid/query/shader_fluid_query_gather.d.ts +47 -0
- package/src/shade/renderer/fluid/query/shader_fluid_query_gather.d.ts.map +1 -0
- package/src/shade/renderer/fluid/query/shader_fluid_query_gather.js +140 -0
- package/src/shade/renderer/geometry/GEOMETRY_ATTRIBUTE_DATA_RESOURCE.d.ts +7 -0
- package/src/shade/renderer/geometry/GEOMETRY_ATTRIBUTE_DATA_RESOURCE.d.ts.map +1 -0
- package/src/shade/renderer/geometry/GEOMETRY_ATTRIBUTE_DATA_RESOURCE.js +8 -0
- package/src/shade/renderer/geometry/bvh/BLAS_REFIT_BATCH_PLAN.md +619 -606
- package/src/shade/renderer/geometry/bvh/BLAS_REFIT_TARGET_STRUCT.d.ts +3 -2
- package/src/shade/renderer/geometry/bvh/BLAS_REFIT_TARGET_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/geometry/bvh/BLAS_REFIT_TARGET_STRUCT.js +50 -44
- package/src/shade/renderer/geometry/bvh/GPUBLASRefitBatch.d.ts +12 -9
- package/src/shade/renderer/geometry/bvh/GPUBLASRefitBatch.d.ts.map +1 -1
- package/src/shade/renderer/geometry/bvh/GPUBLASRefitBatch.js +447 -363
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch.d.ts +7 -4
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch.d.ts.map +1 -1
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch.js +13 -6
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch_seed.d.ts +21 -0
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch_seed.d.ts.map +1 -0
- package/src/shade/renderer/geometry/bvh/shader_blas_refit_batch_seed.js +75 -0
- package/src/shade/renderer/geometry/meshlet/MESHLET_METADATA_RESOURCE.d.ts +7 -0
- package/src/shade/renderer/geometry/meshlet/MESHLET_METADATA_RESOURCE.d.ts.map +1 -0
- package/src/shade/renderer/geometry/meshlet/MESHLET_METADATA_RESOURCE.js +9 -0
- package/src/shade/renderer/geometry/meshlet/MeshletBatch.d.ts.map +1 -1
- package/src/shade/renderer/geometry/meshlet/MeshletBatch.js +58 -9
- package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.d.ts +35 -25
- package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.js +99 -196
- package/src/shade/renderer/geometry/sdf/shader_build_sdf.d.ts.map +1 -1
- package/src/shade/renderer/geometry/sdf/shader_build_sdf.js +125 -129
- package/src/shade/renderer/geometry/sdf/shader_sdf_visualize.js +1 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/BRICK4_RESOURCE.d.ts +7 -0
- package/src/shade/renderer/global_illumination/brick4/gpu/BRICK4_RESOURCE.d.ts.map +1 -0
- package/src/shade/renderer/global_illumination/brick4/gpu/BRICK4_RESOURCE.js +8 -0
- 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 +5 -0
- package/src/shade/renderer/global_illumination/brick4/gpu/bake/shader_brick4_bake_probes.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/bake/shader_brick4_bake_probes.js +7 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/chunk_brick4_load_probe.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/chunk_brick4_load_probe.js +4 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/chunk_brick4_node_by_position.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/chunk_brick4_node_by_position.js +4 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/chunk_brick4_node_sample_probes.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/chunk_brick4_node_sample_probes.js +3 -0
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/chunk_brick4_probe_meta_pick2.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/chunk_brick4_probe_meta_pick2.js +4 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/chunk_brick4_sample_forward_indirect.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/chunk_brick4_sample_forward_indirect.js +3 -0
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/shader_brick4_indirect_lighting.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/brick4/gpu/draw/shader_brick4_indirect_lighting.js +4 -0
- package/src/shade/renderer/global_illumination/clipmap/shader_debug_clipmap.d.ts +15 -0
- package/src/shade/renderer/global_illumination/clipmap/shader_debug_clipmap.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/clipmap/shader_debug_clipmap.js +57 -57
- package/src/shade/renderer/global_illumination/lpv/bake/GPULightProbeVolumeRenderer.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/lpv/bake/GPULightProbeVolumeRenderer.js +5 -0
- package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_get_visibility_mask.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/lpv/deprecated/chunk_lpv_get_visibility_mask.js +3 -0
- package/src/shade/renderer/global_illumination/lpv/deprecated/probe_trace_compute_shader_code.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/lpv/deprecated/probe_trace_compute_shader_code.js +7 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/LPV_SHADER_RESOURCE_GROUP.d.ts +39 -0
- package/src/shade/renderer/global_illumination/probe/octahedral/LPV_SHADER_RESOURCE_GROUP.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/LPV_SHADER_RESOURCE_GROUP.js +57 -4
- package/src/shade/renderer/global_illumination/probe/octahedral/graph_lpv_shade.js +3 -3
- package/src/shade/renderer/global_illumination/probe/octahedral/graph_sample_light_probes.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/graph_sample_light_probes.js +4 -0
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_radiance_sample_reflection.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe/octahedral/sample/chunk_lpv_radiance_sample_reflection.js +3 -0
- package/src/shade/renderer/global_illumination/shader_resolve_indirect_lighting.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/shader_resolve_indirect_lighting.js +4 -0
- package/src/shade/renderer/gpu_primitive/bvh/BVH_REFIT_DEFERRED_DEFINITION.d.ts +10 -0
- package/src/shade/renderer/gpu_primitive/bvh/BVH_REFIT_DEFERRED_DEFINITION.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh/BVH_REFIT_DEFERRED_DEFINITION.js +25 -0
- package/src/shade/renderer/gpu_primitive/bvh/BVH_REFIT_DEFERRED_LAYOUT.d.ts +55 -0
- package/src/shade/renderer/gpu_primitive/bvh/BVH_REFIT_DEFERRED_LAYOUT.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh/BVH_REFIT_DEFERRED_LAYOUT.js +63 -0
- package/src/shade/renderer/gpu_primitive/bvh/GPU_BVH_BUILD_PLAN.md +248 -2
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_delta.d.ts +7 -0
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_delta.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_delta.js +45 -38
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_determine_range.d.ts +2 -0
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_determine_range.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_determine_range.js +81 -79
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_find_split.d.ts +2 -0
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_find_split.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_find_split.js +5 -3
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_internal_children.d.ts +21 -0
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_internal_children.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_internal_children.js +42 -0
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_morton_code.d.ts +19 -0
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_morton_code.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_morton_code.js +44 -0
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_refit_climb.d.ts +23 -11
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_refit_climb.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_refit_climb.js +171 -102
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_refit_repair.d.ts +23 -0
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_refit_repair.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh/chunk_bvh_refit_repair.js +80 -0
- package/src/shade/renderer/gpu_primitive/bvh/graph_bvh_build_lbvh.d.ts +25 -5
- package/src/shade/renderer/gpu_primitive/bvh/graph_bvh_build_lbvh.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/bvh/graph_bvh_build_lbvh.js +189 -23
- package/src/shade/renderer/gpu_primitive/bvh/graph_bvh_refit_lbvh.d.ts +55 -0
- package/src/shade/renderer/gpu_primitive/bvh/graph_bvh_refit_lbvh.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh/graph_bvh_refit_lbvh.js +197 -0
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_build_single_workgroup.d.ts +27 -0
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_build_single_workgroup.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_build_single_workgroup.js +222 -0
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_emit_hierarchy.d.ts +5 -4
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_emit_hierarchy.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_emit_hierarchy.js +20 -19
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_morton.d.ts +3 -4
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_morton.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_morton.js +6 -23
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_refit.d.ts +6 -6
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_refit.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_refit.js +11 -8
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_refit_prepare.d.ts +24 -0
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_refit_prepare.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_refit_prepare.js +99 -0
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_refit_repair.d.ts +17 -0
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_refit_repair.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/bvh/shader_bvh_refit_repair.js +63 -0
- package/src/shade/renderer/gpu_primitive/chunk_collection_u32_append.d.ts +19 -0
- package/src/shade/renderer/gpu_primitive/chunk_collection_u32_append.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/chunk_collection_u32_append.js +44 -0
- package/src/shade/renderer/gpu_primitive/indirect/IndirectComputeCommandBuildPass.d.ts +11 -0
- package/src/shade/renderer/gpu_primitive/indirect/IndirectComputeCommandBuildPass.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/indirect/IndirectComputeCommandBuildPass.js +14 -3
- package/src/shade/renderer/gpu_primitive/indirect/build_indirect_draw_command.d.ts +10 -0
- package/src/shade/renderer/gpu_primitive/indirect/build_indirect_draw_command.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/indirect/build_indirect_draw_command.js +13 -3
- package/src/shade/renderer/gpu_primitive/prefix_sum/v1/graph_prefix_scan_csdldf.d.ts +10 -0
- package/src/shade/renderer/gpu_primitive/prefix_sum/v1/graph_prefix_scan_csdldf.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/prefix_sum/v1/graph_prefix_scan_csdldf.js +14 -0
- package/src/shade/renderer/gpu_primitive/sort/chunk_sort_bitonic_comparator.d.ts +26 -0
- package/src/shade/renderer/gpu_primitive/sort/chunk_sort_bitonic_comparator.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/sort/chunk_sort_bitonic_comparator.js +52 -0
- package/src/shade/renderer/gpu_primitive/sort/chunk_sort_bitonic_workgroup.d.ts +32 -0
- package/src/shade/renderer/gpu_primitive/sort/chunk_sort_bitonic_workgroup.d.ts.map +1 -0
- package/src/shade/renderer/gpu_primitive/sort/chunk_sort_bitonic_workgroup.js +89 -0
- package/src/shade/renderer/gpu_primitive/sort/graph_radix_sort.d.ts +10 -0
- package/src/shade/renderer/gpu_primitive/sort/graph_radix_sort.d.ts.map +1 -1
- package/src/shade/renderer/gpu_primitive/sort/graph_radix_sort.js +20 -1
- package/src/shade/renderer/hiz/HierarchicalZBuffer.d.ts +10 -0
- package/src/shade/renderer/hiz/HierarchicalZBuffer.d.ts.map +1 -1
- package/src/shade/renderer/hiz/HierarchicalZBuffer.js +294 -281
- package/src/shade/renderer/light/GPULightCollection.d.ts +8 -0
- package/src/shade/renderer/light/GPULightCollection.d.ts.map +1 -1
- package/src/shade/renderer/light/GPULightCollection.js +18 -1
- package/src/shade/renderer/light/LIGHT_DATA_RESOURCE.d.ts +7 -0
- package/src/shade/renderer/light/LIGHT_DATA_RESOURCE.d.ts.map +1 -0
- package/src/shade/renderer/light/LIGHT_DATA_RESOURCE.js +8 -0
- package/src/shade/renderer/light/cluster/CLUSTER_LIGHT_LIST.d.ts +7 -0
- package/src/shade/renderer/light/cluster/CLUSTER_LIGHT_LIST.d.ts.map +1 -0
- package/src/shade/renderer/light/cluster/CLUSTER_LIGHT_LIST.js +16 -0
- package/src/shade/renderer/light/cluster/CLUSTER_LIGHT_PROXY.d.ts +12 -0
- package/src/shade/renderer/light/cluster/CLUSTER_LIGHT_PROXY.d.ts.map +1 -0
- package/src/shade/renderer/light/cluster/CLUSTER_LIGHT_PROXY.js +33 -0
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_ASSIGNMENT_SETTINGS.d.ts +7 -0
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_ASSIGNMENT_SETTINGS.d.ts.map +1 -0
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_ASSIGNMENT_SETTINGS.js +24 -0
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_COARSE_BLOCK.d.ts +8 -0
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_COARSE_BLOCK.d.ts.map +1 -0
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_COARSE_BLOCK.js +7 -0
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_METADATA.d.ts.map +1 -1
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_METADATA.js +2 -3
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_RESOURCES.d.ts +17 -0
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_RESOURCES.d.ts.map +1 -0
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_RESOURCES.js +22 -0
- package/src/shade/renderer/light/cluster/PROPOSAL_ALGORITHM_2026_10_16.md +524 -0
- package/src/shade/renderer/light/cluster/PROPOSAL_HIERARCHICAL_2026_10_16.md +1101 -0
- package/src/shade/renderer/light/cluster/chunk_cluster_cell.d.ts +19 -0
- package/src/shade/renderer/light/cluster/chunk_cluster_cell.d.ts.map +1 -0
- package/src/shade/renderer/light/cluster/chunk_cluster_cell.js +133 -0
- package/src/shade/renderer/light/cluster/chunk_cluster_from_fragment_coord.d.ts.map +1 -1
- package/src/shade/renderer/light/cluster/chunk_cluster_from_fragment_coord.js +6 -1
- package/src/shade/renderer/light/cluster/chunk_cluster_light_proxy.d.ts +19 -0
- package/src/shade/renderer/light/cluster/chunk_cluster_light_proxy.d.ts.map +1 -0
- package/src/shade/renderer/light/cluster/chunk_cluster_light_proxy.js +95 -0
- package/src/shade/renderer/light/cluster/chunk_light_cluster_counts.d.ts +6 -4
- package/src/shade/renderer/light/cluster/chunk_light_cluster_counts.d.ts.map +1 -1
- package/src/shade/renderer/light/cluster/chunk_light_cluster_counts.js +10 -8
- package/src/shade/renderer/light/cluster/chunk_light_cluster_metadata_by_position.d.ts.map +1 -1
- package/src/shade/renderer/light/cluster/chunk_light_cluster_metadata_by_position.js +4 -1
- package/src/shade/renderer/light/cluster/cull/graph_cull_lights.d.ts +16 -0
- package/src/shade/renderer/light/cluster/cull/graph_cull_lights.d.ts.map +1 -1
- package/src/shade/renderer/light/cluster/cull/graph_cull_lights.js +234 -218
- package/src/shade/renderer/light/cluster/graph_assign_clsuters.d.ts +33 -1
- package/src/shade/renderer/light/cluster/graph_assign_clsuters.d.ts.map +1 -1
- package/src/shade/renderer/light/cluster/graph_assign_clsuters.js +184 -73
- package/src/shade/renderer/light/cluster/graph_build_light_clusters.d.ts +10 -1
- package/src/shade/renderer/light/cluster/graph_build_light_clusters.d.ts.map +1 -1
- package/src/shade/renderer/light/cluster/graph_build_light_clusters.js +19 -2
- package/src/shade/renderer/light/cluster/shader_cluster_assign_lights.d.ts +14 -2
- package/src/shade/renderer/light/cluster/shader_cluster_assign_lights.d.ts.map +1 -1
- package/src/shade/renderer/light/cluster/shader_cluster_assign_lights.js +230 -139
- package/src/shade/renderer/light/cluster/shader_cluster_coarse_mark.d.ts +19 -0
- package/src/shade/renderer/light/cluster/shader_cluster_coarse_mark.d.ts.map +1 -0
- package/src/shade/renderer/light/cluster/shader_cluster_coarse_mark.js +134 -0
- package/src/shade/renderer/light/cluster/shader_cluster_light_compact.d.ts +11 -0
- package/src/shade/renderer/light/cluster/shader_cluster_light_compact.d.ts.map +1 -0
- package/src/shade/renderer/light/cluster/shader_cluster_light_compact.js +114 -0
- package/src/shade/renderer/light/cluster/shader_cluster_light_mark.d.ts +9 -0
- package/src/shade/renderer/light/cluster/shader_cluster_light_mark.d.ts.map +1 -0
- package/src/shade/renderer/light/cluster/shader_cluster_light_mark.js +59 -0
- package/src/shade/renderer/light/cluster/shader_cluster_light_prepare.d.ts +14 -0
- package/src/shade/renderer/light/cluster/shader_cluster_light_prepare.d.ts.map +1 -0
- package/src/shade/renderer/light/cluster/shader_cluster_light_prepare.js +142 -0
- package/src/shade/renderer/light/environment/ENVIRONMENT_MAP_RESOURCE.d.ts +7 -0
- package/src/shade/renderer/light/environment/ENVIRONMENT_MAP_RESOURCE.d.ts.map +1 -0
- package/src/shade/renderer/light/environment/ENVIRONMENT_MAP_RESOURCE.js +7 -0
- package/src/shade/renderer/light/environment/ENVIRONMENT_SH_RESOURCE.d.ts +7 -0
- package/src/shade/renderer/light/environment/ENVIRONMENT_SH_RESOURCE.d.ts.map +1 -0
- package/src/shade/renderer/light/environment/ENVIRONMENT_SH_RESOURCE.js +8 -0
- package/src/shade/renderer/light/environment/execute_filter_environment_map.d.ts +10 -0
- package/src/shade/renderer/light/environment/execute_filter_environment_map.d.ts.map +1 -1
- package/src/shade/renderer/light/environment/execute_filter_environment_map.js +13 -0
- package/src/shade/renderer/light/environment/sh_exponential/README.md +2 -1
- package/src/shade/renderer/lightmap/GPULightMap.d.ts.map +1 -1
- package/src/shade/renderer/lightmap/GPULightMap.js +5 -0
- package/src/shade/renderer/lightmap/bake/shader_lightmap_viz_to_irradiance_flat.d.ts.map +1 -1
- package/src/shade/renderer/lightmap/bake/shader_lightmap_viz_to_irradiance_flat.js +7 -1
- package/src/shade/renderer/lightmap/bake/shader_lightmap_viz_to_sh.d.ts.map +1 -1
- package/src/shade/renderer/lightmap/bake/shader_lightmap_viz_to_sh.js +7 -1
- package/src/shade/renderer/lightmap/debug/shader_lightmap_debug_density.d.ts.map +1 -1
- package/src/shade/renderer/lightmap/debug/shader_lightmap_debug_density.js +4 -0
- package/src/shade/renderer/lightmap/debug/shader_lightmap_debug_uv_checker.d.ts.map +1 -1
- package/src/shade/renderer/lightmap/debug/shader_lightmap_debug_uv_checker.js +4 -0
- package/src/shade/renderer/lightmap/debug/shader_lightmap_debug_view_flat.d.ts.map +1 -1
- package/src/shade/renderer/lightmap/debug/shader_lightmap_debug_view_flat.js +4 -0
- package/src/shade/renderer/lightmap/debug/shader_lightmap_debug_view_sh.d.ts.map +1 -1
- package/src/shade/renderer/lightmap/debug/shader_lightmap_debug_view_sh.js +4 -0
- package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
- package/src/shade/renderer/material/GPUMaterialManager.d.ts +16 -4
- package/src/shade/renderer/material/GPUMaterialManager.d.ts.map +1 -1
- package/src/shade/renderer/material/GPUMaterialManager.js +38 -8
- package/src/shade/renderer/material/standard/SHADING_MATERIAL_RESOURCE_GROUP.d.ts +22 -0
- package/src/shade/renderer/material/standard/SHADING_MATERIAL_RESOURCE_GROUP.d.ts.map +1 -1
- package/src/shade/renderer/material/standard/SHADING_MATERIAL_RESOURCE_GROUP.js +33 -9
- package/src/shade/renderer/particles/DESIGN.md +65 -9
- package/src/shade/renderer/particles/GPUParticleSystem.d.ts.map +1 -1
- package/src/shade/renderer/particles/GPUParticleSystem.js +3 -0
- package/src/shade/renderer/particles/ORIENTATION_PLAN_2026_10_15.md +453 -0
- package/src/shade/renderer/particles/data/PARTICLE_EMITTER_STRUCT.d.ts +5 -1
- package/src/shade/renderer/particles/data/PARTICLE_EMITTER_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/particles/data/PARTICLE_EMITTER_STRUCT.js +13 -5
- package/src/shade/renderer/particles/data/particle_emitter_record.js +2 -2
- package/src/shade/renderer/particles/graph/ParticleNodeRegistry.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph/ParticleNodeRegistry.js +21 -9
- package/src/shade/renderer/particles/graph/groups/particle_builtin_groups.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph/groups/particle_builtin_groups.js +12 -0
- package/src/shade/renderer/particles/graph/groups/particle_groups_geometry.d.ts +60 -0
- package/src/shade/renderer/particles/graph/groups/particle_groups_geometry.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph/groups/particle_groups_geometry.js +156 -0
- package/src/shade/renderer/particles/graph/particle_node_parameters.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph/particle_node_parameters.js +1 -0
- package/src/shade/renderer/particles/graph/particle_node_presentation.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph/particle_node_presentation.js +8 -0
- package/src/shade/renderer/particles/graph_particles.d.ts +4 -1
- package/src/shade/renderer/particles/graph_particles.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph_particles.js +13 -0
- package/src/shade/renderer/particles/isa/InstructionStream.d.ts +13 -0
- package/src/shade/renderer/particles/isa/InstructionStream.d.ts.map +1 -1
- package/src/shade/renderer/particles/isa/InstructionStream.js +13 -0
- package/src/shade/renderer/particles/isa/ParticleVMISA.d.ts +1 -0
- package/src/shade/renderer/particles/isa/ParticleVMISA.d.ts.map +1 -1
- package/src/shade/renderer/particles/isa/ParticleVMISA.js +8 -0
- package/src/shade/renderer/particles/optimizer/particle_program_equivalence.d.ts +2 -1
- package/src/shade/renderer/particles/optimizer/particle_program_equivalence.d.ts.map +1 -1
- package/src/shade/renderer/particles/optimizer/particle_program_equivalence.js +28 -6
- package/src/shade/renderer/particles/optimizer/particle_program_fuzz.js +1 -1
- package/src/shade/renderer/particles/optimizer/particle_vm_semantics.d.ts.map +1 -1
- package/src/shade/renderer/particles/optimizer/particle_vm_semantics.js +7 -0
- package/src/shade/renderer/particles/runtime/ParticleEmitter.d.ts +2 -2
- package/src/shade/renderer/particles/runtime/ParticleEmitter.d.ts.map +1 -1
- package/src/shade/renderer/particles/runtime/ParticleEmitter.js +8 -8
- package/src/shade/renderer/particles/shaders/chunk_particle_billboard_vertex.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/chunk_particle_billboard_vertex.js +6 -4
- package/src/shade/renderer/particles/shaders/chunk_particle_render_math.d.ts +7 -6
- package/src/shade/renderer/particles/shaders/chunk_particle_render_math.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/chunk_particle_render_math.js +91 -58
- package/src/shade/renderer/particles/shaders/shader_particle_avboit_draw.js +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_emit.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_emit.js +5 -2
- package/src/shade/renderer/particles/shaders/shader_particle_emit_wide.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_emit_wide.js +5 -2
- package/src/shade/renderer/particles/shaders/shader_particle_simulate.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_simulate.js +5 -2
- package/src/shade/renderer/particles/shaders/shader_particle_simulate_wide.d.ts.map +1 -1
- package/src/shade/renderer/particles/shaders/shader_particle_simulate_wide.js +5 -2
- package/src/shade/renderer/particles/vm/ParticleVMReference.d.ts +16 -1
- package/src/shade/renderer/particles/vm/ParticleVMReference.d.ts.map +1 -1
- package/src/shade/renderer/particles/vm/ParticleVMReference.js +35 -2
- package/src/shade/renderer/particles/vm/chunk_particle_vm.d.ts.map +1 -1
- package/src/shade/renderer/particles/vm/chunk_particle_vm.js +8 -0
- package/src/shade/renderer/particles/vm/chunk_particle_vm_wind_field.d.ts +20 -0
- package/src/shade/renderer/particles/vm/chunk_particle_vm_wind_field.d.ts.map +1 -0
- package/src/shade/renderer/particles/vm/chunk_particle_vm_wind_field.js +25 -0
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts +4 -1
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.d.ts.map +1 -1
- package/src/shade/renderer/particles/warmup/graph_particle_warmup.js +8 -0
- package/src/shade/renderer/particles/warmup/shader_particle_warmup_advance.d.ts.map +1 -1
- package/src/shade/renderer/particles/warmup/shader_particle_warmup_advance.js +109 -106
- package/src/shade/renderer/particles/warmup/shader_particle_warmup_advance_wide.d.ts.map +1 -1
- package/src/shade/renderer/particles/warmup/shader_particle_warmup_advance_wide.js +71 -68
- package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.d.ts.map +1 -1
- package/src/shade/renderer/path_tracer/accumulating/AccumulatingPathTracer.js +5 -0
- package/src/shade/renderer/path_tracer/accumulating/shader_accumulating_path_tracer.d.ts.map +1 -1
- package/src/shade/renderer/path_tracer/accumulating/shader_accumulating_path_tracer.js +8 -2
- 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 +11 -1
- package/src/shade/renderer/path_tracer/shader/chunk_render_trace_path.js +4 -4
- package/src/shade/renderer/path_tracer/shader/chunk_sample_material_data.js +3 -3
- package/src/shade/renderer/postprocess/bloom/graph_postprocess_bloom.d.ts +7 -0
- package/src/shade/renderer/postprocess/bloom/graph_postprocess_bloom.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/bloom/graph_postprocess_bloom.js +18 -0
- package/src/shade/renderer/postprocess/denoise/LigmaDenoiser.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/denoise/LigmaDenoiser.js +1 -0
- package/src/shade/renderer/postprocess/denoise/shader_temporal_reprojection_luma.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/denoise/shader_temporal_reprojection_luma.js +6 -4
- package/src/shade/renderer/postprocess/eye/GPUCameraExposureManager.d.ts +11 -0
- package/src/shade/renderer/postprocess/eye/GPUCameraExposureManager.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/eye/GPUCameraExposureManager.js +16 -0
- package/src/shade/renderer/postprocess/gtao/GTAO.d.ts +10 -0
- package/src/shade/renderer/postprocess/gtao/GTAO.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/gtao/GTAO.js +16 -0
- package/src/shade/renderer/postprocess/gtao/fragment_shader_gtao.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/gtao/fragment_shader_gtao.js +32 -10
- package/src/shade/renderer/postprocess/nss/NSS.d.ts +1 -1
- package/src/shade/renderer/postprocess/ssr/SSR.d.ts +11 -8
- package/src/shade/renderer/postprocess/ssr/SSR.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/SSR.js +49 -52
- package/src/shade/renderer/postprocess/ssr/reproject/chunk_ssr_temporal_accumulate.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/ssr/reproject/chunk_ssr_temporal_accumulate.js +3 -0
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_add_hit_irradiance.d.ts +28 -0
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_add_hit_irradiance.d.ts.map +1 -0
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_add_hit_irradiance.js +79 -0
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.d.ts +30 -0
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.d.ts.map +1 -0
- package/src/shade/renderer/postprocess/ssr/resolve/chunk_ssr_sample_radiance.js +66 -0
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.d.ts +11 -0
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader.d.ts.map +1 -0
- package/src/shade/renderer/postprocess/ssr/resolve/{build_ssr_resolve_shader.js → ssr_resolve_shader.js} +98 -87
- package/src/shade/renderer/postprocess/taa/TAA.d.ts +12 -0
- package/src/shade/renderer/postprocess/taa/TAA.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/taa/TAA.js +15 -0
- package/src/shade/renderer/postprocess/velocity/graph_add_per_object_velocity.d.ts +7 -0
- package/src/shade/renderer/postprocess/velocity/graph_add_per_object_velocity.d.ts.map +1 -1
- package/src/shade/renderer/postprocess/velocity/graph_add_per_object_velocity.js +13 -0
- package/src/shade/renderer/rasterize/TemplatePassDescriptor.d.ts +31 -3
- package/src/shade/renderer/rasterize/TemplatePassDescriptor.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/TemplatePassDescriptor.js +79 -4
- package/src/shade/renderer/rasterize/bucket/graph_meshlets_rasterize_by_bucket.d.ts +17 -0
- package/src/shade/renderer/rasterize/bucket/graph_meshlets_rasterize_by_bucket.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/bucket/graph_meshlets_rasterize_by_bucket.js +35 -4
- package/src/shade/renderer/rasterize/compute/graph_mesh_frustum_cull.d.ts +7 -0
- package/src/shade/renderer/rasterize/compute/graph_mesh_frustum_cull.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/compute/graph_mesh_frustum_cull.js +182 -169
- package/src/shade/renderer/rasterize/expand/GPUCollectionLimits.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/expand/GPUCollectionLimits.js +4 -0
- package/src/shade/renderer/rasterize/expand/RasterizationCollectionType.d.ts +1 -0
- package/src/shade/renderer/rasterize/expand/RasterizationCollectionType.js +5 -0
- package/src/shade/renderer/rasterize/expand/bucket/mesh/graph_meshes_classify_buckets.d.ts +10 -0
- package/src/shade/renderer/rasterize/expand/bucket/mesh/graph_meshes_classify_buckets.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/expand/bucket/mesh/graph_meshes_classify_buckets.js +20 -1
- package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_extract_meshlets_from_bucket.d.ts +10 -0
- package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_extract_meshlets_from_bucket.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_extract_meshlets_from_bucket.js +18 -1
- package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_sort_meshlets_by_bucket_id.d.ts +10 -0
- package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_sort_meshlets_by_bucket_id.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/expand/bucket/meshlet/graph_sort_meshlets_by_bucket_id.js +20 -1
- package/src/shade/renderer/rasterize/expand/graph_mesh_filter_one_way.d.ts +7 -0
- package/src/shade/renderer/rasterize/expand/graph_mesh_filter_one_way.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/expand/graph_mesh_filter_one_way.js +187 -170
- package/src/shade/renderer/rasterize/expand/graph_meshlets_filter_one_way.d.ts +10 -0
- package/src/shade/renderer/rasterize/expand/graph_meshlets_filter_one_way.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/expand/graph_meshlets_filter_one_way.js +19 -1
- package/src/shade/renderer/rasterize/expand/graph_meshlets_rasterize.d.ts +13 -0
- package/src/shade/renderer/rasterize/expand/graph_meshlets_rasterize.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/expand/graph_meshlets_rasterize.js +25 -1
- package/src/shade/renderer/rasterize/expand/mesh/graph_expand_meshes_to_meshlets.d.ts +10 -0
- package/src/shade/renderer/rasterize/expand/mesh/graph_expand_meshes_to_meshlets.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/expand/mesh/graph_expand_meshes_to_meshlets.js +20 -0
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect.d.ts +25 -0
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect.js +33 -0
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect_brick4.d.ts +10 -0
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect_brick4.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect_brick4.js +38 -0
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect_environment.d.ts +9 -0
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect_environment.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/forward/chunk_forward_sample_indirect_environment.js +30 -0
- package/src/shade/renderer/rasterize/forward/chunk_forward_shade_standard_fragment.d.ts +10 -0
- package/src/shade/renderer/rasterize/forward/chunk_forward_shade_standard_fragment.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/forward/{chunk_forward_shade_standard_fragment_brick4.js → chunk_forward_shade_standard_fragment.js} +66 -33
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.d.ts +3 -3
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/AVBOITSideChannel.js +3 -3
- package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.d.ts +9 -4
- package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/avboit_draw_fragment_body.js +11 -5
- package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.d.ts +8 -6
- package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/avboit/graph_rasterize_meshes_transparent_avboit.js +27 -45
- package/src/shade/renderer/rasterize/native/avboit/shader_avboit_draw.d.ts +18 -0
- package/src/shade/renderer/rasterize/native/avboit/shader_avboit_draw.d.ts.map +1 -0
- package/src/shade/renderer/rasterize/native/avboit/{shader_avboit_draw_brick4.js → shader_avboit_draw.js} +26 -21
- package/src/shade/renderer/rasterize/native/avboit/shader_avboit_splat.js +3 -3
- package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.d.ts +3 -2
- package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/oit/graph_rasterize_meshes_transparent_oit.js +26 -47
- package/src/shade/renderer/rasterize/native/oit/oit_resolve_fragment_body.d.ts +12 -8
- package/src/shade/renderer/rasterize/native/oit/oit_resolve_fragment_body.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/oit/oit_resolve_fragment_body.js +128 -123
- package/src/shade/renderer/rasterize/native/oit/shader_oit_generate_moments.js +3 -3
- package/src/shade/renderer/rasterize/native/oit/shader_oit_resolve_moments.d.ts +11 -2
- package/src/shade/renderer/rasterize/native/oit/shader_oit_resolve_moments.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/native/oit/shader_oit_resolve_moments.js +21 -13
- package/src/shade/renderer/rasterize/standard/graph_rasterize_partial_opaque.d.ts +15 -0
- package/src/shade/renderer/rasterize/standard/graph_rasterize_partial_opaque.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/standard/graph_rasterize_partial_opaque.js +35 -2
- package/src/shade/renderer/rasterize/standard/graph_rasterize_remaining_opaque.d.ts +14 -0
- package/src/shade/renderer/rasterize/standard/graph_rasterize_remaining_opaque.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/standard/graph_rasterize_remaining_opaque.js +32 -4
- package/src/shade/renderer/rasterize/standard/graph_rasterize_scene.d.ts +17 -0
- package/src/shade/renderer/rasterize/standard/graph_rasterize_scene.d.ts.map +1 -1
- package/src/shade/renderer/rasterize/standard/graph_rasterize_scene.js +34 -4
- package/src/shade/renderer/restir/di/RESTIR_RADIANCE_RESOURCE.d.ts +7 -0
- package/src/shade/renderer/restir/di/RESTIR_RADIANCE_RESOURCE.d.ts.map +1 -0
- package/src/shade/renderer/restir/di/RESTIR_RADIANCE_RESOURCE.js +7 -0
- package/src/shade/renderer/restir/di/chunk_restir_resolve.d.ts +5 -3
- package/src/shade/renderer/restir/di/chunk_restir_resolve.d.ts.map +1 -1
- package/src/shade/renderer/restir/di/chunk_restir_resolve.js +8 -3
- package/src/shade/renderer/restir/di/graph_restir_di.d.ts.map +1 -1
- package/src/shade/renderer/restir/di/graph_restir_di.js +1 -0
- package/src/shade/renderer/restir/di/shader_restir_di_resolve.d.ts.map +1 -1
- package/src/shade/renderer/restir/di/shader_restir_di_resolve.js +5 -1
- package/src/shade/renderer/restir/reservoir/shader.d.ts.map +1 -1
- package/src/shade/renderer/restir/reservoir/shader.js +7 -4
- package/src/shade/renderer/scene/GPUInstancesAccelerationStructure.d.ts +7 -0
- package/src/shade/renderer/scene/GPUInstancesAccelerationStructure.d.ts.map +1 -1
- package/src/shade/renderer/scene/GPUInstancesAccelerationStructure.js +13 -1
- package/src/shade/renderer/scene/GPUSceneContext.d.ts +19 -1
- package/src/shade/renderer/scene/GPUSceneContext.d.ts.map +1 -1
- package/src/shade/renderer/scene/GPUSceneContext.js +40 -1
- package/src/shade/renderer/scene/MESH_INSTANCE_METADATA_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/scene/MESH_INSTANCE_METADATA_STRUCT.js +5 -0
- package/src/shade/renderer/scene/SCENE_DATABASE_RESOURCE.d.ts +7 -0
- package/src/shade/renderer/scene/SCENE_DATABASE_RESOURCE.d.ts.map +1 -0
- package/src/shade/renderer/scene/SCENE_DATABASE_RESOURCE.js +8 -0
- package/src/shade/renderer/scene/SceneManager.d.ts +9 -0
- package/src/shade/renderer/scene/SceneManager.d.ts.map +1 -1
- package/src/shade/renderer/scene/SceneManager.js +11 -0
- package/src/shade/renderer/scene/hierarchy/graph_nodes_update_transform_hierarchy.d.ts +11 -0
- package/src/shade/renderer/scene/hierarchy/graph_nodes_update_transform_hierarchy.d.ts.map +1 -1
- package/src/shade/renderer/scene/hierarchy/graph_nodes_update_transform_hierarchy.js +17 -0
- package/src/shade/renderer/scene/hierarchy/graph_scene_update_transform_hierarchy.d.ts +11 -0
- package/src/shade/renderer/scene/hierarchy/graph_scene_update_transform_hierarchy.d.ts.map +1 -1
- package/src/shade/renderer/scene/hierarchy/graph_scene_update_transform_hierarchy.js +18 -1
- package/src/shade/renderer/scene/rows/GPUSceneRows.d.ts +14 -0
- package/src/shade/renderer/scene/rows/GPUSceneRows.d.ts.map +1 -1
- package/src/shade/renderer/scene/rows/GPUSceneRows.js +114 -10
- package/src/shade/renderer/shader/ComputeShader.d.ts +33 -0
- package/src/shade/renderer/shader/ComputeShader.d.ts.map +1 -1
- package/src/shade/renderer/shader/ComputeShader.js +107 -0
- package/src/shade/renderer/shader/ImageShader.d.ts +27 -8
- package/src/shade/renderer/shader/ImageShader.d.ts.map +1 -1
- package/src/shade/renderer/shader/ImageShader.js +70 -1
- package/src/shade/renderer/shader/ShaderDescriptor.d.ts +27 -0
- package/src/shade/renderer/shader/ShaderDescriptor.d.ts.map +1 -1
- package/src/shade/renderer/shader/ShaderDescriptor.js +149 -1
- package/src/shade/renderer/shader/chunk/brdf/FRESNEL_BRIEF_2026_10_16.md +394 -0
- package/src/shade/renderer/shader/chunk/brdf/chunk_BRDF_GGX.d.ts +4 -1
- package/src/shade/renderer/shader/chunk/brdf/chunk_BRDF_GGX.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/brdf/chunk_BRDF_GGX.js +7 -4
- package/src/shade/renderer/shader/chunk/brdf/dfg/chunk_integrate_brdf.d.ts +4 -1
- package/src/shade/renderer/shader/chunk/brdf/dfg/chunk_integrate_brdf.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/brdf/dfg/chunk_integrate_brdf.js +9 -9
- package/src/shade/renderer/shader/chunk/brdf/fresnel/chunk_F_Schlick.d.ts +10 -1
- package/src/shade/renderer/shader/chunk/brdf/fresnel/chunk_F_Schlick.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/brdf/fresnel/chunk_F_Schlick.js +16 -5
- package/src/shade/renderer/shader/chunk/bvh/chunk_bvh_query_aabb_cooperative.d.ts +82 -0
- package/src/shade/renderer/shader/chunk/bvh/chunk_bvh_query_aabb_cooperative.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/bvh/chunk_bvh_query_aabb_cooperative.js +286 -0
- package/src/shade/renderer/shader/chunk/bvh/chunk_bvh_query_aabb_frontier.d.ts +47 -0
- package/src/shade/renderer/shader/chunk/bvh/chunk_bvh_query_aabb_frontier.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/bvh/chunk_bvh_query_aabb_frontier.js +121 -0
- package/src/shade/renderer/shader/chunk/camera/chunk_project_view_position_from_depth.d.ts +17 -0
- package/src/shade/renderer/shader/chunk/camera/chunk_project_view_position_from_depth.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/camera/chunk_project_view_position_from_depth.js +45 -0
- package/src/shade/renderer/shader/chunk/camera/chunk_screen_coordinate_to_view.js +3 -3
- package/src/shade/renderer/shader/chunk/clipmap/CLIPMAP_LEVEL_STRUCT.d.ts +22 -0
- package/src/shade/renderer/shader/chunk/clipmap/CLIPMAP_LEVEL_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/clipmap/CLIPMAP_LEVEL_STRUCT.js +38 -0
- package/src/shade/renderer/shader/chunk/clipmap/chunk_clipmap_contains.d.ts +11 -0
- package/src/shade/renderer/shader/chunk/clipmap/chunk_clipmap_contains.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/clipmap/chunk_clipmap_contains.js +20 -0
- package/src/shade/renderer/shader/chunk/clipmap/chunk_clipmap_select_finest.d.ts +19 -0
- package/src/shade/renderer/shader/chunk/clipmap/chunk_clipmap_select_finest.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/clipmap/chunk_clipmap_select_finest.js +71 -0
- package/src/shade/renderer/shader/chunk/clipmap/chunk_clipmap_storage_coord.d.ts +15 -0
- package/src/shade/renderer/shader/chunk/clipmap/chunk_clipmap_storage_coord.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/clipmap/chunk_clipmap_storage_coord.js +25 -0
- package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_FROM_REC709_TO_P3.d.ts +17 -0
- package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_FROM_REC709_TO_P3.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/color/conversion/chunk_CRM_FROM_REC709_TO_P3.js +26 -0
- package/src/shade/renderer/shader/chunk/color/iCtCp/chunk_eotf_st2084.d.ts +1 -1
- package/src/shade/renderer/shader/chunk/color/iCtCp/chunk_eotf_st2084.js +62 -62
- package/src/shade/renderer/shader/chunk/color/tonemap/HDR_TONE_MAPPING_FORMS_BRIEF_2026_10_16.md +318 -0
- package/src/shade/renderer/shader/chunk/color/tonemap/SDR_TONE_MAPPING_BRIEF_2026_10_16.md +237 -0
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_PAPER_WHITE_NITS.d.ts +17 -0
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_PAPER_WHITE_NITS.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_PAPER_WHITE_NITS.js +22 -0
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_khronos_pbr.d.ts +14 -1
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_khronos_pbr.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_khronos_pbr.js +28 -15
- package/src/shade/renderer/shader/chunk/color/tonemap/gt7/chunk_tonemap_gt7.d.ts +16 -0
- package/src/shade/renderer/shader/chunk/color/tonemap/gt7/chunk_tonemap_gt7.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/color/tonemap/gt7/chunk_tonemap_gt7.js +122 -110
- package/src/shade/renderer/shader/chunk/geometry/aabb3/chunk_aabb3_intersects_aabb3.d.ts +14 -0
- package/src/shade/renderer/shader/chunk/geometry/aabb3/chunk_aabb3_intersects_aabb3.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/geometry/aabb3/chunk_aabb3_intersects_aabb3.js +24 -0
- package/src/shade/renderer/shader/chunk/geometry/aabb3/chunk_aabb3_signed_distance_to_point.d.ts +3 -0
- package/src/shade/renderer/shader/chunk/geometry/aabb3/chunk_aabb3_signed_distance_to_point.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/geometry/aabb3/chunk_aabb3_signed_distance_to_point.js +9 -10
- package/src/shade/renderer/shader/chunk/geometry/chunk_point_closest_on_line.d.ts +11 -0
- package/src/shade/renderer/shader/chunk/geometry/chunk_point_closest_on_line.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/geometry/chunk_point_closest_on_line.js +28 -0
- package/src/shade/renderer/shader/chunk/geometry/chunk_point_distance_to_line.d.ts +3 -2
- package/src/shade/renderer/shader/chunk/geometry/chunk_point_distance_to_line.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/geometry/chunk_point_distance_to_line.js +8 -17
- package/src/shade/renderer/shader/chunk/geometry/meshlet/chunk_read_meshlet_attribute_u32.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/geometry/meshlet/chunk_read_meshlet_attribute_u32.js +3 -0
- package/src/shade/renderer/shader/chunk/geometry/meshlet/chunk_read_meshlet_attribute_vec2f.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/geometry/meshlet/chunk_read_meshlet_attribute_vec2f.js +4 -1
- package/src/shade/renderer/shader/chunk/geometry/meshlet/chunk_read_meshlet_attribute_vec3f.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/geometry/meshlet/chunk_read_meshlet_attribute_vec3f.js +4 -1
- package/src/shade/renderer/shader/chunk/geometry/plane/chunk_point_distance_above_plane.d.ts +8 -0
- package/src/shade/renderer/shader/chunk/geometry/plane/chunk_point_distance_above_plane.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/geometry/plane/chunk_point_distance_above_plane.js +8 -0
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_offset_ray_from_depth.d.ts +20 -0
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_offset_ray_from_depth.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/geometry/ray/chunk_offset_ray_from_depth.js +33 -0
- package/src/shade/renderer/shader/chunk/geometry/vec3/chunk_v3_angle_stable.d.ts +14 -0
- package/src/shade/renderer/shader/chunk/geometry/vec3/chunk_v3_angle_stable.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/geometry/vec3/chunk_v3_angle_stable.js +21 -0
- package/src/shade/renderer/shader/chunk/geometry/vec3/chunk_v3_clamp_to_cone.d.ts +21 -0
- package/src/shade/renderer/shader/chunk/geometry/vec3/chunk_v3_clamp_to_cone.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/geometry/vec3/chunk_v3_clamp_to_cone.js +49 -0
- package/src/shade/renderer/shader/chunk/geometry/vec3/chunk_v3_slerp.d.ts +29 -0
- package/src/shade/renderer/shader/chunk/geometry/vec3/chunk_v3_slerp.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/geometry/vec3/chunk_v3_slerp.js +86 -0
- package/src/shade/renderer/shader/chunk/grid/GRID_TILE_WINDOW_STRUCT.d.ts +24 -0
- package/src/shade/renderer/shader/chunk/grid/GRID_TILE_WINDOW_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/grid/GRID_TILE_WINDOW_STRUCT.js +30 -0
- package/src/shade/renderer/shader/chunk/grid/chunk_grid_tile_halo_f32.d.ts +55 -0
- package/src/shade/renderer/shader/chunk/grid/chunk_grid_tile_halo_f32.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/grid/chunk_grid_tile_halo_f32.js +101 -0
- package/src/shade/renderer/shader/chunk/grid/chunk_grid_tile_halo_vec4.d.ts +24 -0
- package/src/shade/renderer/shader/chunk/grid/chunk_grid_tile_halo_vec4.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/grid/chunk_grid_tile_halo_vec4.js +70 -0
- package/src/shade/renderer/shader/chunk/grid/chunk_grid_tile_window.d.ts +42 -0
- package/src/shade/renderer/shader/chunk/grid/chunk_grid_tile_window.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/grid/chunk_grid_tile_window.js +88 -0
- package/src/shade/renderer/shader/chunk/light/chunk_compute_multiscattering_specular.d.ts +4 -0
- package/src/shade/renderer/shader/chunk/light/chunk_compute_multiscattering_specular.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/light/chunk_compute_multiscattering_specular.js +12 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_vertices.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_get_vertices.js +4 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_lookup_nearest_cell.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_mesh_lookup_nearest_cell.js +4 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_data.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_data.js +4 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_position.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_probe_get_position.js +4 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_radiance.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/light/lpv/chunk_lpv_sample_radiance.js +4 -1
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_mask_weights_by_visibility.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_mask_weights_by_visibility.js +6 -1
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_sample_depth_atlas.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/light/lpv/depth/chunk_lpv_sample_depth_atlas.js +13 -1
- package/src/shade/renderer/shader/chunk/material/MATERIAL_SHADING_INFO_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/material/MATERIAL_SHADING_INFO_STRUCT.js +7 -0
- package/src/shade/renderer/shader/chunk/material/MULTISCATTER.md +159 -0
- package/src/shade/renderer/shader/chunk/material/chunk_compute_indirect_specular.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/material/chunk_compute_indirect_specular.js +29 -5
- package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.d.ts +24 -0
- package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/material/chunk_re_direct_multiscatter.js +84 -0
- package/src/shade/renderer/shader/chunk/material/chunk_re_indirect_specular_physical.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/material/chunk_re_indirect_specular_physical.js +2 -0
- package/src/shade/renderer/shader/chunk/math/chunk_falloff_quadratic.d.ts +11 -0
- package/src/shade/renderer/shader/chunk/math/chunk_falloff_quadratic.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/math/chunk_falloff_quadratic.js +20 -0
- package/src/shade/renderer/shader/chunk/noise/chunk_stbn_sample_vec2.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/noise/chunk_stbn_sample_vec2.js +4 -1
- package/src/shade/renderer/shader/chunk/noise/chunk_stbn_sample_vec3.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/noise/chunk_stbn_sample_vec3.js +3 -0
- package/src/shade/renderer/shader/chunk/physics/fluid/chunk_vortex_swirl.d.ts +20 -0
- package/src/shade/renderer/shader/chunk/physics/fluid/chunk_vortex_swirl.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/physics/fluid/chunk_vortex_swirl.js +39 -0
- package/src/shade/renderer/shader/chunk/physics/kinematics/chunk_rigid_velocity_at_point.d.ts +12 -0
- package/src/shade/renderer/shader/chunk/physics/kinematics/chunk_rigid_velocity_at_point.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/physics/kinematics/chunk_rigid_velocity_at_point.js +21 -0
- package/src/shade/renderer/shader/chunk/screen_space/SCREEN_SPACE_RESOURCES.d.ts +17 -0
- package/src/shade/renderer/shader/chunk/screen_space/SCREEN_SPACE_RESOURCES.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/screen_space/SCREEN_SPACE_RESOURCES.js +19 -0
- package/src/shade/renderer/shader/chunk/screen_space/chunk_ffx_sssr_load_depth.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/screen_space/chunk_ffx_sssr_load_depth.js +5 -1
- package/src/shade/renderer/shader/chunk/screen_space/chunk_ffx_sssr_load_world_space_normal.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/screen_space/chunk_ffx_sssr_load_world_space_normal.js +4 -1
- package/src/shade/renderer/shader/chunk/screen_space/chunk_ffx_sssr_screen_space_to_view_space.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/screen_space/chunk_ffx_sssr_screen_space_to_view_space.js +4 -1
- package/src/shade/renderer/shader/chunk/screen_space/chunk_ffx_sssr_validate_hit.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/screen_space/chunk_ffx_sssr_validate_hit.js +3 -0
- package/src/shade/renderer/shader/chunk/screen_space/chunk_screen_space_linear_ray.d.ts +43 -0
- package/src/shade/renderer/shader/chunk/screen_space/chunk_screen_space_linear_ray.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/screen_space/chunk_screen_space_linear_ray.js +319 -0
- 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 +3 -5
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_box.d.ts +16 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_box.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_box.js +28 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_capsule.d.ts +18 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_capsule.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_capsule.js +30 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_cylinder.d.ts +18 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_cylinder.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_cylinder.js +28 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_sphere.d.ts +13 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_sphere.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf3_sphere.js +20 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf_texture_region_sample_linear_uv.d.ts +7 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf_texture_region_sample_linear_uv.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/sdf/chunk_sdf_texture_region_sample_linear_uv.js +16 -41
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_kind.d.ts +10 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_kind.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_kind.js +24 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_local_bounds.d.ts +20 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_local_bounds.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_local_bounds.js +54 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_signed_distance.d.ts +23 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_signed_distance.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_signed_distance.js +82 -0
- package/src/shade/renderer/shader/chunk/spherical_harmonics/exponential/chunk_sh_exp_split_sum.d.ts +4 -3
- package/src/shade/renderer/shader/chunk/spherical_harmonics/exponential/chunk_sh_exp_split_sum.d.ts.map +1 -1
- package/src/shade/renderer/shader/chunk/spherical_harmonics/exponential/chunk_sh_exp_split_sum.js +4 -3
- package/src/shade/renderer/shader/chunk/subgroup/chunk_subgroup_append_slot.d.ts +31 -0
- package/src/shade/renderer/shader/chunk/subgroup/chunk_subgroup_append_slot.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/subgroup/chunk_subgroup_append_slot.js +60 -0
- package/src/shade/renderer/shader/chunk/subgroup/chunk_subgroup_atomic_add.d.ts +15 -0
- package/src/shade/renderer/shader/chunk/subgroup/chunk_subgroup_atomic_add.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/subgroup/chunk_subgroup_atomic_add.js +29 -0
- package/src/shade/renderer/shader/chunk/texture/TEXTURE3D_TRILINEAR_CORNERS_STRUCT.d.ts +15 -0
- package/src/shade/renderer/shader/chunk/texture/TEXTURE3D_TRILINEAR_CORNERS_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/texture/TEXTURE3D_TRILINEAR_CORNERS_STRUCT.js +20 -0
- package/src/shade/renderer/shader/chunk/texture/chunk_texel_coordinate_to_uv3.d.ts +11 -0
- package/src/shade/renderer/shader/chunk/texture/chunk_texel_coordinate_to_uv3.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/texture/chunk_texel_coordinate_to_uv3.js +18 -0
- package/src/shade/renderer/shader/chunk/texture/chunk_uv3_to_texel_coordinate.d.ts +11 -0
- package/src/shade/renderer/shader/chunk/texture/chunk_uv3_to_texel_coordinate.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/texture/chunk_uv3_to_texel_coordinate.js +18 -0
- package/src/shade/renderer/shader/chunk/texture/sample/chunk_texture3d_trilinear_corners.d.ts +35 -0
- package/src/shade/renderer/shader/chunk/texture/sample/chunk_texture3d_trilinear_corners.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/texture/sample/chunk_texture3d_trilinear_corners.js +159 -0
- package/src/shade/renderer/shader/compiler/CodeChunk.d.ts +67 -1
- package/src/shade/renderer/shader/compiler/CodeChunk.d.ts.map +1 -1
- package/src/shade/renderer/shader/compiler/CodeChunk.js +205 -2
- package/src/shade/renderer/shader/compiler/CodeChunkChoice.d.ts +76 -0
- package/src/shade/renderer/shader/compiler/CodeChunkChoice.d.ts.map +1 -0
- package/src/shade/renderer/shader/compiler/CodeChunkChoice.js +176 -0
- package/src/shade/renderer/shader/compiler/SHADER_SWITCH_PROPOSAL_2026_10_16.md +932 -0
- package/src/shade/renderer/shader/compiler/ShaderSwitch.d.ts +86 -0
- package/src/shade/renderer/shader/compiler/ShaderSwitch.d.ts.map +1 -0
- package/src/shade/renderer/shader/compiler/ShaderSwitch.js +178 -0
- package/src/shade/renderer/shader/compiler/ShaderSwitchSet.d.ts +67 -0
- package/src/shade/renderer/shader/compiler/ShaderSwitchSet.d.ts.map +1 -0
- package/src/shade/renderer/shader/compiler/ShaderSwitchSet.js +229 -0
- package/src/shade/renderer/shader/graph/graph_prepare_bindings.d.ts.map +1 -1
- package/src/shade/renderer/shader/graph/graph_prepare_bindings.js +69 -0
- package/src/shade/renderer/shader/resource/ShaderResourceDescriptor.d.ts +94 -2
- package/src/shade/renderer/shader/resource/ShaderResourceDescriptor.d.ts.map +1 -1
- package/src/shade/renderer/shader/resource/ShaderResourceDescriptor.js +333 -2
- package/src/shade/renderer/shader/resource/ShaderResourceGroupDescriptor.d.ts +14 -1
- package/src/shade/renderer/shader/resource/ShaderResourceGroupDescriptor.d.ts.map +1 -1
- package/src/shade/renderer/shader/resource/ShaderResourceGroupDescriptor.js +28 -150
- package/src/shade/renderer/shader/resource/encoder_prepare_shader_bindings_defaults.d.ts +5 -0
- package/src/shade/renderer/shader/resource/encoder_prepare_shader_bindings_defaults.d.ts.map +1 -1
- package/src/shade/renderer/shader/resource/encoder_prepare_shader_bindings_defaults.js +11 -1
- package/src/shade/renderer/shadow/contact/CONTACT_SHADOW_WAVE_SIZE.d.ts +14 -0
- package/src/shade/renderer/shadow/contact/CONTACT_SHADOW_WAVE_SIZE.d.ts.map +1 -0
- package/src/shade/renderer/shadow/contact/CONTACT_SHADOW_WAVE_SIZE.js +13 -0
- package/src/shade/renderer/shadow/contact/ContactShadowDispatchList.d.ts +65 -0
- package/src/shade/renderer/shadow/contact/ContactShadowDispatchList.d.ts.map +1 -0
- package/src/shade/renderer/shadow/contact/ContactShadowDispatchList.js +252 -0
- package/src/shade/renderer/shadow/contact/FINDINGS.md +413 -0
- package/src/shade/renderer/shadow/contact/chunk_contact_shadow_wavefront_extents.d.ts +29 -0
- package/src/shade/renderer/shadow/contact/chunk_contact_shadow_wavefront_extents.d.ts.map +1 -0
- package/src/shade/renderer/shadow/contact/chunk_contact_shadow_wavefront_extents.js +105 -0
- package/src/shade/renderer/shadow/contact/graph_contact_shadow_linear.d.ts +29 -0
- package/src/shade/renderer/shadow/contact/graph_contact_shadow_linear.d.ts.map +1 -0
- package/src/shade/renderer/shadow/contact/graph_contact_shadow_linear.js +39 -0
- package/src/shade/renderer/shadow/contact/graph_contact_shadow_wavefront.d.ts +29 -0
- package/src/shade/renderer/shadow/contact/graph_contact_shadow_wavefront.d.ts.map +1 -0
- package/src/shade/renderer/shadow/contact/graph_contact_shadow_wavefront.js +92 -0
- package/src/shade/renderer/shadow/contact/shader_contact_shadow_linear.d.ts +29 -0
- package/src/shade/renderer/shadow/contact/shader_contact_shadow_linear.d.ts.map +1 -0
- package/src/shade/renderer/shadow/contact/shader_contact_shadow_linear.js +128 -0
- package/src/shade/renderer/shadow/contact/shader_contact_shadow_wavefront.d.ts +52 -0
- package/src/shade/renderer/shadow/contact/shader_contact_shadow_wavefront.d.ts.map +1 -0
- package/src/shade/renderer/shadow/contact/shader_contact_shadow_wavefront.js +358 -0
- package/src/shade/renderer/shadow/map/SHADOWMAP_RESOURCES.d.ts +12 -0
- package/src/shade/renderer/shadow/map/SHADOWMAP_RESOURCES.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/SHADOWMAP_RESOURCES.js +14 -0
- package/src/shade/renderer/shadow/map/ShadowDirectionalTechnique.d.ts +10 -0
- package/src/shade/renderer/shadow/map/ShadowDirectionalTechnique.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/ShadowDirectionalTechnique.js +12 -0
- package/src/shade/renderer/shadow/map/shader/SHADOW_DIRECTIONAL_TECHNIQUE.d.ts +13 -0
- package/src/shade/renderer/shadow/map/shader/SHADOW_DIRECTIONAL_TECHNIQUE.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/shader/SHADOW_DIRECTIONAL_TECHNIQUE.js +14 -0
- package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_atlas_for_light.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/shader/chunk_sample_shadowmap_atlas_for_light.js +3 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_directional.d.ts +14 -8
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_directional.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_directional.js +20 -86
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_directional_cascades.d.ts +14 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_directional_cascades.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_directional_cascades.js +79 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_filtered.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_filtered.js +8 -1
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_point2.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_sample_point2.js +3 -0
- package/src/shade/renderer/shadow/ray/shader_ray_shadow_code.d.ts.map +1 -1
- package/src/shade/renderer/shadow/ray/shader_ray_shadow_code.js +12 -12
- package/src/shade/renderer/shadow/ray/shader_screens_space_shadows.d.ts.map +1 -1
- package/src/shade/renderer/shadow/ray/shader_screens_space_shadows.js +3 -0
- package/src/shade/renderer/shadow/ray/staged/gen/shader_generate_rays.d.ts.map +1 -1
- package/src/shade/renderer/shadow/ray/staged/gen/shader_generate_rays.js +153 -151
- package/src/shade/renderer/shadow/sdf/chunk_geometry_sdf_query_distance.d.ts.map +1 -1
- package/src/shade/renderer/shadow/sdf/chunk_geometry_sdf_query_distance.js +3 -3
- package/src/shade/renderer/shadow/sdf/chunk_sdf_geometry_raymarch.d.ts.map +1 -1
- package/src/shade/renderer/shadow/sdf/chunk_sdf_geometry_raymarch.js +3 -3
- package/src/shade/renderer/shadow/vsm/VSMPageManager.d.ts +5 -3
- package/src/shade/renderer/shadow/vsm/VSMPageManager.d.ts.map +1 -1
- package/src/shade/renderer/shadow/vsm/VSMPageManager.js +86 -89
- package/src/shade/renderer/shadow/vsm/VirtualShadowMap.d.ts.map +1 -1
- package/src/shade/renderer/shadow/vsm/VirtualShadowMap.js +12 -9
- package/src/shade/renderer/shadow/vsm/shader/chunk_shadowmap_sample_directional_virtual.d.ts +13 -0
- package/src/shade/renderer/shadow/vsm/shader/chunk_shadowmap_sample_directional_virtual.d.ts.map +1 -0
- package/src/shade/renderer/shadow/vsm/shader/chunk_shadowmap_sample_directional_virtual.js +48 -0
- package/src/shade/renderer/shadow/vsm/shader/chunk_vsm_append_mover.d.ts +2 -2
- package/src/shade/renderer/shadow/vsm/shader/chunk_vsm_append_mover.d.ts.map +1 -1
- package/src/shade/renderer/shadow/vsm/shader/chunk_vsm_append_mover.js +13 -26
- package/src/shade/renderer/texture/GPUTextureContext.d.ts +10 -0
- package/src/shade/renderer/texture/GPUTextureContext.d.ts.map +1 -1
- package/src/shade/renderer/texture/GPUTextureContext.js +24 -0
- package/src/shade/renderer/texture/SAMPLER_LINEAR_RESOURCE.d.ts +7 -0
- package/src/shade/renderer/texture/SAMPLER_LINEAR_RESOURCE.d.ts.map +1 -0
- package/src/shade/renderer/texture/SAMPLER_LINEAR_RESOURCE.js +8 -0
- package/src/shade/renderer/texture/atlas/GPUTileAtlas3D.d.ts +238 -0
- package/src/shade/renderer/texture/atlas/GPUTileAtlas3D.d.ts.map +1 -0
- package/src/shade/renderer/texture/atlas/GPUTileAtlas3D.js +747 -0
- package/src/shade/renderer/texture/atlas/chunk_tile_atlas_slot_origin.d.ts +20 -0
- package/src/shade/renderer/texture/atlas/chunk_tile_atlas_slot_origin.d.ts.map +1 -0
- package/src/shade/renderer/texture/atlas/chunk_tile_atlas_slot_origin.js +30 -0
- package/src/shade/renderer/texture/draw_texture_as_rgba.d.ts +2 -0
- package/src/shade/renderer/texture/draw_texture_as_rgba.d.ts.map +1 -1
- package/src/shade/renderer/texture/draw_texture_as_rgba.js +2 -0
- package/src/shade/renderer/texture/graph_draw_texture_3d_slice_as_rgba.d.ts +31 -0
- package/src/shade/renderer/texture/graph_draw_texture_3d_slice_as_rgba.d.ts.map +1 -0
- package/src/shade/renderer/texture/graph_draw_texture_3d_slice_as_rgba.js +116 -0
- package/src/shade/renderer/texture/shader_draw_texture_3d_slice_as_rgba.d.ts +33 -0
- package/src/shade/renderer/texture/shader_draw_texture_3d_slice_as_rgba.d.ts.map +1 -0
- package/src/shade/renderer/texture/shader_draw_texture_3d_slice_as_rgba.js +90 -0
- package/src/shade/renderer/texture/util/ZERO_UINT_PIXEL_TEXTURE.d.ts +10 -0
- package/src/shade/renderer/texture/util/ZERO_UINT_PIXEL_TEXTURE.d.ts.map +1 -0
- package/src/shade/renderer/texture/util/ZERO_UINT_PIXEL_TEXTURE.js +33 -0
- package/src/shade/renderer/view/VIEW_RESOURCE.d.ts +7 -0
- package/src/shade/renderer/view/VIEW_RESOURCE.d.ts.map +1 -0
- package/src/shade/renderer/view/VIEW_RESOURCE.js +8 -0
- package/src/shade/renderer/volumetrics/GPUSceneVolumetrics.d.ts +33 -6
- package/src/shade/renderer/volumetrics/GPUSceneVolumetrics.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/GPUSceneVolumetrics.js +299 -16
- package/src/shade/renderer/volumetrics/GPUViewVolumetrics.d.ts +11 -4
- package/src/shade/renderer/volumetrics/GPUViewVolumetrics.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/GPUViewVolumetrics.js +14 -4
- package/src/shade/renderer/volumetrics/NOTES.md +97 -0
- package/src/shade/renderer/volumetrics/PARTICIPATING_MEDIA_VOLUME_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/PARTICIPATING_MEDIA_VOLUME_STRUCT.js +42 -1
- package/src/shade/renderer/volumetrics/ParticipatingMediaVolume.d.ts +74 -10
- package/src/shade/renderer/volumetrics/ParticipatingMediaVolume.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/ParticipatingMediaVolume.js +136 -10
- package/src/shade/renderer/volumetrics/SceneVolumetrics.d.ts +30 -5
- package/src/shade/renderer/volumetrics/SceneVolumetrics.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/SceneVolumetrics.js +97 -68
- package/src/shade/renderer/volumetrics/VOLUMETRICS_RESOURCES.d.ts +17 -0
- package/src/shade/renderer/volumetrics/VOLUMETRICS_RESOURCES.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/VOLUMETRICS_RESOURCES.js +20 -0
- package/src/shade/renderer/volumetrics/VOLUMETRIC_NOISE_PLAN_2026_10_15.md +336 -0
- package/src/shade/renderer/volumetrics/chunk_integrate_optical_depth.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/chunk_integrate_optical_depth.js +82 -76
- package/src/shade/renderer/volumetrics/chunk_participating_media_volume_sample.d.ts +8 -4
- package/src/shade/renderer/volumetrics/chunk_participating_media_volume_sample.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/chunk_participating_media_volume_sample.js +22 -9
- package/src/shade/renderer/volumetrics/chunk_volumetrics_froxel_uvw_from_clip.d.ts +19 -0
- package/src/shade/renderer/volumetrics/chunk_volumetrics_froxel_uvw_from_clip.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/chunk_volumetrics_froxel_uvw_from_clip.js +56 -0
- package/src/shade/renderer/volumetrics/chunk_volumetrics_local_light_shadow.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/chunk_volumetrics_local_light_shadow.js +3 -0
- package/src/shade/renderer/volumetrics/chunk_volumetrics_sample_froxel_extinction.d.ts +12 -3
- package/src/shade/renderer/volumetrics/chunk_volumetrics_sample_froxel_extinction.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/chunk_volumetrics_sample_froxel_extinction.js +85 -48
- package/src/shade/renderer/volumetrics/chunk_volumetrics_sun_optical_depth.d.ts +7 -0
- package/src/shade/renderer/volumetrics/chunk_volumetrics_sun_optical_depth.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/chunk_volumetrics_sun_optical_depth.js +152 -130
- package/src/shade/renderer/volumetrics/gi/chunk_volumetrics_froxel_centre_ws.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/gi/chunk_volumetrics_froxel_centre_ws.js +5 -0
- package/src/shade/renderer/volumetrics/gi/chunk_volumetrics_gi.d.ts +7 -9
- package/src/shade/renderer/volumetrics/gi/chunk_volumetrics_gi.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/gi/chunk_volumetrics_gi.js +11 -9
- package/src/shade/renderer/volumetrics/gi/chunk_volumetrics_gi_sample.d.ts +35 -0
- package/src/shade/renderer/volumetrics/gi/chunk_volumetrics_gi_sample.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/gi/chunk_volumetrics_gi_sample.js +105 -0
- package/src/shade/renderer/volumetrics/gi/graph_build_froxel_gi.d.ts +15 -9
- package/src/shade/renderer/volumetrics/gi/graph_build_froxel_gi.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/gi/graph_build_froxel_gi.js +26 -36
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi.d.ts +10 -0
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi.js +51 -0
- package/src/shade/renderer/volumetrics/gi/volumetrics_gi_resources.d.ts +11 -0
- package/src/shade/renderer/volumetrics/gi/volumetrics_gi_resources.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/gi/volumetrics_gi_resources.js +19 -6
- package/src/shade/renderer/volumetrics/graph_build_froxel_irradiance.d.ts +11 -4
- package/src/shade/renderer/volumetrics/graph_build_froxel_irradiance.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/graph_build_froxel_irradiance.js +14 -5
- package/src/shade/renderer/volumetrics/graph_build_volumetrics.d.ts +4 -1
- package/src/shade/renderer/volumetrics/graph_build_volumetrics.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/graph_build_volumetrics.js +43 -10
- package/src/shade/renderer/volumetrics/noise/PARTICIPATING_MEDIA_NOISE.d.ts +133 -0
- package/src/shade/renderer/volumetrics/noise/PARTICIPATING_MEDIA_NOISE.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/noise/PARTICIPATING_MEDIA_NOISE.js +152 -0
- package/src/shade/renderer/volumetrics/noise/VOLUMETRICS_NOISE_TILE_BAKE_SETTINGS_STRUCT.d.ts +9 -0
- package/src/shade/renderer/volumetrics/noise/VOLUMETRICS_NOISE_TILE_BAKE_SETTINGS_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/noise/VOLUMETRICS_NOISE_TILE_BAKE_SETTINGS_STRUCT.js +24 -0
- package/src/shade/renderer/volumetrics/noise/bake_volumetrics_noise_tile.d.ts +28 -0
- package/src/shade/renderer/volumetrics/noise/bake_volumetrics_noise_tile.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/noise/bake_volumetrics_noise_tile.js +96 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise.d.ts +67 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise.js +73 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise_carried.d.ts +14 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise_carried.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise_carried.js +76 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise_scrolled.d.ts +14 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise_scrolled.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise_scrolled.js +38 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise_tap.d.ts +21 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise_tap.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/noise/chunk_participating_media_noise_tap.js +74 -0
- package/src/shade/renderer/volumetrics/noise/shader_volumetrics_noise_tile_bake.d.ts +10 -0
- package/src/shade/renderer/volumetrics/noise/shader_volumetrics_noise_tile_bake.d.ts.map +1 -0
- package/src/shade/renderer/volumetrics/noise/shader_volumetrics_noise_tile_bake.js +121 -0
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_irradiance.d.ts +6 -0
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_irradiance.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_irradiance.js +11 -2
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_lighting.d.ts +7 -0
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_lighting.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_lighting.js +14 -4
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_participating_media.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_participating_media.js +54 -5
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_sun_shadow_volume.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/shader_volumetrics_build_sun_shadow_volume.js +311 -290
- package/src/shade/renderer/volumetrics/volumetrics_position_world_to_froxel_uvw.d.ts.map +1 -1
- package/src/shade/renderer/volumetrics/volumetrics_position_world_to_froxel_uvw.js +33 -49
- package/src/shade/renderer/water/GPUWaterRenderer.d.ts +3 -2
- package/src/shade/renderer/water/GPUWaterRenderer.d.ts.map +1 -1
- package/src/shade/renderer/water/GPUWaterRenderer.js +27 -30
- package/src/shade/renderer/water/chunk_water_gi.d.ts +10 -2
- package/src/shade/renderer/water/chunk_water_gi.d.ts.map +1 -1
- package/src/shade/renderer/water/chunk_water_gi.js +70 -56
- package/src/shade/renderer/water/chunk_water_transport.d.ts +0 -1
- package/src/shade/renderer/water/chunk_water_transport.d.ts.map +1 -1
- package/src/shade/renderer/water/chunk_water_transport.js +0 -17
- package/src/shade/renderer/water/optics/chunk_water_inscatter.d.ts +2 -2
- package/src/shade/renderer/water/optics/chunk_water_inscatter.d.ts.map +1 -1
- package/src/shade/renderer/water/optics/chunk_water_inscatter.js +5 -2
- package/src/shade/renderer/water/optics/chunk_water_receiver_downwelling.d.ts +1 -2
- package/src/shade/renderer/water/optics/chunk_water_receiver_downwelling.d.ts.map +1 -1
- package/src/shade/renderer/water/optics/chunk_water_receiver_downwelling.js +4 -2
- package/src/shade/renderer/water/shader_water.d.ts +9 -10
- package/src/shade/renderer/water/shader_water.d.ts.map +1 -1
- package/src/shade/renderer/water/shader_water.js +88 -55
- package/src/shade/renderer/water/shader_water_avboit.d.ts +0 -4
- package/src/shade/renderer/water/shader_water_avboit.d.ts.map +1 -1
- package/src/shade/renderer/water/shader_water_avboit.js +0 -63
- package/src/shade/renderer/water/surface/GPUWaterSurface.d.ts +4 -1
- package/src/shade/renderer/water/surface/GPUWaterSurface.d.ts.map +1 -1
- package/src/shade/renderer/water/surface/GPUWaterSurface.js +9 -3
- package/src/shade/renderer/water/surface/WATER_SURFACE_RESOURCES.d.ts +15 -0
- package/src/shade/renderer/water/surface/WATER_SURFACE_RESOURCES.d.ts.map +1 -0
- package/src/shade/renderer/water/surface/WATER_SURFACE_RESOURCES.js +27 -0
- package/src/shade/renderer/water/surface/WATER_WAVE_RECORD_STRUCT.d.ts +2 -1
- package/src/shade/renderer/water/surface/WATER_WAVE_RECORD_STRUCT.d.ts.map +1 -1
- package/src/shade/renderer/water/surface/WATER_WAVE_RECORD_STRUCT.js +18 -9
- package/src/shade/renderer/water/surface/chunk_water_surface_sample.d.ts +0 -3
- package/src/shade/renderer/water/surface/chunk_water_surface_sample.d.ts.map +1 -1
- package/src/shade/renderer/water/surface/chunk_water_surface_sample.js +15 -3
- package/src/shade/renderer/water/surface/particles/shader_water_particles.js +2 -2
- package/src/shade/renderer/water/surface/shader_water_cull.d.ts +9 -3
- package/src/shade/renderer/water/surface/shader_water_cull.d.ts.map +1 -1
- package/src/shade/renderer/water/surface/shader_water_cull.js +46 -22
- package/src/shade/renderer/water/surface/shader_water_waves_derive.d.ts +26 -1
- package/src/shade/renderer/water/surface/shader_water_waves_derive.d.ts.map +1 -1
- package/src/shade/renderer/water/surface/shader_water_waves_derive.js +73 -9
- package/src/shade/renderer/wind/GPUSceneWind.d.ts +127 -0
- package/src/shade/renderer/wind/GPUSceneWind.d.ts.map +1 -0
- package/src/shade/renderer/wind/GPUSceneWind.js +410 -0
- package/src/shade/renderer/wind/WIND_FIELD.d.ts +53 -0
- package/src/shade/renderer/wind/WIND_FIELD.d.ts.map +1 -0
- package/src/shade/renderer/wind/WIND_FIELD.js +60 -0
- package/src/shade/renderer/wind/WIND_FIELD_STRUCT.d.ts +36 -0
- package/src/shade/renderer/wind/WIND_FIELD_STRUCT.d.ts.map +1 -0
- package/src/shade/renderer/wind/WIND_FIELD_STRUCT.js +61 -0
- package/src/shade/renderer/wind/WIND_FIELD_UNIFORM.d.ts +17 -0
- package/src/shade/renderer/wind/WIND_FIELD_UNIFORM.d.ts.map +1 -0
- package/src/shade/renderer/wind/WIND_FIELD_UNIFORM.js +17 -0
- package/src/shade/renderer/wind/chunk_wind_field_sample.d.ts +20 -0
- package/src/shade/renderer/wind/chunk_wind_field_sample.d.ts.map +1 -0
- package/src/shade/renderer/wind/chunk_wind_field_sample.js +26 -0
- package/src/shade/renderer/wind/chunk_wind_field_sample_cascades.d.ts +40 -0
- package/src/shade/renderer/wind/chunk_wind_field_sample_cascades.d.ts.map +1 -0
- package/src/shade/renderer/wind/chunk_wind_field_sample_cascades.js +92 -0
- package/src/shade/renderer/wind/chunk_wind_field_sample_uniform.d.ts +12 -0
- package/src/shade/renderer/wind/chunk_wind_field_sample_uniform.d.ts.map +1 -0
- package/src/shade/renderer/wind/chunk_wind_field_sample_uniform.js +22 -0
- package/src/shade/renderer/wind/wind_field_add_resources.d.ts +15 -0
- package/src/shade/renderer/wind/wind_field_add_resources.d.ts.map +1 -0
- package/src/shade/renderer/wind/wind_field_add_resources.js +22 -0
- package/src/shade/wgsl/emulator/CPUBitmapData.d.ts +5 -2
- package/src/shade/wgsl/emulator/CPUBitmapData.d.ts.map +1 -1
- package/src/shade/wgsl/emulator/CPUBitmapData.js +5 -2
- package/src/shade/wgsl/emulator/WGSLJavaScriptCompiler.d.ts +5 -1
- package/src/shade/wgsl/emulator/WGSLJavaScriptCompiler.d.ts.map +1 -1
- package/src/shade/wgsl/emulator/WGSLJavaScriptCompiler.js +118 -31
- package/src/shade/wgsl/emulator/WGSLLanguageCore.d.ts.map +1 -1
- package/src/shade/wgsl/emulator/WGSLLanguageCore.js +90 -22
- package/src/engine/network/transport/Channel.d.ts +0 -85
- package/src/engine/network/transport/Channel.d.ts.map +0 -1
- package/src/engine/network/transport/ReliableCommandPipeline.d.ts +0 -155
- package/src/engine/network/transport/ReliableCommandPipeline.d.ts.map +0 -1
- package/src/engine/network/transport/fragments/FragmentAssembler.d.ts +0 -105
- package/src/engine/network/transport/fragments/FragmentAssembler.d.ts.map +0 -1
- package/src/engine/network/transport/fragments/FragmentRetention.d.ts +0 -103
- package/src/engine/network/transport/fragments/FragmentRetention.d.ts.map +0 -1
- package/src/engine/network/transport/fragments/fragment_send.d.ts +0 -61
- package/src/engine/network/transport/fragments/fragment_send.d.ts.map +0 -1
- package/src/engine/network/transport/fragments/packet_size.d.ts +0 -99
- package/src/engine/network/transport/fragments/packet_size.d.ts.map +0 -1
- package/src/engine/physics/cloth/wind/ClothAmbientWind.d.ts +0 -87
- package/src/engine/physics/cloth/wind/ClothAmbientWind.d.ts.map +0 -1
- package/src/engine/physics/cloth/wind/ClothAmbientWind.js +0 -185
- package/src/shade/renderer/geometry/sdf/chunk_sdf_slot_index_to_texture_offset.d.ts +0 -7
- package/src/shade/renderer/geometry/sdf/chunk_sdf_slot_index_to_texture_offset.d.ts.map +0 -1
- package/src/shade/renderer/geometry/sdf/chunk_sdf_slot_index_to_texture_offset.js +0 -25
- package/src/shade/renderer/global_illumination/clipmap/GPUClipMap3D.d.ts +0 -43
- package/src/shade/renderer/global_illumination/clipmap/GPUClipMap3D.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/clipmap/GPUClipMap3D.js +0 -207
- package/src/shade/renderer/global_illumination/clipmap/RadianceField.d.ts +0 -21
- package/src/shade/renderer/global_illumination/clipmap/RadianceField.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/clipmap/RadianceField.js +0 -40
- package/src/shade/renderer/global_illumination/clipmap/chunk_clip_cascade_wrap_coord.d.ts +0 -13
- package/src/shade/renderer/global_illumination/clipmap/chunk_clip_cascade_wrap_coord.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/clipmap/chunk_clip_cascade_wrap_coord.js +0 -47
- package/src/shade/renderer/global_illumination/clipmap/shader_update_clipmap_cascade.d.ts +0 -7
- package/src/shade/renderer/global_illumination/clipmap/shader_update_clipmap_cascade.d.ts.map +0 -1
- package/src/shade/renderer/global_illumination/clipmap/shader_update_clipmap_cascade.js +0 -115
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_LOCAL_LIGHT_LIMIT.d.ts +0 -7
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_LOCAL_LIGHT_LIMIT.d.ts.map +0 -1
- package/src/shade/renderer/light/cluster/LIGHT_CLUSTER_LOCAL_LIGHT_LIMIT.js +0 -6
- package/src/shade/renderer/light/cluster/chunk_cluster_keep_smallest.d.ts +0 -21
- package/src/shade/renderer/light/cluster/chunk_cluster_keep_smallest.d.ts.map +0 -1
- package/src/shade/renderer/light/cluster/chunk_cluster_keep_smallest.js +0 -47
- package/src/shade/renderer/postprocess/ssr/resolve/build_ssr_resolve_shader.d.ts +0 -21
- package/src/shade/renderer/postprocess/ssr/resolve/build_ssr_resolve_shader.d.ts.map +0 -1
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader_Brick4.d.ts +0 -2
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader_Brick4.d.ts.map +0 -1
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader_Brick4.js +0 -24
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader_IBL.d.ts +0 -2
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader_IBL.d.ts.map +0 -1
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader_IBL.js +0 -21
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader_LPV.d.ts +0 -2
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader_LPV.d.ts.map +0 -1
- package/src/shade/renderer/postprocess/ssr/resolve/ssr_resolve_shader_LPV.js +0 -34
- package/src/shade/renderer/rasterize/forward/chunk_forward_shade_standard_fragment_brick4.d.ts +0 -3
- package/src/shade/renderer/rasterize/forward/chunk_forward_shade_standard_fragment_brick4.d.ts.map +0 -1
- package/src/shade/renderer/rasterize/forward/chunk_forward_shade_standard_fragment_ibl.d.ts +0 -7
- package/src/shade/renderer/rasterize/forward/chunk_forward_shade_standard_fragment_ibl.d.ts.map +0 -1
- package/src/shade/renderer/rasterize/forward/chunk_forward_shade_standard_fragment_ibl.js +0 -178
- package/src/shade/renderer/rasterize/native/avboit/shader_avboit_draw_brick4.d.ts +0 -9
- package/src/shade/renderer/rasterize/native/avboit/shader_avboit_draw_brick4.d.ts.map +0 -1
- package/src/shade/renderer/rasterize/native/avboit/shader_avboit_draw_ibl.d.ts +0 -9
- package/src/shade/renderer/rasterize/native/avboit/shader_avboit_draw_ibl.d.ts.map +0 -1
- package/src/shade/renderer/rasterize/native/avboit/shader_avboit_draw_ibl.js +0 -110
- package/src/shade/renderer/rasterize/native/oit/shader_oit_resolve_moments_ibl.d.ts +0 -9
- package/src/shade/renderer/rasterize/native/oit/shader_oit_resolve_moments_ibl.d.ts.map +0 -1
- package/src/shade/renderer/rasterize/native/oit/shader_oit_resolve_moments_ibl.js +0 -110
- package/src/shade/renderer/shader/chunk/brdf/fresnel/chunk_F_Hauber.d.ts +0 -9
- package/src/shade/renderer/shader/chunk/brdf/fresnel/chunk_F_Hauber.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/brdf/fresnel/chunk_F_Hauber.js +0 -22
- package/src/shade/renderer/shader/chunk/color/sRGB/chunk_RRTAndODTFit.d.ts +0 -6
- package/src/shade/renderer/shader/chunk/color/sRGB/chunk_RRTAndODTFit.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/color/sRGB/chunk_RRTAndODTFit.js +0 -16
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_aces.d.ts +0 -7
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_aces.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_aces.js +0 -46
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_agx.d.ts +0 -10
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_agx.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_agx.js +0 -127
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_pbr_neutral.d.ts +0 -7
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_pbr_neutral.d.ts.map +0 -1
- package/src/shade/renderer/shader/chunk/color/tonemap/chunk_tonemap_pbr_neutral.js +0 -39
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi_brick4.d.ts +0 -10
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi_brick4.d.ts.map +0 -1
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi_brick4.js +0 -55
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi_ibl.d.ts +0 -10
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi_ibl.d.ts.map +0 -1
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi_ibl.js +0 -47
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi_lpv.d.ts +0 -10
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi_lpv.d.ts.map +0 -1
- package/src/shade/renderer/volumetrics/gi/shader_volumetrics_gi_lpv.js +0 -63
|
@@ -4909,3 +4909,396 @@ reached the block. A mutant that changes `θ` by a part in a thousand in one arm
|
|
|
4909
4909
|
fails those two runs and no other. The extended cloth specs 10, unchanged. The whole physics suite
|
|
4910
4910
|
with its slow, bench and extended specs (`--mode all`): 187 files and 1,898 tests, green,
|
|
4911
4911
|
`cloth_pathology` among them. `check-types` 18 against a budget of 19.
|
|
4912
|
+
|
|
4913
|
+
---
|
|
4914
|
+
|
|
4915
|
+
## 67. The cloth-skirt example: a contact that arrives soft, and a self radius capped by the waistband
|
|
4916
|
+
|
|
4917
|
+
The website's cloth-skirt example (`meep-website/examples-src/cloth-skirt`, engine 3.46.0, whose cloth
|
|
4918
|
+
code is this tree's) shows "a bunch of visible penetrations". This section is the replay that found
|
|
4919
|
+
them, the two mechanisms behind them, the fix that landed for one, and three candidates measured for the
|
|
4920
|
+
other. Scripts, raw logs and frame renders are in the session's scratchpad (`probes/`), named below.
|
|
4921
|
+
|
|
4922
|
+
### The example, replayed headlessly
|
|
4923
|
+
|
|
4924
|
+
`skirt_repro.probe.js` rebuilds the example through the real `ClothSystem`: the 64×13 circle skirt from
|
|
4925
|
+
`cloth_proxy_from_mesh` (832 particles, rows from 9.8 mm at the waistband to 54 mm at the hem), the
|
|
4926
|
+
mannequin's eleven cloth colliders driven by `rumba-track.json` at 60 Hz (thighs to 2.8 m/s, their tips
|
|
4927
|
+
to 4.9), the waistband pinned to the abdomen, bend 0.63, damping 0.0125, 6 mm, 2×4, self-collision on.
|
|
4928
|
+
25 s, 1,500 steps; the dance is steps 96 onward (1,404 steps). Every metric is in **vertex order** —
|
|
4929
|
+
`ClothState#position` is colour-permuted and `ClothInstance#particle_of_node` maps back; read in particle
|
|
4930
|
+
order the triangle metrics are garbage (30,000 "crossings" on a flat ring). Per step: how far any free
|
|
4931
|
+
particle is inside any body collider and short of the 6 mm contact offset; how far the rendered surface
|
|
4932
|
+
(triangle centroids, edge midpoints) is inside one, and separately the **sag**, surface inside with every
|
|
4933
|
+
corner outside; pinches (inside one collider, within the offset of another); forearms or hands through the
|
|
4934
|
+
surface; contact-slot overflow; inside-episode lengths; and every 30 steps §31's crossings, edges through
|
|
4935
|
+
triangles they share no vertex with.
|
|
4936
|
+
|
|
4937
|
+
```
|
|
4938
|
+
dance, 1,404 steps shipped 2×4 4×8 budget 128×25 mesh at 2×4
|
|
4939
|
+
|
|
4940
|
+
steps with a particle inside 12.7% 0.0% 11.5%
|
|
4941
|
+
deepest particle penetration 12.6 mm 3.8 mm 13.8 mm
|
|
4942
|
+
short of the 6 mm offset by > 1 mm 8.1 mean 0.4 14.1
|
|
4943
|
+
inside episodes, median / max steps 1 / 6 1 / 1 1 / 4
|
|
4944
|
+
surface sag > 5 mm, corners outside 1.4% (8 mm) 0% 0%
|
|
4945
|
+
self-crossings a sample, mean / max 406 / 584 272 / 683 2,132 / 2,716
|
|
4946
|
+
pinched particles 1.4%, max 2 0 1.0%, max 12
|
|
4947
|
+
forearm or hand through the surface never never never
|
|
4948
|
+
contact slots full mean 0.04 0.01 0.21
|
|
4949
|
+
```
|
|
4950
|
+
|
|
4951
|
+
**Two mechanisms, and they separate on the first two columns.** The thighs through the skirt vanish at
|
|
4952
|
+
4×8 and do not move with resolution, so they are the contact row's convergence under a sweeping collider.
|
|
4953
|
+
The crossings do not move with the budget, so they are the self-collision model. Neither is the descent.
|
|
4954
|
+
|
|
4955
|
+
### Why the thigh showed: the ramp, in ratio terms
|
|
4956
|
+
|
|
4957
|
+
A thigh advances 17 mm a substep. A new contact starts at `CLOTH_CONTACT_K_MIN_RATIO = 0.25` of
|
|
4958
|
+
`m/h²` — 72 N/m for a 20 g particle at two substeps — and climbed by `β·|C| = 1e3 × 0.017 = 17 N/m` an
|
|
4959
|
+
iteration against a ceiling of `8·m/h² = 2,300 N/m`. In the band's own units that is **0.003 of the band
|
|
4960
|
+
per contact offset of violation per iteration**: against a limb the penalty never left the floor, the
|
|
4961
|
+
multiplier had to carry the push and was rebuilt from a quarter every substep, and four iterations
|
|
4962
|
+
built about 60% of it. The thigh sat 5 to 13 mm through for one to six steps on every forward swing.
|
|
4963
|
+
The measurement that chose `β` (§17) was a sheet landing on a floor, where the violation per substep
|
|
4964
|
+
after touchdown is `h²g`, a third of a millimetre. The reference 2D implementation (Giles et al.) ramps
|
|
4965
|
+
at `β = 1e5` against `m/h² ≈ 3,600` and a floor of 1, which is about eight times this engine's rate
|
|
4966
|
+
relative to the inertial scale, and ramps active rows only.
|
|
4967
|
+
|
|
4968
|
+
`cloth_contact_dual_update` now climbs by `ρ·k_max·|C|/(thickness + inflation)`,
|
|
4969
|
+
`ρ = CLOTH_CONTACT_RAMP_RATIO`. The sweep, dance steps with any particle inside / the deepest shortfall of
|
|
4970
|
+
the offset / the peak particle speed in the dance:
|
|
4971
|
+
|
|
4972
|
+
```
|
|
4973
|
+
variant inside shortfall peak m/s
|
|
4974
|
+
shipped, floor ¼, β = 1e3 12.7% 18.6 mm 3.95
|
|
4975
|
+
floor 1× 1.9% 19.1 3.47
|
|
4976
|
+
floor 8× (the ceiling) 1.1% 17.6 6.02 episodes median 4: slaps
|
|
4977
|
+
β = 1e4 0.2% 13.2 8.41 a spike
|
|
4978
|
+
β = 1e5 0.6% 17.7 3.84
|
|
4979
|
+
ratio ρ = 0.03 0.5% 13.1 4.79
|
|
4980
|
+
ratio ρ = 0.05 0.1% 10.4 3.63
|
|
4981
|
+
ratio ρ = 0.1 0.1% 7.7 3.73
|
|
4982
|
+
ratio ρ = 0.15 0.0% 5.0 3.49
|
|
4983
|
+
ratio ρ = 1 0.1% 7.3 3.23
|
|
4984
|
+
ratio ρ = 4 0.3% 16.0 4.25
|
|
4985
|
+
ρ = 0.1, active rows only 1.0% 15.5 3.93
|
|
4986
|
+
ρ = 1, active rows only 0.4% 12.7 3.27
|
|
4987
|
+
ρ = 0.1, seeded from the predicted violation at discovery, then active only
|
|
4988
|
+
0.4% 13.9 3.81
|
|
4989
|
+
```
|
|
4990
|
+
|
|
4991
|
+
The plateau starts at 0.05. Ramping active rows only — the reference's form, and the one-sided ramp §54
|
|
4992
|
+
rejected under `β` — leaves the thigh through ten times as often and takes the thrown particle's stopped
|
|
4993
|
+
speed (`cloth_contact_row.spec`'s capsule) from 6 to 4 m/s at two substeps and 12 to 9 at four; seeding
|
|
4994
|
+
a new row's penalty from Lewin's semi-continuous estimate of its violation over the step, then ramping
|
|
4995
|
+
active rows only, does no better. The pre-stiffening of speculative rows is what a fast arrival hits,
|
|
4996
|
+
twice measured, and it stays. The tunnelling threshold does not move at any ρ: 6 m/s at two substeps,
|
|
4997
|
+
12 at four, the substep bound §7 P3 states; the speeds just past it are chaotic (8 m/s is stopped under
|
|
4998
|
+
one ramp and not another), which is why the gate now pins 10 and 12.
|
|
4999
|
+
|
|
5000
|
+
### What a ratio ramp does to resting cloth, and the decay
|
|
5001
|
+
|
|
5002
|
+
With the ratio ramp every row violated by millimetres while a pile lands is at the ceiling for good, and
|
|
5003
|
+
at the ceiling §53's limit cycle is too large for silk to sleep. `cloth_sheet.slow.spec`'s three scenes
|
|
5004
|
+
under each form (the twirled skirt's gate is "settles within 2 mm of where it hung"):
|
|
5005
|
+
|
|
5006
|
+
```
|
|
5007
|
+
form ribbon pile skirt settle draped sheet carried
|
|
5008
|
+
shipped β asleep at 166 0.9 mm 338°
|
|
5009
|
+
ρ = 0.1, unconditional never 17.1 mm 316° (gate ≥ 320°)
|
|
5010
|
+
ρ = 0.1, active rows only never 2.2 mm 318°
|
|
5011
|
+
ρ = 0.1, seeded + active never 2.4 mm pass
|
|
5012
|
+
ρ = 0.1, penalties decay 0.9 pass 26.2 mm pass
|
|
5013
|
+
ρ = 0.1, penalties decay 0.8 pass pass pass
|
|
5014
|
+
ρ = 0.1, penalties decay 0.5 pass 3.2 mm pass
|
|
5015
|
+
```
|
|
5016
|
+
|
|
5017
|
+
Active rows only fails it too, and that is the tell: the problem is not the pre-stiffening of
|
|
5018
|
+
speculative rows but the penalty a row is *left with* once it has been violated. The resolution is the
|
|
5019
|
+
one §18 named when it recorded the coupling, a `γ < 1` for contacts: `CLOTH_CONTACT_GAMMA` decays a
|
|
5020
|
+
contact's two penalties per substep at the warm start, the multiplier's `α·γ` untouched, so a quiet row
|
|
5021
|
+
sinks back to the floor in a few steps while the multiplier carries its load, and a violated one
|
|
5022
|
+
re-climbs within an iteration. `rope_sleep.probe.js`, the 6-link rope of §53 on a floor, asleep at step:
|
|
5023
|
+
|
|
5024
|
+
```
|
|
5025
|
+
penalties decayed both, γ_c 1 0.95 0.9 0.8 0.5
|
|
5026
|
+
floor, friction 0 326 501 377 308 1005
|
|
5027
|
+
floor, friction 0.5 193 208 194 196 353
|
|
5028
|
+
cotton rope, floor 0.5 347 220 247 264 277
|
|
5029
|
+
rope on a sphere 368 369 369 369 399
|
|
5030
|
+
|
|
5031
|
+
normal penalty only, γ_c 1 0.85 0.8 0.75 0.7
|
|
5032
|
+
floor, friction 0 326 377 308 376 never
|
|
5033
|
+
floor, friction 0.5 193 189 never never 209
|
|
5034
|
+
```
|
|
5035
|
+
|
|
5036
|
+
Decaying the normal penalty alone makes the resting rope's sleep a coin toss; decaying both sleeps every
|
|
5037
|
+
scene from 0.5 to 0.95. **0.8** passes the three slow gates; 0.7, 0.75 and 0.85 leave the twirled skirt
|
|
5038
|
+
2.7–2.9 mm from where it hung against a 2 mm gate, and 0.9 and 0.5 further. That settle is a chaotic
|
|
5039
|
+
quantity — folds fall differently — and 0.8 passing it is luck as much as merit; its real argument is the
|
|
5040
|
+
rope table, where 0.8 is in the middle of the flat region. On the skirt the decay changes nothing:
|
|
5041
|
+
0.1% of steps inside at 0.8, 0.5% at 0.9.
|
|
5042
|
+
|
|
5043
|
+
### Against the measurements that chose the shipped constants
|
|
5044
|
+
|
|
5045
|
+
`cloth_m2_measure.mjs`, the shipped build against the ratio ramp alone and with the decay:
|
|
5046
|
+
|
|
5047
|
+
```
|
|
5048
|
+
shipped β ρ = 0.1 ρ = 0.1, γ_c = 0.8
|
|
5049
|
+
§17 sheet landing at 3 m/s, floor 1/32:
|
|
5050
|
+
worst penetration 1.10 mm 0.68 mm 0.69 mm
|
|
5051
|
+
kinetic energy at step 240 8.6e-9 J 1.1e-9 7.9e-9
|
|
5052
|
+
peak contact force 1.42 N 1.56 N 1.56 N
|
|
5053
|
+
§17 at 8 m/s: penetration / peak speed 1.69 / 3.64 0.72 / 3.44 0.70 / 3.44
|
|
5054
|
+
§6 capsule swept through a hanging sheet
|
|
5055
|
+
at 2 m/s, worst penetration 17.1 mm 1.8 mm 1.7 mm
|
|
5056
|
+
§5 sheet on a slope, metres slid in 4 s:
|
|
5057
|
+
20°, μ = 0.4 (Coulomb: sticks) 0.194 0.000 0.553
|
|
5058
|
+
10°, μ = 0.2 (Coulomb: sticks) 0.000 0.000 0.070
|
|
5059
|
+
30°, μ = 0.7 (sticks) 0.000 0.000 0.0003
|
|
5060
|
+
50°, μ = 1.2 (slides) 2.71 0.31 3.53
|
|
5061
|
+
```
|
|
5062
|
+
|
|
5063
|
+
The ramp alone is better than the shipped build on every row, friction included — the marginal slope
|
|
5064
|
+
case sticks exactly as Coulomb says. The decay gives the friction back: a sheet that should stick creeps
|
|
5065
|
+
0.2–0.3 mm in four seconds, and the marginal case slides 0.55 m where the shipped build slid 0.19. The
|
|
5066
|
+
friction row's penalty decays too because the normal-only decay is the erratic column above; the friction
|
|
5067
|
+
cap reads the current iteration's normal force (§8.3), which is what couples the two. That is the trade
|
|
5068
|
+
the pair makes, and it is recorded rather than tuned around: ρ = 0.1 with γ_c = 0.8 ships, both as
|
|
5069
|
+
`CLOTH_SOLVER_TUNING` fields, and the friction exactness is the cost.
|
|
5070
|
+
|
|
5071
|
+
### What it costs elsewhere
|
|
5072
|
+
|
|
5073
|
+
A rope seeded with its tail 20 mm inside a sphere — `cloth_collision.spec`'s "far side of the room"
|
|
5074
|
+
rope — is ejected at 6.75 m/s in the shipped build and at 9.5 under ρ = 0.1; the gate noticed only
|
|
5075
|
+
because the rope left the sphere's gather reach two steps sooner. The sphere now sits beside the rope's
|
|
5076
|
+
middle, 22 mm off the links, gathered and never touched. The three gates in `cloth_contact_row.spec`
|
|
5077
|
+
that pinned the old arithmetic re-pin to the ratio, and a new one holds M2 §6's capsule at 2 m/s to
|
|
5078
|
+
"never inside the surface" (17 mm red on the shipped ramp, 1.8 mm green). The gather and warm-start
|
|
5079
|
+
costs nothing: paired in one process, five skirts stepped alternately, the ratio ramp reads 0.97× the
|
|
5080
|
+
shipped step.
|
|
5081
|
+
|
|
5082
|
+
### Self-collision: three candidates against the hem
|
|
5083
|
+
|
|
5084
|
+
The hem's problem is that `ClothState#self_radius` is one number, `max(thickness, ½·shortest row)` capped
|
|
5085
|
+
at `0.4 × closest free pair`, and both lengths are measured over the whole cloth: the waistband's 9.8 mm
|
|
5086
|
+
rows and 19.6 mm closest free pair give the 54 mm hem a 6 mm radius. §18 carries it. Three answers were
|
|
5087
|
+
measured on the skirt (dance, ρ = 0.1, γ_c = 0.8 throughout) and on §64's eleven ribbon piles
|
|
5088
|
+
(`ribbons.probe.js`: silk strips 16×3 at 3 cm on a floor with friction 0.5, 2,400 steps or asleep):
|
|
5089
|
+
|
|
5090
|
+
```
|
|
5091
|
+
skirt inside shortfall crossings mean / max kinetic J pairs step cost
|
|
5092
|
+
pair row as shipped 0.1% 10.4 mm 432 / 632 2.58 44
|
|
5093
|
+
per-particle radius 0.0% 5.1 102 / 180 2.87 135 0.94×
|
|
5094
|
+
predicted travel in the search 0.1% 8.8 412 / 620 2.56 54
|
|
5095
|
+
frozen pair normal 1.9% 14.8 424 / 663 2.60 46
|
|
5096
|
+
travel + frozen 0.0% 4.3 443 / 715 2.43 55
|
|
5097
|
+
frozen, gated on the live distance 1.1% 13.0 438 / 697 2.52
|
|
5098
|
+
travel + per-particle 1.2% 16.2 38 / 144 2.86
|
|
5099
|
+
travel + frozen + per-particle 1.3% 17.3 35 / 125 2.80 79
|
|
5100
|
+
travel + gated frozen + per-particle 0.7% 14.6 27 / 101 2.79
|
|
5101
|
+
point-triangle rows + pair 6.3% 58.2 197 / 463 5.39, peak 18.8 m/s
|
|
5102
|
+
point-triangle + per-particle 6.6% 56.4 89 / 322 6.81, peak 18.8
|
|
5103
|
+
point-triangle + travel + frozen + pp 5.3% 55.3 56 / 273 6.33, peak 18.8
|
|
5104
|
+
point-triangle alone 6.5% 45.3 237 / 1,015 5.61, peak 18.8
|
|
5105
|
+
|
|
5106
|
+
ribbon piles, 11 scenes asleep clean (no crossing ever) order kept worst crossings, mean
|
|
5107
|
+
pair row as shipped 11 6 7 7.5
|
|
5108
|
+
predicted travel in the search 11 9 9 5.7
|
|
5109
|
+
frozen pair normal 11 9 9 1.6
|
|
5110
|
+
travel + frozen 11 10 11 0.2
|
|
5111
|
+
travel + frozen, gated on the distance 11 10 11 0.2
|
|
5112
|
+
point-triangle alone 5 7 9 34.2
|
|
5113
|
+
point-triangle + pair 11 7 10 1.6
|
|
5114
|
+
point-triangle + pair + travel + frozen 11 11 11 0.0
|
|
5115
|
+
```
|
|
5116
|
+
|
|
5117
|
+
**The per-particle radius** — the shipped formula applied locally,
|
|
5118
|
+
`r_i = clamp(thickness, ½·shortest row incident on i, 0.4 × closest free pair of i)` (the prototype used
|
|
5119
|
+
the sheet's analytic cap, `0.8·row`; the real one measures it) — takes the skirt's crossings down by
|
|
5120
|
+
three quarters with no collider cost and a cheaper step, because the hem holds itself apart and makes
|
|
5121
|
+
fewer contacts. It is still the sphere model. On the uniform ribbons it is the shipped row.
|
|
5122
|
+
|
|
5123
|
+
**Lewin's two moves on the pair row** (GDC 2018, "Cloth Self Collision with Predictive Contacts") are
|
|
5124
|
+
the semi-continuous candidate test — the relative displacement over the step projected on the separating
|
|
5125
|
+
direction, which is §35's missing travel term — and the pair's normal frozen for the step, which turns
|
|
5126
|
+
the row into a half-space no pair can pass through however far the other rows shove it. On the ribbon
|
|
5127
|
+
piles they are worth more than anything else measured: every pile asleep, ten of eleven never crossing,
|
|
5128
|
+
all eleven in order, the worst crossings 7.5 → 0.2 a scene. On the skirt they do not touch the
|
|
5129
|
+
crossings, which are the radius, and they cost limbs there: 1.9% of steps with a thigh through under
|
|
5130
|
+
the frozen normal against 0.1%, 1.1% with it gated on the live distance (a half-space stays active
|
|
5131
|
+
after its pair has slid apart tangentially, the artefact the talk names), and 1.2% for the travel term
|
|
5132
|
+
on top of the per-particle radius, where the two together take the crossings to 38. The piles keep
|
|
5133
|
+
their result under the gate. Why a wider or stickier pair row puts a hem particle into a thigh is not
|
|
5134
|
+
measured; the shape of it is a particle pinched between a fold and the limb, with the pair row a plain
|
|
5135
|
+
penalty whose shares over several pairs sum past one. It is the number that keeps the two moves from
|
|
5136
|
+
landing with the radius.
|
|
5137
|
+
|
|
5138
|
+
**Predictive point-triangle rows** were prototyped as the talk's self collision (`pt_rows.mjs`): a
|
|
5139
|
+
triangle-AABB hash grid extruded by displacement, the closest point for the weights and the fat-triangle
|
|
5140
|
+
test, the face normal signed to the point's side, `C = n̂·(x_p − Σ w x) − 2·thickness ≥ 0` frozen for the
|
|
5141
|
+
step, up to four rows a vertex, as plain penalties into the self row's Jacobi scratch. Three things were
|
|
5142
|
+
learned, each by a trace of two stacked ribbons (`ribbons_trace.probe.js`):
|
|
5143
|
+
|
|
5144
|
+
- As a penalty at the pair row's ratio the row cannot stop a ribbon landing at 10 mm a step inside
|
|
5145
|
+
8 mm of separation; it ends 4 mm through, the next step's detection sides every row the other way,
|
|
5146
|
+
and the rows push the pile inside out. That is the talk's own "failures in collision detection cannot
|
|
5147
|
+
be corrected in subsequent frames", and why it shipped with authored layer order.
|
|
5148
|
+
- Stiffer is worse, explosively (peak speeds 3–6 m/s at 4× and 8×). A four-particle row updated
|
|
5149
|
+
Jacobi-style over-corrects: the participants' expected corrections sum to `κ/(1+κ) + 3κ/(9+κ)` for a
|
|
5150
|
+
centroid row, 1.03 at the prototype's κ = 1.5 and 2.6 at 8×. The pair row at ratio 2 sits at exactly 1,
|
|
5151
|
+
which is a mechanism for §65's "the stiffest ratio at which cloth resting on itself comes to rest".
|
|
5152
|
+
With each participant taking its mass-weighted share of the row the sum is 1 at any stiffness, and the
|
|
5153
|
+
landing ribbon is then stopped and rests at 7.7 mm.
|
|
5154
|
+
- With the split, on their own they sleep five of eleven piles, push the lowest ribbon into the floor
|
|
5155
|
+
and leave 34 crossings; with the pair row they add the eleventh clean pile; on the skirt every form is
|
|
5156
|
+
unstable — peak speeds at the velocity clamp, a thigh through in 5–7% of steps — with ~1,000 rows a
|
|
5157
|
+
step over 832 particles, where the shares of several rows on one particle sum past 1 again.
|
|
5158
|
+
|
|
5159
|
+
So the row that would close §9's gap is a hard row with a multiplier under a Gauss-Seidel treatment, not
|
|
5160
|
+
a penalty in the Jacobi scratch, and the talk's cost figures (20 ms to 1 s a frame for the general
|
|
5161
|
+
method; 0.1–0.2 ms with authored layers and cached contacts) say what that buys. M4b stays open.
|
|
5162
|
+
|
|
5163
|
+
### Gates
|
|
5164
|
+
|
|
5165
|
+
Cloth suite 370 (from 369): `cloth_contact_row.spec` gains the swept capsule at 2 m/s, red on the
|
|
5166
|
+
shipped ramp at 17 mm. Three of its tests re-pin to the ratio ramp, and `cloth_collision.spec`'s far-side
|
|
5167
|
+
rope moves its near sphere beside the rope. The extended cloth specs 10, green on the decayed ramp and
|
|
5168
|
+
red without the decay (the ribbon pile, the twirled skirt, the draped sheet). `check-types` not re-run.
|
|
5169
|
+
The probe hooks that measured the self-collision candidates are reverted; the scripts are in the
|
|
5170
|
+
session scratchpad with `probe_hooks.patch`.
|
|
5171
|
+
|
|
5172
|
+
## 68. The self radius is the particle's own
|
|
5173
|
+
|
|
5174
|
+
§67 left one answer measured and not landed: the self-collision radius built from the particle's own
|
|
5175
|
+
two lengths rather than the cloth's. This lands it. `ClothState` carries two regions filled at seed —
|
|
5176
|
+
`self_row`, the shortest stretch row incident on each particle, and `self_free_pair`, the closest pair
|
|
5177
|
+
no row governs within twice the longest row (`cloth_self_closest_free_pair`, which used to return one
|
|
5178
|
+
number into `ClothInstance#closest_free_pair`) — and `cloth_self_radius_update` fills `self_radius`
|
|
5179
|
+
per particle at the top of every step from them and the fabric's thickness,
|
|
5180
|
+
`r_i = min(max(t, ½·row_i), 0.4·free_i)`. The pair search tests `d² < (r_i + r_j)²` and hashes at a
|
|
5181
|
+
cell of twice the largest radius; the row's rest is `r_i + r_j`. `ClothStepParam.SELF_RADIUS` is gone
|
|
5182
|
+
(the stride 15 → 14), and so is `ClothInstance#closest_free_pair`. On a uniform sheet every particle
|
|
5183
|
+
gets the number the cloth used to get, to the float.
|
|
5184
|
+
|
|
5185
|
+
**The dance, paired.** The example's skirt (64 × 13, 832 particles, 6 mm thick, 2 × 4) on the rumba
|
|
5186
|
+
track, two scenes in one process stepped alternately with the order rotated each step, 1,500 steps, the
|
|
5187
|
+
dance steps 96–1,499 scored. Arm A has its two lengths flattened to the cloth's minima after the first
|
|
5188
|
+
step, which is the old radius at every particle — 6 mm, the thickness, since half the 9.8 mm waistband
|
|
5189
|
+
row is below it; arm B is the build.
|
|
5190
|
+
|
|
5191
|
+
| arm | radius | steps with a limb through | deepest | crossings mean / worst | pairs a step | ms mean / median / p90 |
|
|
5192
|
+
|---|---|---|---|---|---|---|
|
|
5193
|
+
| A, one per cloth | 6.0 mm | 0.6% | 8.3 mm | 422 / 618 | 43 | 13.389 / 13.876 / 16.986 |
|
|
5194
|
+
| B, per particle | 6.0–18.8 mm | 0.0% | −0.9 mm | 102 / 180 | 135 | 12.944 / 13.352 / 16.434 |
|
|
5195
|
+
|
|
5196
|
+
Paired B/A: 0.967 of the mean, 0.962 of the median, 0.963 the median of the per-step ratios. The step
|
|
5197
|
+
is cheaper with three times the pairs, and a 300-step re-run that counted contact rows says where: A
|
|
5198
|
+
carries 324 contact rows a step (worst 464), B 255 (worst 424), the hem's flutes held apart rather than
|
|
5199
|
+
tangled against the legs; the step there 9.015 → 8.799 ms, B/A 0.976 (a quieter box; the ratio is what
|
|
5200
|
+
is paired). §67's 432 → 102 is reproduced at 422 → 102.
|
|
5201
|
+
|
|
5202
|
+
**The code path, isolated.** The previous `cloth_self_find` and `cloth_self_accumulate_scratch`
|
|
5203
|
+
(HEAD's files, reading a scalar) against the new, on the same skirt state frozen 400 steps into the
|
|
5204
|
+
dance, search plus scratch, 300 interleaved reps:
|
|
5205
|
+
|
|
5206
|
+
| | median | mean | pairs | to the old |
|
|
5207
|
+
|---|---|---|---|---|
|
|
5208
|
+
| old code, 6 mm | 465 µs | 498 µs | 7 | 1.000 |
|
|
5209
|
+
| new code, 6 mm everywhere | 462 µs | 493 µs | 7 | 0.993 |
|
|
5210
|
+
| new code, per particle | 562 µs | 598 µs | 203 | 1.207 |
|
|
5211
|
+
|
|
5212
|
+
A busier first run gave 665 / 664 / 796 µs, 0.999 and 1.197. Reading the radius from an array costs
|
|
5213
|
+
nothing; the per-particle radii find 29× the pairs on that frame for 21% more search and scratch, about
|
|
5214
|
+
100 µs of a 13 ms step.
|
|
5215
|
+
|
|
5216
|
+
**§64's eleven ribbon piles, as the control.** The same two arms. On the 5, 6 and 8 cm piles the radii
|
|
5217
|
+
coincide — 15 mm, half the 30 mm row — and on the 3.2 cm piles they differ as designed: a particle with
|
|
5218
|
+
a second ribbon within 32 mm at seed is capped at 12.8–12.9 mm and the rest keep 15 mm, where one
|
|
5219
|
+
radius per cloth gave every particle the 12.8.
|
|
5220
|
+
|
|
5221
|
+
| scene | A asleep | A worst / end crossings | A order | B asleep | B worst / end crossings | B order | B/A ms |
|
|
5222
|
+
|---|---|---|---|---|---|---|---|
|
|
5223
|
+
| 2 parallel, 3.2 cm | 188 | 0 / 0 | kept | 188 | 0 / 0 | kept | 1.021 |
|
|
5224
|
+
| 2 parallel, 8 cm | 225 | 5 / 2 | swapped | 208 | 4 / 4 | swapped | 1.062 |
|
|
5225
|
+
| 2 at 90°, 3.2 cm | 111 | 0 / 0 | kept | 111 | 0 / 0 | kept | 0.992 |
|
|
5226
|
+
| 2 at 90°, 8 cm | 126 | 0 / 0 | kept | 126 | 0 / 0 | kept | 1.027 |
|
|
5227
|
+
| 3 at 90°, 3.2 cm | 272 | 2 / 2 | kept | 273 | 2 / 2 | kept | 1.021 |
|
|
5228
|
+
| 3 at 90°, 8 cm | 251 | 0 / 0 | swapped | 251 | 0 / 0 | swapped | 1.017 |
|
|
5229
|
+
| 3 at 30°, 3.2 cm | 256 | 0 / 0 | kept | 273 | 0 / 0 | kept | 1.000 |
|
|
5230
|
+
| 3 at 30°, 8 cm | 324 | 10 / 7 | kept | 324 | 10 / 7 | kept | 1.009 |
|
|
5231
|
+
| 6 at 30°, 3.2 cm | 224 | 52 / 37 | swapped | 322 | 46 / 16 | swapped | 1.014 |
|
|
5232
|
+
| 6 at 30°, 6 cm | 401 | 14 / 0 | swapped | 474 | 13 / 0 | swapped | 0.998 |
|
|
5233
|
+
| 3 at 60°, 5 cm (the gate) | 264 | 0 / 0 | kept | 265 | 0 / 0 | kept | 1.042 |
|
|
5234
|
+
|
|
5235
|
+
Both arms: 11 of 11 asleep, 6 clean, 7 in order; the worst crossings a scene 7.5 (A) and 6.8 (B); the
|
|
5236
|
+
step 1.018× paired (0.992–1.062). The sleep steps that differ where the radii coincide measure a pile's
|
|
5237
|
+
chaos, not the change: two bit-identical copies of each scene stepped side by side stay bit-identical
|
|
5238
|
+
to the end (checked on all eleven), while arm A's flattening takes the minimum over `Float32` rows that
|
|
5239
|
+
differ by 1.3e-8 m between particles, so its radii sit 6.5e-9 m under some of B's, the pair search flips
|
|
5240
|
+
a comparison at step 4–8, and the sleep step moves by up to 98 (224 against 322). A difference of that
|
|
5241
|
+
size between two piles is noise, measured.
|
|
5242
|
+
|
|
5243
|
+
**The twirled skirt gate** (`cloth_sheet.slow.spec`'s 32 × 7 cotton annulus on turning hips: 29 mm rows
|
|
5244
|
+
round the waistband, 60 mm rows out to the hem). The hem had the waistband's 14.7 mm and now has 30:
|
|
5245
|
+
|
|
5246
|
+
| | radius | draped at | asleep after the stop | hem height from rest | hem radius from rest | deepest in the hips | crossings, worst step |
|
|
5247
|
+
|---|---|---|---|---|---|---|---|
|
|
5248
|
+
| one per cloth | 14.7 mm | 196 | 412 | 0.35 mm | −13.3 mm | −6.73 mm | 16 |
|
|
5249
|
+
| per particle | 14.7–30 mm | 196 | 290 | 5.62 mm | 0.1 mm | −6.72 mm | 0 |
|
|
5250
|
+
|
|
5251
|
+
The 16 are the hem's flutes meeting during the twirl at a quarter of their spacing. With its own radius
|
|
5252
|
+
the hem comes back to its radius and stands 5.6 mm higher, a fold resting on a fold with a 30 mm shell
|
|
5253
|
+
rather than 14.7; the gate's 2 mm on the height, pinned on a measured 0.9, re-pins at 10 mm, and it
|
|
5254
|
+
gains `crossed === 0`, red at 16 on the old radius. Nothing is closer to the hips.
|
|
5255
|
+
|
|
5256
|
+
### Gates
|
|
5257
|
+
|
|
5258
|
+
Cloth suite 373 (from 370): `cloth_self_radius.spec` — an annulus's waist and hem radii from their own
|
|
5259
|
+
rows, a uniform sheet unchanged from the cloth-wide number, a particle with no row at the thickness.
|
|
5260
|
+
`ClothState.spec`'s layout carries the three regions. `cloth_self_find.spec`, `cloth_self_row.spec` and
|
|
5261
|
+
its slow spec fill the array. The extended cloth specs 10, green; the twirled skirt re-pinned and gated
|
|
5262
|
+
as above, red on one radius per cloth. `check-types` 18 against 19. The A/B is `ab_radius.probe.js`
|
|
5263
|
+
with `ab_scenes.mjs` in the session scratchpad, the control `ribbon_determinism.probe.js` and
|
|
5264
|
+
`ribbon_diff.probe.js`, and the slow spec's old arm an alias of `cloth_self_radius.js` that flattens
|
|
5265
|
+
(`vitest.slow_flat.config.mjs`).
|
|
5266
|
+
|
|
5267
|
+
---
|
|
5268
|
+
|
|
5269
|
+
## 69. The gust on the scene's clock, and the parity gate restated
|
|
5270
|
+
|
|
5271
|
+
The GPU wind fluid's S5 (`../fluid/GPU_FLUID_CASCADES_PROPOSAL_2026_10_16.md` §12, G2, F4) took cloth's
|
|
5272
|
+
air off cloth's own ambient and onto the scene's one wind. `ClothAmbientWind` is retired: its gust,
|
|
5273
|
+
term for term, is `GlobalFluidEffector#gust`, integrated once a tick by `FluidEffectorsSystem`, and
|
|
5274
|
+
cloth reads it through the far field — `ClothGPUFluidWind` (lattices of the GPU wind, read back
|
|
5275
|
+
through `GPUFluidSystem#request`; the far field before one lands and wherever none reaches) or
|
|
5276
|
+
`ClothFluidWind` (the CPU fields, the far field outside them). §57's clock, each cloth's own age, is
|
|
5277
|
+
no longer read by any engine source.
|
|
5278
|
+
|
|
5279
|
+
**What that costs the parity gate, measured.** The gust is now a function of the scene's tick, and
|
|
5280
|
+
the worker advances a cloth from the tick its registration is acknowledged (§39). Each row is a scene
|
|
5281
|
+
of `WorkerClothSystem.spec.js` with one line changed, the gate reading the whole `ClothState` buffer
|
|
5282
|
+
after every step:
|
|
5283
|
+
|
|
5284
|
+
```
|
|
5285
|
+
scene wind first difference
|
|
5286
|
+
second cloth spawned after the first, under latency steady (gust 0) none in 60 steps
|
|
5287
|
+
(registered 3 ticks later by the worker) gust 3 m/s, period 0.7 s the second cloth's step 1, byte 0 (216 against 247)
|
|
5288
|
+
one cloth, both registered on the same tick gust 3 m/s, period 0.7 s none in 180 steps (far field moving on > 100 of them)
|
|
5289
|
+
the reference spawned a tick before the worker's gust 3 m/s, period 0.7 s step 1, byte 0 (246 against 86)
|
|
5290
|
+
§10's field scene, a garment walked out of a volume steady far field none in 200 steps
|
|
5291
|
+
far field gusting 1.5 m/s step 1, byte 0 (27 against 30)
|
|
5292
|
+
```
|
|
5293
|
+
|
|
5294
|
+
So **the gate is restated**: worker and inline cloth agree for cloths **registered on the same tick**,
|
|
5295
|
+
under any deterministic wind, and for any registration **under a time-invariant wind**. The specs hold
|
|
5296
|
+
it to those cases, through the GPU wind with no device (lattices answered from the far field) and
|
|
5297
|
+
through lattices a spec injects (`ClothGPUFluidWind.spec.js`, `ecs/cloth_wind.spec.js`). Under the
|
|
5298
|
+
GPU wind on a device, lattices land when the GPU answers, so two runs of a scene need not read the
|
|
5299
|
+
same air: **run-to-run repeatability under the GPU wind is given up** (F4, accepted). Every other cloth
|
|
5300
|
+
gate is unchanged: the parity scenes without wind, §7's table, the pathology spec.
|
|
5301
|
+
|
|
5302
|
+
*Reproduce:* the probe that edits one line of the spec and prints the first difference is
|
|
5303
|
+
`s5_probe_gust.mjs` in the GPU-fluid session's scratchpad.
|
|
5304
|
+
|
|
@@ -340,8 +340,8 @@ engine/physics/cloth/
|
|
|
340
340
|
cloth_collider_sdf.js pose interpolation, localisation, and the field dispatch
|
|
341
341
|
wind/
|
|
342
342
|
AbstractClothWind.js §10's one interface: sample the air, and say whether it varies
|
|
343
|
-
|
|
344
|
-
ClothFluidWind.js every live FluidComponent, with the
|
|
343
|
+
ClothGPUFluidWind.js the GPU wind: lattices read back from GPUFluidSystem, the far field elsewhere
|
|
344
|
+
ClothFluidWind.js every live FluidComponent, with the scene's far field underneath it
|
|
345
345
|
cloth_sample_air.js the air into the cloth's own frame, on the main thread
|
|
346
346
|
solver/
|
|
347
347
|
ClothState.js SoA particle + topology + constraint storage over one buffer
|
|
@@ -529,10 +529,15 @@ iterate repeat `iterations` times:
|
|
|
529
529
|
dual update, for each HARD constraint c:
|
|
530
530
|
λ_c ← clamp(k_c·C_c + λ_c, fmin_c, fmax_c)
|
|
531
531
|
k_c ← min(k_c + β·|C_c|, k_max·s_c)
|
|
532
|
+
(a contact's normal row: k_c ← min(k_c + ρ·k_max·s_c·|C_c|/offset, k_max·s_c))
|
|
532
533
|
|
|
533
534
|
integrate v_i = (x_i - x_i^prev)/h
|
|
534
535
|
```
|
|
535
536
|
|
|
537
|
+
A contact's warm start differs in one line from the listing above: its two penalties decay by
|
|
538
|
+
`γ_c = CLOTH_CONTACT_GAMMA` rather than `γ`, the multipliers by `α·γ` as every hard row's do. The
|
|
539
|
+
correction below is why.
|
|
540
|
+
|
|
536
541
|
The Hessian contribution is gated on the row being *active*. A clamped row's force is constant with
|
|
537
542
|
respect to position, so its true second derivative is zero; adding `k·ggᵀ` anyway would make an
|
|
538
543
|
inactive unilateral constraint resist motion it should not touch. It contributes its (constant) force
|
|
@@ -586,6 +591,30 @@ a decision rather than an omission — nothing measured since has asked for a de
|
|
|
586
591
|
one place it would help is recorded in §18 as a coupling rather than as a bug — but it is an
|
|
587
592
|
**unmeasured** constant and the only one left in the set, so it is named here as one.
|
|
588
593
|
|
|
594
|
+
**The cloth-skirt example corrected the contact's ramp and gave it a decay (`MEASUREMENTS.md` §67).**
|
|
595
|
+
A thigh advancing 17 mm a substep into a hanging skirt showed through it in 12.7% of the dance's
|
|
596
|
+
steps, up to 13 mm, and four times the iteration budget made that zero: the row was arriving soft.
|
|
597
|
+
`β = 1e3 N/m²` against that garment's band of 72 to 2,300 N/m is **0.003 of the band per contact
|
|
598
|
+
offset of violation**, so against a limb the penalty never left the floor and the multiplier, rebuilt
|
|
599
|
+
from a quarter every substep, could not carry the push in four iterations. The ramp is a ratio now,
|
|
600
|
+
`ρ = CLOTH_CONTACT_RAMP_RATIO = 0.1` of the band per offset of violation per iteration, which keeps the
|
|
601
|
+
shape the M2 measurement picked in the units the contact is defined in: 12.7% → 0.1% of steps, M2's
|
|
602
|
+
landing sheet 1.10 → 0.68 mm, M2 §6's swept capsule 17 → 1.8 mm, the tunnelling threshold unmoved.
|
|
603
|
+
It ramps whether or not the row is active, as before: ramping active rows only, the reference
|
|
604
|
+
implementation's form, leaves the thigh through ten times as often and takes the thrown particle's
|
|
605
|
+
stopped speed from 6 to 4 m/s at two substeps, which is §18's one-sided finding again.
|
|
606
|
+
|
|
607
|
+
What a ratio ramp does to a **resting** contact is what §18 predicted: every row violated by
|
|
608
|
+
millimetres while a pile lands is at the ceiling for good, where §53's limit cycle is too large for
|
|
609
|
+
silk to sleep — §64's ribbon pile never slept, the twirled skirt settled 17 mm from where it hung, the
|
|
610
|
+
draped sheet was carried 4° less. The resolution is the one §18 named, a `γ < 1` for contacts:
|
|
611
|
+
`γ_c = CLOTH_CONTACT_GAMMA = 0.8` decays a contact's two penalties per substep while the multiplier
|
|
612
|
+
carries the load, and every scene sleeps as before (erratic at 0.7, slow at 0.5; decaying the normal
|
|
613
|
+
penalty alone leaves the resting rope's sleep a coin toss, so both decay). Its cost is static
|
|
614
|
+
friction's exactness: a sheet on a slope it should stick to creeps 0.2–0.3 mm in four seconds, and
|
|
615
|
+
the marginal case, μ a tenth over the tangent, slides 0.55 m where the old ramp slid 0.19 — the ratio
|
|
616
|
+
ramp without the decay made that case stick exactly, so the two together are a trade, not a free win.
|
|
617
|
+
|
|
589
618
|
**Adaptive initialisation** is VBD's: seed the iteration at `x + h·v + h²·ã` where `ã` interpolates
|
|
590
619
|
between zero and full external acceleration according to whether the previous step looked like free
|
|
591
620
|
fall or like resting contact. Without it, a low iteration count over-stretches under gravity on the
|
|
@@ -1257,15 +1286,19 @@ It reads as the same `r` a collider contact uses, which is `ClothDynamics#thickn
|
|
|
1257
1286
|
a fold are almost never in contact and the row finds 1.6 to 3.7 pairs across a whole garment. The
|
|
1258
1287
|
radius is a property of **the proxy**: `ClothState#self_radius`, `max(thickness, shortest_row/2)`,
|
|
1259
1288
|
so the row's diameter is one particle spacing. At the fabric's own 6 mm the row removes 21% of a
|
|
1260
|
-
sheet's self-intersections; at half the shortest row it removes 82%. `MEASUREMENTS.md` §31.
|
|
1289
|
+
sheet's self-intersections; at half the shortest row it removes 82%. `MEASUREMENTS.md` §31. And the
|
|
1290
|
+
row is **the particle's own** (`ClothState#self_row`), a pair's reach the sum of its two radii: a circle
|
|
1291
|
+
skirt's hem has rows five times the waistband's, and one radius per cloth gave it the waistband's, a
|
|
1292
|
+
fifth of its spacing, with the flutes through each other at every sample. §67, §68.
|
|
1261
1293
|
|
|
1262
1294
|
**It also needs a ceiling, and the ceiling is a measured length.** A diameter that reaches the
|
|
1263
1295
|
closest pair *no row governs* puts a cloth which is not folded at all in permanent contact with
|
|
1264
1296
|
itself — leather, 20 mm thick on a 20 mm proxy, found 1,398 pairs a step across 576 particles
|
|
1265
1297
|
standing still (§36). On a sheet that distance is two hops and could have been assumed; on a
|
|
1266
1298
|
rigged garment, whose proxy is strips with nothing joining one to the next, it is the gap the
|
|
1267
|
-
artist left between strips and is half what the link length implies. So `
|
|
1268
|
-
it once at seed, in the bind pose, and the ceiling is
|
|
1299
|
+
artist left between strips and is half what the link length implies. So `cloth_build_rows` measures
|
|
1300
|
+
it once at seed, in the bind pose, per particle into `ClothState#self_free_pair`, and the ceiling is
|
|
1301
|
+
two fifths of it. `MEASUREMENTS.md` §37, §68.
|
|
1269
1302
|
|
|
1270
1303
|
"O(n) with a small constant" is right about the shape and optimistic about the constant: the pair
|
|
1271
1304
|
search is linear in particles with no term in the pair count, and it is **12% of a frame** at the
|
|
@@ -1332,6 +1365,16 @@ Fallback when there is no fluid field in range: a `GlobalFluidEffector`-shaped a
|
|
|
1332
1365
|
constant `wind` vector plus a small band-limited noise for gusting — read from the same interface, so
|
|
1333
1366
|
the cloth code has one path and does not branch on whether a simulation is present.
|
|
1334
1367
|
|
|
1368
|
+
*Corrected by the GPU wind fluid's S5 (`../fluid/GPU_FLUID_CASCADES_PROPOSAL_2026_10_16.md` §12, G2):*
|
|
1369
|
+
the fallback is no longer cloth's own. It is the scene's **far field** — its `GlobalFluidEffector`s,
|
|
1370
|
+
gust included, folded by `FluidEffectorsSystem` once a tick — which is what the shape above was
|
|
1371
|
+
always copying. `ClothAmbientWind` is retired; `ClothGPUFluidWind` reads the GPU wind and
|
|
1372
|
+
`ClothFluidWind` the CPU fields, each with the far field underneath. `MEASUREMENTS.md` §69.
|
|
1373
|
+
And cloth reads it **by default**: with nothing assigned, `ClothWorld#wind` is a `ClothGPUFluidWind`
|
|
1374
|
+
while the scene has an enabled `GPUFluidComponent`, else a `ClothFluidWind` while the far field is not
|
|
1375
|
+
zero, else `null` as before — decided again every tick from those facts, so a scene without wind gains
|
|
1376
|
+
no drag. An assigned source, `null` included, always wins.
|
|
1377
|
+
|
|
1335
1378
|
Cost control: sampling is per particle per *step*, not per iteration, and a cloth outside every fluid
|
|
1336
1379
|
field's bounds skips it entirely. Sleep (P5) wakes on a wind change so a settled banner does not stay
|
|
1337
1380
|
asleep through a gust.
|
|
@@ -1715,6 +1758,15 @@ walk it. The visible consequence is that two garments spawned a second apart are
|
|
|
1715
1758
|
the gust rather than in phase with it; for a bounded sum of sinusoids that is indistinguishable from
|
|
1716
1759
|
weather, which is why this is free. `MEASUREMENTS.md` §57.
|
|
1717
1760
|
|
|
1761
|
+
**G2 (the GPU wind fluid's S5): the clock is the scene's, and the gate is restated.** The gust moved
|
|
1762
|
+
onto `GlobalFluidEffector` and runs on the scene's tick, so every consumer of the wind reads one
|
|
1763
|
+
weather — and a cloth steps in the weather of the tick it is advanced on. The worker advances a cloth
|
|
1764
|
+
from the tick its registration is acknowledged, so the gate now reads: **worker and inline agree for
|
|
1765
|
+
cloths registered on the same tick, and for any registration under a time-invariant wind.** Measured:
|
|
1766
|
+
the staggered spawn under a 3 m/s gust differs at the second cloth's step 1, byte 0; registered on
|
|
1767
|
+
the same tick, none in 180 steps. Under the GPU wind on a device, lattices land when the GPU answers,
|
|
1768
|
+
so run-to-run repeatability is given up too (F4). `MEASUREMENTS.md` §69.
|
|
1769
|
+
|
|
1718
1770
|
**And post-M6 found the other one, which is not a clock: the two systems ran a tick's phases in
|
|
1719
1771
|
different orders.** `ClothSystem` ran advance, step and finish per cloth, in hierarchy-depth order, so
|
|
1720
1772
|
a **nested** cloth advanced against an anchor the cloth above it had already written *this* step;
|
|
@@ -2213,8 +2265,8 @@ case and found 1,398 pairs a step on a 576-particle sheet that was barely folded
|
|
|
2213
2265
|
distance has to be **measured** rather than assumed to be two hops, because two hops is a fact
|
|
2214
2266
|
about sheets: the playground's cape has 8 cm links and an 8.5 cm gap between strips, half what the
|
|
2215
2267
|
link length implies, and the assumed ceiling left it with three pairs permanently in contact at
|
|
2216
|
-
rest. `
|
|
2217
|
-
it. On a sheet the two rules agree exactly, so §31–36 stand. `MEASUREMENTS.md` §37.
|
|
2268
|
+
rest. `ClothState#self_free_pair` is measured once at seed, per particle, and the ceiling is two
|
|
2269
|
+
fifths of it. On a sheet the two rules agree exactly, so §31–36 stand. `MEASUREMENTS.md` §37, §68.
|
|
2218
2270
|
|
|
2219
2271
|
**And the playground earned its keep.** Every measurement from §31 to §36 is on a sheet, because a
|
|
2220
2272
|
sheet is the only thing here with a surface to pass through. Put the same row on the geometry M3
|
|
@@ -2609,6 +2661,14 @@ visible, for a hair rope creeping for thirty-seven seconds instead of three, whi
|
|
|
2609
2661
|
rather than fixed; the thing that would actually resolve it is a `γ < 1` for contacts, which is
|
|
2610
2662
|
§5.2's own open number. `MEASUREMENTS.md` §54.
|
|
2611
2663
|
|
|
2664
|
+
**— RESOLVED the way it said, when the ramp became a ratio.** The cloth-skirt example turned the ramp
|
|
2665
|
+
into `CLOTH_CONTACT_RAMP_RATIO` (§5.2), which made the pre-stiffening total — every row violated by
|
|
2666
|
+
millimetres at the ceiling for good — and a resting pile stopped sleeping. `CLOTH_CONTACT_GAMMA = 0.8`
|
|
2667
|
+
is the `γ < 1` for contacts, on both penalties. The one-sided ramp was measured again in ratio form and
|
|
2668
|
+
lost again (a sweeping thigh through ten times as often, 6 → 4 m/s stopped at two substeps), so the
|
|
2669
|
+
pre-stiffening stays and the decay is what bounds it. What the pair costs is static friction's
|
|
2670
|
+
exactness, stated in §5.2. `MEASUREMENTS.md` §67.
|
|
2671
|
+
|
|
2612
2672
|
**Open — a rigid collider driven through pinned cloth wraps rather than parts.** A contact row bounds
|
|
2613
2673
|
the interpenetration; it cannot prevent it, because the cloth has nowhere to go. The playground's
|
|
2614
2674
|
spinning-bar scene is the case, and it settles at 18 mm inside a 25 mm bar. This is not a solver
|
|
@@ -2845,6 +2905,45 @@ rest" is not enough, because a ribbon can land right through another and lie und
|
|
|
2845
2905
|
and not this:* piles land through themselves, 90 of 225 at 2, every one of them while landing. That is
|
|
2846
2906
|
§35's missing travel term in the pair search. `MEASUREMENTS.md` §64, §65.
|
|
2847
2907
|
|
|
2908
|
+
**The self radius is one per cloth, and a circle skirt's hem gets the waistband's. — FIXED: the
|
|
2909
|
+
radius is the particle's own (§68); Lewin's two pair-row moves wait on their limb cost.**
|
|
2910
|
+
`ClothState#self_radius` was `max(thickness, ½·shortest row)` capped at `0.4 × closest free pair`,
|
|
2911
|
+
with both the shortest row and the closest free pair measured over the whole cloth. The cloth-skirt
|
|
2912
|
+
example's rows run from 9.8 mm at
|
|
2913
|
+
the waistband to 54 mm at the hem, so the hem gets a 6 mm radius against a 37–54 mm spacing — a row
|
|
2914
|
+
diameter a fifth of the spacing where §9 wants one spacing — and the flutes pass through each other
|
|
2915
|
+
at every sample: ~400 edge-through-triangle crossings, budget-independent (272 at 4×8), the example's
|
|
2916
|
+
own README says "the flutes sometimes cross". `MEASUREMENTS.md` §67 measured three answers:
|
|
2917
|
+
|
|
2918
|
+
- **The shipped formula applied per particle — LANDED (§68)**, `r_i = clamp(thickness, ½·shortest
|
|
2919
|
+
row incident on i, 0.4 × closest free pair of i)`, pairs tested at `r_i + r_j`, both lengths seeded
|
|
2920
|
+
into `ClothState#self_row` and `#self_free_pair` and the radius filled each step by
|
|
2921
|
+
`cloth_self_radius_update`. Paired on the dance: crossings 422 → 102 a step (worst 618 → 180), a
|
|
2922
|
+
thigh through in 0.6% → 0.0% of steps, the step 0.96× for 70 fewer contact rows with the hem held
|
|
2923
|
+
off the legs, search and scratch 1.2× on three times the pairs; the twirled skirt's 16 crossings → 0,
|
|
2924
|
+
and its gate pinned. It is still the sphere model, and a sharp fold still slips between particles.
|
|
2925
|
+
- **Lewin's two moves on the pair row (GDC 2018):** the particle's predicted travel in the pair
|
|
2926
|
+
search's reach — §35's missing term — and the pair's normal frozen for the step, which makes the row
|
|
2927
|
+
a half-space a pair cannot pass through however far the other rows shove it. On §64's eleven ribbon
|
|
2928
|
+
piles they take the pair row from 6 clean and 7 in order to 10 clean and 11 in order, every pile
|
|
2929
|
+
asleep, the worst crossings 7.5 → 0.2 a scene, at no new row kind. On the skirt they do not touch
|
|
2930
|
+
the crossings and they cost limbs: a thigh through in 1.1–1.9% of steps against 0.1%, and 1.2% for
|
|
2931
|
+
the travel term on top of the per-particle radius (crossings 38). A half-space stays active after
|
|
2932
|
+
its pair has slid apart tangentially, the artefact the talk names; gating it on the live distance
|
|
2933
|
+
halves the cost and keeps the piles' result. Why a wider or stickier pair row puts a hem particle
|
|
2934
|
+
into a thigh is not measured, and it is what keeps the two moves from landing with the radius.
|
|
2935
|
+
- **Predictive point-triangle rows, as the talk's self collision,** as plain penalties into the
|
|
2936
|
+
self row's Jacobi scratch: a four-particle row is only Jacobi-stable with each participant taking
|
|
2937
|
+
its mass-weighted share of the correction (the pair row at ratio 2 sits exactly at the share sum
|
|
2938
|
+
of 1, which is why §65 found it the stiffest that comes to rest), and with that split a ribbon
|
|
2939
|
+
landing from 10 mm a step is stopped at 8 mm of separation. On their own they sleep 5 of 11 piles
|
|
2940
|
+
and push the lowest ribbon into the floor; on the skirt they are unstable at every form tried (peak
|
|
2941
|
+
speeds at the clamp, a thigh through in 5–7% of steps). They add the last pile only on top of the
|
|
2942
|
+
pair row with Lewin's moves. The talk's own numbers say the same: 20 ms to 1 s a frame for the
|
|
2943
|
+
general method, 0.1–0.2 ms only with authored layer order and cached contact sets. M4b stays what
|
|
2944
|
+
it was: the thin-surface closure, not a quick win, and in this solver it wants a hard row with a
|
|
2945
|
+
multiplier and a Gauss-Seidel treatment, not a penalty in the Jacobi scratch.
|
|
2946
|
+
|
|
2848
2947
|
---
|
|
2849
2948
|
|
|
2850
2949
|
## 19. Attachment points
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClothColliderKind.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/physics/cloth/collider/ClothColliderKind.js"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ClothColliderKind.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/physics/cloth/collider/ClothColliderKind.js"],"names":[],"mappings":";;;gCAsBU,MAAM"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ShapeRecordKind } from "../../../../core/geom/3d/shape/record/ShapeRecordKind.js";
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* The shapes cloth collides against.
|
|
3
5
|
*
|
|
@@ -9,8 +11,13 @@
|
|
|
9
11
|
* answer is to add primitive `ClothCollider` children, which is what an author
|
|
10
12
|
* would do for a character anyway.
|
|
11
13
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
+
* A collider's kind and parameters are a core shape record
|
|
15
|
+
* (`core/geom/3d/shape/record/`), so the values are core's
|
|
16
|
+
* {@link ShapeRecordKind} and this is the subset of it cloth takes. Core also
|
|
17
|
+
* packs a rigid `TransformedShape3D` (with a pose offset), a `UnionShape3D`
|
|
18
|
+
* (as a run of records) and a `ConvexHullShape3D` (as planes in a table of
|
|
19
|
+
* their own); cloth refuses all three, as it always has, until it has somewhere
|
|
20
|
+
* to keep what each brings beyond a kind and four parameters.
|
|
14
21
|
*
|
|
15
22
|
* @readonly
|
|
16
23
|
* @enum {number}
|
|
@@ -20,19 +27,19 @@
|
|
|
20
27
|
*/
|
|
21
28
|
export const ClothColliderKind = {
|
|
22
29
|
/** Radius in `CCR_PARAM_0`. */
|
|
23
|
-
Sphere:
|
|
30
|
+
Sphere: ShapeRecordKind.Sphere,
|
|
24
31
|
|
|
25
32
|
/** Radius in `CCR_PARAM_0`, segment length in `CCR_PARAM_1`, about local Y. */
|
|
26
|
-
Capsule:
|
|
33
|
+
Capsule: ShapeRecordKind.Capsule,
|
|
27
34
|
|
|
28
35
|
/** Half-extents in `CCR_PARAM_0..2`. */
|
|
29
|
-
Box:
|
|
36
|
+
Box: ShapeRecordKind.Box,
|
|
30
37
|
|
|
31
38
|
/** Radius in `CCR_PARAM_0`, height in `CCR_PARAM_1`, about local Y. */
|
|
32
|
-
Cylinder:
|
|
39
|
+
Cylinder: ShapeRecordKind.Cylinder,
|
|
33
40
|
|
|
34
41
|
/** Outward unit normal in `CCR_PARAM_0..2`, offset in `CCR_PARAM_3`. */
|
|
35
|
-
Plane:
|
|
42
|
+
Plane: ShapeRecordKind.Plane
|
|
36
43
|
};
|
|
37
44
|
|
|
38
45
|
Object.freeze(ClothColliderKind);
|