@woosh/meep-engine 3.60.4 → 3.60.5

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.
Files changed (379) hide show
  1. package/CHANGELOG.md +2602 -0
  2. package/CONTRIBUTING.md +7 -0
  3. package/MIGRATION_2_TO_3.md +136 -0
  4. package/SECURITY.md +4 -0
  5. package/editor/EditorCameraNavigation.d.ts +2 -1
  6. package/editor/EditorCameraNavigation.d.ts.map +1 -1
  7. package/editor/EditorCameraNavigation.js +51 -57
  8. package/package.json +6 -2
  9. package/src/engine/EngineHarness.d.ts +3 -9
  10. package/src/engine/EngineHarness.d.ts.map +1 -1
  11. package/src/engine/EngineHarness.js +6 -8
  12. package/src/engine/graphics/camera/makeOrbitalCameraController.d.ts +9 -6
  13. package/src/engine/graphics/camera/makeOrbitalCameraController.d.ts.map +1 -1
  14. package/src/engine/graphics/camera/makeOrbitalCameraController.js +44 -71
  15. package/src/engine/graphics/camera/orbital/MomentumAxis.d.ts +64 -0
  16. package/src/engine/graphics/camera/orbital/MomentumAxis.d.ts.map +1 -0
  17. package/src/engine/graphics/camera/orbital/MomentumAxis.js +187 -0
  18. package/src/engine/graphics/camera/orbital/OrbitalCameraRig.d.ts +86 -0
  19. package/src/engine/graphics/camera/orbital/OrbitalCameraRig.d.ts.map +1 -0
  20. package/src/engine/graphics/camera/orbital/OrbitalCameraRig.js +319 -0
  21. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraController.d.ts +34 -10
  22. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraController.d.ts.map +1 -1
  23. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraController.js +116 -30
  24. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSystem.d.ts +1 -7
  25. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSystem.d.ts.map +1 -1
  26. package/src/engine/graphics/ecs/camera/topdown/TopDownCameraControllerSystem.js +1 -37
  27. package/src/engine/graphics/ecs/water/Water.d.ts +8 -0
  28. package/src/engine/graphics/ecs/water/Water.d.ts.map +1 -1
  29. package/src/engine/graphics/ecs/water/Water.js +8 -0
  30. package/src/engine/graphics3/WaterSystem.d.ts.map +1 -1
  31. package/src/engine/graphics3/WaterSystem.js +731 -734
  32. package/src/engine/graphics3/decal/DecalTileShader.d.ts +61 -0
  33. package/src/engine/graphics3/decal/DecalTileShader.d.ts.map +1 -0
  34. package/src/engine/graphics3/decal/DecalTileShader.js +138 -0
  35. package/src/engine/graphics3/decal/GPUDecalRenderer.d.ts +10 -4
  36. package/src/engine/graphics3/decal/GPUDecalRenderer.d.ts.map +1 -1
  37. package/src/engine/graphics3/decal/GPUDecalRenderer.js +149 -44
  38. package/src/engine/graphics3/decal/chunk_decal_tile_vertex.d.ts +25 -0
  39. package/src/engine/graphics3/decal/chunk_decal_tile_vertex.d.ts.map +1 -0
  40. package/src/engine/graphics3/decal/chunk_decal_tile_vertex.js +55 -0
  41. package/src/engine/graphics3/decal/graph_gather_decal_tiles.d.ts +22 -0
  42. package/src/engine/graphics3/decal/graph_gather_decal_tiles.d.ts.map +1 -0
  43. package/src/engine/graphics3/decal/graph_gather_decal_tiles.js +70 -0
  44. package/src/engine/graphics3/decal/shader_decal_composite.d.ts +7 -5
  45. package/src/engine/graphics3/decal/shader_decal_composite.d.ts.map +1 -1
  46. package/src/engine/graphics3/decal/shader_decal_composite.js +48 -44
  47. package/src/engine/graphics3/decal/shader_decal_tile_copy.d.ts +12 -0
  48. package/src/engine/graphics3/decal/shader_decal_tile_copy.d.ts.map +1 -0
  49. package/src/engine/graphics3/decal/shader_decal_tile_copy.js +78 -0
  50. package/src/engine/graphics3/decal/shader_gather_decal_tiles.d.ts +11 -0
  51. package/src/engine/graphics3/decal/shader_gather_decal_tiles.d.ts.map +1 -0
  52. package/src/engine/graphics3/decal/shader_gather_decal_tiles.js +80 -0
  53. package/src/engine/input/devices/mouse/MouseEventButtons.d.ts +13 -0
  54. package/src/engine/input/devices/mouse/MouseEventButtons.d.ts.map +1 -0
  55. package/src/engine/input/devices/mouse/MouseEventButtons.js +23 -0
  56. package/src/engine/input/ecs/controllers/KeyboardCameraController.d.ts +4 -0
  57. package/src/engine/input/ecs/controllers/KeyboardCameraController.d.ts.map +1 -1
  58. package/src/engine/input/ecs/controllers/KeyboardCameraController.js +9 -45
  59. package/src/engine/physics/fluid/ecs/FluidObstacleSystem.d.ts +4 -4
  60. package/src/shade/playground/water_refraction/README.md +5 -6
  61. package/src/shade/playground/water_refraction/index.html +1 -1
  62. package/src/shade/renderer/Renderer.d.ts.map +1 -1
  63. package/src/shade/renderer/Renderer.js +7 -5
  64. package/src/shade/renderer/camera/orbital/OrbitalCameraController.d.ts +40 -80
  65. package/src/shade/renderer/camera/orbital/OrbitalCameraController.d.ts.map +1 -1
  66. package/src/shade/renderer/camera/orbital/OrbitalCameraController.js +197 -147
  67. package/src/shade/renderer/fluid/GPUFluidCascade.d.ts +3 -3
  68. package/src/shade/renderer/fluid/GPUFluidCascadeStack.d.ts +1 -1
  69. package/src/shade/renderer/fluid/forcing/GPUFluidForcing.d.ts +6 -6
  70. package/src/shade/renderer/fluid/pressure/GPUFluidPressureSolve.d.ts +1 -1
  71. package/src/shade/renderer/fluid/query/GPUFluidQueries.d.ts +1 -1
  72. package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.d.ts +2 -2
  73. package/src/shade/renderer/geometry/sdf/GPUGeometrySDFManager.js +2 -2
  74. package/src/shade/renderer/geometry/sdf/cards/GPUMeshCardSets.d.ts +2 -1
  75. package/src/shade/renderer/geometry/sdf/cards/GPUMeshCardSets.d.ts.map +1 -1
  76. package/src/shade/renderer/geometry/sdf/cards/GPUMeshCardSets.js +18 -1
  77. package/src/shade/renderer/geometry/virtual/proxy/vgeo_to_proxy_mesh.d.ts +31 -0
  78. package/src/shade/renderer/geometry/virtual/proxy/vgeo_to_proxy_mesh.d.ts.map +1 -0
  79. package/src/shade/renderer/geometry/virtual/proxy/vgeo_to_proxy_mesh.js +343 -0
  80. package/src/shade/renderer/geometry/virtual/runtime/vgeo_meshlet_metadata_write.d.ts +17 -0
  81. package/src/shade/renderer/geometry/virtual/runtime/vgeo_meshlet_metadata_write.d.ts.map +1 -0
  82. package/src/shade/renderer/geometry/virtual/runtime/vgeo_meshlet_metadata_write.js +29 -0
  83. package/src/shade/renderer/geometry/virtual/runtime/vgeo_runtime_meshlet_batch.d.ts.map +1 -1
  84. package/src/shade/renderer/geometry/virtual/runtime/vgeo_runtime_meshlet_batch.js +7 -13
  85. package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.d.ts.map +1 -1
  86. package/src/shade/renderer/global_illumination/probe_clipmap/GPUProbeClipmapGI.js +1 -8
  87. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSceneHolds.d.ts +5 -5
  88. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSceneHolds.d.ts.map +1 -1
  89. package/src/shade/renderer/global_illumination/probe_clipmap/ProbeClipmapSceneHolds.js +10 -10
  90. package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.d.ts +1 -4
  91. package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.d.ts.map +1 -1
  92. package/src/shade/renderer/global_illumination/probe_clipmap/probe/GPUProbeClipmap.js +1 -10
  93. package/src/shade/renderer/global_illumination/probe_clipmap/probe/chunk_probe_clipmap_hit_surface.d.ts +5 -15
  94. package/src/shade/renderer/global_illumination/probe_clipmap/probe/chunk_probe_clipmap_hit_surface.d.ts.map +1 -1
  95. package/src/shade/renderer/global_illumination/probe_clipmap/probe/chunk_probe_clipmap_hit_surface.js +6 -34
  96. package/src/shade/renderer/global_illumination/probe_clipmap/probe/shader_probe_clipmap_shade.d.ts.map +1 -1
  97. package/src/shade/renderer/global_illumination/probe_clipmap/probe/shader_probe_clipmap_shade.js +1 -7
  98. package/src/shade/renderer/hiz/HZBFootprint.d.ts +14 -0
  99. package/src/shade/renderer/hiz/HZBFootprint.d.ts.map +1 -0
  100. package/src/shade/renderer/hiz/HZBFootprint.js +16 -0
  101. package/src/shade/renderer/hiz/HZB_FOOTPRINT_X.d.ts +10 -0
  102. package/src/shade/renderer/hiz/HZB_FOOTPRINT_X.d.ts.map +1 -0
  103. package/src/shade/renderer/hiz/HZB_FOOTPRINT_X.js +11 -0
  104. package/src/shade/renderer/hiz/HZB_FOOTPRINT_Y.d.ts +10 -0
  105. package/src/shade/renderer/hiz/HZB_FOOTPRINT_Y.d.ts.map +1 -0
  106. package/src/shade/renderer/hiz/HZB_FOOTPRINT_Y.js +11 -0
  107. package/src/shade/renderer/hiz/HierarchicalZBuffer.d.ts +0 -7
  108. package/src/shade/renderer/hiz/HierarchicalZBuffer.d.ts.map +1 -1
  109. package/src/shade/renderer/hiz/HierarchicalZBuffer.js +405 -350
  110. package/src/shade/renderer/hiz/chunk_hzb_footprint_x.d.ts +12 -0
  111. package/src/shade/renderer/hiz/chunk_hzb_footprint_x.d.ts.map +1 -0
  112. package/src/shade/renderer/hiz/chunk_hzb_footprint_x.js +27 -0
  113. package/src/shade/renderer/hiz/chunk_hzb_footprint_y.d.ts +12 -0
  114. package/src/shade/renderer/hiz/chunk_hzb_footprint_y.d.ts.map +1 -0
  115. package/src/shade/renderer/hiz/chunk_hzb_footprint_y.js +27 -0
  116. package/src/shade/renderer/hiz/hzb_footprint_texels.d.ts +14 -0
  117. package/src/shade/renderer/hiz/hzb_footprint_texels.d.ts.map +1 -0
  118. package/src/shade/renderer/hiz/hzb_footprint_texels.js +34 -0
  119. package/src/shade/renderer/hiz/shader_hzb_reduce_any.d.ts +0 -5
  120. package/src/shade/renderer/hiz/shader_hzb_reduce_any.d.ts.map +1 -1
  121. package/src/shade/renderer/hiz/shader_hzb_reduce_any.js +37 -57
  122. package/src/shade/renderer/hiz/shader_hzb_reduce_mip0.d.ts +11 -0
  123. package/src/shade/renderer/hiz/shader_hzb_reduce_mip0.d.ts.map +1 -0
  124. package/src/shade/renderer/hiz/{shader_hzb_reduce_mip0_clip.js → shader_hzb_reduce_mip0.js} +120 -111
  125. package/src/shade/renderer/loader/gltf/tiny-gltf.d.ts +1 -1
  126. package/src/shade/renderer/material/GPUMaterialManager.d.ts +7 -0
  127. package/src/shade/renderer/material/GPUMaterialManager.d.ts.map +1 -1
  128. package/src/shade/renderer/material/GPUMaterialManager.js +11 -0
  129. package/src/shade/renderer/material/resident/GPUResidentMaterialContext.d.ts +12 -12
  130. package/src/shade/renderer/material/resident/GPUResidentMaterialContext.d.ts.map +1 -1
  131. package/src/shade/renderer/material/resident/GPUResidentMaterialContext.js +17 -118
  132. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.d.ts.map +1 -1
  133. package/src/shade/renderer/shadow/map/GPUSceneShadowmapContext.js +7 -2
  134. package/src/shade/renderer/water/GPUWaterRenderer.d.ts +0 -6
  135. package/src/shade/renderer/water/GPUWaterRenderer.d.ts.map +1 -1
  136. package/src/shade/renderer/water/GPUWaterRenderer.js +12 -17
  137. package/src/shade/renderer/water/medium/graph_water_meshlets.d.ts +35 -0
  138. package/src/shade/renderer/water/medium/graph_water_meshlets.d.ts.map +1 -0
  139. package/src/shade/renderer/water/medium/graph_water_meshlets.js +89 -0
  140. package/src/shade/renderer/water/query/GPUWaterQueries.d.ts +1 -1
  141. package/src/shade/renderer/water/shader_water.d.ts.map +1 -1
  142. package/src/shade/renderer/water/shader_water.js +22 -13
  143. package/src/shade/renderer/water/shader_water_avboit.d.ts.map +1 -1
  144. package/src/shade/renderer/water/shader_water_avboit.js +7 -7
  145. package/src/shade/renderer/water/surface/graph_water_tessellation.d.ts +1 -1
  146. package/src/shade/renderer/water/surface/graph_water_tessellation.js +1 -1
  147. package/src/shade/wgsl/emulator/WGSLJavaScriptCompiler.js +9 -1
  148. package/editor/REWORK_PLAN_2026_08.md +0 -692
  149. package/src/CODEC_LAYOUT_VERIFICATION.md +0 -419
  150. package/src/CORRECTNESS_HUNT_2026_07_24.md +0 -142
  151. package/src/DUPLICATION_AUDIT_2026_08_07/00_core_reuse_surface.md +0 -738
  152. package/src/DUPLICATION_AUDIT_2026_08_07/A_core_math_geom.md +0 -79
  153. package/src/DUPLICATION_AUDIT_2026_08_07/B_core_data.md +0 -93
  154. package/src/DUPLICATION_AUDIT_2026_08_07/C_gfx_render.md +0 -80
  155. package/src/DUPLICATION_AUDIT_2026_08_07/D_gfx_features.md +0 -164
  156. package/src/DUPLICATION_AUDIT_2026_08_07/E_physics.md +0 -69
  157. package/src/DUPLICATION_AUDIT_2026_08_07/F_sound.md +0 -110
  158. package/src/DUPLICATION_AUDIT_2026_08_07/G_net_save.md +0 -129
  159. package/src/DUPLICATION_AUDIT_2026_08_07/H_engine_misc.md +0 -72
  160. package/src/DUPLICATION_AUDIT_2026_08_07/I_generation_view.md +0 -74
  161. package/src/DUPLICATION_AUDIT_2026_08_07/K_crosscutting.md +0 -169
  162. package/src/DUPLICATION_AUDIT_2026_08_07.md +0 -254
  163. package/src/DUPLICATION_AUDIT_REMEDIATION.md +0 -250
  164. package/src/DUPLICATION_REVIEW_2026_10_24.md +0 -1072
  165. package/src/REVIEW_2026_08_06/adv-core.md +0 -511
  166. package/src/REVIEW_2026_08_06/adv-gfx.md +0 -480
  167. package/src/REVIEW_2026_08_06/adv-view.md +0 -446
  168. package/src/REVIEW_2026_08_06/api-core.md +0 -296
  169. package/src/REVIEW_2026_08_06/api-engine.md +0 -195
  170. package/src/REVIEW_2026_08_06/bvh-phys-sound-net.md +0 -507
  171. package/src/REVIEW_2026_08_06/core-binary.md +0 -348
  172. package/src/REVIEW_2026_08_06/core-collection.md +0 -376
  173. package/src/REVIEW_2026_08_06/core-math.md +0 -221
  174. package/src/REVIEW_2026_08_06/core-process.md +0 -266
  175. package/src/REVIEW_2026_08_06/core-science.md +0 -223
  176. package/src/REVIEW_2026_08_06/engine-ai-nav.md +0 -279
  177. package/src/REVIEW_2026_08_06/engine-animation.md +0 -167
  178. package/src/REVIEW_2026_08_06/engine-asset.md +0 -166
  179. package/src/REVIEW_2026_08_06/engine-ecs.md +0 -920
  180. package/src/REVIEW_2026_08_06/engine-input.md +0 -197
  181. package/src/REVIEW_2026_08_06/engine-misc.md +0 -248
  182. package/src/REVIEW_2026_08_06/engine-terrain.md +0 -52
  183. package/src/REVIEW_2026_08_06/generation.md +0 -176
  184. package/src/REVIEW_2026_08_06/geom-2d.md +0 -434
  185. package/src/REVIEW_2026_08_06/geom-3d.md +0 -117
  186. package/src/REVIEW_2026_08_06/gfx-gi.md +0 -143
  187. package/src/REVIEW_2026_08_06/gfx-render.md +0 -740
  188. package/src/REVIEW_2026_08_06/gfx-texture.md +0 -690
  189. package/src/REVIEW_2026_08_06/prior-criticals.md +0 -49
  190. package/src/REVIEW_2026_08_06/prior-highs.md +0 -138
  191. package/src/REVIEW_2026_08_06/test-gaps.md +0 -364
  192. package/src/REVIEW_2026_08_06/view.md +0 -667
  193. package/src/REVIEW_2026_08_06.md +0 -610
  194. package/src/core/binary/lz4/LZ4_HIGH_COMPRESSION_PLAN_2026_09_14.md +0 -542
  195. package/src/core/bvh2/bvh3/NOTES.md +0 -2
  196. package/src/core/bvh8/NOTES.md +0 -63
  197. package/src/core/cache/wtinylfu/benchmark/CacheWTinylfu.bench.md +0 -243
  198. package/src/core/color/COLOR_FIX_PLAN_2026_08_28.md +0 -417
  199. package/src/core/color/COLOR_REVIEW_2026_08_28.md +0 -779
  200. package/src/core/geom/2d/polygon/TRIANGULATION_DESIGN.md +0 -433
  201. package/src/core/geom/3d/atlas/ATLAS_PORT_PLAN.md +0 -486
  202. package/src/core/geom/3d/atlas/BFF_PLAN.md +0 -174
  203. package/src/core/geom/3d/atlas/REVIEW_02.md +0 -392
  204. package/src/core/geom/3d/gjk/GJK_REVIEW_NOTES.md +0 -146
  205. package/src/core/geom/3d/gjk/NOTES.md +0 -8
  206. package/src/core/geom/3d/topology/TOPO_MESH_RETIREMENT_PLAN.md +0 -135
  207. package/src/core/geom/GEOMETRY_REVIEW_002_API_ISSUES.md +0 -381
  208. package/src/core/geom/GEOMETRY_REVIEW_002_NAMING.md +0 -684
  209. package/src/core/geom/MANIFOLD_COMPARISON_2026_08_01.md +0 -554
  210. package/src/core/model/reactive/evaluation/PREDICATE_APPLICABILITY_PROPOSAL.md +0 -446
  211. package/src/engine/REVIEW_2026_07_03.md +0 -211
  212. package/src/engine/asset/loaders/image/IMAGE_CODEC_REVIEW_2026_08_28.md +0 -815
  213. package/src/engine/control/first-person/DESIGN.md +0 -658
  214. package/src/engine/control/first-person/DESIGN_COLLISION.md +0 -382
  215. package/src/engine/control/first-person/DESIGN_EXTENSIONS.md +0 -563
  216. package/src/engine/control/first-person/TODO.md +0 -160
  217. package/src/engine/ecs/ASYNC_SYSTEMS_PROPOSAL.md +0 -531
  218. package/src/engine/ecs/HIERARCHY_REVIEW.md +0 -717
  219. package/src/engine/ecs/async/WORKER_SYSTEM_PLAN.md +0 -262
  220. package/src/engine/ecs/ik/PLAN.md +0 -179
  221. package/src/engine/ecs/storage/binary/SERIALIZATION_COVERAGE.md +0 -272
  222. package/src/engine/ecs/storage/binary/object-v2/DESIGN.md +0 -199
  223. package/src/engine/ecs/transform/TRANSFORM64_MIGRATION_PLAN_2026_09_04.md +0 -521
  224. package/src/engine/graphics/CONTEXT_LOSS_RECOVERY_PLAN.md +0 -463
  225. package/src/engine/graphics/ecs/camera/pp/NOTES.md +0 -48
  226. package/src/engine/graphics/render/frame_graph/CORRECTNESS_FIXES_2026_09_04.md +0 -659
  227. package/src/engine/graphics/render/frame_graph/FRAME_GRAPH_RECOMMENDATIONS.md +0 -235
  228. package/src/engine/graphics/sh3/path_tracer/REVIEW_001_ACTION_PLAN.md +0 -490
  229. package/src/engine/graphics/texture/sampler/compare/FLIP_IMPLEMENTATION_PLAN.md +0 -466
  230. package/src/engine/input/GAMEPAD_API_PROPOSAL.md +0 -717
  231. package/src/engine/input/ecs/ism/ISM_DESIGN.md +0 -1523
  232. package/src/engine/input/ecs/ism/ISM_IMPLEMENTATION_PLAN.md +0 -627
  233. package/src/engine/navigation/mesh/OVERLAPPING_SURFACES_2026_08_25.md +0 -661
  234. package/src/engine/navigation/mesh/PATHFINDING_PLAN.md +0 -229
  235. package/src/engine/network/CONGESTION_CONTROL.md +0 -87
  236. package/src/engine/network/MESSAGE_TRANSPORT.md +0 -364
  237. package/src/engine/network/SMOOTHNESS_DESIGN.md +0 -400
  238. package/src/engine/physics/cloth/MEASUREMENTS.md +0 -5304
  239. package/src/engine/physics/cloth/PLAN.md +0 -3056
  240. package/src/engine/physics/fluid/GPU_FLUID_CASCADES_PROPOSAL_2026_10_16.md +0 -1382
  241. package/src/engine/physics/fluid/REVIEW_02_PLAN.md +0 -243
  242. package/src/engine/physics/fluid/solver/NOTES.md +0 -46
  243. package/src/engine/sound/SOUND_EMITTER_RETIREMENT_PLAN.md +0 -536
  244. package/src/engine/sound/simulation/IMPLEMENTATION_PLAN.md +0 -432
  245. package/src/engine/sound/simulation/PROBE_PLACEMENT.md +0 -250
  246. package/src/engine/sound/simulation/PROBE_TRANSFER_RESEARCH.md +0 -322
  247. package/src/engine/sound/simulation/REFLECTION_IR_PLAN.md +0 -261
  248. package/src/engine/sound/simulation/VISIBILITY_GRAPH_PLAN.md +0 -121
  249. package/src/engine/sound/sopra/IMPLEMENTATION_PLAN.md +0 -999
  250. package/src/format/image/avif/DECISIONS.md +0 -545
  251. package/src/format/image/jpeg/NOTES.md +0 -3
  252. package/src/format/scene/gltf/MESHOPT_COMPRESSION_PLAN.md +0 -814
  253. package/src/generation/COORDINATES.md +0 -54
  254. package/src/generation/REVIEW_01_ACTION_PLAN.md +0 -628
  255. package/src/generation/foliage/ANNUAL_SHOOTS_BRIEF_2026_10_25.md +0 -220
  256. package/src/generation/foliage/CROWN_FILLING_BRIEF_2026_10_26.md +0 -172
  257. package/src/generation/foliage/CROWN_FULLNESS_BRIEF_2026_10_26.md +0 -86
  258. package/src/generation/foliage/FOLIAGE_DESIGN.md +0 -547
  259. package/src/generation/foliage/FOLIAGE_PLAN.md +0 -198
  260. package/src/generation/foliage/LEAF_ARCHITECTURE_BRIEF_2026_10_26.md +0 -158
  261. package/src/generation/foliage/LOD_REWORK_BRIEF_2026_10_27.md +0 -521
  262. package/src/generation/foliage/REAL_TIME_TREES_BRIEF_2026_10_27.md +0 -86
  263. package/src/generation/foliage/SELF_ORGANIZING_FRAMEWORK_BRIEF_2026_10_26.md +0 -347
  264. package/src/generation/foliage/SHOOT_SYSTEMS_ALL_SPECIES_BRIEF_2026_10_26.md +0 -248
  265. package/src/generation/foliage/SPEEDTREE_COMPARISON_2026_10_24.md +0 -694
  266. package/src/generation/foliage/TWO_FRONT_ENDS_BRIEF_2026_10_28.md +0 -552
  267. package/src/shade/RENDERER_CONTRACT.md +0 -697
  268. package/src/shade/SHADER_F16_PROPOSAL_2026_10_24.md +0 -263
  269. package/src/shade/device/IMMEDIATE_DATA_PLAN_2026_08_28.md +0 -569
  270. package/src/shade/device/PASS_ENCODER_PROPOSAL_2026_08_31.md +0 -755
  271. package/src/shade/device/mock/EXTENSION_PROPOSAL_2026_08_22.md +0 -458
  272. package/src/shade/device/mock/IMPLEMENTATION_PLAN.md +0 -255
  273. package/src/shade/device/mock/REVIEW_2026_08_22.md +0 -527
  274. package/src/shade/device/timing/GPU_PROFILER_PROPOSAL_2026_08_28.md +0 -894
  275. package/src/shade/device/timing/profile/SGPT_FORMAT.md +0 -345
  276. package/src/shade/renderer/NOTES.md +0 -78
  277. package/src/shade/renderer/PLAN.md +0 -8
  278. package/src/shade/renderer/animation/ADDITIVE_BLENDING_PLAN.md +0 -145
  279. package/src/shade/renderer/animation/SKINNING_FRAME_PLAN.md +0 -357
  280. package/src/shade/renderer/atmosphere/NOTES.md +0 -6
  281. package/src/shade/renderer/camera/orbital/MomentumAxis.d.ts +0 -76
  282. package/src/shade/renderer/camera/orbital/MomentumAxis.d.ts.map +0 -1
  283. package/src/shade/renderer/camera/orbital/MomentumAxis.js +0 -164
  284. package/src/shade/renderer/camera/orbital/OrbitalCameraConfig.d.ts +0 -45
  285. package/src/shade/renderer/camera/orbital/OrbitalCameraConfig.d.ts.map +0 -1
  286. package/src/shade/renderer/camera/orbital/OrbitalCameraConfig.js +0 -66
  287. package/src/shade/renderer/camera/orbital/OrbitalCameraInput.d.ts +0 -98
  288. package/src/shade/renderer/camera/orbital/OrbitalCameraInput.d.ts.map +0 -1
  289. package/src/shade/renderer/camera/orbital/OrbitalCameraInput.js +0 -184
  290. package/src/shade/renderer/camera/orbital/OrbitalCameraRig.d.ts +0 -175
  291. package/src/shade/renderer/camera/orbital/OrbitalCameraRig.d.ts.map +0 -1
  292. package/src/shade/renderer/camera/orbital/OrbitalCameraRig.js +0 -411
  293. package/src/shade/renderer/camera/orbital/README.md +0 -81
  294. package/src/shade/renderer/camera/orbital/index.d.ts +0 -6
  295. package/src/shade/renderer/camera/orbital/index.d.ts.map +0 -1
  296. package/src/shade/renderer/camera/orbital/index.js +0 -9
  297. package/src/shade/renderer/extension/RENDER_EXTENSION_DESIGN.md +0 -964
  298. package/src/shade/renderer/fluid/GPU_FLUID_OCCUPANCY_AND_SOTA_REVIEW_2026_10_26.md +0 -361
  299. package/src/shade/renderer/geometry/bvh/BLAS_REFIT_BATCH_PLAN.md +0 -619
  300. package/src/shade/renderer/geometry/meshlet/COMPACTION_PLAN_2026_09_16.md +0 -674
  301. package/src/shade/renderer/geometry/sdf/NOTES.md +0 -6
  302. package/src/shade/renderer/geometry/virtual/ATTRIBUTE_PLAN_2026_09_18.md +0 -540
  303. package/src/shade/renderer/geometry/virtual/MICRON_COMPARISON_2026_08_20.md +0 -305
  304. package/src/shade/renderer/geometry/virtual/VGEO_FORMAT.md +0 -913
  305. package/src/shade/renderer/geometry/virtual/VIRTUAL_GEOMETRY_DESIGN.md +0 -787
  306. package/src/shade/renderer/geometry/virtual/VIRTUAL_GEOMETRY_PLAN.md +0 -481
  307. package/src/shade/renderer/geometry/virtual/VK_LOD_CLUSTERS_COMPARISON_2026_08_20.md +0 -301
  308. package/src/shade/renderer/geometry/virtual/WEDGE_PLAN_2026_09_18.md +0 -448
  309. package/src/shade/renderer/geometry/virtual/runtime/CULL_PLAN_2026_09_16.md +0 -385
  310. package/src/shade/renderer/geometry/virtual/runtime/CUT_PLAN_2026_09_14.md +0 -656
  311. package/src/shade/renderer/geometry/virtual/runtime/REVIEW_LEDGER.md +0 -308
  312. package/src/shade/renderer/geometry/virtual/runtime/RUNTIME_PLAN.md +0 -657
  313. package/src/shade/renderer/geometry/virtual/runtime/RUNTIME_PLAN_2026_09_14.md +0 -551
  314. package/src/shade/renderer/geometry/virtual/runtime/SHADOW_PLAN_2026_09_28.md +0 -529
  315. package/src/shade/renderer/global_illumination/lpv/NOTES.md +0 -3
  316. package/src/shade/renderer/global_illumination/probe_clipmap/PROBE_CLIPMAP_PROPOSAL_2026_10_27.md +0 -4306
  317. package/src/shade/renderer/global_illumination/probe_clipmap/PROBE_RAYS_VARIABLE_AND_SORTED_SCOPE_2026_10_30.md +0 -410
  318. package/src/shade/renderer/global_illumination/sharc/NOTES.md +0 -8
  319. package/src/shade/renderer/gpu_primitive/bvh/GPU_BVH_BUILD_PLAN.md +0 -1369
  320. package/src/shade/renderer/gpu_primitive/bvh/PHASE1_HANDOVER.md +0 -202
  321. package/src/shade/renderer/gpu_primitive/indirect/NOTES.md +0 -94
  322. package/src/shade/renderer/hiz/NOTES.md +0 -3
  323. package/src/shade/renderer/hiz/shader_hzb_reduce_mip0_clip.d.ts +0 -8
  324. package/src/shade/renderer/hiz/shader_hzb_reduce_mip0_clip.d.ts.map +0 -1
  325. package/src/shade/renderer/light/cluster/NOTES.md +0 -11
  326. package/src/shade/renderer/light/cluster/PROPOSAL_ALGORITHM_2026_10_16.md +0 -524
  327. package/src/shade/renderer/light/cluster/PROPOSAL_HIERARCHICAL_2026_10_16.md +0 -1101
  328. package/src/shade/renderer/material/resident/shader_resident_texture_means.d.ts +0 -24
  329. package/src/shade/renderer/material/resident/shader_resident_texture_means.d.ts.map +0 -1
  330. package/src/shade/renderer/material/resident/shader_resident_texture_means.js +0 -120
  331. package/src/shade/renderer/particles/DESIGN.md +0 -1011
  332. package/src/shade/renderer/particles/EMITTER_GLOBAL_STATE_PLAN_2026_10_29.md +0 -280
  333. package/src/shade/renderer/particles/ORIENTATION_PLAN_2026_10_15.md +0 -453
  334. package/src/shade/renderer/path_tracer/PATH_TRACED_MEDIA_PLAN_2026_10_02.md +0 -520
  335. package/src/shade/renderer/postprocess/bloom/NOTES.md +0 -6
  336. package/src/shade/renderer/postprocess/fsr/NOTES.md +0 -4
  337. package/src/shade/renderer/postprocess/gtao/NOTES.md +0 -6
  338. package/src/shade/renderer/postprocess/nss/NOTES.md +0 -332
  339. package/src/shade/renderer/postprocess/perspective/NOTES.md +0 -3
  340. package/src/shade/renderer/postprocess/sscs/NOTES.md +0 -5
  341. package/src/shade/renderer/postprocess/ssr/NOTES.md +0 -14
  342. package/src/shade/renderer/postprocess/ssr/REPROJECTION_PROPOSAL.md +0 -286
  343. package/src/shade/renderer/postprocess/ssr/prefilter/NOTES.md +0 -39
  344. package/src/shade/renderer/postprocess/taa/NOTES.md +0 -11
  345. package/src/shade/renderer/postprocess/upscale-dither/NOTES.md +0 -78
  346. package/src/shade/renderer/postprocess/vrs/NOTES.md +0 -4
  347. package/src/shade/renderer/rasterize/native/avboit/AVBOIT_LEDGER.md +0 -1218
  348. package/src/shade/renderer/rasterize/native/avboit/AVBOIT_PLAN_2026_09_03.md +0 -600
  349. package/src/shade/renderer/restir/reservoir/NOTES.md +0 -6
  350. package/src/shade/renderer/shader/chunk/atmosphere/NOTES.md +0 -6
  351. package/src/shade/renderer/shader/chunk/brdf/FRESNEL_BRIEF_2026_10_16.md +0 -391
  352. package/src/shade/renderer/shader/chunk/color/tonemap/ACES_TONE_MAPPING_BRIEF_2026_10_17.md +0 -153
  353. package/src/shade/renderer/shader/chunk/color/tonemap/HDR_TONE_MAPPING_FORMS_BRIEF_2026_10_16.md +0 -322
  354. package/src/shade/renderer/shader/chunk/color/tonemap/SDR_TONE_MAPPING_BRIEF_2026_10_16.md +0 -247
  355. package/src/shade/renderer/shader/chunk/fsr/NOTES.md +0 -3
  356. package/src/shade/renderer/shader/chunk/fsr/spd/NOTES.md +0 -4
  357. package/src/shade/renderer/shader/chunk/geometry/ray/NOTES.md +0 -4
  358. package/src/shade/renderer/shader/chunk/material/MULTISCATTER.md +0 -159
  359. package/src/shade/renderer/shader/chunk/mboit/NOTES.md +0 -38
  360. package/src/shade/renderer/shader/chunk/spherical_harmonics/l1i/NOTES.md +0 -3
  361. package/src/shade/renderer/shader/chunk/spherical_harmonics/sampling/NOTES.md +0 -8
  362. package/src/shade/renderer/shader/compiler/SHADER_SWITCH_PROPOSAL_2026_10_16.md +0 -927
  363. package/src/shade/renderer/shadow/contact/FINDINGS.md +0 -413
  364. package/src/shade/renderer/shadow/map/csm/NOTES.md +0 -5
  365. package/src/shade/renderer/shadow/ray/NOTES.md +0 -31
  366. package/src/shade/renderer/shadow/sdf/NOTES.md +0 -9
  367. package/src/shade/renderer/shadow/sdf/brixelizer/NOTES.md +0 -5
  368. package/src/shade/renderer/shadow/sdf/cascade/NOTES.md +0 -9
  369. package/src/shade/renderer/shadow/vsm/NOTES.md +0 -12
  370. package/src/shade/renderer/shadow/vsm/PLAN.md +0 -442
  371. package/src/shade/renderer/shadow/vsm/REVIEW_LEDGER.md +0 -43
  372. package/src/shade/renderer/texture/COMPRESSED_TEXTURE_PLAN_2026_09_01.md +0 -2444
  373. package/src/shade/renderer/texture/mipmaps/NOTES.md +0 -3
  374. package/src/shade/renderer/volumetrics/NOTES.md +0 -1329
  375. package/src/shade/renderer/volumetrics/VOLUMETRIC_NOISE_PLAN_2026_10_15.md +0 -336
  376. package/src/shade/renderer/water/medium/GPUWaterBodies.d.ts +0 -23
  377. package/src/shade/renderer/water/medium/GPUWaterBodies.d.ts.map +0 -1
  378. package/src/shade/renderer/water/medium/GPUWaterBodies.js +0 -75
  379. package/src/shade/wgsl/NOTES.md +0 -4
