@woosh/meep-engine 3.76.0 → 3.77.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/editor/particles/effect/ParticleReferenceSimulation.d.ts +11 -0
- package/editor/particles/effect/ParticleReferenceSimulation.d.ts.map +1 -1
- package/editor/particles/effect/ParticleReferenceSimulation.js +14 -0
- package/editor/view/particles/effect/ParticleGraphEditorView.js +1 -1
- package/package.json +1 -1
- package/src/engine/asset/loaders/GroomAssetLoader.d.ts +1 -1
- package/src/engine/asset/loaders/GroomAssetLoader.d.ts.map +1 -1
- package/src/engine/asset/loaders/GroomAssetLoader.js +16 -2
- package/src/engine/graphics/ecs/hair/Hair.d.ts +7 -0
- package/src/engine/graphics/ecs/hair/Hair.d.ts.map +1 -1
- package/src/engine/graphics/ecs/hair/Hair.js +9 -0
- package/src/engine/graphics/ecs/hair/HairDynamics.d.ts +63 -0
- package/src/engine/graphics/ecs/hair/HairDynamics.d.ts.map +1 -0
- package/src/engine/graphics/ecs/hair/HairDynamics.js +82 -0
- package/src/engine/graphics/hair/Groom.d.ts +45 -0
- package/src/engine/graphics/hair/Groom.d.ts.map +1 -1
- package/src/engine/graphics/hair/Groom.js +56 -0
- package/src/engine/graphics/hair/GroomSerializationAdapter.d.ts +27 -1
- package/src/engine/graphics/hair/GroomSerializationAdapter.d.ts.map +1 -1
- package/src/engine/graphics/hair/GroomSerializationAdapter.js +105 -32
- package/src/engine/graphics/hair/GroomSerializationUpgrader_0_1.d.ts +8 -0
- package/src/engine/graphics/hair/GroomSerializationUpgrader_0_1.d.ts.map +1 -0
- package/src/engine/graphics/hair/GroomSerializationUpgrader_0_1.js +31 -0
- package/src/engine/graphics/hair/groom_bind_to_mesh.d.ts +85 -0
- package/src/engine/graphics/hair/groom_bind_to_mesh.d.ts.map +1 -0
- package/src/engine/graphics/hair/groom_bind_to_mesh.js +216 -0
- package/src/engine/graphics/hair/groom_build_group.d.ts +7 -2
- package/src/engine/graphics/hair/groom_build_group.d.ts.map +1 -1
- package/src/engine/graphics/hair/groom_build_group.js +11 -2
- package/src/engine/graphics/hair/groom_build_guides.d.ts +43 -0
- package/src/engine/graphics/hair/groom_build_guides.d.ts.map +1 -0
- package/src/engine/graphics/hair/groom_build_guides.js +267 -0
- package/src/engine/graphics/hair/groom_root_spacing.d.ts +6 -4
- package/src/engine/graphics/hair/groom_root_spacing.d.ts.map +1 -1
- package/src/engine/graphics/hair/groom_root_spacing.js +199 -66
- package/src/engine/graphics3/HairColliderSystem.d.ts +59 -0
- package/src/engine/graphics3/HairColliderSystem.d.ts.map +1 -0
- package/src/engine/graphics3/HairColliderSystem.js +270 -0
- package/src/engine/graphics3/HairSystem.d.ts +21 -4
- package/src/engine/graphics3/HairSystem.d.ts.map +1 -1
- package/src/engine/graphics3/HairSystem.js +270 -4
- package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
- package/src/shade/assets/textures/hair_scattering.bin +0 -0
- package/src/shade/playground/hair/main.js +27 -4
- package/src/shade/playground/hair_skinned/index.html +192 -0
- package/src/shade/playground/hair_skinned/main.d.ts +7 -0
- package/src/shade/playground/hair_skinned/main.d.ts.map +1 -0
- package/src/shade/playground/hair_skinned/main.js +481 -0
- package/src/shade/playground/hair_skinned/skinned_hair.d.ts +49 -0
- package/src/shade/playground/hair_skinned/skinned_hair.d.ts.map +1 -0
- package/src/shade/playground/hair_skinned/skinned_hair.js +362 -0
- package/src/shade/playground/sparks/README.md +36 -0
- package/src/shade/playground/sparks/index.html +145 -0
- package/src/shade/playground/sparks/main.d.ts +7 -0
- package/src/shade/playground/sparks/main.d.ts.map +1 -0
- package/src/shade/playground/sparks/main.js +312 -0
- package/src/shade/playground/sparks/sparks_effect.d.ts +72 -0
- package/src/shade/playground/sparks/sparks_effect.d.ts.map +1 -0
- package/src/shade/playground/sparks/sparks_effect.js +180 -0
- package/src/shade/renderer/Renderer.d.ts.map +1 -1
- package/src/shade/renderer/Renderer.js +18 -3
- package/src/shade/renderer/acoustics/GPUAcousticLattice.d.ts +1 -1
- package/src/shade/renderer/acoustics/GPUAcousticProbes.d.ts +1 -1
- package/src/shade/renderer/acoustics/GPUAcoustics.d.ts +1 -1
- package/src/shade/renderer/animation/GPUAnimationManager.d.ts +3 -2
- package/src/shade/renderer/animation/GPUAnimationManager.d.ts.map +1 -1
- package/src/shade/renderer/animation/GPUAnimationManager.js +74 -3
- package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.d.ts +13 -3
- package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.d.ts.map +1 -1
- package/src/shade/renderer/animation/skinning/GPUMeshSkinningContext.js +16 -5
- package/src/shade/renderer/animation/skinning/shader_meshlet_apply_skinning.js +8 -8
- package/src/shade/renderer/deferred/chunk_shade_direct_lights.js +2 -2
- package/src/shade/renderer/deferred/chunk_shade_directional_lights.d.ts +4 -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 +7 -3
- package/src/shade/renderer/deferred/chunk_standard_material_direct_light_lobe.js +1 -1
- package/src/shade/renderer/extension/ShadowAtlas.d.ts +75 -0
- package/src/shade/renderer/extension/ShadowAtlas.d.ts.map +1 -0
- package/src/shade/renderer/extension/ShadowAtlas.js +133 -0
- package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +3 -3
- package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +1 -1
- package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +7 -7
- package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
- package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts +37 -7
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js +132 -8
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts +3 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js +6 -2
- package/src/shade/renderer/global_illumination/sharc/sharc_constants.d.ts +0 -18
- package/src/shade/renderer/global_illumination/sharc/sharc_constants.d.ts.map +1 -1
- package/src/shade/renderer/global_illumination/sharc/sharc_constants.js +1 -21
- package/src/shade/renderer/hair/GPUHairSystem.d.ts +121 -2
- package/src/shade/renderer/hair/GPUHairSystem.d.ts.map +1 -1
- package/src/shade/renderer/hair/GPUHairSystem.js +1187 -56
- package/src/shade/renderer/hair/HAIR.d.ts +22 -3
- package/src/shade/renderer/hair/HAIR.d.ts.map +1 -1
- package/src/shade/renderer/hair/HAIR.js +25 -4
- package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.d.ts.map +1 -1
- package/src/shade/renderer/hair/HAIR_DATABASE_SPEC.js +33 -0
- package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.d.ts +4 -0
- package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.d.ts.map +1 -1
- package/src/shade/renderer/hair/HAIR_FRAME_STRUCTS.js +24 -2
- package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts +139 -0
- package/src/shade/renderer/hair/HAIR_SIMULATION.d.ts.map +1 -0
- package/src/shade/renderer/hair/HAIR_SIMULATION.js +160 -0
- package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts +9 -2
- package/src/shade/renderer/hair/chunk_hair_dual_scattering.d.ts.map +1 -1
- package/src/shade/renderer/hair/chunk_hair_dual_scattering.js +40 -13
- package/src/shade/renderer/hair/chunk_hair_guide.d.ts +59 -0
- package/src/shade/renderer/hair/chunk_hair_guide.d.ts.map +1 -0
- package/src/shade/renderer/hair/chunk_hair_guide.js +179 -0
- package/src/shade/renderer/hair/chunk_hair_volume.d.ts +4 -3
- package/src/shade/renderer/hair/chunk_hair_volume.d.ts.map +1 -1
- package/src/shade/renderer/hair/chunk_hair_volume.js +21 -12
- package/src/shade/renderer/hair/hair_lighting.d.ts.map +1 -1
- package/src/shade/renderer/hair/hair_lighting.js +16 -7
- package/src/shade/renderer/hair/hair_scattering_lut.js +13 -13
- package/src/shade/renderer/hair/hair_shadow_draw.d.ts +32 -0
- package/src/shade/renderer/hair/hair_shadow_draw.d.ts.map +1 -0
- package/src/shade/renderer/hair/hair_shadow_draw.js +123 -0
- package/src/shade/renderer/hair/shader_hair_classes.d.ts +2 -1
- package/src/shade/renderer/hair/shader_hair_classes.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_classes.js +6 -2
- package/src/shade/renderer/hair/shader_hair_cull.d.ts +8 -2
- package/src/shade/renderer/hair/shader_hair_cull.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_cull.js +74 -17
- package/src/shade/renderer/hair/shader_hair_lod.d.ts +9 -3
- package/src/shade/renderer/hair/shader_hair_lod.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_lod.js +125 -31
- package/src/shade/renderer/hair/shader_hair_roots.d.ts +36 -0
- package/src/shade/renderer/hair/shader_hair_roots.d.ts.map +1 -0
- package/src/shade/renderer/hair/shader_hair_roots.js +261 -0
- package/src/shade/renderer/hair/shader_hair_shadow_list.d.ts +44 -0
- package/src/shade/renderer/hair/shader_hair_shadow_list.d.ts.map +1 -0
- package/src/shade/renderer/hair/shader_hair_shadow_list.js +240 -0
- package/src/shade/renderer/hair/shader_hair_simulate.d.ts +55 -0
- package/src/shade/renderer/hair/shader_hair_simulate.d.ts.map +1 -0
- package/src/shade/renderer/hair/shader_hair_simulate.js +563 -0
- package/src/shade/renderer/hair/shader_hair_volume.d.ts +3 -3
- package/src/shade/renderer/hair/shader_hair_volume.d.ts.map +1 -1
- package/src/shade/renderer/hair/shader_hair_volume.js +4 -17
- package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
- package/src/shade/renderer/loader/usd/usd_groom_extension.d.ts +8 -3
- package/src/shade/renderer/loader/usd/usd_groom_extension.d.ts.map +1 -1
- package/src/shade/renderer/loader/usd/usd_groom_extension.js +58 -5
- package/src/shade/renderer/particles/GPUParticleSystem.d.ts +8 -0
- package/src/shade/renderer/particles/GPUParticleSystem.d.ts.map +1 -1
- package/src/shade/renderer/particles/GPUParticleSystem.js +28 -0
- package/src/shade/renderer/particles/graph/ParticleNodeRegistry.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph/ParticleNodeRegistry.js +22 -0
- 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 +4 -0
- package/src/shade/renderer/particles/graph/groups/particle_groups_scene.d.ts +32 -0
- package/src/shade/renderer/particles/graph/groups/particle_groups_scene.d.ts.map +1 -0
- package/src/shade/renderer/particles/graph/groups/particle_groups_scene.js +80 -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 +12 -0
- package/src/shade/renderer/particles/graph_particles.d.ts +5 -1
- package/src/shade/renderer/particles/graph_particles.d.ts.map +1 -1
- package/src/shade/renderer/particles/graph_particles.js +18 -3
- package/src/shade/renderer/particles/isa/InstructionStream.d.ts +25 -0
- package/src/shade/renderer/particles/isa/InstructionStream.d.ts.map +1 -1
- package/src/shade/renderer/particles/isa/InstructionStream.js +25 -0
- package/src/shade/renderer/particles/isa/ParticleVMISA.d.ts +9 -0
- package/src/shade/renderer/particles/isa/ParticleVMISA.d.ts.map +1 -1
- package/src/shade/renderer/particles/isa/ParticleVMISA.js +20 -0
- package/src/shade/renderer/particles/isa/particle_program_reads_scene_sdf.d.ts +9 -0
- package/src/shade/renderer/particles/isa/particle_program_reads_scene_sdf.d.ts.map +1 -0
- package/src/shade/renderer/particles/isa/particle_program_reads_scene_sdf.js +29 -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 +27 -5
- 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 +5 -0
- package/src/shade/renderer/particles/runtime/EmitterRegistry.d.ts +7 -0
- package/src/shade/renderer/particles/runtime/EmitterRegistry.d.ts.map +1 -1
- package/src/shade/renderer/particles/runtime/EmitterRegistry.js +10 -0
- package/src/shade/renderer/particles/runtime/ParticleEmitter.d.ts +5 -0
- package/src/shade/renderer/particles/runtime/ParticleEmitter.d.ts.map +1 -1
- package/src/shade/renderer/particles/runtime/ParticleEmitter.js +5 -0
- package/src/shade/renderer/particles/runtime/ProgramHeap.d.ts +8 -0
- package/src/shade/renderer/particles/runtime/ProgramHeap.d.ts.map +1 -1
- package/src/shade/renderer/particles/runtime/ProgramHeap.js +25 -0
- package/src/shade/renderer/particles/shaders/shader_particle_emit.d.ts +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 +9 -3
- 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 +4 -2
- package/src/shade/renderer/particles/shaders/shader_particle_simulate.d.ts +2 -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 +10 -4
- 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 +4 -2
- package/src/shade/renderer/particles/vm/ParticleVMReference.d.ts +14 -1
- package/src/shade/renderer/particles/vm/ParticleVMReference.d.ts.map +1 -1
- package/src/shade/renderer/particles/vm/ParticleVMReference.js +34 -1
- package/src/shade/renderer/particles/vm/chunk_particle_vm.d.ts.map +1 -1
- package/src/shade/renderer/particles/vm/chunk_particle_vm.js +10 -0
- package/src/shade/renderer/particles/vm/chunk_particle_vm_scene_sdf.d.ts +39 -0
- package/src/shade/renderer/particles/vm/chunk_particle_vm_scene_sdf.d.ts.map +1 -0
- package/src/shade/renderer/particles/vm/chunk_particle_vm_scene_sdf.js +90 -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 +14 -2
- package/src/shade/renderer/particles/warmup/shader_particle_warmup_advance.d.ts +1 -1
- 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 +9 -3
- 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 +4 -2
- package/src/shade/renderer/postprocess/nss/NSS.d.ts +1 -1
- package/src/shade/renderer/postprocess/velocity/graph_add_per_object_velocity.d.ts +7 -4
- 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 +26 -16
- package/src/shade/renderer/scene/GPUSceneContext.d.ts +7 -0
- package/src/shade/renderer/scene/GPUSceneContext.d.ts.map +1 -1
- package/src/shade/renderer/scene/GPUSceneContext.js +18 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_signed_distance_gradient.d.ts +20 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_signed_distance_gradient.d.ts.map +1 -0
- package/src/shade/renderer/shader/chunk/sdf/chunk_shape_record_signed_distance_gradient.js +134 -0
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts +15 -0
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts.map +1 -1
- package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +69 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_directional_atlas_casters.d.ts +10 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_directional_atlas_casters.d.ts.map +1 -0
- package/src/shade/renderer/shadow/map/shader/chunk_shadowmap_directional_atlas_casters.js +22 -0
- package/src/shade/renderer/water/query/GPUWaterQueries.d.ts +1 -1
- package/src/shade/renderer/wind/GPUSceneWind.d.ts +1 -1
|
@@ -41,7 +41,7 @@ export class GPUFluidPressureSolve {
|
|
|
41
41
|
* @param {*} _resources
|
|
42
42
|
* @param {{encoder: ShadeGPUCommandContext}} context
|
|
43
43
|
*/
|
|
44
|
-
static "__#
|
|
44
|
+
static "__#296@#execute"(data: {
|
|
45
45
|
solve: GPUFluidPressureSolve;
|
|
46
46
|
arm: number;
|
|
47
47
|
count: number;
|
|
@@ -49,7 +49,7 @@ export class GPUFluidQueries {
|
|
|
49
49
|
* @param {import("../../../../engine/graphics/render/frame_graph/FramePassResources.js").FramePassResources} resources
|
|
50
50
|
* @param {{encoder: import("../../../device/ShadeGPUCommandContext.js").ShadeGPUCommandContext}} context
|
|
51
51
|
*/
|
|
52
|
-
static "__#
|
|
52
|
+
static "__#301@#execute"(pass: object, resources: import("../../../../engine/graphics/render/frame_graph/FramePassResources.js").FramePassResources, context: {
|
|
53
53
|
encoder: import("../../../device/ShadeGPUCommandContext.js").ShadeGPUCommandContext;
|
|
54
54
|
}): void;
|
|
55
55
|
/**
|
|
@@ -35,7 +35,7 @@ export class GPUProbeClipmapGI {
|
|
|
35
35
|
* @param {ProbeClipmapSettings} settings
|
|
36
36
|
* @returns {boolean} whether it is what the settings' world cache describes, in their frustum's windows
|
|
37
37
|
*/
|
|
38
|
-
static "__#
|
|
38
|
+
static "__#213@#world_cache_built_for"(world_cache: GPUProbeClipmap, settings: ProbeClipmapSettings): boolean;
|
|
39
39
|
/**
|
|
40
40
|
* @param {GraphicsContext} graphics
|
|
41
41
|
*/
|
package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* its bricks from the scene's mesh fields, and the holds on the geometry caches those fields are baked into
|
|
5
5
|
* ({@link ProbeClipmapSceneHolds}).
|
|
6
6
|
*
|
|
7
|
-
* Its readers hold it: the probe clipmap GI, under its two modes,
|
|
7
|
+
* Its readers hold it: the probe clipmap GI, under its two modes, the acoustics, under any, and the particle system
|
|
8
|
+
* while an effect it runs reads the distance field. Each that writes a
|
|
8
9
|
* payload of its own over the bricks as they are built adds its writer ({@link add_material_writer}): the GI its
|
|
9
10
|
* surface material, the acoustics their acoustic records. A plugin that writes bricks of its own adds a provider
|
|
10
11
|
* ({@link add_provider}), run after the mesh provider over the same cells.
|
|
@@ -13,10 +14,17 @@
|
|
|
13
14
|
* the surface caches' only when asked to (the GI's material reads them, nothing else does), the rows the holds
|
|
14
15
|
* invalidated, and the build around the view's camera. Nothing while nobody holds it.
|
|
15
16
|
*
|
|
17
|
+
* **Reading it.** A reader binds what {@link write_bindings} writes and passes {@link cascade_count} and
|
|
18
|
+
* {@link atlas_shift} in its immediate data, every frame. Until the clipmap is built, and after it is given back, those
|
|
19
|
+
* are a clipmap of no cascade: textures of one texel and a zero count, which a reader takes as no field at all, so a
|
|
20
|
+
* pass that reads the bricks binds the same way whether or not anything has built them.
|
|
21
|
+
*
|
|
16
22
|
* **Lifetime.** Made with the scene, empty. The clipmap and the holds are made on the first frame something holds
|
|
17
23
|
* it, made again when a frame is for another view or for clipmap settings it was not built with, and given back
|
|
18
|
-
* when the last holder lets go ({@link release})
|
|
19
|
-
*
|
|
24
|
+
* when the last holder lets go ({@link release}) — or, when it lets go while recording a frame whose build is
|
|
25
|
+
* recorded already, by the next frame's {@link graph_update}, so that the frame's graph still runs it; a holder
|
|
26
|
+
* that takes it again before then keeps it as it is. Given back, the holds let go of every cache and trim nothing,
|
|
27
|
+
* so the fields are there when someone holds it again (D28); the surface caches go, and are baked again.
|
|
20
28
|
*/
|
|
21
29
|
export class GPUSceneBrickClipmap {
|
|
22
30
|
/**
|
|
@@ -42,18 +50,40 @@ export class GPUSceneBrickClipmap {
|
|
|
42
50
|
* which a pass reading the bricks reads to come after it; -1 before any
|
|
43
51
|
*/
|
|
44
52
|
get bricks(): number;
|
|
53
|
+
/**
|
|
54
|
+
* @returns {number} the cascades a reader reads through, `GPUBrickClipmap#cascade_count`; 0 while there is no
|
|
55
|
+
* clipmap, which a reader takes as no field
|
|
56
|
+
*/
|
|
57
|
+
get cascade_count(): number;
|
|
58
|
+
/**
|
|
59
|
+
* @returns {number} the atlas's footprint a reader passes to its samples, `GPUBrickClipmap#atlas_shift`; 0 while
|
|
60
|
+
* there is no clipmap
|
|
61
|
+
*/
|
|
62
|
+
get atlas_shift(): number;
|
|
63
|
+
/**
|
|
64
|
+
* Put what a reader of the bricks binds into its bindings, under the names `chunk_brick_clipmap_trace.js` reads:
|
|
65
|
+
* the clipmap's (`GPUBrickClipmap#write_bindings`), or while there is none a clipmap of no cascade, read through
|
|
66
|
+
* a {@link cascade_count} of 0. The clipmap's atlas is replaced when it grows: take them each frame.
|
|
67
|
+
*
|
|
68
|
+
* @param {Object} bindings
|
|
69
|
+
* @returns {Object} bindings
|
|
70
|
+
*/
|
|
71
|
+
write_bindings(bindings: any): any;
|
|
45
72
|
/**
|
|
46
73
|
* Hold it: from the next frame on it is built, until every holder has let go.
|
|
47
74
|
* @param {Object} holder
|
|
48
75
|
*/
|
|
49
76
|
acquire(holder: any): void;
|
|
50
77
|
/**
|
|
51
|
-
* Let go of it. The last holder to let go gives back the clipmap and the holds
|
|
78
|
+
* Let go of it. The last holder to let go gives back the clipmap and the holds — at once, or, when it lets go
|
|
79
|
+
* while recording the graph this frame's build was recorded into, by the next frame's {@link graph_update}: that
|
|
80
|
+
* graph has passes over them still to run.
|
|
52
81
|
*
|
|
53
82
|
* @param {Object} holder
|
|
83
|
+
* @param {FrameGraph|null} [graph] the graph the holder is recording, when it lets go in the middle of a frame
|
|
54
84
|
* @returns {boolean} whether `holder` held it
|
|
55
85
|
*/
|
|
56
|
-
release(holder: any): boolean;
|
|
86
|
+
release(holder: any, graph?: FrameGraph | null): boolean;
|
|
57
87
|
/**
|
|
58
88
|
* Have a payload written over the bricks as they are built, after every writer added before it. The bricks
|
|
59
89
|
* built before have none of it, so a clipmap already built is made again from the next frame, as for new
|
|
@@ -81,8 +111,8 @@ export class GPUSceneBrickClipmap {
|
|
|
81
111
|
remove_provider(provider: BrickProvider): boolean;
|
|
82
112
|
/**
|
|
83
113
|
* Record the frame's bake and build, once a frame: a second call in the same graph records nothing and answers
|
|
84
|
-
* the same. Records nothing while nothing holds it
|
|
85
|
-
* nor the clipmap's settings and has nothing to bake.
|
|
114
|
+
* the same. Records nothing while nothing holds it, and gives back what the last holder let go of. Allocates
|
|
115
|
+
* nothing on a frame that changes neither the view nor the clipmap's settings and has nothing to bake.
|
|
86
116
|
*
|
|
87
117
|
* @param {Object} options
|
|
88
118
|
* @param {FrameGraph} options.graph
|
package/src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPUSceneBrickClipmap.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GPUSceneBrickClipmap.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/brick/GPUSceneBrickClipmap.js"],"names":[],"mappings":"AAkCA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH;IAkEI;;;OAGG;IACH,sBAHW,eAAe,SACf,eAAe,EAQzB;IAED;;;OAGG;IACH,oBAEC;IAED;;OAEG;IACH,qCAEC;IAED;;OAEG;IACH,oCAEC;IAED;;;OAGG;IACH,qBAEC;IAED;;;OAGG;IACH,4BAEC;IAED;;;OAGG;IACH,0BAEC;IAED;;;;;;;OAOG;IACH,mCAUC;IAED;;;OAGG;IACH,2BAKC;IAED;;;;;;;;OAQG;IACH,6BAHW,UAAU,GAAC,IAAI,GACb,OAAO,CAkBnB;IAED;;;;;;OAMG;IACH,4BAFW,mBAAmB,QAU7B;IAED;;;OAGG;IACH,+BAHW,mBAAmB,GACjB,OAAO,CAYnB;IAED;;;;;OAKG;IACH,uBAFW,aAAa,QASvB;IAED;;;OAGG;IACH,0BAHW,aAAa,GACX,OAAO,CAanB;IAED;;;;;;;;;;;;;;;OAeG;IACH;QAV+B,KAAK,EAAzB,UAAU;QACc,IAAI,EAA5B,cAAc;QACgB,QAAQ,EAAtC,oBAAoB;QACH,MAAM,GAAvB,MAAM;QAEY,QAAQ,GAA1B,OAAO;QAEL,MAAM,CA+ElB;IAyGD,gBAqBC;;CACJ;yBAvgBY,OAAO,iEAAiE,EAAE,UAAU;8BACpF,OAAO,6BAA6B,EAAE,eAAe;8BACrD,OAAO,mCAAmC,EAAE,eAAe;6BAC3D,OAAO,iCAAiC,EAAE,cAAc;mCACxD,OAAO,4BAA4B,EAAE,oBAAoB;4BACzD,OAAO,sBAAsB,EAAE,aAAa;kCAC5C,OAAO,sBAAsB,EAAE,mBAAmB;gCAV/B,sBAAsB;uCADf,8BAA8B"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { assert } from "../../../../../core/assert.js";
|
|
2
|
+
import { BufferDescriptor } from "../../../../descriptor/buffer/BufferDescriptor.js";
|
|
3
|
+
import { MESH_SDF_SAMPLER } from "../../../geometry/sdf/MESH_SDF_RESOURCES.js";
|
|
4
|
+
import { CLIPMAP_LEVEL_ARRAY } from "../../../shader/chunk/clipmap/CLIPMAP_LEVEL_STRUCT.js";
|
|
2
5
|
import { ProbeClipmapSceneHolds } from "../ProbeClipmapSceneHolds.js";
|
|
3
6
|
import { GPUBrickClipmap } from "./GPUBrickClipmap.js";
|
|
4
7
|
import { MeshSDFBrickProvider } from "./mesh/MeshSDFBrickProvider.js";
|
|
@@ -35,7 +38,8 @@ class BrickBuildOptions {
|
|
|
35
38
|
* its bricks from the scene's mesh fields, and the holds on the geometry caches those fields are baked into
|
|
36
39
|
* ({@link ProbeClipmapSceneHolds}).
|
|
37
40
|
*
|
|
38
|
-
* Its readers hold it: the probe clipmap GI, under its two modes,
|
|
41
|
+
* Its readers hold it: the probe clipmap GI, under its two modes, the acoustics, under any, and the particle system
|
|
42
|
+
* while an effect it runs reads the distance field. Each that writes a
|
|
39
43
|
* payload of its own over the bricks as they are built adds its writer ({@link add_material_writer}): the GI its
|
|
40
44
|
* surface material, the acoustics their acoustic records. A plugin that writes bricks of its own adds a provider
|
|
41
45
|
* ({@link add_provider}), run after the mesh provider over the same cells.
|
|
@@ -44,10 +48,17 @@ class BrickBuildOptions {
|
|
|
44
48
|
* the surface caches' only when asked to (the GI's material reads them, nothing else does), the rows the holds
|
|
45
49
|
* invalidated, and the build around the view's camera. Nothing while nobody holds it.
|
|
46
50
|
*
|
|
51
|
+
* **Reading it.** A reader binds what {@link write_bindings} writes and passes {@link cascade_count} and
|
|
52
|
+
* {@link atlas_shift} in its immediate data, every frame. Until the clipmap is built, and after it is given back, those
|
|
53
|
+
* are a clipmap of no cascade: textures of one texel and a zero count, which a reader takes as no field at all, so a
|
|
54
|
+
* pass that reads the bricks binds the same way whether or not anything has built them.
|
|
55
|
+
*
|
|
47
56
|
* **Lifetime.** Made with the scene, empty. The clipmap and the holds are made on the first frame something holds
|
|
48
57
|
* it, made again when a frame is for another view or for clipmap settings it was not built with, and given back
|
|
49
|
-
* when the last holder lets go ({@link release})
|
|
50
|
-
*
|
|
58
|
+
* when the last holder lets go ({@link release}) — or, when it lets go while recording a frame whose build is
|
|
59
|
+
* recorded already, by the next frame's {@link graph_update}, so that the frame's graph still runs it; a holder
|
|
60
|
+
* that takes it again before then keeps it as it is. Given back, the holds let go of every cache and trim nothing,
|
|
61
|
+
* so the fields are there when someone holds it again (D28); the surface caches go, and are baked again.
|
|
51
62
|
*/
|
|
52
63
|
export class GPUSceneBrickClipmap {
|
|
53
64
|
/** @type {GraphicsContext} */
|
|
@@ -93,6 +104,13 @@ export class GPUSceneBrickClipmap {
|
|
|
93
104
|
*/
|
|
94
105
|
#material_writers = [];
|
|
95
106
|
|
|
107
|
+
/**
|
|
108
|
+
* The last holder let go while recording the frame the build was recorded into, and nothing has been given back
|
|
109
|
+
* yet: the next {@link graph_update} that finds nobody holding it does.
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
*/
|
|
112
|
+
#release_pending = false;
|
|
113
|
+
|
|
96
114
|
/** {@link GPUViewContext#id} of the view the clipmap was made around. */
|
|
97
115
|
#view_id = -1;
|
|
98
116
|
|
|
@@ -102,6 +120,12 @@ export class GPUSceneBrickClipmap {
|
|
|
102
120
|
|
|
103
121
|
#destroyed = false;
|
|
104
122
|
|
|
123
|
+
/**
|
|
124
|
+
* What {@link write_bindings} writes while there is no clipmap: made on the first such write.
|
|
125
|
+
* @type {{textures: GPUTexture[], buffers: GPUBuffer[], bindings: Object}|undefined}
|
|
126
|
+
*/
|
|
127
|
+
#placeholder = undefined;
|
|
128
|
+
|
|
105
129
|
/**
|
|
106
130
|
* @param {GraphicsContext} graphics
|
|
107
131
|
* @param {GPUSceneContext} scene
|
|
@@ -144,6 +168,42 @@ export class GPUSceneBrickClipmap {
|
|
|
144
168
|
return this.#bricks;
|
|
145
169
|
}
|
|
146
170
|
|
|
171
|
+
/**
|
|
172
|
+
* @returns {number} the cascades a reader reads through, `GPUBrickClipmap#cascade_count`; 0 while there is no
|
|
173
|
+
* clipmap, which a reader takes as no field
|
|
174
|
+
*/
|
|
175
|
+
get cascade_count() {
|
|
176
|
+
return this.#clipmap === undefined ? 0 : this.#clipmap.cascade_count;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @returns {number} the atlas's footprint a reader passes to its samples, `GPUBrickClipmap#atlas_shift`; 0 while
|
|
181
|
+
* there is no clipmap
|
|
182
|
+
*/
|
|
183
|
+
get atlas_shift() {
|
|
184
|
+
return this.#clipmap === undefined ? 0 : this.#clipmap.atlas_shift;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Put what a reader of the bricks binds into its bindings, under the names `chunk_brick_clipmap_trace.js` reads:
|
|
189
|
+
* the clipmap's (`GPUBrickClipmap#write_bindings`), or while there is none a clipmap of no cascade, read through
|
|
190
|
+
* a {@link cascade_count} of 0. The clipmap's atlas is replaced when it grows: take them each frame.
|
|
191
|
+
*
|
|
192
|
+
* @param {Object} bindings
|
|
193
|
+
* @returns {Object} bindings
|
|
194
|
+
*/
|
|
195
|
+
write_bindings(bindings) {
|
|
196
|
+
if (this.#clipmap !== undefined) {
|
|
197
|
+
return this.#clipmap.write_bindings(bindings);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
if (this.#placeholder === undefined) {
|
|
201
|
+
this.#placeholder = this.#make_placeholder();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return Object.assign(bindings, this.#placeholder.bindings);
|
|
205
|
+
}
|
|
206
|
+
|
|
147
207
|
/**
|
|
148
208
|
* Hold it: from the next frame on it is built, until every holder has let go.
|
|
149
209
|
* @param {Object} holder
|
|
@@ -156,17 +216,26 @@ export class GPUSceneBrickClipmap {
|
|
|
156
216
|
}
|
|
157
217
|
|
|
158
218
|
/**
|
|
159
|
-
* Let go of it. The last holder to let go gives back the clipmap and the holds
|
|
219
|
+
* Let go of it. The last holder to let go gives back the clipmap and the holds — at once, or, when it lets go
|
|
220
|
+
* while recording the graph this frame's build was recorded into, by the next frame's {@link graph_update}: that
|
|
221
|
+
* graph has passes over them still to run.
|
|
160
222
|
*
|
|
161
223
|
* @param {Object} holder
|
|
224
|
+
* @param {FrameGraph|null} [graph] the graph the holder is recording, when it lets go in the middle of a frame
|
|
162
225
|
* @returns {boolean} whether `holder` held it
|
|
163
226
|
*/
|
|
164
|
-
release(holder) {
|
|
227
|
+
release(holder, graph = null) {
|
|
165
228
|
if (!this.#holders.delete(holder)) {
|
|
166
229
|
return false;
|
|
167
230
|
}
|
|
168
231
|
|
|
169
|
-
if (this.#holders.size
|
|
232
|
+
if (this.#holders.size > 0) {
|
|
233
|
+
return true;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (graph !== null && graph === this.#graph) {
|
|
237
|
+
this.#release_pending = true;
|
|
238
|
+
} else {
|
|
170
239
|
this.#release_device();
|
|
171
240
|
}
|
|
172
241
|
|
|
@@ -240,8 +309,8 @@ export class GPUSceneBrickClipmap {
|
|
|
240
309
|
|
|
241
310
|
/**
|
|
242
311
|
* Record the frame's bake and build, once a frame: a second call in the same graph records nothing and answers
|
|
243
|
-
* the same. Records nothing while nothing holds it
|
|
244
|
-
* nor the clipmap's settings and has nothing to bake.
|
|
312
|
+
* the same. Records nothing while nothing holds it, and gives back what the last holder let go of. Allocates
|
|
313
|
+
* nothing on a frame that changes neither the view nor the clipmap's settings and has nothing to bake.
|
|
245
314
|
*
|
|
246
315
|
* @param {Object} options
|
|
247
316
|
* @param {FrameGraph} options.graph
|
|
@@ -266,6 +335,10 @@ export class GPUSceneBrickClipmap {
|
|
|
266
335
|
}
|
|
267
336
|
|
|
268
337
|
if (this.#holders.size === 0) {
|
|
338
|
+
if (this.#release_pending) {
|
|
339
|
+
this.#release_device();
|
|
340
|
+
}
|
|
341
|
+
|
|
269
342
|
return -1;
|
|
270
343
|
}
|
|
271
344
|
|
|
@@ -328,6 +401,43 @@ export class GPUSceneBrickClipmap {
|
|
|
328
401
|
return this.#bricks;
|
|
329
402
|
}
|
|
330
403
|
|
|
404
|
+
/**
|
|
405
|
+
* A clipmap of no cascade: one-texel textures of the formats the real one has, and its levels zeroed as made.
|
|
406
|
+
*/
|
|
407
|
+
#make_placeholder() {
|
|
408
|
+
const device = this.#graphics.device;
|
|
409
|
+
|
|
410
|
+
const texture = (name, format) => device.createTexture({
|
|
411
|
+
label: `Scene brick clipmap / placeholder ${name}`,
|
|
412
|
+
size: [1, 1, 1],
|
|
413
|
+
dimension: '3d',
|
|
414
|
+
format,
|
|
415
|
+
usage: GPUTextureUsage.TEXTURE_BINDING,
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
const levels = device.createBuffer(BufferDescriptor.fromJSON({
|
|
419
|
+
label: 'Scene brick clipmap / placeholder levels',
|
|
420
|
+
size: CLIPMAP_LEVEL_ARRAY.size,
|
|
421
|
+
usage: GPUBufferUsage.UNIFORM,
|
|
422
|
+
}));
|
|
423
|
+
|
|
424
|
+
const map = texture('map', 'r32uint');
|
|
425
|
+
const occupancy = texture('occupancy', 'r32uint');
|
|
426
|
+
const atlas = texture('atlas', 'r8unorm');
|
|
427
|
+
|
|
428
|
+
return {
|
|
429
|
+
textures: [map, occupancy, atlas],
|
|
430
|
+
buffers: [levels],
|
|
431
|
+
bindings: {
|
|
432
|
+
brick_levels: levels,
|
|
433
|
+
brick_map: map.createView(),
|
|
434
|
+
brick_occupancy: occupancy.createView(),
|
|
435
|
+
brick_atlas: atlas.createView(),
|
|
436
|
+
brick_sampler: MESH_SDF_SAMPLER,
|
|
437
|
+
},
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
|
|
331
441
|
#order_providers() {
|
|
332
442
|
const providers = this.#providers;
|
|
333
443
|
|
|
@@ -364,6 +474,8 @@ export class GPUSceneBrickClipmap {
|
|
|
364
474
|
* again from nothing.
|
|
365
475
|
*/
|
|
366
476
|
#release_device() {
|
|
477
|
+
this.#release_pending = false;
|
|
478
|
+
|
|
367
479
|
if (this.#holds !== undefined) {
|
|
368
480
|
this.#holds.detach();
|
|
369
481
|
this.#holds = undefined;
|
|
@@ -401,5 +513,17 @@ export class GPUSceneBrickClipmap {
|
|
|
401
513
|
|
|
402
514
|
this.#holders.clear();
|
|
403
515
|
this.#release_device();
|
|
516
|
+
|
|
517
|
+
if (this.#placeholder !== undefined) {
|
|
518
|
+
for (const texture of this.#placeholder.textures) {
|
|
519
|
+
texture.destroy();
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
for (const buffer of this.#placeholder.buffers) {
|
|
523
|
+
buffer.destroy();
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
this.#placeholder = undefined;
|
|
527
|
+
}
|
|
404
528
|
}
|
|
405
529
|
}
|
package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.d.ts
CHANGED
|
@@ -158,7 +158,9 @@ export const chunk_brick_clipmap_trace_through: CodeChunk;
|
|
|
158
158
|
* The finest window holding the point answers, unless its cell is UNKNOWN, which defers to the
|
|
159
159
|
* parent. EMPTY reads R of its cascade, EMPTY inside -R: the surface is at least that far. A point no
|
|
160
160
|
* window holds, or that only UNKNOWN cells cover, reads R of the coarsest cascade, its entry UNKNOWN.
|
|
161
|
-
* The point's `entry` is the answering cell's (a slot, EMPTY or EMPTY inside)
|
|
161
|
+
* The point's `entry` is the answering cell's (a slot, EMPTY or EMPTY inside), `voxel` its cascade's, and `local`
|
|
162
|
+
* the point in voxels from that cell's least corner, where a slot is sampled (`brick_clipmap_sample`,
|
|
163
|
+
* `brick_clipmap_normal`).
|
|
162
164
|
*
|
|
163
165
|
* @type {CodeChunk}
|
|
164
166
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_brick_clipmap_trace.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,gCAFU,MAAM,CAEoB;AAEpC;;;;GAIG;AACH,gCAFU,MAAM,CAEwB;AAExC;;;;GAIG;AACH,qCAFU,MAAM,CAE0B;AAE1C;;;GAGG;AACH,yCAFU,wBAAwB,CAEoE;AAEtG;;;GAGG;AACH,+CAFU,wBAAwB,CAEgF;AAElH;;;GAGG;AACH,2CAFU,wBAAwB,CAEyE;AAE3G;;;GAGG;AACH,qCAFU,wBAAwB,CAEqF;AAEvH;;;GAGG;AACH,oCAFU,wBAAwB,CAEyE;AAE3G;;;;;;;;;;;;;;;;;;GAkBG;AACH,yCAFU,SAAS,CAyCZ;AAKP;;;;;;;;;;;;GAYG;AACH,yCAFU,SAAS,CAyBZ;AAIP;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wCAFU,SAAS,CAmFZ;AAKP;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wCAFU,SAAS,CAgHZ;AAEP;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,gDAFU,SAAS,CA6FZ;AAEP
|
|
1
|
+
{"version":3,"file":"chunk_brick_clipmap_trace.d.ts","sourceRoot":"","sources":["../../../../../../../src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,gCAFU,MAAM,CAEoB;AAEpC;;;;GAIG;AACH,gCAFU,MAAM,CAEwB;AAExC;;;;GAIG;AACH,qCAFU,MAAM,CAE0B;AAE1C;;;GAGG;AACH,yCAFU,wBAAwB,CAEoE;AAEtG;;;GAGG;AACH,+CAFU,wBAAwB,CAEgF;AAElH;;;GAGG;AACH,2CAFU,wBAAwB,CAEyE;AAE3G;;;GAGG;AACH,qCAFU,wBAAwB,CAEqF;AAEvH;;;GAGG;AACH,oCAFU,wBAAwB,CAEyE;AAE3G;;;;;;;;;;;;;;;;;;GAkBG;AACH,yCAFU,SAAS,CAyCZ;AAKP;;;;;;;;;;;;GAYG;AACH,yCAFU,SAAS,CAyBZ;AAIP;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wCAFU,SAAS,CAmFZ;AAKP;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wCAFU,SAAS,CAgHZ;AAEP;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,gDAFU,SAAS,CA6FZ;AAEP;;;;;;;;;;;;;;;;;GAiBG;AACH,2CAFU,SAAS,CA8DZ;AAIP;;;;;;;;;;;;;;GAcG;AACH,2CAFU,SAAS,CA0BZ;yCAroBkC,sDAAsD;0BADrE,uCAAuC"}
|
package/src/shade/renderer/global_illumination/probe_clipmap/brick/chunk_brick_clipmap_trace.js
CHANGED
|
@@ -543,7 +543,9 @@ fn brick_clipmap_trace_through(origin: vec3<f32>, direction: vec3<f32>, t_min: f
|
|
|
543
543
|
* The finest window holding the point answers, unless its cell is UNKNOWN, which defers to the
|
|
544
544
|
* parent. EMPTY reads R of its cascade, EMPTY inside -R: the surface is at least that far. A point no
|
|
545
545
|
* window holds, or that only UNKNOWN cells cover, reads R of the coarsest cascade, its entry UNKNOWN.
|
|
546
|
-
* The point's `entry` is the answering cell's (a slot, EMPTY or EMPTY inside)
|
|
546
|
+
* The point's `entry` is the answering cell's (a slot, EMPTY or EMPTY inside), `voxel` its cascade's, and `local`
|
|
547
|
+
* the point in voxels from that cell's least corner, where a slot is sampled (`brick_clipmap_sample`,
|
|
548
|
+
* `brick_clipmap_normal`).
|
|
547
549
|
*
|
|
548
550
|
* @type {CodeChunk}
|
|
549
551
|
*/
|
|
@@ -554,6 +556,7 @@ struct BrickClipmapPoint {
|
|
|
554
556
|
distance: f32,
|
|
555
557
|
entry: u32,
|
|
556
558
|
voxel: f32,
|
|
559
|
+
local: vec3<f32>,
|
|
557
560
|
}
|
|
558
561
|
|
|
559
562
|
fn brick_clipmap_point(position: vec3<f32>, cascade_count: u32, atlas_shift: u32) -> BrickClipmapPoint {
|
|
@@ -579,6 +582,7 @@ fn brick_clipmap_point(position: vec3<f32>, cascade_count: u32, atlas_shift: u32
|
|
|
579
582
|
|
|
580
583
|
point.entry = entry;
|
|
581
584
|
point.voxel = voxel;
|
|
585
|
+
point.local = (position - vec3<f32>(cell) * level.cell_size) / voxel;
|
|
582
586
|
|
|
583
587
|
if (!brick_clipmap_entry_holds_slot(entry)) {
|
|
584
588
|
point.distance = select(1.0, -1.0, entry == BRICK_CLIPMAP_EMPTY_INSIDE) * BRICK_CLIPMAP_BAND_VOXELS * voxel;
|
|
@@ -586,7 +590,7 @@ fn brick_clipmap_point(position: vec3<f32>, cascade_count: u32, atlas_shift: u32
|
|
|
586
590
|
return point;
|
|
587
591
|
}
|
|
588
592
|
|
|
589
|
-
point.distance = brick_clipmap_sample(entry,
|
|
593
|
+
point.distance = brick_clipmap_sample(entry, point.local, voxel, atlas_shift);
|
|
590
594
|
|
|
591
595
|
return point;
|
|
592
596
|
}
|
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
export const HASH_GRID_ALLOW_COMPACTION: true;
|
|
2
|
-
export const SHARC_SAMPLE_NUM_BIT_NUM: 18;
|
|
3
|
-
export const SHARC_SAMPLE_NUM_BIT_OFFSET: 0;
|
|
4
|
-
export const SHARC_SAMPLE_NUM_BIT_MASK: number;
|
|
5
|
-
export const SHARC_ACCUMULATED_FRAME_NUM_BIT_NUM: 6;
|
|
6
|
-
export const SHARC_ACCUMULATED_FRAME_NUM_BIT_OFFSET: 18;
|
|
7
|
-
export const SHARC_ACCUMULATED_FRAME_NUM_BIT_MASK: number;
|
|
8
|
-
export const SHARC_STALE_FRAME_NUM_BIT_NUM: 8;
|
|
9
|
-
export const SHARC_STALE_FRAME_NUM_BIT_OFFSET: number;
|
|
10
|
-
export const SHARC_STALE_FRAME_NUM_BIT_MASK: number;
|
|
11
1
|
export const SHARC_GRID_LOGARITHM_BASE: 2;
|
|
12
2
|
export const SHARC_GRID_LEVEL_BIAS: 0;
|
|
13
|
-
export const SHARC_ENABLE_COMPACTION: true;
|
|
14
|
-
export const SHARC_BLEND_ADJACENT_LEVELS: 1;
|
|
15
|
-
export const SHARC_DEFERRED_HASH_COMPACTION: 0 | 1;
|
|
16
|
-
export const SHARC_NORMALIZED_SAMPLE_NUM: number;
|
|
17
|
-
export const SHARC_ACCUMULATED_FRAME_NUM_MIN: 1;
|
|
18
|
-
export const SHARC_ACCUMULATED_FRAME_NUM_MAX: number;
|
|
19
3
|
export const SHARC_HASH_GRID_POSITION_BIT_NUM: 8;
|
|
20
4
|
export const SHARC_HASH_GRID_POSITION_BIT_MASK: number;
|
|
21
5
|
export const SHARC_HASH_GRID_LEVEL_BIT_NUM: 5;
|
|
22
6
|
export const SHARC_HASH_GRID_LEVEL_BIT_MASK: number;
|
|
23
|
-
export const SHARC_HASH_GRID_NORMAL_BIT_NUM: 3;
|
|
24
|
-
export const SHARC_HASH_GRID_NORMAL_BIT_MASK: number;
|
|
25
7
|
export const SHARC_HASH_GRID_HASH_MAP_BUCKET_SIZE: 32;
|
|
26
8
|
export const SHARC_HASH_GRID_INVALID_HASH_KEY: 0;
|
|
27
9
|
export const SHARC_HASH_GRID_INVALID_CACHE_INDEX: 4294967295;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharc_constants.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/sharc/sharc_constants.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharc_constants.d.ts","sourceRoot":"","sources":["../../../../../../src/shade/renderer/global_illumination/sharc/sharc_constants.js"],"names":[],"mappings":"AACA,0CAA4C;AAC5C,sCAAsC;AAGtC,iDAAiD;AACjD,uDAA8F;AAC9F,8CAA8C;AAC9C,oDAAwF;AACxF,sDAAsD;AACtD,iDAAiD;AACjD,6DAA6D;AAG7D,+CAA+C;AAC/C,gDAA+C;AAE/C,mDAAiD;AAGjD,kDAAkD"}
|
|
@@ -1,32 +1,12 @@
|
|
|
1
1
|
// export constants
|
|
2
|
-
|
|
3
|
-
export const HASH_GRID_ALLOW_COMPACTION = true;
|
|
4
|
-
|
|
5
|
-
export const SHARC_SAMPLE_NUM_BIT_NUM = 18
|
|
6
|
-
export const SHARC_SAMPLE_NUM_BIT_OFFSET = 0
|
|
7
|
-
export const SHARC_SAMPLE_NUM_BIT_MASK = ((1 << SHARC_SAMPLE_NUM_BIT_NUM) - 1)
|
|
8
|
-
export const SHARC_ACCUMULATED_FRAME_NUM_BIT_NUM = 6
|
|
9
|
-
export const SHARC_ACCUMULATED_FRAME_NUM_BIT_OFFSET = (SHARC_SAMPLE_NUM_BIT_NUM)
|
|
10
|
-
export const SHARC_ACCUMULATED_FRAME_NUM_BIT_MASK = ((1 << SHARC_ACCUMULATED_FRAME_NUM_BIT_NUM) - 1)
|
|
11
|
-
export const SHARC_STALE_FRAME_NUM_BIT_NUM = 8
|
|
12
|
-
export const SHARC_STALE_FRAME_NUM_BIT_OFFSET = (SHARC_SAMPLE_NUM_BIT_NUM + SHARC_ACCUMULATED_FRAME_NUM_BIT_NUM)
|
|
13
|
-
export const SHARC_STALE_FRAME_NUM_BIT_MASK = ((1 << SHARC_STALE_FRAME_NUM_BIT_NUM) - 1)
|
|
14
2
|
export const SHARC_GRID_LOGARITHM_BASE = 2.0
|
|
15
|
-
export const SHARC_GRID_LEVEL_BIAS = 0 // positive bias adds extra levels with content magnification (can be negative as well)
|
|
16
|
-
export const SHARC_ENABLE_COMPACTION = HASH_GRID_ALLOW_COMPACTION
|
|
17
|
-
export const SHARC_BLEND_ADJACENT_LEVELS = 1 // combine the data from adjacent levels on camera movement
|
|
18
|
-
export const SHARC_DEFERRED_HASH_COMPACTION = (SHARC_ENABLE_COMPACTION && SHARC_BLEND_ADJACENT_LEVELS)
|
|
19
|
-
export const SHARC_NORMALIZED_SAMPLE_NUM = (1 << (SHARC_SAMPLE_NUM_BIT_NUM - 1))
|
|
20
|
-
export const SHARC_ACCUMULATED_FRAME_NUM_MIN = 1 // minimum number of frames to use for data accumulation
|
|
21
|
-
export const SHARC_ACCUMULATED_FRAME_NUM_MAX = SHARC_ACCUMULATED_FRAME_NUM_BIT_MASK // maximum number of frames to use for data accumulation
|
|
3
|
+
export const SHARC_GRID_LEVEL_BIAS = 0 // positive bias adds extra levels with content magnification (can be negative as well)// combine the data from adjacent levels on camera movement// minimum number of frames to use for data accumulation// maximum number of frames to use for data accumulation
|
|
22
4
|
|
|
23
5
|
|
|
24
6
|
export const SHARC_HASH_GRID_POSITION_BIT_NUM = 8
|
|
25
7
|
export const SHARC_HASH_GRID_POSITION_BIT_MASK = ((1 << SHARC_HASH_GRID_POSITION_BIT_NUM) - 1)
|
|
26
8
|
export const SHARC_HASH_GRID_LEVEL_BIT_NUM = 5
|
|
27
9
|
export const SHARC_HASH_GRID_LEVEL_BIT_MASK = ((1 << SHARC_HASH_GRID_LEVEL_BIT_NUM) - 1)
|
|
28
|
-
export const SHARC_HASH_GRID_NORMAL_BIT_NUM = 3
|
|
29
|
-
export const SHARC_HASH_GRID_NORMAL_BIT_MASK = ((1 << SHARC_HASH_GRID_NORMAL_BIT_NUM) - 1)
|
|
30
10
|
export const SHARC_HASH_GRID_HASH_MAP_BUCKET_SIZE = 32
|
|
31
11
|
export const SHARC_HASH_GRID_INVALID_HASH_KEY = 0
|
|
32
12
|
export const SHARC_HASH_GRID_INVALID_CACHE_INDEX = 0xFFFFFFFF
|
|
@@ -31,6 +31,33 @@ export class HairMaterial {
|
|
|
31
31
|
*/
|
|
32
32
|
equals(other: HairMaterial): boolean;
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* How an entity's hair moves: the rates its guides are held to their shape by and lose their motion at, and how it
|
|
36
|
+
* meets colliders. The fields are `HairDynamics`'s.
|
|
37
|
+
*/
|
|
38
|
+
export class HairDynamicsSettings {
|
|
39
|
+
/** @type {number} per second */
|
|
40
|
+
damping: number;
|
|
41
|
+
/** @type {number} per second */
|
|
42
|
+
global_shape_rate: number;
|
|
43
|
+
/** @type {number} share of a guide's length */
|
|
44
|
+
global_shape_range: number;
|
|
45
|
+
/** @type {number} per second */
|
|
46
|
+
local_shape_rate: number;
|
|
47
|
+
/** @type {number} */
|
|
48
|
+
friction: number;
|
|
49
|
+
/** @type {number} metres */
|
|
50
|
+
thickness: number;
|
|
51
|
+
/**
|
|
52
|
+
* @param {HairDynamicsSettings} other
|
|
53
|
+
*/
|
|
54
|
+
copy(other: HairDynamicsSettings): void;
|
|
55
|
+
/**
|
|
56
|
+
* @param {HairDynamicsSettings} other
|
|
57
|
+
* @returns {boolean}
|
|
58
|
+
*/
|
|
59
|
+
equals(other: HairDynamicsSettings): boolean;
|
|
60
|
+
}
|
|
34
61
|
/**
|
|
35
62
|
* One entity's hair in the runtime: a row a group of its groom.
|
|
36
63
|
*/
|
|
@@ -43,6 +70,29 @@ export class GPUHairContext {
|
|
|
43
70
|
node: number;
|
|
44
71
|
/** @type {HairMaterial} what was last staged */
|
|
45
72
|
material: HairMaterial;
|
|
73
|
+
/** @type {HairDynamicsSettings|null} what was last staged; null for hair that rides its entity */
|
|
74
|
+
dynamics: HairDynamicsSettings | null;
|
|
75
|
+
/** @type {import("../../../core/binary/allocator/OffsetAllocator.js").Allocation[]} a guide state a group */
|
|
76
|
+
states: import("../../../core/binary/allocator/OffsetAllocator.js").Allocation[];
|
|
77
|
+
/** @type {number[]} each group's state's epoch */
|
|
78
|
+
epochs: number[];
|
|
79
|
+
/** @type {Uint32Array} the colliders it meets this frame, `HAIR_COLLIDER_WORDS` each, the pose left to the GPU */
|
|
80
|
+
colliders: Uint32Array;
|
|
81
|
+
/** @type {number} */
|
|
82
|
+
collider_count: number;
|
|
83
|
+
/** @type {number} the `transforms` row of the entity whose mesh holds the roots, or `HAIR_BINDING_NONE` */
|
|
84
|
+
mesh_node: number;
|
|
85
|
+
/** @type {import("../geometry/MeshletGeometry.js").MeshletGeometry|null} the bound mesh's geometry */
|
|
86
|
+
mesh_geometry: import("../geometry/MeshletGeometry.js").MeshletGeometry | null;
|
|
87
|
+
/** @type {number} the bound mesh's first meshlet row now */
|
|
88
|
+
meshlet_base: number;
|
|
89
|
+
/** @type {Array<{run: Object, references: number}|null>} each group's bindings on the mesh */
|
|
90
|
+
bindings: Array<{
|
|
91
|
+
run: any;
|
|
92
|
+
references: number;
|
|
93
|
+
} | null>;
|
|
94
|
+
/** @type {Array<import("../../../core/binary/allocator/OffsetAllocator.js").Allocation|null>} root frames a group */
|
|
95
|
+
roots: Array<import("../../../core/binary/allocator/OffsetAllocator.js").Allocation | null>;
|
|
46
96
|
}
|
|
47
97
|
/**
|
|
48
98
|
* The strand hair of one scene context: the instance table, the groom pool, and the passes that draw a view's hair
|
|
@@ -55,8 +105,10 @@ export class GPUHairContext {
|
|
|
55
105
|
* Each frame, at the phase where the G-buffer is written into, {@link graph_draw}: the level of detail of every
|
|
56
106
|
* instance, the cull and deformation of the strands it keeps with their density volume (cleared, laid, its coarser
|
|
57
107
|
* levels built), their id raster under the scene's depth, and the
|
|
58
|
-
* G-buffer stamp and velocity under it (`HAIR.js` says what the frame's buffers hold).
|
|
59
|
-
* {@link
|
|
108
|
+
* G-buffer stamp and velocity under it (`HAIR.js` says what the frame's buffers hold). Where the strands cast
|
|
109
|
+
* shadows ({@link cast_shadows}), also the strands of instances off the view that the shadow views drawn this frame
|
|
110
|
+
* reach, and for each shadow view, the list of the strands it draws and their depth drawn into it. Then, once the
|
|
111
|
+
* frame is lit, {@link graph_light}: the strands' own light, written over the pixels they cover.
|
|
60
112
|
*
|
|
61
113
|
* The frame's buffers grow from what the GPU asked for, read back: a frame asking for more than they hold draws what
|
|
62
114
|
* fits, and the next frames hold what was asked.
|
|
@@ -80,6 +132,23 @@ export class GPUHairSystem {
|
|
|
80
132
|
* @type {number}
|
|
81
133
|
*/
|
|
82
134
|
pixel_floor: number;
|
|
135
|
+
/**
|
|
136
|
+
* Whether the strands draw into the shadow maps drawn this frame (`ShadowAtlas`), so that they shadow everything
|
|
137
|
+
* the maps reach, the skin under them included. Toward a light whose map holds them, the strands are then
|
|
138
|
+
* shadowed by the map alone, their own among the casters, and the density volume no longer takes the strands
|
|
139
|
+
* short of the light off: it would take them off twice. Toward a light whose map cannot hold them, a point
|
|
140
|
+
* light's or a virtual shadow map, the volume still does.
|
|
141
|
+
*
|
|
142
|
+
* Off, the strands are in no shadow map: they shadow nothing else, and only the volume shadows them.
|
|
143
|
+
*
|
|
144
|
+
* @type {boolean}
|
|
145
|
+
*/
|
|
146
|
+
cast_shadows: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* The world's gravity, metres a second squared.
|
|
149
|
+
* @type {Float32Array}
|
|
150
|
+
*/
|
|
151
|
+
gravity: Float32Array;
|
|
83
152
|
/** @returns {GPUDatabase} */
|
|
84
153
|
get database(): GPUDatabase;
|
|
85
154
|
/** @returns {import("../buffer/table/GPUTypedTable.js").GPUTypedTable} */
|
|
@@ -104,6 +173,56 @@ export class GPUHairSystem {
|
|
|
104
173
|
get voxels_asked(): number;
|
|
105
174
|
/** @returns {number} rows the instance passes draw */
|
|
106
175
|
get row_limit(): number;
|
|
176
|
+
/** @returns {GPURunPool} */
|
|
177
|
+
get state_pool(): GPURunPool;
|
|
178
|
+
/** @returns {number} guides every simulated instance has */
|
|
179
|
+
get guide_total(): number;
|
|
180
|
+
/**
|
|
181
|
+
* Begin a frame: the scene's clock moved on by `seconds`, which the guides are stepped through when the frame's
|
|
182
|
+
* hair is next drawn. Call once a frame, before any view's {@link graph_draw}.
|
|
183
|
+
*
|
|
184
|
+
* @param {number} seconds
|
|
185
|
+
*/
|
|
186
|
+
step(seconds: number): void;
|
|
187
|
+
/**
|
|
188
|
+
* Simulate an entity's hair, or let it ride its entity again. Simulated, each group of its groom has a guide
|
|
189
|
+
* state, laid at rest in the entity's frame on the next step. A state the pool cannot house leaves the group
|
|
190
|
+
* riding its entity.
|
|
191
|
+
*
|
|
192
|
+
* @param {GPUHairContext} context
|
|
193
|
+
* @param {HairDynamicsSettings|null} dynamics
|
|
194
|
+
*/
|
|
195
|
+
set_dynamics(context: GPUHairContext, dynamics: HairDynamicsSettings | null): void;
|
|
196
|
+
/**
|
|
197
|
+
* Grow an entity's strands from a mesh: each root rides the triangle of the mesh it was bound to at the mesh's
|
|
198
|
+
* bind pose (`groom_bind_to_mesh`, made once a group a geometry and shared), as the mesh deforms. The groom's
|
|
199
|
+
* points are in the mesh's own space at its bind pose. Call again when the mesh's meshlets move (a skinned
|
|
200
|
+
* clone's are compacted); with `HAIR_BINDING_NONE`, the strands ride their own entity again. A group the pool
|
|
201
|
+
* cannot house the frames of rides its entity. A binding to another mesh, or none, lays simulated hair at rest
|
|
202
|
+
* where the roots now are (`reset`); the same mesh's meshlets moving does not.
|
|
203
|
+
*
|
|
204
|
+
* @param {GPUHairContext} context
|
|
205
|
+
* @param {number} mesh_node the `transforms` row of the mesh's entity, or `HAIR_BINDING_NONE`
|
|
206
|
+
* @param {import("../geometry/MeshletGeometry.js").MeshletGeometry|null} geometry the mesh's geometry, as loaded
|
|
207
|
+
* @param {number} meshlet_base the mesh's first meshlet row now: a skinned clone's own
|
|
208
|
+
*/
|
|
209
|
+
set_binding(context: GPUHairContext, mesh_node: number, geometry: import("../geometry/MeshletGeometry.js").MeshletGeometry | null, meshlet_base: number): void;
|
|
210
|
+
/**
|
|
211
|
+
* Lay an entity's simulated hair at rest on the next step, where its entity then is: for an entity placed rather
|
|
212
|
+
* than moved, a teleport no motion answers. Each group's state becomes a new tenant's.
|
|
213
|
+
*
|
|
214
|
+
* @param {GPUHairContext} context
|
|
215
|
+
*/
|
|
216
|
+
reset(context: GPUHairContext): void;
|
|
217
|
+
/**
|
|
218
|
+
* The colliders an entity's hair meets this frame: `count` of them, each `HAIR_COLLIDER_WORDS` words of
|
|
219
|
+
* `words` laid out as `HAIR_SIMULATION.js` says, the pose words left for the GPU to write.
|
|
220
|
+
*
|
|
221
|
+
* @param {GPUHairContext} context
|
|
222
|
+
* @param {Uint32Array} words
|
|
223
|
+
* @param {number} count at most `HAIR_COLLIDER_LIMIT`
|
|
224
|
+
*/
|
|
225
|
+
set_colliders(context: GPUHairContext, words: Uint32Array, count: number): void;
|
|
107
226
|
/**
|
|
108
227
|
* Register an entity's hair.
|
|
109
228
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPUHairSystem.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/hair/GPUHairSystem.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GPUHairSystem.d.ts","sourceRoot":"","sources":["../../../../../src/shade/renderer/hair/GPUHairSystem.js"],"names":[],"mappings":"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"}
|