@@ -1,220 +0,0 @@
1
- # Annual Shoots: Leaves on Real-Sized Shoots
2
-
3
- ## Problem
4
-
5
- The oak's leaf cards are a median 0.90 m long (species card 0.95 x 0.85 m). Each draws 5 leaves at about 0.3-0.4 m
6
- against a real 6-12 cm, and each moves as one rigid plate, so wind displaces large patches of the crown together. The
7
- cards are big because they stand in for twigs the skeleton never grows: the oak's leaf carriers (generator 2) are a
8
- median 1.24 m long, where a current-year oak shoot averages 5.5 cm.
9
-
10
- Shrinking the cards alone thins the crown: at 0.25 m cards the oak's leaf area falls from 163 to 45 m^2 and its side
11
- opacity from 0.75 to 0.33, because the density rule ties leaf area per metre of carrier to card size. (Both opacities
12
- came from a raster window that clipped the crown; see "Landed".)
13
-
14
- ## Sources
15
-
16
- **[BB2000]** Buck-Sorlin, G.H. & Bell, A.D. (2000). Models of crown architecture in *Quercus petraea* and *Q. robur*:
17
- shoot lengths and bud numbers. *Forestry* 73(1): 1-19. Peripheral branches at mid-crown of two *Q. petraea* (70-120
18
- years) and one *Q. robur* (30 years); no difference found between the species in bud patterns or length distributions.
19
-
20
- | Quantity | Value | Where |
21
- | :--- | :--- | :--- |
22
- | Extension unit (one season's shoot) length, all oaks | mean 5.5 cm, median 3.8 cm, sd 5.0 | Table 4 |
23
- | Same, the *Q. robur* | mean 7.2 cm, median 5.8 cm | Table 4 |
24
- | Longest shoot by branching order | 30 cm (order 1) to 8 cm (order 4) | p. 9 |
25
- | Modal length | 3 cm (order 1) to 2 cm (order 4) | p. 9 |
26
- | Length distribution | negative binomial, orders 1-2 (p = 0.58, 0.60); Poisson with mean - 1, orders 3-4 | p. 10-11 |
27
- | Terminal shoot length | 11.7 +- 6.1 cm, about 1-31 cm | p. 11-12 |
28
- | Lateral lengths, subapical zone (0.8-0.99) | means 3.4-9.0 cm | p. 11 |
29
- | Lateral lengths, median zone (0.3-0.55) | means 3.4-7.0 cm, at most about 15 cm | p. 11 |
30
- | Where laterals grow out | none below 0.3; 23.3% at 0.3-0.55; almost none at 0.55-0.8 (female flowers); 71.4% at 0.8-0.99 | p. 11, Fig. 7 |
31
- | Share of all new shoots | subapical-zone laterals 44.4%, median-zone laterals 14.4% | p. 11 |
32
- | Subapical buds (pseudo-whorl under the terminal bud) | almost always 4 | p. 7, 17 |
33
- | Median buds | modal 6-10, range 0-21; length = 0.98 m - 2.7 cm (all orders) | p. 8, Table 5 |
34
- | Shoot types | spring flush 92.7%, Lammas 5.2%, sylleptic 2.1% | Table 3 |
35
- | Current shoot diameter | d = 0.27 + 0.02 l (cm), never above 5.5 mm | Table 7, p. 13 |
36
- | Branching orders on a branch | up to 7 | p. 15 |
37
-
38
- Subapical and median buds each sit in the axil of a leaf; basal buds have none (footnote 3, p. 5).
39
-
40
- **[BB1998]** Buck-Sorlin, G.H. & Bell, A.D. (1998). A quantification of shoot shedding in pedunculate oak (*Quercus
41
- robur* L.). *Botanical Journal of the Linnean Society* 127: 371-391. Everything shed in one year by one free-standing
42
- *Q. robur* (about 14 m, 40 years).
43
-
44
- | Quantity | Value | Where |
45
- | :--- | :--- | :--- |
46
- | Shoot fragments shed in a year | 14,767 (13,185 actively shed, 1,582 broken) | p. 376 |
47
- | Age of shed fragments with current growth | 21.3% current, 33.8% 1 year, 21.6% 2 years, 23.3% 3-10 years | p. 382-383 |
48
- | Unbranched / a single extension unit | 70.5% / 35.8% (live); 90.7% / 66.6% (dead) | p. 381 |
49
- | Longest extension unit under 5 cm | 83.7% | p. 377 |
50
- | Most at risk | the highest branching orders; short shoots whose terminal bud seldom extends the axis | p. 388 |
51
- | Where | shoots up to about 10 years old: the outer metre of the crown | p. 388 |
52
- | How | always at the base of a module (the axis from one bud), never along it | p. 388 |
53
- | Net effect | "the surplus of peripheral shoots apparently produced every year is mostly thinned out within 2 years" | p. 388 |
54
-
55
- **[W1989]** Wilson, B.F. (1989). Tree branches as populations of twigs. *Can. J. Bot.* 67: 434-442, as cited in
56
- [BB2000] p. 15: twig populations fluctuate but show no long-term change in numbers.
57
-
58
- **[TP2015]** *Tree Physiology* (2015) table comparing *Q. robur* and *Q. faginea*: 11.2 +- 0.9 leaves per shoot. The age
59
- of the trees is not stated.
60
-
61
- ## Derived
62
-
63
- - **Shoots per mother shoot per year: about 2.65.** On [BB2000]'s branch o1b1, laterals were 44.4% + 14.4% of new
64
- shoots, which is 71.4% + 23.3% of laterals, so laterals were 62.2% of all new shoots and terminals 37.8%. If every
65
- mother shoot grew its terminal bud, each yielded 1 terminal, 1.17 subapical laterals (29% of its 4 subapical buds)
66
- and 0.38 median laterals.
67
- - **Survival: about 38% of new shoots a year.** A population that holds steady [W1989] keeps 1 / 2.65 of what it
68
- produces, which matches "mostly thinned out within 2 years" [BB1998].
69
- - **Leaves per shoot: 4 + median buds**, 9-14 for typical lengths, against 11.2 in [TP2015].
70
-
71
- ## Decisions
72
-
73
- Alex's direction (2026-10-25): appearance, flexibility and working well with the other parameters come before
74
- real-world accuracy.
75
-
76
- 1. **The leaf-bearing unit is the current-year shoot.** A deciduous oak's leaves sit on this year's growth only. One
77
- card per current-year shoot draws that shoot's leaves crowded at its tip (a new `rosette` leaf arrangement in the
78
- atlas). The card covers the shoot plus its leaves, about 0.2 m for the oak.
79
- 2. **The peripheral twig system is grown year by year** in a pass after the framework, from an explicit rule list,
80
- `TreeSpeciesConfig.shoot_rules` (`ShootSystemRule`: carrier generator, shoot generator, years, vigour, and the
81
- demography above as defaults). The shoot generator is an ordinary `BranchGeneratorConfig` for the twigs' look. A
82
- module (the axis grown from one bud) is one skeleton branch, one segment per year, so shedding removes a module at
83
- its base, as [BB1998] observed.
84
- 3. **Every year**, each living module adds a terminal extension unit, and each unit grown the year before bursts its
85
- buds: about 1.17 laterals in its subapical zone and 0.38 in its median zone. Lengths are drawn from [BB2000]'s
86
- distributions, shorter with branching order.
87
- 4. **Shedding** keeps, of each year's new shoots, the expected `vigour / 2.65` share, taking the highest-order and
88
- shortest first [BB1998]. A deterministic dither keeps counts close to their expectation, so the crown does not
89
- swing with seed luck.
90
- 5. **Density closure (the one unsourced part).** Steady state fixes how a population changes, not how big it is. Each
91
- carrier's own last `years` of growth seeds the system: its extension units are laid back from its tip, and each
92
- one's buds start lineages. `vigour` (default above 1, a growing crown) is the authored knob that sets how full the
93
- crown is; at 1 the periphery holds steady. LAI is reported as a check, not fitted.
94
- 6. **Leaves only on current growth** is keyed on a runtime fact: the skeleton records where each module's current-year
95
- unit starts. A carrier without that record keeps today's density rule, so every other preset is unchanged.
96
- 7. **Levels.** All modules take the carrier's level + 1, the twig layer, so the LOD chain and the wind rig treat them as
97
- one layer. Branching order is tracked inside the pass only.
98
- 8. **Joints** come from the existing derived placement. Each current shoot carrying a card will likely take its own
99
- joint, which is the leaf-scale motion this work is for. The `max_joints` safety net rises from 4,096 to 16,384 so
100
- the oak does not reach it; that number is chosen.
101
-
102
- Not modelled: Lammas and sylleptic shoots (7.3% of shoots), male and female short shoots, and shedding of shoots older
103
- than the simulated `years`.
104
-
105
- ## Plan
106
-
107
- 1. `ShootSystemRule` config with [BB2000]/[BB1998] defaults, wired into `TreeSpeciesConfig`.
108
- 2. `tree_skeleton_grow_shoots`: the demography as a pure, seeded function producing module records, then written into
109
- the skeleton before the pipe-model pass, with radii from [BB2000] Table 7.
110
- 3. Foliage: one card per current-year shoot; the `rosette` arrangement; segment mechanics take the same leaf area.
111
- 4. The oak preset grows shoots on generators 2 and 4, with cards sized for 6-12 cm leaves.
112
- 5. Specs: outgrowth positions and counts, steady survival at vigour 1, length means by order, leaves only on current
113
- growth, mechanics leaf area equal to the cards'. Mutation-test them.
114
- 6. Measure the oak (cards, joints, leaf area, opacity, triangles, generation time) and look at it in the playground.
115
-
116
- ## Landed
117
-
118
- Built as planned, with these differences.
119
-
120
- - **Pass order.** The shoots are written after the pipe-model pass, not before. The pipe pass would otherwise thicken
121
- the framework under shoots already placed against it, and they would end up inside its wood. Twig radii are not
122
- left to the pipe model: each axis's radius is computed bottom-up from [BB2000] Table 7. Each unit takes the
123
- largest of:
124
- - its current-shoot diameter, aged by one year per unit below the tip;
125
- - the pipe area of what it carries;
126
- - 1 / 0.82 of its thickest lateral.
127
-
128
- The radius floor is 1.9 mm, the thinnest tip the bark mesher draws cleanly, and the framework's own floor in
129
- `tree_skeleton_grow.spec.js`. A carrier's young end is thickened the same way, then swept so it still tapers.
130
- - **No twig grows through wood.** All carriers are thickened first. Then each axis's path is computed and tested
131
- against a spatial hash of the framework (`FrameworkHash`). An axis that would cross the framework is a blocked bud
132
- and does not grow, nor does anything on it. Its own junction with its mother is exempt. Measured at seed 1337: 286
133
- of 2,639 modules are blocked, and 195 more lose their mother that way.
134
- - **Plagiotropic mothers** knock out ventral buds as the framework's do: a bud turns by the golden angle, up to 5
135
- times, until it clears the downward cone.
136
- - **Each segment now bends under its own load.** Before, only what a segment carried loaded it, so a twig of one unit,
137
- carrying its card at the tip, had zero compliance. A segment's own drag and mass now act at L / 6 from its base.
138
- Together with the twig layer, this moved the oak's boughs, so `elastic_modulus` was refitted from 3.33e7 to 4.55e7.
139
- Over 12 seeds, the median primary bough of the oak, bent as one cantilever, is back at its old compliance (ratio
140
- 0.999). Against their sway before, maple boughs move 1.12x, pine 1.14x and birch 1.04x.
141
- - **The oak preset**, tuned for its look:
142
- - Its secondary branches (generator 2) are 1.4x longer, with 12 to a bough where there were 8.
143
- - Shoot rules run on generators 1, 2 and 4, with `years: 10` and `vigour: 1.3`.
144
- - The cards are `TriStarCluster` cards of 0.17 x 0.17 m. Each carries a `rosette` of 11 leaflets.
145
- - **`max_joints`** rose to 16,384, as planned.
146
-
147
- **Measured, oak at seed 1337, master (6aff5265e) against now:**
148
-
149
- | | master | now |
150
- | :--- | ---: | ---: |
151
- | current shoots | none | 2,158 |
152
- | cards | 842 | 2,261 |
153
- | median card length | 0.90 m | 0.17 m (p10 0.14, p90 0.20) |
154
- | skeleton nodes | 766 | 9,860 |
155
- | wind joints (1 cm) | 447 | 5,703 |
156
- | leaf area | 164 m^2 | 93 m^2 |
157
- | LAI over the crown's top silhouette | 4.0 | 3.2 |
158
- | side opacity over the silhouette | 0.64 (40.0 m^2) | 0.49 (26.7 m^2) |
159
- | top opacity | 0.74 (40.8 m^2) | 0.61 (29.3 m^2) |
160
- | generation, best of 8 | 291 ms | 441 ms |
161
-
162
- The playground draws the oak at LOD 0 in 82,761 triangles.
163
-
164
- **Opacity is set by the framework's gaps, not by the leaf.** The crown is more see-through than master's. Each leaf now
165
- sits on its own twig, and the gaps between boughs show. Raising the leaf does little:
166
-
167
- | years : vigour | shoots | joints | leaf | LAI | side opacity |
168
- | :--- | ---: | ---: | ---: | ---: | ---: |
169
- | 10 : 1.3 (preset) | 2,158 | 5,703 | 93 m^2 | 3.2 | 0.49 |
170
- | 12 : 1.3 | 3,042 | 8,066 | 129 m^2 | 4.2 | 0.55 |
171
- | 10 : 1.5 | 4,919 | 10,455 | 202 m^2 | 6.7 | 0.62 |
172
- | 10 : 1.7 | 9,442 | 15,719 | 372 m^2 | 12.1 | 0.67 |
173
-
174
- At vigour 1.7, four times the leaf area gives 0.67. A fuller crown is a framework change: more or longer boughs.
175
-
176
- **Correction (2026-10-26).** The first version of these tables came from a probe whose raster window was a fixed 14 m
177
- square. It clipped the oak's top view, and master's side view too, whose 0.9 m cards reach past it. With a window
178
- fitted to the leaves, master's oak reads side 0.64 over 40.0 m^2, top 0.74 over 40.8 m^2, LAI 4.0 (first stated as
179
- 0.75 over 33.9, 0.83 over 21.9 and 7.5), and the oak with shoots LAI 3.2 (first stated as 5.2, "an oak crown's"). It is
180
- lower than master's, not equal to a real crown's.
181
-
182
- **Other presets** keep their cards. They have no `shoot_rules`, so they change only through the new self-load and
183
- modulus. Joints at seed 1337, master against now: pine 525 to 544, birch 186 to 185, willow 514 to 513, maple 313 to
184
- 332, spruce 423 to 435, palm 65 to 65, shrub 46 to 54, fern 26 to 24. Their card counts are unchanged.
185
-
186
- **Specs.**
187
- - **Demography:** `shoot_demography.spec.js`, 6 specs.
188
- - **Shoot layer:** `tree_skeleton_grow_shoots.spec.js`, 10 specs:
189
- - The twig layer and its records.
190
- - The framework is untouched by the shoot rules.
191
- - One card per current shoot, anchored on its current unit.
192
- - A single-unit twig bends.
193
- - Determinism.
194
- - Twig against mother radius.
195
- - Year-old wood against Table 7.
196
- - Every atlas variant is used.
197
- - A carrier's young end and its tip against Table 7.
198
- - **Mutation testing:** 11 mutants, all killed:
199
- - zone widened;
200
- - no shedding;
201
- - no order shortening;
202
- - no framework avoidance;
203
- - no plagiotropic knockout;
204
- - no self-load;
205
- - leaves along the whole carrier;
206
- - no carrier thickening;
207
- - no twig radius floor;
208
- - no ageing;
209
- - one maturity for every card.
210
- - **Existing specs:**
211
- - `tree_skeleton_grow.spec.js` allows twigs Table 7's slenderness, up to 50, against 26 for the framework.
212
- - Its interpenetration check skips twig against twig, and twig against its mother within one segment of the
213
- junction.
214
- - The density and reach specs moved from the oak to the maple, which still has density-rule cards.
215
-
216
- **Not done.**
217
- - Lammas and sylleptic shoots.
218
- - Shedding of shoots older than `years`.
219
- - Shoots for the other broadleaf presets. Maple and birch would take the same rules once their own shoot lengths are
220
- sourced.
@@ -1,172 +0,0 @@
1
- # Crown Filling by Light
2
-
3
- Follows `SHOOT_SYSTEMS_ALL_SPECIES_BRIEF_2026_10_26.md`, which grew every woody species' twigs from sourced shoot
4
- demography and left the crowns barren.
5
-
6
- ## Problem
7
-
8
- Each carrier grows its twig system alone for a fixed number of years, at a fixed vigour (net shoots a shoot leaves a
9
- year), with shoots shed by a chosen rank of age, order and length. Nothing in that knows where the crown is empty or
10
- crowded. Seed 1337, against master's metre-long cards:
11
-
12
- | preset | leaf area, master -> now | side opacity, master -> now |
13
- | :--- | ---: | ---: |
14
- | birch | 45 -> 2 m^2 | 0.44 -> 0.10 |
15
- | willow | 241 -> 7 m^2 | 0.67 -> 0.18 |
16
- | pine | 174 -> 24 m^2 | 0.69 -> 0.33 |
17
- | spruce | 161 -> 20 m^2 | 0.57 -> 0.34 |
18
- | maple | 150 -> 63 m^2 | 0.66 -> 0.43 |
19
- | oak | 164 -> 113 m^2 | 0.64 -> 0.51 |
20
-
21
- **The target** is the US Forest Inventory's crown ratings of 15,011 leaf-on trees seen from the side (Randolph 2006,
22
- USDA GTR SRS-94, Tables 1-4). Healthy crowns block a mean 45% of their outline (oaks, maples, birches 46-51%), and their
23
- foliated parts let about 15% of skylight through (interquartile 10-20%). From below, open-grown crowns intercept 0.75-0.92
24
- of light (Nowak 1996, Forest Science 42: 504-507, Table 2).
25
-
26
- ## Principle
27
-
28
- A real crown is full because it grows until it shades itself. Shoots in light make more shoots; shoots in shade make
29
- fewer, and an axis in deep shade dies. The papers already in hand measure exactly this:
30
-
31
- - **Spruce.** Rb, the net shoots a shoot leaves a year, rises with the light a branch receives: about 0.65 at
32
- 4-5 mol m^-2 d^-1 to about 2.2 at 10-12, against 37.1 under open sky, so 0.12 to 0.30 of full light. Below 1 in deep
33
- shade, a branch's foliage shrinks with age (Niinemets & Lukjanova 2003, New Phytol. 158: 75-89, Fig. 5b, Table 1).
34
- - **Pine.** Branching stops at a relative light of 0.20-0.25 (Ilonen et al. 1979, Silva Fennica 13: 319-321). A shoot
35
- with no needles left is dead (Kellomäki & Kurttio 1991, p. 104).
36
- - **Birch.** The bud population grows 1.52 a year in the top of the crown, 0.999 at its bottom (Maillette 1982, J.
37
- Appl. Ecol. 19: 219-238, Table 1).
38
- - **Red maple.** Shaded branches die, so foliage stays at the crown's periphery (Wilson 1966, Harvard Forest Paper 14,
39
- p. 19).
40
-
41
- So vigour becomes a function of light, and the crown's leaf area becomes an outcome: growth stops where the crown has
42
- shaded its own interior to the light at which shoots no longer replace themselves.
43
-
44
- ## Design
45
-
46
- The framework (trunk, boughs and branches from the generator graph) stays as it is. Everything younger grows by light.
47
- `tree_skeleton_grow_shoots` is rebuilt around one tree-wide simulation:
48
-
49
- 1. **One season loop for the whole tree.** Every carrier's twig system grows in the same loop, so the systems compete
50
- for the same light. `years` and the light response move from the per-carrier `ShootSystemRule` to a species-level
51
- `ShootGrowthConfig`. The rules keep what differs by carrier: bud zones, lengths, orders, angles.
52
- 2. **Shoots have geometry as they grow.** Each new unit's start, heading and end are fixed in its season (tropisms,
53
- zigzag, insertion and phyllotaxis, as the writer does today), so light can be measured where the leaves are. The
54
- writer then only turns the surviving axes into skeleton branches.
55
- 3. **The light field.** Each season, the leaf area of every leaf-bearing unit is deposited in a voxel grid over the
56
- crown.
57
- - **Light at each voxel:** relative irradiance from the sky by Beer-Lambert, `exp(-G Omega LAD path)`.
58
- - **Extinction:** `G = 0.5`, the projection of a spherical leaf angle distribution.
59
- - **Clumping:** `Omega` is the species' shoot clumping; Scots pine about 0.58 from its silhouette-to-area ratio of
60
- 0.146 (Smolander, Stenberg & Linder 1994, Tree Physiol. 14: 971-980), broadleaves 1 for want of data.
61
- - **Sky:** a standard overcast sky, radiance `(1 + 2 sin elevation) / 3` (Moon & Spencer 1942), weighted for a
62
- horizontal receiver as hemispherical photographs measure it.
63
- - **Directions:** lattice directions, so each is one sweep of the grid. The cost is grid cells times directions,
64
- whatever the leaf count.
65
- 4. **Vigour follows light.** An axis in relative light `Q` leaves `Rb(Q)` net shoots a year. `Rb` rises linearly from 1
66
- at the species' compensation light to its full vigour at its saturation light, flat above, and falls below 1 under
67
- compensation. A season's new shoots on an axis survive at `Rb(Q) / yield`, its gross yield of new shoots. The shoots
68
- kept are the best lit, with a dithered count so the total is exact on average. This replaces the chosen
69
- age/order/length rank.
70
- 5. **Death by shade is not a separate rule.** A terminal that is shed takes its axis with it [BB1998], and in shade the
71
- terminal is shed. A shaded branch thins and dies as `Rb < 1` makes it.
72
- 6. **Long enough to fill.** `years` covers the time the periphery takes to reach the light limit, so crown fullness is
73
- set by light, not by when the simulation stops. The equilibrium is measured, not assumed.
74
- 7. **Wood.** The [BB2000] Table 7 diameter holds only for current and year-old units, the shoots it was measured on.
75
- Older wood is the pipe model plus what its laterals need where they join, for twig and carrier alike.
76
- 8. **Framework avoidance** is tested when a unit grows, as now.
77
-
78
- **Per-species light response:**
79
-
80
- | preset | compensation `Q` | saturation `Q` | full vigour | source |
81
- | :--- | ---: | ---: | ---: | :--- |
82
- | spruce | 0.16 | 0.30 | 2.19 | [NL2003] Fig. 5b line through (0.12, 0.65), (0.30, 2.2); Table 1 max |
83
- | pine | 0.22 | 0.30 | 1.867 | Ilonen 1979 (0.20-0.25); saturation spruce's; [NL2003] Fig. 2 |
84
- | birch | 0.22 | 0.30 | 1.52 | top of crown [M1982]; light points pine's |
85
- | oak, maple, willow, shrub | chosen | chosen | chosen | none found |
86
-
87
- **Gaps.** Only spruce has a measured light curve. Pine has its compensation point. The others borrow the curve's
88
- shape, and that is marked in the code.
89
-
90
- ## Measuring
91
-
92
- - **Fullness:** crown density and foliage transparency against Randolph 2006, and interception from below against Nowak
93
- 1996, measured with the crown opacity benchmark being built in a sibling session. Until that lands, the scratchpad
94
- probe stands in.
95
- - **Specs, from the principle:**
96
- - In a uniform light field, the twig population changes by `Rb(Q)` a year.
97
- - Shoots in shade die.
98
- - Leaf area stops growing with `years` once the crown is full.
99
- - Doubling `years` past equilibrium changes leaf area little.
100
- - A crown with more framework does not end up with proportionally more leaf.
101
-
102
- ## Plan
103
-
104
- 1. `ShootGrowthConfig`; the rule loses `years` and `vigour`.
105
- 2. `shoot_light_field`: voxel leaf area, sky sweeps, irradiance query. Specs against Beer-Lambert in closed form.
106
- 3. The tree-wide simulation with geometry, light-driven survival, framework avoidance at growth.
107
- 4. The writer and radii on the simulated axes.
108
- 5. Presets: light response per species.
109
- 6. Specs green (including the willow seam and the season order), mutation-tested.
110
- 7. Measure every preset against the targets; look at each in the playground.
111
-
112
- ## Landed (2026-10-26, uncommitted)
113
-
114
- As designed, plus what building it turned up:
115
-
116
- - **The simulation:** `shoot_systems_simulate` runs every carrier's twig system in one season loop against a
117
- `ShootLightField` (leaf-area voxels of `light_cell`, 17 lattice sweeps of the overcast sky, matches Beer-Lambert in
118
- closed form within 0.01). Each season: extension with tropisms, short-shoot survival `short_shoot_survival x
119
- min(1, Rb(Q))`, bursts, syllepsis, shedding to `Rb(Q) / yield` (rank: log keep share, age, order, length, jitter),
120
- the cascade of a shed mother, then the wood.
121
- - **Dynamic girth** (Alex's pick over a forecast radius): `ShootGirth` thickens the wood each season with what it
122
- carries, never thinning: the pipe model at the species' `pipe_model_exponent` over the shoots' Table 7 radius, Table
123
- 7 for a unit of its age, and `1 / SHOOT_LATERAL_RADIUS_RATIO` of a lateral where it joins, on twigs, carriers and the
124
- framework above them. A shoot grows only where it clears today's wood; a shoot the wood has grown into by the end
125
- of a season dies with all it carries. The framework hash (`ShootFrameworkHash`, allocation-free) is rebuilt each
126
- season.
127
- - **Framework ages** come from the leader growth: a branch is born when its parent's tip passed its seat, so a carrier
128
- carries `round(age)` units over its whole length.
129
- - **Cards follow leaves:** a unit carries its leaves (`leaves_per_unit + leaves_per_metre L`, times `leaf_survival` at
130
- its age) over the leaves one card draws (`foliage_card_leaf_count`), dithered; short shoots get their own rosette
131
- tiles (`foliage_atlas_tiles.js`).
132
- - **Skinning seats** (found by the willow seam spec once twigs grew on twigs): where more than four joints meet, the
133
- four kept are those that leave the seat least far from where all of them would carry it, and a dropped joint folds
134
- into the kept one that carries the point most alike. "How far apart" is each joint on the path between them turning
135
- by its reference-wind rotation about its pivot (`TreeSkeleton.joint_rotation`, written by
136
- `tree_skeleton_assign_skin_joints`). Willow seats over the 1 cm tolerance: 178 by weight-then-hops, 6 by
137
- weight-times-hops, 0 now.
138
-
139
- **Specs restated from their principle** (each mutation-tested red):
140
- - interpenetration: a child may meet its mother's wood only in the crotch, the run of its first segments that still
141
- lie in her wood, and a child whose tip is in her wood is buried; twigs no longer get a year-old-girth allowance. The
142
- spec finds candidate pairs by a grid (it was n^2 and timed out at 90k segments).
143
- - conifer tiers: they come from the whorls (spiral boughs: empty bands 5.4x fewer on spruce, 3.9x on pine);
144
- plagiotropism no longer moves them (0.95x).
145
- - spire: the leader's top unit, clothed in at least half the needles a unit of `leader_growth` carries.
146
- - autumn order: the leaves that fell were more exposed and younger than those kept, by a quarter of the summer spread.
147
- - shoot demography: from `tree_skeleton_grow`'s records (zones, the four-bud whorl, ancestry, light response).
148
-
149
- **Measured at seed 1337** with master's `foliage_measure_leaf_area` and `tree_crown_opacity` (copied in for the run):
150
-
151
- | preset | leaf m^2 | crown LAI | side density | side transparency | below density | below transparency | generate |
152
- | :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
153
- | oak | 90.9 | 3.11 | 0.51 | 0.44 | 0.53 | 0.38 | 0.9 s |
154
- | pine | 35.0 | 1.60 | 0.38 | 0.60 | 0.41 | 0.53 | 1.0 s |
155
- | birch | 64.5 | 6.59 | 0.56 | 0.38 | 0.80 | 0.15 | 2.5 s |
156
- | willow | 136.3 | 3.68 | 0.69 | 0.30 | 0.71 | 0.25 | 2.0 s |
157
- | maple | 36.3 | 1.42 | 0.33 | 0.55 | 0.32 | 0.43 | 1.1 s |
158
- | spruce | 117.8 | 4.44 | 0.36 | 0.28 | 0.45 | 0.25 | 3.1 s |
159
- | shrub | 57.8 | 4.65 | 0.62 | 0.34 | 0.77 | 0.18 | 0.3 s |
160
-
161
- (generate: skeleton and cards, `probe_crowns.mjs`.) FIA's targets are density 45-51% and transparency about 15%
162
- [Randolph 2006].
163
-
164
- **Open, measured:**
165
- - Every preset is far more see-through than FIA's 15%; only oak's density is in range.
166
- - **The shrub was barren** at a chosen Rb of 1.3 (2.1 m^2, crown LAI 0.18): light did not limit it, the stool's young
167
- stems seeded few lineages, and 1.3 of a gross yield of 7.17 kept under one burst shoot in five even in full sun. No
168
- net shoot yield was found for hazel (Grisafi et al. 2024 report one season's bud fates; orchard LAI 0.80-2.86,
169
- Oeztuerk et al. 2018, is per ground area). Alex's pick: full-sun vigour is the gross yield the rule's Grisafi
170
- numbers give (`shoot_expected_yield`, 7.17), so only shade sheds hazel shoots. Light saturates the crown from about
171
- 2.8 up. The shrub row above is measured at that vigour; master's leaf-area and opacity specs pass on this tree.
172
- - Engulfment took birch from 115 to 83 m^2 (probe), willow from 167 to 157, spruce from 140 to 121.
@@ -1,86 +0,0 @@
1
- # Crown Fullness: what keeps the crowns bare
2
-
3
- Alex, 2026-10-26: oak, pine, maple and spruce "look largely naked" as a whole, though their leaves look right.
4
-
5
- ## Measured (seed 1337, master 7d610267e)
6
-
7
- **What sheds the shoots.** The light of every shoot candidate, as the simulation judged it:
8
-
9
- | preset | DBH | height | crown width | leaf | framework | twigs | candidates kept | below compensation | saturated |
10
- | :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
11
- | oak | 87 cm | 8.6 m | 6.1 m | 89 m² | 151 m | 1,811 | 47% | 15% | 71% |
12
- | pine | 73 cm | 10.6 m | 5.0 m | 16 m² | 71 m | 838 | 67% | 0% | 100% |
13
- | maple | 88 cm | 8.6 m | 6.3 m | 49 m² | 114 m | 2,600 | 83% | 14% | 60% |
14
- | spruce | 69 cm | 10.7 m | 6.3 m | 80 m² | 78 m | 40,061 | 93% | 6% | 82% |
15
-
16
- Light does not bind these crowns: most candidates sit in saturating light.
17
-
18
- **Vigour does not fill them** (`ShootGrowthConfig.vigour` raised 2× and 4×):
19
-
20
- | preset | leaf ×1 / ×2 / ×4 | side density ×1 / ×2 / ×4 |
21
- | :--- | :--- | :--- |
22
- | oak | 89 / 101 / 82 m² | 0.50 / 0.46 / 0.45 |
23
- | pine | 16 / 35 / 35 m² | 0.34 / 0.42 / 0.42 |
24
- | maple | 51 / 48 / 47 m² | 0.41 / 0.40 / 0.40 |
25
- | spruce | 78 / 74 / 72 m² | 0.33 / 0.33 / 0.33 |
26
-
27
- Above its gross yield every burst shoot is kept. The twig systems then stop growing outward for want of buds and
28
- room, not of light.
29
-
30
- **The framework does** (every non-root `BranchSpawnRule.count` doubled):
31
-
32
- | preset | leaf ×1 → ×2 | crown LAI | side density | side transparency | below density |
33
- | :--- | :--- | :--- | :--- | :--- | :--- |
34
- | oak | 89 → 188 m² | 3.1 → 5.3 | 0.50 → 0.66 | 0.42 → 0.33 | 0.58 → 0.71 |
35
- | pine | 16 → 38 m² | 0.7 → 1.4 | 0.34 → 0.48 | 0.64 → 0.56 | 0.35 → 0.46 |
36
- | maple | 51 → 116 m² | 2.0 → 4.3 | 0.41 → 0.62 | 0.42 → 0.37 | 0.42 → 0.63 |
37
- | spruce | 78 → 199 m² | 3.0 → 6.0 | 0.33 → 0.51 | 0.31 → 0.24 | 0.42 → 0.59 |
38
-
39
- FIA rates healthy crowns at 45-51% density and about 15% transparency [Randolph 2006].
40
-
41
- ## Diagnosis
42
-
43
- The crowns are bare because their framework is sparse, and the framework's density is authored:
44
- - `count: 5` boughs, `count: 2` branches each, and so on, chosen per preset, not sourced;
45
- - each carrier wears a twig sleeve of limited reach;
46
- - between sleeves the crown is empty, and no twig system can reach across, at any vigour.
47
-
48
- The crown-filling principle ("fullness is set by light, not by when the simulation stops") holds for the twigs but
49
- not for the framework they hang on.
50
-
51
- The trunks are also far too thick for their height (an 87 cm DBH oak 8.6 m tall), the pipe model's known
52
- over-thickening. That is a separate defect; it makes trunk-based leaf targets meaningless here.
53
-
54
- ## Targets
55
-
56
- **Expected whole-tree leaf area.** These are trees of the size the presets mean to be, not of their over-thick trunks;
57
- all sources are forest-grown trees.
58
-
59
- | preset | measured | expected | basis |
60
- | :--- | ---: | ---: | :--- |
61
- | oak (DBH 40 cm, h 14 m) | 89 m² | 280-430 m² one-sided | Forrester et al. 2017 (*Q. robur*, Table A.5); Gómez-García & Pérez-Rodríguez 2015 leaf mass × SLA 12.9-16.2 m²/kg |
62
- | maple (DBH 30 cm, h 13 m) | 49 m² | ~130 m² one-sided | Martin et al. 1998, *Can. J. For. Res.* 28: 1648-1659, *A. rubrum*, Table 4 (n = 11, DBH 6-52 cm) |
63
- | pine (DBH 25 cm, h 11 m) | 16 m² | 35-64 m² projected | Forrester et al. 2017; Repola 2009, *Silva Fennica* 43: 184 needle mass × projected SLA 3.9-5.7 m²/kg |
64
- | spruce (DBH 25 cm, h 11 m) | 78 m² | 100-150 m² projected | Forrester et al. 2017; Repola 2009 × SLA 3.3-5.0 m²/kg |
65
-
66
- - Every preset carries a third to two-thirds of the leaf a real tree of its size does.
67
- - Doubling the framework brings oak, maple and spruce into their ranges, and pine near its lower end. That fits the
68
- diagnosis.
69
- - European oak allometries run about twice the American oaks' (Martin et al. 1998) at the same DBH.
70
- - No open-grown allometry, crown-level LAI or leaf area density was found for these species.
71
- - The research subagent's working files are in the session scratchpad.
72
-
73
- ## The fork
74
-
75
- 1. **Grow the framework from shoots too** (self-organizing, as Palubicki et al. 2009 do):
76
- - The same bud demography and light that fill the periphery grow the whole crown. The boughs are the shoots that
77
- survived and thickened, and branch spacing is an outcome of self-shading.
78
- - The generator graph keeps what shoots cannot give: the trunk, whorl and architectural model, roots, stubs.
79
- - This is the principled end state and a large refactor of `tree_skeleton_grow`.
80
- 2. **Derive the framework's density from the twigs' reach:**
81
- - A carrier's twig system wears a sleeve of measurable reach. Carriers are spaced so the sleeves tile the crown,
82
- as card density was derived from the leaf sleeve.
83
- - The generator graph stays and its counts become outcomes.
84
- - Smaller, but the framework's other shape choices stay authored.
85
- 3. **Source the counts per species:** branches per whorl and per metre of stem are measured for pine and spruce;
86
- oak and maple are thinner.