create-threenative 0.2.18 → 0.2.21

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 (186) hide show
  1. package/agent-docs/references/assertion-reference.md +1 -1
  2. package/agent-docs/references/capability-reference.md +792 -5
  3. package/agent-docs/references/kit-racing.md +4 -2
  4. package/agent-docs/references/performance-basics.md +2 -1
  5. package/agent-docs/references/terrain-authoring.md +25 -7
  6. package/agent-files/.agents/skills/prd-creator/SKILL.md +24 -0
  7. package/dist/index.js +268 -237
  8. package/dist/quality.d.ts +5 -1
  9. package/dist/quality.js +75 -6
  10. package/dist/terrain-kit.js +1 -1
  11. package/dist/threenative.js +7 -5
  12. package/dist/web-engine-post-effects.js +6 -0
  13. package/dist/web-engine-runtime.js +407 -38
  14. package/package.json +6 -6
  15. package/template-assets/assets/floor-fern-0.glb +0 -0
  16. package/template-assets/assets/floor-litter-0.glb +0 -0
  17. package/template-assets/assets/floor-log-0.glb +0 -0
  18. package/template-assets/assets/floor-log-1.glb +0 -0
  19. package/template-assets/assets/floor-stump-0.glb +0 -0
  20. package/template-assets/assets/floor-twig-0.glb +0 -0
  21. package/template-assets/patches/three@0.187.0.patch +108 -21
  22. package/template-assets/quality/eslint.config.js +1 -1
  23. package/templates/action-rpg/package.json +7 -7
  24. package/templates/action-rpg/src/loot/drops.ts +3 -7
  25. package/templates/action-rpg/src/render/camera.ts +2 -2
  26. package/templates/action-rpg/src/render/clouds.ts +3 -1
  27. package/templates/action-rpg/src/render/materials.ts +3 -2
  28. package/templates/action-rpg/src/render/touch-controls.ts +7 -6
  29. package/templates/action-rpg/src/scenes/Play.ts +1 -15
  30. package/templates/adventure/AGENTS.md +3 -3
  31. package/templates/adventure/CLAUDE.md +3 -3
  32. package/templates/adventure/native-playtests/survives.playtest.json +12 -0
  33. package/templates/adventure/native-playtests/woodland-floor.playtest.json +61 -0
  34. package/templates/adventure/package.json +7 -7
  35. package/templates/adventure/playtests/grass.playtest.json +61 -0
  36. package/templates/adventure/playtests/performance.playtest.json +1 -1
  37. package/templates/adventure/playtests/survives.playtest.json +2 -2
  38. package/templates/adventure/playtests/woodland-floor.playtest.json +61 -0
  39. package/templates/adventure/src/entities/LockOn.ts +42 -4
  40. package/templates/adventure/src/entities/Warden.ts +12 -3
  41. package/templates/adventure/src/level/Vale.ts +241 -16
  42. package/templates/adventure/src/render/camera.ts +2 -2
  43. package/templates/adventure/src/render/foliage.ts +64 -20
  44. package/templates/adventure/src/render/grass.ts +325 -0
  45. package/templates/adventure/src/render/materials.ts +3 -2
  46. package/templates/adventure/src/render/palette.ts +3 -0
  47. package/templates/adventure/src/render/touch-controls.ts +4 -1
  48. package/templates/adventure/src/scenes/Play.ts +96 -1
  49. package/templates/collectathon/package.json +7 -7
  50. package/templates/collectathon/src/level/Course.ts +2 -7
  51. package/templates/collectathon/src/level/terrain.ts +2 -1
  52. package/templates/collectathon/src/render/camera.ts +2 -2
  53. package/templates/collectathon/src/render/ground.ts +4 -4
  54. package/templates/collectathon/src/render/hero.ts +1 -1
  55. package/templates/collectathon/src/render/materials.ts +0 -1
  56. package/templates/collectathon/src/render/sky.ts +4 -3
  57. package/templates/kart/package.json +6 -6
  58. package/templates/kart/src/entities/Kart.ts +2 -1
  59. package/templates/kart/src/render/course.ts +2 -1
  60. package/templates/kart/src/track/Course.ts +3 -1
  61. package/templates/minimal/package.json +6 -6
  62. package/templates/minimal/src/render/camera.ts +2 -2
  63. package/templates/minimal/src/render/clouds.ts +3 -1
  64. package/templates/minimal/src/render/materials.ts +3 -2
  65. package/templates/minimal/src/render/touch-controls.ts +7 -6
  66. package/templates/platformer/package.json +7 -7
  67. package/templates/platformer/playtests/collect.playtest.json +4 -1
  68. package/templates/platformer/src/level/Stage.ts +2 -6
  69. package/templates/platformer/src/scenes/Play.ts +2 -1
  70. package/templates/puzzle/package.json +7 -7
  71. package/templates/puzzle/src/entities/Warden.ts +3 -3
  72. package/templates/puzzle/src/render/camera.ts +2 -2
  73. package/templates/puzzle/src/render/touch-controls.ts +7 -6
  74. package/templates/racing/AGENTS.md +2 -2
  75. package/templates/racing/CLAUDE.md +2 -2
  76. package/templates/racing/CREDITS.md +29 -0
  77. package/templates/racing/assets/engine-loop.wav +0 -0
  78. package/templates/racing/assets/grass/Grass004_color.jpg +0 -0
  79. package/templates/racing/assets/grass/Grass004_normal.jpg +0 -0
  80. package/templates/racing/assets/grass/Grass004_roughness.jpg +0 -0
  81. package/templates/racing/assets/nitro-burst.wav +0 -0
  82. package/templates/racing/assets/tyre-squeal.wav +0 -0
  83. package/templates/racing/package.json +7 -7
  84. package/templates/racing/playtests/drift-natural.playtest.json +68 -0
  85. package/templates/racing/playtests/drift.playtest.json +100 -0
  86. package/templates/racing/playtests/hud.playtest.json +117 -0
  87. package/templates/racing/playtests/launch-pose.playtest.json +34 -0
  88. package/templates/racing/playtests/nitro.playtest.json +158 -0
  89. package/templates/racing/playtests/outcome.playtest.json +4 -4
  90. package/templates/racing/playtests/performance.playtest.json +1 -1
  91. package/templates/racing/playtests/steady-camera.playtest.json +88 -0
  92. package/templates/racing/src/audio/engine.ts +138 -0
  93. package/templates/racing/src/entities/CarBody.ts +83 -10
  94. package/templates/racing/src/entities/Drift.ts +243 -0
  95. package/templates/racing/src/entities/LineDriver.ts +2 -2
  96. package/templates/racing/src/entities/Nitro.ts +72 -0
  97. package/templates/racing/src/entities/RacingCar.ts +86 -21
  98. package/templates/racing/src/entities/Rival.ts +35 -21
  99. package/templates/racing/src/game.ts +6 -0
  100. package/templates/racing/src/gauges.ts +74 -0
  101. package/templates/racing/src/render/camera.ts +29 -4
  102. package/templates/racing/src/render/clouds.ts +3 -1
  103. package/templates/racing/src/render/effects.ts +244 -0
  104. package/templates/racing/src/render/materials.ts +43 -8
  105. package/templates/racing/src/render/shapes.ts +37 -0
  106. package/templates/racing/src/render/skids.ts +84 -0
  107. package/templates/racing/src/render/touch-controls.ts +10 -10
  108. package/templates/racing/src/scenes/Race.ts +277 -25
  109. package/templates/racing/src/state.ts +35 -0
  110. package/templates/racing/src/style.css +3 -0
  111. package/templates/racing/src/track/Ranking.ts +8 -4
  112. package/templates/racing/src/track/Track.ts +132 -58
  113. package/templates/racing/src/track/TrackSector.ts +19 -1
  114. package/templates/racing/src/track/circuit.ts +21 -15
  115. package/templates/racing/src/ui/GameUi.tsx +0 -2
  116. package/templates/racing/src/ui/Hud.tsx +417 -50
  117. package/templates/racing/threenative.config.ts +15 -0
  118. package/templates/racing/tools/make-racing-audio.mjs +388 -0
  119. package/templates/rain/package.json +6 -6
  120. package/templates/rain/src/render/noise-volume.ts +2 -1
  121. package/templates/rain/src/state.ts +3 -1
  122. package/templates/rain/src/ui/GameUi.tsx +1 -1
  123. package/templates/rain/src/ui/automation.ts +10 -8
  124. package/templates/rain/src/ui/tempest.ts +3 -4
  125. package/templates/rts/package.json +6 -6
  126. package/templates/rts/src/sim/terrain.ts +1 -0
  127. package/templates/rts/src/sim/types.ts +1 -0
  128. package/templates/runner/package.json +7 -7
  129. package/templates/runner/src/render/clouds.ts +3 -1
  130. package/templates/runner/src/render/materials.ts +3 -2
  131. package/templates/runner/src/render/touch-controls.ts +7 -6
  132. package/templates/runner/src/scenes/Run.ts +4 -9
  133. package/templates/sailing/package.json +7 -7
  134. package/templates/sailing/src/render/touch-controls.ts +7 -6
  135. package/templates/shooter/package.json +7 -7
  136. package/templates/shooter/src/render/clouds.ts +3 -1
  137. package/templates/snow/package.json +7 -7
  138. package/templates/snow/src/entities/Explorer.ts +6 -12
  139. package/templates/snow/src/render/bootPrint.ts +3 -1
  140. package/templates/snow/src/render/camera.ts +3 -2
  141. package/templates/snow/src/render/scenery.ts +3 -3
  142. package/templates/snow/src/render/touch-controls.ts +7 -6
  143. package/templates/snow/src/render/weather.ts +3 -5
  144. package/templates/snow/src/terrain.ts +2 -1
  145. package/templates/starter/native-playtests/render-chain.playtest.json +9 -9
  146. package/templates/starter/package.json +7 -7
  147. package/templates/starter/src/entities/Player.ts +10 -2
  148. package/templates/starter/src/render/camera.ts +2 -2
  149. package/templates/starter/src/render/clouds.ts +3 -1
  150. package/templates/starter/src/render/materials.ts +3 -2
  151. package/templates/starter/src/render/touch-controls.ts +7 -6
  152. package/templates/starter/src/scenes/Play.ts +1 -14
  153. package/templates/tower-defense/package.json +7 -7
  154. package/templates/tower-defense/src/render/shapes.ts +1 -2
  155. package/templates/tower-defense/src/scenes/Battle.ts +3 -8
  156. package/template-assets/terrain/alpine/assets.json +0 -12
  157. package/template-assets/terrain/alpine/bake.mjs +0 -6
  158. package/template-assets/terrain/alpine/credits.json +0 -164
  159. package/template-assets/terrain/alpine/heightmap.r16 +0 -0
  160. package/template-assets/terrain/alpine/recipe.json +0 -119
  161. package/template-assets/terrain/alpine/surface.json +0 -53
  162. package/template-assets/terrain/coastal/assets.json +0 -11
  163. package/template-assets/terrain/coastal/bake.mjs +0 -6
  164. package/template-assets/terrain/coastal/credits.json +0 -117
  165. package/template-assets/terrain/coastal/heightmap.r16 +0 -0
  166. package/template-assets/terrain/coastal/recipe.json +0 -113
  167. package/template-assets/terrain/coastal/surface.json +0 -41
  168. package/template-assets/terrain/desert/assets.json +0 -12
  169. package/template-assets/terrain/desert/bake.mjs +0 -6
  170. package/template-assets/terrain/desert/credits.json +0 -164
  171. package/template-assets/terrain/desert/heightmap.r16 +0 -0
  172. package/template-assets/terrain/desert/recipe.json +0 -108
  173. package/template-assets/terrain/desert/surface.json +0 -54
  174. package/template-assets/terrain/forest/assets.json +0 -65
  175. package/template-assets/terrain/forest/bake.mjs +0 -8
  176. package/template-assets/terrain/forest/credits.json +0 -225
  177. package/template-assets/terrain/forest/heightmap.r16 +0 -0
  178. package/template-assets/terrain/forest/recipe.json +0 -350
  179. package/template-assets/terrain/forest/surface.json +0 -79
  180. package/template-assets/terrain/tundra/assets.json +0 -12
  181. package/template-assets/terrain/tundra/bake.mjs +0 -6
  182. package/template-assets/terrain/tundra/credits.json +0 -164
  183. package/template-assets/terrain/tundra/heightmap.r16 +0 -0
  184. package/template-assets/terrain/tundra/recipe.json +0 -277
  185. package/template-assets/terrain/tundra/surface.json +0 -54
  186. package/templates/racing/src/ui/Menu.tsx +0 -7
@@ -8581,6 +8581,15 @@ var catalog_default = {
8581
8581
  status: {
8582
8582
  kind: "supported"
8583
8583
  }
8584
+ },
8585
+ {
8586
+ name: "alphaToCoverage",
8587
+ type: "boolean",
8588
+ mutable: true,
8589
+ lifetime: "owned",
8590
+ status: {
8591
+ kind: "supported"
8592
+ }
8584
8593
  }
8585
8594
  ],
8586
8595
  methods: [
@@ -11373,8 +11382,7 @@ var catalog_default = {
11373
11382
  mutable: true,
11374
11383
  lifetime: "owned",
11375
11384
  status: {
11376
- kind: "partial",
11377
- gaps: ["native-not-bound"]
11385
+ kind: "supported"
11378
11386
  }
11379
11387
  },
11380
11388
  {
@@ -12478,6 +12486,24 @@ var catalog_default = {
12478
12486
  status: {
12479
12487
  kind: "supported"
12480
12488
  }
12489
+ },
12490
+ {
12491
+ name: "maskShadowNode",
12492
+ type: "Node | null",
12493
+ mutable: true,
12494
+ lifetime: "owned",
12495
+ status: {
12496
+ kind: "supported"
12497
+ }
12498
+ },
12499
+ {
12500
+ name: "alphaToCoverage",
12501
+ type: "boolean",
12502
+ mutable: true,
12503
+ lifetime: "owned",
12504
+ status: {
12505
+ kind: "supported"
12506
+ }
12481
12507
  }
12482
12508
  ],
12483
12509
  methods: [
@@ -12614,8 +12640,7 @@ var catalog_default = {
12614
12640
  mutable: true,
12615
12641
  lifetime: "owned",
12616
12642
  status: {
12617
- kind: "partial",
12618
- gaps: ["native-not-bound"]
12643
+ kind: "supported"
12619
12644
  }
12620
12645
  },
12621
12646
  {
@@ -14031,6 +14056,24 @@ var catalog_default = {
14031
14056
  status: {
14032
14057
  kind: "supported"
14033
14058
  }
14059
+ },
14060
+ {
14061
+ name: "maskShadowNode",
14062
+ type: "Node | null",
14063
+ mutable: true,
14064
+ lifetime: "owned",
14065
+ status: {
14066
+ kind: "supported"
14067
+ }
14068
+ },
14069
+ {
14070
+ name: "alphaToCoverage",
14071
+ type: "boolean",
14072
+ mutable: true,
14073
+ lifetime: "owned",
14074
+ status: {
14075
+ kind: "supported"
14076
+ }
14034
14077
  }
14035
14078
  ],
14036
14079
  methods: [
@@ -14758,6 +14801,24 @@ var catalog_default = {
14758
14801
  status: {
14759
14802
  kind: "supported"
14760
14803
  }
14804
+ },
14805
+ {
14806
+ name: "maskShadowNode",
14807
+ type: "Node | null",
14808
+ mutable: true,
14809
+ lifetime: "owned",
14810
+ status: {
14811
+ kind: "supported"
14812
+ }
14813
+ },
14814
+ {
14815
+ name: "alphaToCoverage",
14816
+ type: "boolean",
14817
+ mutable: true,
14818
+ lifetime: "owned",
14819
+ status: {
14820
+ kind: "supported"
14821
+ }
14761
14822
  }
14762
14823
  ],
14763
14824
  methods: [
@@ -18536,6 +18597,15 @@ var catalog_default = {
18536
18597
  status: {
18537
18598
  kind: "supported"
18538
18599
  }
18600
+ },
18601
+ {
18602
+ name: "alphaToCoverage",
18603
+ type: "boolean",
18604
+ mutable: true,
18605
+ lifetime: "owned",
18606
+ status: {
18607
+ kind: "supported"
18608
+ }
18539
18609
  }
18540
18610
  ],
18541
18611
  methods: [
@@ -21938,6 +22008,15 @@ var catalog_default = {
21938
22008
  status: {
21939
22009
  kind: "supported"
21940
22010
  }
22011
+ },
22012
+ {
22013
+ name: "alphaToCoverage",
22014
+ type: "boolean",
22015
+ mutable: true,
22016
+ lifetime: "owned",
22017
+ status: {
22018
+ kind: "supported"
22019
+ }
21941
22020
  }
21942
22021
  ],
21943
22022
  methods: [
@@ -28988,6 +29067,15 @@ var catalog_default = {
28988
29067
  status: {
28989
29068
  kind: "supported"
28990
29069
  }
29070
+ },
29071
+ {
29072
+ name: "alphaToCoverage",
29073
+ type: "boolean",
29074
+ mutable: true,
29075
+ lifetime: "owned",
29076
+ status: {
29077
+ kind: "supported"
29078
+ }
28991
29079
  }
28992
29080
  ],
28993
29081
  methods: [
@@ -29398,6 +29486,15 @@ var catalog_default = {
29398
29486
  status: {
29399
29487
  kind: "supported"
29400
29488
  }
29489
+ },
29490
+ {
29491
+ name: "alphaToCoverage",
29492
+ type: "boolean",
29493
+ mutable: true,
29494
+ lifetime: "owned",
29495
+ status: {
29496
+ kind: "supported"
29497
+ }
29401
29498
  }
29402
29499
  ],
29403
29500
  methods: [
@@ -31642,14 +31739,22 @@ var native_registry_default = {
31642
31739
  "__tnGuardWatch",
31643
31740
  "__tnMaterialCheck",
31644
31741
  "__tnMaterialWatch",
31742
+ "__tnModelLodAttach",
31743
+ "__tnModelLodMeshes",
31744
+ "__tnModelLodSelect",
31645
31745
  "__tnPoseBlend",
31646
31746
  "__tnPoseReset",
31647
31747
  "__tnPoseRestore",
31648
31748
  "__tnPoseTick",
31649
31749
  "__tnPoseWatch",
31650
31750
  "__tnProjectionReport",
31751
+ "__tnSphereBounds",
31752
+ "__tnSphereBoundsAttach",
31651
31753
  "__tnStaleEntries",
31652
31754
  "__tnStaleRows",
31755
+ "__tnStaticChanged",
31756
+ "__tnStaticRoots",
31757
+ "__tnStaticWatch",
31653
31758
  "__tnStructureStamp",
31654
31759
  "__tnUpdateMatrixWorld",
31655
31760
  "__tnVisibleInWorld",
@@ -31935,14 +32040,22 @@ var native_registry_default = {
31935
32040
  "__tnGuardWatch",
31936
32041
  "__tnMaterialCheck",
31937
32042
  "__tnMaterialWatch",
32043
+ "__tnModelLodAttach",
32044
+ "__tnModelLodMeshes",
32045
+ "__tnModelLodSelect",
31938
32046
  "__tnPoseBlend",
31939
32047
  "__tnPoseReset",
31940
32048
  "__tnPoseRestore",
31941
32049
  "__tnPoseTick",
31942
32050
  "__tnPoseWatch",
31943
32051
  "__tnProjectionReport",
32052
+ "__tnSphereBounds",
32053
+ "__tnSphereBoundsAttach",
31944
32054
  "__tnStaleEntries",
31945
32055
  "__tnStaleRows",
32056
+ "__tnStaticChanged",
32057
+ "__tnStaticRoots",
32058
+ "__tnStaticWatch",
31946
32059
  "__tnStructureStamp",
31947
32060
  "__tnUpdateMatrixWorld",
31948
32061
  "__tnVisibleInWorld",
@@ -32267,14 +32380,22 @@ var native_registry_default = {
32267
32380
  "__tnGuardWatch",
32268
32381
  "__tnMaterialCheck",
32269
32382
  "__tnMaterialWatch",
32383
+ "__tnModelLodAttach",
32384
+ "__tnModelLodMeshes",
32385
+ "__tnModelLodSelect",
32270
32386
  "__tnPoseBlend",
32271
32387
  "__tnPoseReset",
32272
32388
  "__tnPoseRestore",
32273
32389
  "__tnPoseTick",
32274
32390
  "__tnPoseWatch",
32275
32391
  "__tnProjectionReport",
32392
+ "__tnSphereBounds",
32393
+ "__tnSphereBoundsAttach",
32276
32394
  "__tnStaleEntries",
32277
32395
  "__tnStaleRows",
32396
+ "__tnStaticChanged",
32397
+ "__tnStaticRoots",
32398
+ "__tnStaticWatch",
32278
32399
  "__tnStructureStamp",
32279
32400
  "__tnUpdateMatrixWorld",
32280
32401
  "__tnVisibleInWorld",
@@ -32724,14 +32845,22 @@ var native_registry_default = {
32724
32845
  "__tnGuardWatch",
32725
32846
  "__tnMaterialCheck",
32726
32847
  "__tnMaterialWatch",
32848
+ "__tnModelLodAttach",
32849
+ "__tnModelLodMeshes",
32850
+ "__tnModelLodSelect",
32727
32851
  "__tnPoseBlend",
32728
32852
  "__tnPoseReset",
32729
32853
  "__tnPoseRestore",
32730
32854
  "__tnPoseTick",
32731
32855
  "__tnPoseWatch",
32732
32856
  "__tnProjectionReport",
32857
+ "__tnSphereBounds",
32858
+ "__tnSphereBoundsAttach",
32733
32859
  "__tnStaleEntries",
32734
32860
  "__tnStaleRows",
32861
+ "__tnStaticChanged",
32862
+ "__tnStaticRoots",
32863
+ "__tnStaticWatch",
32735
32864
  "__tnStructureStamp",
32736
32865
  "__tnUpdateMatrixWorld",
32737
32866
  "__tnVisibleInWorld",
@@ -33805,14 +33934,22 @@ var native_registry_default = {
33805
33934
  "__tnGuardWatch",
33806
33935
  "__tnMaterialCheck",
33807
33936
  "__tnMaterialWatch",
33937
+ "__tnModelLodAttach",
33938
+ "__tnModelLodMeshes",
33939
+ "__tnModelLodSelect",
33808
33940
  "__tnPoseBlend",
33809
33941
  "__tnPoseReset",
33810
33942
  "__tnPoseRestore",
33811
33943
  "__tnPoseTick",
33812
33944
  "__tnPoseWatch",
33813
33945
  "__tnProjectionReport",
33946
+ "__tnSphereBounds",
33947
+ "__tnSphereBoundsAttach",
33814
33948
  "__tnStaleEntries",
33815
33949
  "__tnStaleRows",
33950
+ "__tnStaticChanged",
33951
+ "__tnStaticRoots",
33952
+ "__tnStaticWatch",
33816
33953
  "__tnStructureStamp",
33817
33954
  "__tnUpdateMatrixWorld",
33818
33955
  "__tnVisibleInWorld",
@@ -34375,14 +34512,22 @@ var native_registry_default = {
34375
34512
  "__tnGuardWatch",
34376
34513
  "__tnMaterialCheck",
34377
34514
  "__tnMaterialWatch",
34515
+ "__tnModelLodAttach",
34516
+ "__tnModelLodMeshes",
34517
+ "__tnModelLodSelect",
34378
34518
  "__tnPoseBlend",
34379
34519
  "__tnPoseReset",
34380
34520
  "__tnPoseRestore",
34381
34521
  "__tnPoseTick",
34382
34522
  "__tnPoseWatch",
34383
34523
  "__tnProjectionReport",
34524
+ "__tnSphereBounds",
34525
+ "__tnSphereBoundsAttach",
34384
34526
  "__tnStaleEntries",
34385
34527
  "__tnStaleRows",
34528
+ "__tnStaticChanged",
34529
+ "__tnStaticRoots",
34530
+ "__tnStaticWatch",
34386
34531
  "__tnStructureStamp",
34387
34532
  "__tnUpdateMatrixWorld",
34388
34533
  "__tnVisibleInWorld",
@@ -34557,14 +34702,22 @@ var native_registry_default = {
34557
34702
  "__tnGuardWatch",
34558
34703
  "__tnMaterialCheck",
34559
34704
  "__tnMaterialWatch",
34705
+ "__tnModelLodAttach",
34706
+ "__tnModelLodMeshes",
34707
+ "__tnModelLodSelect",
34560
34708
  "__tnPoseBlend",
34561
34709
  "__tnPoseReset",
34562
34710
  "__tnPoseRestore",
34563
34711
  "__tnPoseTick",
34564
34712
  "__tnPoseWatch",
34565
34713
  "__tnProjectionReport",
34714
+ "__tnSphereBounds",
34715
+ "__tnSphereBoundsAttach",
34566
34716
  "__tnStaleEntries",
34567
34717
  "__tnStaleRows",
34718
+ "__tnStaticChanged",
34719
+ "__tnStaticRoots",
34720
+ "__tnStaticWatch",
34568
34721
  "__tnStructureStamp",
34569
34722
  "__tnUpdateMatrixWorld",
34570
34723
  "__tnVisibleInWorld",
@@ -34995,16 +35148,26 @@ var native_registry_default = {
34995
35148
  "__tnGuardCheck",
34996
35149
  "__tnGuardCheckAncestors",
34997
35150
  "__tnGuardWatch",
35151
+ "__tnInstancedLodAttach",
35152
+ "__tnInstancedLodUpdate",
34998
35153
  "__tnMaterialCheck",
34999
35154
  "__tnMaterialWatch",
35155
+ "__tnModelLodAttach",
35156
+ "__tnModelLodMeshes",
35157
+ "__tnModelLodSelect",
35000
35158
  "__tnPoseBlend",
35001
35159
  "__tnPoseReset",
35002
35160
  "__tnPoseRestore",
35003
35161
  "__tnPoseTick",
35004
35162
  "__tnPoseWatch",
35005
35163
  "__tnProjectionReport",
35164
+ "__tnSphereBounds",
35165
+ "__tnSphereBoundsAttach",
35006
35166
  "__tnStaleEntries",
35007
35167
  "__tnStaleRows",
35168
+ "__tnStaticChanged",
35169
+ "__tnStaticRoots",
35170
+ "__tnStaticWatch",
35008
35171
  "__tnStructureStamp",
35009
35172
  "__tnUpdateMatrixWorld",
35010
35173
  "__tnVisibleInWorld",
@@ -35330,14 +35493,22 @@ var native_registry_default = {
35330
35493
  "__tnGuardWatch",
35331
35494
  "__tnMaterialCheck",
35332
35495
  "__tnMaterialWatch",
35496
+ "__tnModelLodAttach",
35497
+ "__tnModelLodMeshes",
35498
+ "__tnModelLodSelect",
35333
35499
  "__tnPoseBlend",
35334
35500
  "__tnPoseReset",
35335
35501
  "__tnPoseRestore",
35336
35502
  "__tnPoseTick",
35337
35503
  "__tnPoseWatch",
35338
35504
  "__tnProjectionReport",
35505
+ "__tnSphereBounds",
35506
+ "__tnSphereBoundsAttach",
35339
35507
  "__tnStaleEntries",
35340
35508
  "__tnStaleRows",
35509
+ "__tnStaticChanged",
35510
+ "__tnStaticRoots",
35511
+ "__tnStaticWatch",
35341
35512
  "__tnStructureStamp",
35342
35513
  "__tnUpdateMatrixWorld",
35343
35514
  "__tnVisibleInWorld",
@@ -35631,14 +35802,22 @@ var native_registry_default = {
35631
35802
  "__tnGuardWatch",
35632
35803
  "__tnMaterialCheck",
35633
35804
  "__tnMaterialWatch",
35805
+ "__tnModelLodAttach",
35806
+ "__tnModelLodMeshes",
35807
+ "__tnModelLodSelect",
35634
35808
  "__tnPoseBlend",
35635
35809
  "__tnPoseReset",
35636
35810
  "__tnPoseRestore",
35637
35811
  "__tnPoseTick",
35638
35812
  "__tnPoseWatch",
35639
35813
  "__tnProjectionReport",
35814
+ "__tnSphereBounds",
35815
+ "__tnSphereBoundsAttach",
35640
35816
  "__tnStaleEntries",
35641
35817
  "__tnStaleRows",
35818
+ "__tnStaticChanged",
35819
+ "__tnStaticRoots",
35820
+ "__tnStaticWatch",
35642
35821
  "__tnStructureStamp",
35643
35822
  "__tnUpdateMatrixWorld",
35644
35823
  "__tnVisibleInWorld",
@@ -35948,6 +36127,7 @@ var native_registry_default = {
35948
36127
  getters: [
35949
36128
  "alphaHash",
35950
36129
  "alphaTest",
36130
+ "alphaToCoverage",
35951
36131
  "blendDst",
35952
36132
  "blendDstAlpha",
35953
36133
  "blendEquation",
@@ -35983,6 +36163,7 @@ var native_registry_default = {
35983
36163
  setters: [
35984
36164
  "alphaHash",
35985
36165
  "alphaTest",
36166
+ "alphaToCoverage",
35986
36167
  "blendDst",
35987
36168
  "blendDstAlpha",
35988
36169
  "blendEquation",
@@ -36034,14 +36215,22 @@ var native_registry_default = {
36034
36215
  "__tnGuardWatch",
36035
36216
  "__tnMaterialCheck",
36036
36217
  "__tnMaterialWatch",
36218
+ "__tnModelLodAttach",
36219
+ "__tnModelLodMeshes",
36220
+ "__tnModelLodSelect",
36037
36221
  "__tnPoseBlend",
36038
36222
  "__tnPoseReset",
36039
36223
  "__tnPoseRestore",
36040
36224
  "__tnPoseTick",
36041
36225
  "__tnPoseWatch",
36042
36226
  "__tnProjectionReport",
36227
+ "__tnSphereBounds",
36228
+ "__tnSphereBoundsAttach",
36043
36229
  "__tnStaleEntries",
36044
36230
  "__tnStaleRows",
36231
+ "__tnStaticChanged",
36232
+ "__tnStaticRoots",
36233
+ "__tnStaticWatch",
36045
36234
  "__tnStructureStamp",
36046
36235
  "__tnUpdateMatrixWorld",
36047
36236
  "__tnVisibleInWorld",
@@ -36446,14 +36635,22 @@ var native_registry_default = {
36446
36635
  "__tnGuardWatch",
36447
36636
  "__tnMaterialCheck",
36448
36637
  "__tnMaterialWatch",
36638
+ "__tnModelLodAttach",
36639
+ "__tnModelLodMeshes",
36640
+ "__tnModelLodSelect",
36449
36641
  "__tnPoseBlend",
36450
36642
  "__tnPoseReset",
36451
36643
  "__tnPoseRestore",
36452
36644
  "__tnPoseTick",
36453
36645
  "__tnPoseWatch",
36454
36646
  "__tnProjectionReport",
36647
+ "__tnSphereBounds",
36648
+ "__tnSphereBoundsAttach",
36455
36649
  "__tnStaleEntries",
36456
36650
  "__tnStaleRows",
36651
+ "__tnStaticChanged",
36652
+ "__tnStaticRoots",
36653
+ "__tnStaticWatch",
36457
36654
  "__tnStructureStamp",
36458
36655
  "__tnUpdateMatrixWorld",
36459
36656
  "__tnVisibleInWorld",
@@ -36764,6 +36961,7 @@ var native_registry_default = {
36764
36961
  getters: [
36765
36962
  "alphaHash",
36766
36963
  "alphaTest",
36964
+ "alphaToCoverage",
36767
36965
  "blendDst",
36768
36966
  "blendDstAlpha",
36769
36967
  "blendEquation",
@@ -36799,6 +36997,7 @@ var native_registry_default = {
36799
36997
  setters: [
36800
36998
  "alphaHash",
36801
36999
  "alphaTest",
37000
+ "alphaToCoverage",
36802
37001
  "blendDst",
36803
37002
  "blendDstAlpha",
36804
37003
  "blendEquation",
@@ -36852,6 +37051,7 @@ var native_registry_default = {
36852
37051
  "alphaHash",
36853
37052
  "alphaTest",
36854
37053
  "alphaTestNode",
37054
+ "alphaToCoverage",
36855
37055
  "aoNode",
36856
37056
  "blendDst",
36857
37057
  "blendDstAlpha",
@@ -36878,6 +37078,7 @@ var native_registry_default = {
36878
37078
  "irradianceNode",
36879
37079
  "lightsNode",
36880
37080
  "maskNode",
37081
+ "maskShadowNode",
36881
37082
  "maxPositionOffset",
36882
37083
  "metalnessNode",
36883
37084
  "mrtNode",
@@ -36905,6 +37106,7 @@ var native_registry_default = {
36905
37106
  "alphaHash",
36906
37107
  "alphaTest",
36907
37108
  "alphaTestNode",
37109
+ "alphaToCoverage",
36908
37110
  "aoNode",
36909
37111
  "blendDst",
36910
37112
  "blendDstAlpha",
@@ -36932,6 +37134,7 @@ var native_registry_default = {
36932
37134
  "lightsNode",
36933
37135
  "map",
36934
37136
  "maskNode",
37137
+ "maskShadowNode",
36935
37138
  "maxPositionOffset",
36936
37139
  "metalnessNode",
36937
37140
  "mrtNode",
@@ -36974,6 +37177,7 @@ var native_registry_default = {
36974
37177
  getters: [
36975
37178
  "alphaHash",
36976
37179
  "alphaTest",
37180
+ "alphaToCoverage",
36977
37181
  "blendDst",
36978
37182
  "blendDstAlpha",
36979
37183
  "blendEquation",
@@ -37015,6 +37219,7 @@ var native_registry_default = {
37015
37219
  setters: [
37016
37220
  "alphaHash",
37017
37221
  "alphaTest",
37222
+ "alphaToCoverage",
37018
37223
  "blendDst",
37019
37224
  "blendDstAlpha",
37020
37225
  "blendEquation",
@@ -37077,6 +37282,7 @@ var native_registry_default = {
37077
37282
  getters: [
37078
37283
  "alphaHash",
37079
37284
  "alphaTest",
37285
+ "alphaToCoverage",
37080
37286
  "blendDst",
37081
37287
  "blendDstAlpha",
37082
37288
  "blendEquation",
@@ -37122,6 +37328,7 @@ var native_registry_default = {
37122
37328
  setters: [
37123
37329
  "alphaHash",
37124
37330
  "alphaTest",
37331
+ "alphaToCoverage",
37125
37332
  "blendDst",
37126
37333
  "blendDstAlpha",
37127
37334
  "blendEquation",
@@ -37197,6 +37404,7 @@ var native_registry_default = {
37197
37404
  getters: [
37198
37405
  "alphaHash",
37199
37406
  "alphaTest",
37407
+ "alphaToCoverage",
37200
37408
  "anisotropy",
37201
37409
  "aoMapIntensity",
37202
37410
  "blendDst",
@@ -37256,6 +37464,7 @@ var native_registry_default = {
37256
37464
  setters: [
37257
37465
  "alphaHash",
37258
37466
  "alphaTest",
37467
+ "alphaToCoverage",
37259
37468
  "anisotropy",
37260
37469
  "aoMap",
37261
37470
  "aoMapIntensity",
@@ -37370,6 +37579,7 @@ var native_registry_default = {
37370
37579
  "alphaHash",
37371
37580
  "alphaTest",
37372
37581
  "alphaTestNode",
37582
+ "alphaToCoverage",
37373
37583
  "anisotropy",
37374
37584
  "aoMapIntensity",
37375
37585
  "aoNode",
@@ -37410,6 +37620,7 @@ var native_registry_default = {
37410
37620
  "irradianceNode",
37411
37621
  "lightsNode",
37412
37622
  "maskNode",
37623
+ "maskShadowNode",
37413
37624
  "maxPositionOffset",
37414
37625
  "metalness",
37415
37626
  "metalnessNode",
@@ -37447,6 +37658,7 @@ var native_registry_default = {
37447
37658
  "alphaHash",
37448
37659
  "alphaTest",
37449
37660
  "alphaTestNode",
37661
+ "alphaToCoverage",
37450
37662
  "anisotropy",
37451
37663
  "aoMap",
37452
37664
  "aoMapIntensity",
@@ -37497,6 +37709,7 @@ var native_registry_default = {
37497
37709
  "lightsNode",
37498
37710
  "map",
37499
37711
  "maskNode",
37712
+ "maskShadowNode",
37500
37713
  "maxPositionOffset",
37501
37714
  "metalness",
37502
37715
  "metalnessMap",
@@ -37577,6 +37790,7 @@ var native_registry_default = {
37577
37790
  getters: [
37578
37791
  "alphaHash",
37579
37792
  "alphaTest",
37793
+ "alphaToCoverage",
37580
37794
  "aoMapIntensity",
37581
37795
  "blendDst",
37582
37796
  "blendDstAlpha",
@@ -37624,6 +37838,7 @@ var native_registry_default = {
37624
37838
  setters: [
37625
37839
  "alphaHash",
37626
37840
  "alphaTest",
37841
+ "alphaToCoverage",
37627
37842
  "aoMap",
37628
37843
  "aoMapIntensity",
37629
37844
  "blendDst",
@@ -37712,6 +37927,7 @@ var native_registry_default = {
37712
37927
  "alphaHash",
37713
37928
  "alphaTest",
37714
37929
  "alphaTestNode",
37930
+ "alphaToCoverage",
37715
37931
  "aoMapIntensity",
37716
37932
  "aoNode",
37717
37933
  "blendDst",
@@ -37746,6 +37962,7 @@ var native_registry_default = {
37746
37962
  "irradianceNode",
37747
37963
  "lightsNode",
37748
37964
  "maskNode",
37965
+ "maskShadowNode",
37749
37966
  "maxPositionOffset",
37750
37967
  "metalness",
37751
37968
  "metalnessNode",
@@ -37777,6 +37994,7 @@ var native_registry_default = {
37777
37994
  "alphaHash",
37778
37995
  "alphaTest",
37779
37996
  "alphaTestNode",
37997
+ "alphaToCoverage",
37780
37998
  "aoMap",
37781
37999
  "aoMapIntensity",
37782
38000
  "aoNode",
@@ -37817,6 +38035,7 @@ var native_registry_default = {
37817
38035
  "lightsNode",
37818
38036
  "map",
37819
38037
  "maskNode",
38038
+ "maskShadowNode",
37820
38039
  "maxPositionOffset",
37821
38040
  "metalness",
37822
38041
  "metalnessMap",
@@ -37882,6 +38101,7 @@ var native_registry_default = {
37882
38101
  "alphaHash",
37883
38102
  "alphaTest",
37884
38103
  "alphaTestNode",
38104
+ "alphaToCoverage",
37885
38105
  "aoNode",
37886
38106
  "blendDst",
37887
38107
  "blendDstAlpha",
@@ -37904,6 +38124,7 @@ var native_registry_default = {
37904
38124
  "irradianceNode",
37905
38125
  "lightsNode",
37906
38126
  "maskNode",
38127
+ "maskShadowNode",
37907
38128
  "maxPositionOffset",
37908
38129
  "mrtNode",
37909
38130
  "name",
@@ -37929,6 +38150,7 @@ var native_registry_default = {
37929
38150
  "alphaHash",
37930
38151
  "alphaTest",
37931
38152
  "alphaTestNode",
38153
+ "alphaToCoverage",
37932
38154
  "aoNode",
37933
38155
  "blendDst",
37934
38156
  "blendDstAlpha",
@@ -37950,6 +38172,7 @@ var native_registry_default = {
37950
38172
  "irradianceNode",
37951
38173
  "lightsNode",
37952
38174
  "maskNode",
38175
+ "maskShadowNode",
37953
38176
  "maxPositionOffset",
37954
38177
  "mrtNode",
37955
38178
  "name",
@@ -38000,14 +38223,22 @@ var native_registry_default = {
38000
38223
  "__tnGuardWatch",
38001
38224
  "__tnMaterialCheck",
38002
38225
  "__tnMaterialWatch",
38226
+ "__tnModelLodAttach",
38227
+ "__tnModelLodMeshes",
38228
+ "__tnModelLodSelect",
38003
38229
  "__tnPoseBlend",
38004
38230
  "__tnPoseReset",
38005
38231
  "__tnPoseRestore",
38006
38232
  "__tnPoseTick",
38007
38233
  "__tnPoseWatch",
38008
38234
  "__tnProjectionReport",
38235
+ "__tnSphereBounds",
38236
+ "__tnSphereBoundsAttach",
38009
38237
  "__tnStaleEntries",
38010
38238
  "__tnStaleRows",
38239
+ "__tnStaticChanged",
38240
+ "__tnStaticRoots",
38241
+ "__tnStaticWatch",
38011
38242
  "__tnStructureStamp",
38012
38243
  "__tnUpdateMatrixWorld",
38013
38244
  "__tnVisibleInWorld",
@@ -38273,14 +38504,22 @@ var native_registry_default = {
38273
38504
  "__tnGuardWatch",
38274
38505
  "__tnMaterialCheck",
38275
38506
  "__tnMaterialWatch",
38507
+ "__tnModelLodAttach",
38508
+ "__tnModelLodMeshes",
38509
+ "__tnModelLodSelect",
38276
38510
  "__tnPoseBlend",
38277
38511
  "__tnPoseReset",
38278
38512
  "__tnPoseRestore",
38279
38513
  "__tnPoseTick",
38280
38514
  "__tnPoseWatch",
38281
38515
  "__tnProjectionReport",
38516
+ "__tnSphereBounds",
38517
+ "__tnSphereBoundsAttach",
38282
38518
  "__tnStaleEntries",
38283
38519
  "__tnStaleRows",
38520
+ "__tnStaticChanged",
38521
+ "__tnStaticRoots",
38522
+ "__tnStaticWatch",
38284
38523
  "__tnStructureStamp",
38285
38524
  "__tnUpdateMatrixWorld",
38286
38525
  "__tnVisibleInWorld",
@@ -38509,14 +38748,22 @@ var native_registry_default = {
38509
38748
  "__tnGuardWatch",
38510
38749
  "__tnMaterialCheck",
38511
38750
  "__tnMaterialWatch",
38751
+ "__tnModelLodAttach",
38752
+ "__tnModelLodMeshes",
38753
+ "__tnModelLodSelect",
38512
38754
  "__tnPoseBlend",
38513
38755
  "__tnPoseReset",
38514
38756
  "__tnPoseRestore",
38515
38757
  "__tnPoseTick",
38516
38758
  "__tnPoseWatch",
38517
38759
  "__tnProjectionReport",
38760
+ "__tnSphereBounds",
38761
+ "__tnSphereBoundsAttach",
38518
38762
  "__tnStaleEntries",
38519
38763
  "__tnStaleRows",
38764
+ "__tnStaticChanged",
38765
+ "__tnStaticRoots",
38766
+ "__tnStaticWatch",
38520
38767
  "__tnStructureStamp",
38521
38768
  "__tnUpdateMatrixWorld",
38522
38769
  "__tnVisibleInWorld",
@@ -38847,14 +39094,22 @@ var native_registry_default = {
38847
39094
  "__tnGuardWatch",
38848
39095
  "__tnMaterialCheck",
38849
39096
  "__tnMaterialWatch",
39097
+ "__tnModelLodAttach",
39098
+ "__tnModelLodMeshes",
39099
+ "__tnModelLodSelect",
38850
39100
  "__tnPoseBlend",
38851
39101
  "__tnPoseReset",
38852
39102
  "__tnPoseRestore",
38853
39103
  "__tnPoseTick",
38854
39104
  "__tnPoseWatch",
38855
39105
  "__tnProjectionReport",
39106
+ "__tnSphereBounds",
39107
+ "__tnSphereBoundsAttach",
38856
39108
  "__tnStaleEntries",
38857
39109
  "__tnStaleRows",
39110
+ "__tnStaticChanged",
39111
+ "__tnStaticRoots",
39112
+ "__tnStaticWatch",
38858
39113
  "__tnStructureStamp",
38859
39114
  "__tnUpdateMatrixWorld",
38860
39115
  "__tnVisibleInWorld",
@@ -39081,14 +39336,22 @@ var native_registry_default = {
39081
39336
  "__tnGuardWatch",
39082
39337
  "__tnMaterialCheck",
39083
39338
  "__tnMaterialWatch",
39339
+ "__tnModelLodAttach",
39340
+ "__tnModelLodMeshes",
39341
+ "__tnModelLodSelect",
39084
39342
  "__tnPoseBlend",
39085
39343
  "__tnPoseReset",
39086
39344
  "__tnPoseRestore",
39087
39345
  "__tnPoseTick",
39088
39346
  "__tnPoseWatch",
39089
39347
  "__tnProjectionReport",
39348
+ "__tnSphereBounds",
39349
+ "__tnSphereBoundsAttach",
39090
39350
  "__tnStaleEntries",
39091
39351
  "__tnStaleRows",
39352
+ "__tnStaticChanged",
39353
+ "__tnStaticRoots",
39354
+ "__tnStaticWatch",
39092
39355
  "__tnStructureStamp",
39093
39356
  "__tnUpdateMatrixWorld",
39094
39357
  "__tnVisibleInWorld",
@@ -39398,6 +39661,7 @@ var native_registry_default = {
39398
39661
  getters: [
39399
39662
  "alphaHash",
39400
39663
  "alphaTest",
39664
+ "alphaToCoverage",
39401
39665
  "blendDst",
39402
39666
  "blendDstAlpha",
39403
39667
  "blendEquation",
@@ -39435,6 +39699,7 @@ var native_registry_default = {
39435
39699
  setters: [
39436
39700
  "alphaHash",
39437
39701
  "alphaTest",
39702
+ "alphaToCoverage",
39438
39703
  "blendDst",
39439
39704
  "blendDstAlpha",
39440
39705
  "blendEquation",
@@ -39789,14 +40054,22 @@ var native_registry_default = {
39789
40054
  "__tnGuardWatch",
39790
40055
  "__tnMaterialCheck",
39791
40056
  "__tnMaterialWatch",
40057
+ "__tnModelLodAttach",
40058
+ "__tnModelLodMeshes",
40059
+ "__tnModelLodSelect",
39792
40060
  "__tnPoseBlend",
39793
40061
  "__tnPoseReset",
39794
40062
  "__tnPoseRestore",
39795
40063
  "__tnPoseTick",
39796
40064
  "__tnPoseWatch",
39797
40065
  "__tnProjectionReport",
40066
+ "__tnSphereBounds",
40067
+ "__tnSphereBoundsAttach",
39798
40068
  "__tnStaleEntries",
39799
40069
  "__tnStaleRows",
40070
+ "__tnStaticChanged",
40071
+ "__tnStaticRoots",
40072
+ "__tnStaticWatch",
39800
40073
  "__tnStructureStamp",
39801
40074
  "__tnUpdateMatrixWorld",
39802
40075
  "__tnVisibleInWorld",
@@ -40141,14 +40414,22 @@ var native_registry_default = {
40141
40414
  "__tnGuardWatch",
40142
40415
  "__tnMaterialCheck",
40143
40416
  "__tnMaterialWatch",
40417
+ "__tnModelLodAttach",
40418
+ "__tnModelLodMeshes",
40419
+ "__tnModelLodSelect",
40144
40420
  "__tnPoseBlend",
40145
40421
  "__tnPoseReset",
40146
40422
  "__tnPoseRestore",
40147
40423
  "__tnPoseTick",
40148
40424
  "__tnPoseWatch",
40149
40425
  "__tnProjectionReport",
40426
+ "__tnSphereBounds",
40427
+ "__tnSphereBoundsAttach",
40150
40428
  "__tnStaleEntries",
40151
40429
  "__tnStaleRows",
40430
+ "__tnStaticChanged",
40431
+ "__tnStaticRoots",
40432
+ "__tnStaticWatch",
40152
40433
  "__tnStructureStamp",
40153
40434
  "__tnUpdateMatrixWorld",
40154
40435
  "__tnVisibleInWorld",
@@ -40606,14 +40887,22 @@ var native_registry_default = {
40606
40887
  "__tnGuardWatch",
40607
40888
  "__tnMaterialCheck",
40608
40889
  "__tnMaterialWatch",
40890
+ "__tnModelLodAttach",
40891
+ "__tnModelLodMeshes",
40892
+ "__tnModelLodSelect",
40609
40893
  "__tnPoseBlend",
40610
40894
  "__tnPoseReset",
40611
40895
  "__tnPoseRestore",
40612
40896
  "__tnPoseTick",
40613
40897
  "__tnPoseWatch",
40614
40898
  "__tnProjectionReport",
40899
+ "__tnSphereBounds",
40900
+ "__tnSphereBoundsAttach",
40615
40901
  "__tnStaleEntries",
40616
40902
  "__tnStaleRows",
40903
+ "__tnStaticChanged",
40904
+ "__tnStaticRoots",
40905
+ "__tnStaticWatch",
40617
40906
  "__tnStructureStamp",
40618
40907
  "__tnUpdateMatrixWorld",
40619
40908
  "__tnVisibleInWorld",
@@ -40846,14 +41135,22 @@ var native_registry_default = {
40846
41135
  "__tnGuardWatch",
40847
41136
  "__tnMaterialCheck",
40848
41137
  "__tnMaterialWatch",
41138
+ "__tnModelLodAttach",
41139
+ "__tnModelLodMeshes",
41140
+ "__tnModelLodSelect",
40849
41141
  "__tnPoseBlend",
40850
41142
  "__tnPoseReset",
40851
41143
  "__tnPoseRestore",
40852
41144
  "__tnPoseTick",
40853
41145
  "__tnPoseWatch",
40854
41146
  "__tnProjectionReport",
41147
+ "__tnSphereBounds",
41148
+ "__tnSphereBoundsAttach",
40855
41149
  "__tnStaleEntries",
40856
41150
  "__tnStaleRows",
41151
+ "__tnStaticChanged",
41152
+ "__tnStaticRoots",
41153
+ "__tnStaticWatch",
40857
41154
  "__tnStructureStamp",
40858
41155
  "__tnUpdateMatrixWorld",
40859
41156
  "__tnVisibleInWorld",
@@ -41169,6 +41466,7 @@ var native_registry_default = {
41169
41466
  getters: [
41170
41467
  "alphaHash",
41171
41468
  "alphaTest",
41469
+ "alphaToCoverage",
41172
41470
  "blendDst",
41173
41471
  "blendDstAlpha",
41174
41472
  "blendEquation",
@@ -41206,6 +41504,7 @@ var native_registry_default = {
41206
41504
  setters: [
41207
41505
  "alphaHash",
41208
41506
  "alphaTest",
41507
+ "alphaToCoverage",
41209
41508
  "blendDst",
41210
41509
  "blendDstAlpha",
41211
41510
  "blendEquation",
@@ -41261,6 +41560,7 @@ var native_registry_default = {
41261
41560
  "alphaHash",
41262
41561
  "alphaTest",
41263
41562
  "alphaTestNode",
41563
+ "alphaToCoverage",
41264
41564
  "aoNode",
41265
41565
  "blendDst",
41266
41566
  "blendDstAlpha",
@@ -41287,6 +41587,7 @@ var native_registry_default = {
41287
41587
  "irradianceNode",
41288
41588
  "lightsNode",
41289
41589
  "maskNode",
41590
+ "maskShadowNode",
41290
41591
  "maxPositionOffset",
41291
41592
  "metalnessNode",
41292
41593
  "mrtNode",
@@ -41318,6 +41619,7 @@ var native_registry_default = {
41318
41619
  "alphaHash",
41319
41620
  "alphaTest",
41320
41621
  "alphaTestNode",
41622
+ "alphaToCoverage",
41321
41623
  "aoNode",
41322
41624
  "blendDst",
41323
41625
  "blendDstAlpha",
@@ -41345,6 +41647,7 @@ var native_registry_default = {
41345
41647
  "lightsNode",
41346
41648
  "map",
41347
41649
  "maskNode",
41650
+ "maskShadowNode",
41348
41651
  "maxPositionOffset",
41349
41652
  "metalnessNode",
41350
41653
  "mrtNode",
@@ -43275,6 +43578,15 @@ function packedRef(ref) {
43275
43578
  function isRef(value) {
43276
43579
  return typeof value === "object" && value !== null && "key" in value && "type" in value;
43277
43580
  }
43581
+ function heapFor(abi, end) {
43582
+ if (end <= abi.HEAPU8.byteLength) return abi.HEAPU8;
43583
+ const buffer = abi.wasmMemory?.buffer;
43584
+ if (buffer !== void 0 && buffer.byteLength > abi.HEAPU8.byteLength && typeof SharedArrayBuffer !== "undefined" && buffer instanceof SharedArrayBuffer) {
43585
+ abi.HEAPU8 = new Uint8Array(buffer);
43586
+ abi.HEAPF64 = new Float64Array(buffer);
43587
+ }
43588
+ return abi.HEAPU8;
43589
+ }
43278
43590
  var HANDLE = 12;
43279
43591
  var VALUE = 56;
43280
43592
  var KIND = {
@@ -43513,7 +43825,7 @@ function tslOf(abi, context, h) {
43513
43825
  const out = abi._malloc(size) >>> 0;
43514
43826
  try {
43515
43827
  if (readStorageTake(id, out, size) === 1)
43516
- return abi.HEAPU8.slice(out, out + size).buffer;
43828
+ return heapFor(abi, out + size).slice(out, out + size).buffer;
43517
43829
  } finally {
43518
43830
  abi._free(out);
43519
43831
  }
@@ -43546,7 +43858,7 @@ function tslOf(abi, context, h) {
43546
43858
  candidateAt = abi._malloc(candidateRoom * 12) >>> 0;
43547
43859
  candidatesWritten = 0;
43548
43860
  }
43549
- const ids = h.view();
43861
+ const ids = h.view(candidateAt + candidateRoom * 12);
43550
43862
  for (; candidatesWritten < candidates.length; candidatesWritten += 1)
43551
43863
  ids.setBigUint64(
43552
43864
  candidateAt + candidatesWritten * 8,
@@ -43767,7 +44079,9 @@ function setValues(target, className, values) {
43767
44079
  if (value === void 0) continue;
43768
44080
  const current = self[key];
43769
44081
  if (current === void 0)
43770
- throw new TypeError(`TN_BROWSER_PARAMETER_UNSUPPORTED: ${className} has no '${key}'`);
44082
+ throw new TypeError(
44083
+ `TN_BROWSER_PARAMETER_UNSUPPORTED: ${className} has no '${key}'. The engine does not implement this parameter on ${className}: remove the key.`
44084
+ );
43771
44085
  if (isWrapperOf(current, "Color")) setColor(current, value);
43772
44086
  else if (isWrapperOf(current, "Vector3") && value.isVector3)
43773
44087
  current.copy?.(value);
@@ -44812,7 +45126,7 @@ function defineValueViews(host) {
44812
45126
  const peek = runtime.readByte;
44813
45127
  if (read === void 0 || write === void 0) return;
44814
45128
  const heap = runtime.heapF64;
44815
- const lane = heap ? (address) => heap()[address / 8] : (address) => read(address, 1);
45129
+ const lane = heap ? (address) => heap(address + 8)[address / 8] : (address) => read(address, 1);
44816
45130
  if (name === "Quaternion" && binding.fields !== void 0) {
44817
45131
  const offsets = ["x", "y", "z", "w"].map((key) => binding.fields?.[key]?.[0] ?? 0);
44818
45132
  ["_x", "_y", "_z", "_w"].forEach((key, index) => {
@@ -44942,7 +45256,7 @@ function defineValueViews(host) {
44942
45256
  const [offset = 0, count = 0] = binding.fields.elements;
44943
45257
  const mirrors = /* @__PURE__ */ new WeakMap();
44944
45258
  const refresh = heap ? (address, values) => {
44945
- const memory = heap();
45259
+ const memory = heap(address + count * 8);
44946
45260
  for (let i = 0, at = address / 8; i < count; i++) values[i] = memory[at + i];
44947
45261
  } : (address, values) => {
44948
45262
  const memory = read(address, count);
@@ -44953,7 +45267,7 @@ function defineValueViews(host) {
44953
45267
  configurable: true,
44954
45268
  get() {
44955
45269
  const address = addressOf(this) + offset;
44956
- const memory = heap?.();
45270
+ const memory = heap?.(address + count * 8);
44957
45271
  if (typeof SharedArrayBuffer !== "undefined" && memory?.buffer instanceof SharedArrayBuffer) {
44958
45272
  let view = shared.get(this);
44959
45273
  if (view === void 0) {
@@ -45820,20 +46134,24 @@ function createWasmRuntime(abi) {
45820
46134
  let heapBytes = heap.byteLength;
45821
46135
  let dataView = new DataView(heap.buffer);
45822
46136
  let words = new Uint32Array(heap.buffer);
45823
- const grown = () => {
45824
- debug?.add("wasmGrowthEvents", 1, "bridge");
45825
- debug?.add("wasmGrowthBytes", Math.max(0, abi.HEAPU8.byteLength - heapBytes), "memory");
45826
- heap = abi.HEAPU8;
46137
+ const grown = (end) => {
46138
+ const before = heapBytes;
46139
+ heap = heapFor(abi, end);
45827
46140
  heapBytes = heap.byteLength;
45828
46141
  dataView = new DataView(heap.buffer);
45829
46142
  words = new Uint32Array(heap.buffer);
46143
+ debug?.add("wasmGrowthEvents", 1, "bridge");
46144
+ debug?.add("wasmGrowthBytes", Math.max(0, heapBytes - before), "memory");
45830
46145
  };
45831
- const view = () => {
45832
- if (abi.HEAPU8 !== heap) grown();
46146
+ const reach = (end) => {
46147
+ if (end > heapBytes) grown(end);
46148
+ };
46149
+ const view = (end = 0) => {
46150
+ if (end > heapBytes || abi.HEAPU8 !== heap) grown(end);
45833
46151
  return dataView;
45834
46152
  };
45835
- const wordView = () => {
45836
- if (abi.HEAPU8 !== heap) grown();
46153
+ const wordView = (end = 0) => {
46154
+ if (end > heapBytes || abi.HEAPU8 !== heap) grown(end);
45837
46155
  return words;
45838
46156
  };
45839
46157
  const arenaSize = 64 * 1024;
@@ -45853,7 +46171,7 @@ function createWasmRuntime(abi) {
45853
46171
  debug?.add("bridgeOverflowAllocations", 1, "bridge");
45854
46172
  debug?.add("bridgeOverflowBytes", aligned, "bridge");
45855
46173
  }
45856
- const w = wordView();
46174
+ const w = wordView(pointer + aligned);
45857
46175
  if (aligned > 64) heap.fill(0, pointer, pointer + aligned);
45858
46176
  else for (let at = pointer >>> 2, end = pointer + aligned >>> 2; at < end; at++) w[at] = 0;
45859
46177
  return pointer;
@@ -45995,7 +46313,7 @@ function createWasmRuntime(abi) {
45995
46313
  return pointer;
45996
46314
  };
45997
46315
  const readValue = (pointer) => {
45998
- const v = view();
46316
+ const v = view(pointer + VALUE);
45999
46317
  switch (v.getUint32(pointer, true)) {
46000
46318
  case KIND.undefined:
46001
46319
  return void 0;
@@ -46029,9 +46347,9 @@ function createWasmRuntime(abi) {
46029
46347
  }
46030
46348
  case KIND.numbers: {
46031
46349
  const at = v.getUint32(pointer + 48, true) / 8;
46032
- return Array.from(
46033
- abi.HEAPF64.subarray(at, at + Number(v.getBigUint64(pointer + 40, true)))
46034
- );
46350
+ const count = Number(v.getBigUint64(pointer + 40, true));
46351
+ reach((at + count) * 8);
46352
+ return Array.from(abi.HEAPF64.subarray(at, at + count));
46035
46353
  }
46036
46354
  default:
46037
46355
  return null;
@@ -46082,6 +46400,7 @@ function createWasmRuntime(abi) {
46082
46400
  const Typed = SCALARS[scalar2 ?? -1];
46083
46401
  if (Typed === void 0)
46084
46402
  throw new TypeError(`TN_NATIVE_UNSUPPORTED array: scalar ${String(scalar2)}`);
46403
+ reach((address ?? 0) + (count ?? 0) * Typed.BYTES_PER_ELEMENT);
46085
46404
  return use(new Typed(abi.HEAPU8.buffer, address ?? 0, count ?? 0));
46086
46405
  } finally {
46087
46406
  abi._tnw_attribute_view_release?.(lease);
@@ -46139,6 +46458,7 @@ function createWasmRuntime(abi) {
46139
46458
  );
46140
46459
  return readValue(out);
46141
46460
  }),
46461
+ ...abi._tn_ownership_epoch === void 0 ? {} : { ownershipEpoch: () => abi._tn_ownership_epoch() },
46142
46462
  engineReferences: (refs) => scoped(() => {
46143
46463
  const handles = alloc(Math.max(1, refs.length) * HANDLE);
46144
46464
  refs.forEach((ref, i) => writeHandle(handles + i * HANDLE, ref));
@@ -46177,16 +46497,25 @@ function createWasmRuntime(abi) {
46177
46497
  batch.status[i] = after.getFloat64(status + i * 8, true);
46178
46498
  });
46179
46499
  },
46180
- readByte: (address) => abi.HEAPU8[address],
46181
- readWord: (address) => view().getUint32(address, true),
46500
+ readByte: (address) => {
46501
+ reach(address + 1);
46502
+ return abi.HEAPU8[address];
46503
+ },
46504
+ readWord: (address) => view(address + 4).getUint32(address, true),
46182
46505
  writeDouble: (address, value) => {
46506
+ reach(address + 8);
46183
46507
  abi.HEAPF64[address / 8] = value;
46184
46508
  },
46185
46509
  writeByte: (address, value) => {
46510
+ reach(address + 1);
46186
46511
  abi.HEAPU8[address] = value;
46187
46512
  },
46188
- heapF64: () => abi.HEAPF64,
46513
+ heapF64: (end) => {
46514
+ reach(end);
46515
+ return abi.HEAPF64;
46516
+ },
46189
46517
  readDoubles: (address, count) => {
46518
+ reach(address + count * 8);
46190
46519
  const at = address / 8;
46191
46520
  return count === 1 ? abi.HEAPF64[at] : Array.from(abi.HEAPF64.subarray(at, at + count));
46192
46521
  },
@@ -46264,6 +46593,7 @@ function createWasmRuntime(abi) {
46264
46593
  // ../three-native/src/browser-backend.ts
46265
46594
  var TSL_NODE = /* @__PURE__ */ Symbol("tn.tslNode");
46266
46595
  var SETTLED_PASS = 64;
46596
+ var FULL_PASS_EVERY = 512;
46267
46597
  var ADDRESS = /* @__PURE__ */ Symbol("tn.engineAddress");
46268
46598
  function defineOwn(target, own) {
46269
46599
  for (const field of own) Object.defineProperty(target, field.key, field.descriptor);
@@ -46407,6 +46737,7 @@ function defineBrowserClasses(registry, source, catalog) {
46407
46737
  debug?.crossing("call", self, method, typeNames.get(self.type) ?? String(self.type));
46408
46738
  return source.invoke(self, method, args);
46409
46739
  },
46740
+ ...source.ownershipEpoch === void 0 ? {} : { ownershipEpoch: source.ownershipEpoch },
46410
46741
  ...source.engineReferences === void 0 ? {} : {
46411
46742
  engineReferences: (refs) => {
46412
46743
  crossings++;
@@ -46642,6 +46973,10 @@ function defineBrowserClasses(registry, source, catalog) {
46642
46973
  };
46643
46974
  let cursor = settled.values();
46644
46975
  let peak = 0;
46976
+ let epochSeen;
46977
+ let epochAtPass;
46978
+ let passDue = true;
46979
+ let sinceFullPass = 0;
46645
46980
  const userData = /* @__PURE__ */ new WeakMap();
46646
46981
  const shaderNodes = /* @__PURE__ */ new Map();
46647
46982
  const released = new FinalizationRegistry((ref) => {
@@ -46904,6 +47239,12 @@ function defineBrowserClasses(registry, source, catalog) {
46904
47239
  } finally {
46905
47240
  if (loans.length > mark) result = repay(mark, result);
46906
47241
  if (drives) animated = /* @__PURE__ */ new WeakMap();
47242
+ if (method === "__tnRecords" && Array.isArray(args[0])) {
47243
+ for (const attribute of args[0]) {
47244
+ const entry = arrays.get(attribute);
47245
+ if (entry !== void 0) syncFull(attribute, entry);
47246
+ }
47247
+ }
46907
47248
  }
46908
47249
  if (materialClass && (method === "clone" || method === "copy")) {
46909
47250
  const [from, to] = method === "clone" ? [this, result] : [args[0], this];
@@ -46970,8 +47311,9 @@ function defineBrowserClasses(registry, source, catalog) {
46970
47311
  value(other) {
46971
47312
  if (other === null || typeof other !== "object" || Object.getPrototypeOf(other) !== prototype)
46972
47313
  return engineCopy.call(this, other);
46973
- const from = (addressOf(other) + offset) / 8;
46974
- heapF64().copyWithin((addressOf(this) + offset) / 8, from, from + count);
47314
+ const to = addressOf(this) + offset;
47315
+ const from = addressOf(other) + offset;
47316
+ heapF64(Math.max(to, from) + count * 8).copyWithin(to / 8, from / 8, from / 8 + count);
46975
47317
  return this;
46976
47318
  }
46977
47319
  },
@@ -46981,9 +47323,9 @@ function defineBrowserClasses(registry, source, catalog) {
46981
47323
  value(other) {
46982
47324
  if (other === null || typeof other !== "object" || Object.getPrototypeOf(other) !== prototype)
46983
47325
  return engineEquals.call(this, other);
46984
- const heap = heapF64();
46985
47326
  const a = (addressOf(this) + offset) / 8;
46986
47327
  const b = (addressOf(other) + offset) / 8;
47328
+ const heap = heapF64((Math.max(a, b) + count) * 8);
46987
47329
  for (let i = 0; i < count; i++) if (heap[a + i] !== heap[b + i]) return false;
46988
47330
  return true;
46989
47331
  }
@@ -47616,8 +47958,15 @@ function defineBrowserClasses(registry, source, catalog) {
47616
47958
  }
47617
47959
  if (hierarchyAt !== void 0 && readWord !== void 0 && readWord(hierarchyAt) !== keptVersion)
47618
47960
  kept = /* @__PURE__ */ new WeakMap();
47961
+ const epoch = runtime.ownershipEpoch?.();
47962
+ if (epoch === void 0 || epoch !== epochSeen || ++sinceFullPass >= FULL_PASS_EVERY) {
47963
+ epochSeen = epoch;
47964
+ sinceFullPass = 0;
47965
+ passDue = true;
47966
+ }
47967
+ if (held.size === 0 && !passDue) return;
47619
47968
  peak = Math.max(peak, settled.size);
47620
- const budget = Math.ceil(peak / SETTLED_PASS);
47969
+ const budget = passDue ? Math.ceil(peak / SETTLED_PASS) : 0;
47621
47970
  const candidates = [...held];
47622
47971
  const fresh = candidates.length;
47623
47972
  while (candidates.length < fresh + budget) {
@@ -47628,6 +47977,8 @@ function defineBrowserClasses(registry, source, catalog) {
47628
47977
  }
47629
47978
  cursor = settled.values();
47630
47979
  peak = settled.size;
47980
+ if (epoch !== void 0 && epochAtPass === epoch) passDue = false;
47981
+ epochAtPass = epoch;
47631
47982
  if (candidates.length > fresh || settled.size === 0) break;
47632
47983
  }
47633
47984
  const counts = runtime.engineReferences?.(candidates.map(refOf));
@@ -47776,8 +48127,7 @@ var WEB_FRAME_FIELD = {
47776
48127
  firstWorldFrameDrawn: 86,
47777
48128
  textureCompressionBc: 87,
47778
48129
  virtualShadowPendingLevels: 88,
47779
- frameSnapshot: 89
47780
- };
48130
+ frameSnapshot: 89};
47781
48131
 
47782
48132
  // ../three-native/src/gpu-stages.ts
47783
48133
  var GPU_STAGES = ["SSGI"];
@@ -49602,7 +49952,7 @@ function defineWebRenderer(module, Color2, beforeRender = () => {
49602
49952
  if (ref === void 0)
49603
49953
  throw new TypeError(`TN_WASM_RENDER: the ${what} is not an engine object.`);
49604
49954
  const { w0, w1, w2 } = packedRef(ref);
49605
- const view = new DataView(module.HEAPU8.buffer);
49955
+ const view = new DataView(heapFor(module, handles + offset + 12).buffer);
49606
49956
  view.setUint32(handles + offset, w0, true);
49607
49957
  view.setUint32(handles + offset + 4, w1, true);
49608
49958
  view.setUint32(handles + offset + 8, w2, true);
@@ -49844,9 +50194,7 @@ function defineWebRenderer(module, Color2, beforeRender = () => {
49844
50194
  throw new Error(
49845
50195
  `TN_WASM_ABI_MISMATCH: this facade speaks web host ABI ${WEB_HOST_ABI}, the engine ${engine ?? "none (older than ABI 2)"}: install create-threenative and @threenative/runtime-native from one build`
49846
50196
  );
49847
- started = this.domElement;
49848
50197
  module.specialHTMLTargets[CANVAS_TARGET] = this.domElement;
49849
- handles = module._malloc(36) >>> 0;
49850
50198
  const selector = string(CANVAS_TARGET);
49851
50199
  try {
49852
50200
  check(
@@ -49855,6 +50203,8 @@ function defineWebRenderer(module, Color2, beforeRender = () => {
49855
50203
  } finally {
49856
50204
  module._free(selector);
49857
50205
  }
50206
+ started = this.domElement;
50207
+ handles = module._malloc(36) >>> 0;
49858
50208
  } else {
49859
50209
  tsl?.setPost(null);
49860
50210
  tsl?.setToneMapping?.(null);
@@ -49884,7 +50234,10 @@ function defineWebRenderer(module, Color2, beforeRender = () => {
49884
50234
  );
49885
50235
  }
49886
50236
  return this;
49887
- })();
50237
+ })().catch((error) => {
50238
+ this.dispose();
50239
+ throw error;
50240
+ });
49888
50241
  return this.#initialized;
49889
50242
  }
49890
50243
  #drawWidth() {
@@ -50440,7 +50793,7 @@ function defineWebRenderer(module, Color2, beforeRender = () => {
50440
50793
  for (; ; ) {
50441
50794
  module._tnw_web_poll();
50442
50795
  const status = module._tnw_web_read_target_take(id, out, size);
50443
- if (status === 1) return module.HEAPU8.slice(out, out + size);
50796
+ if (status === 1) return heapFor(module, out + size).slice(out, out + size);
50444
50797
  if (status < 0)
50445
50798
  throw new Error(
50446
50799
  module._tnw_web_poll() === FAILED ? `TN_WASM_READ_TARGET: the read failed: ${module.UTF8ToString(module._tnw_web_error())}` : "TN_WASM_READ_TARGET: the read failed"
@@ -50493,7 +50846,9 @@ function defineWebRenderer(module, Color2, beforeRender = () => {
50493
50846
  module._tnw_web_poll();
50494
50847
  const status = module._tnw_web_read_target_take(id, out, bytes);
50495
50848
  if (status === 1)
50496
- return new Float32Array(module.HEAPU8.slice(out, out + bytes).buffer);
50849
+ return new Float32Array(
50850
+ heapFor(module, out + bytes).slice(out, out + bytes).buffer
50851
+ );
50497
50852
  if (status < 0) throw new Error("TN_REFLECTION_CAPTURE_READ");
50498
50853
  await new Promise((resolve) => setTimeout(resolve, 0));
50499
50854
  }
@@ -50690,6 +51045,7 @@ var STANDARD_ATTRIBUTES = [
50690
51045
  "skinIndex",
50691
51046
  "skinWeight"
50692
51047
  ];
51048
+ var undefinedOnMissing = /* @__PURE__ */ new WeakSet();
50693
51049
  function defineGeometrySurface(BufferGeometry, geometries) {
50694
51050
  const attributeViews = /* @__PURE__ */ new WeakMap();
50695
51051
  for (const geometry of [BufferGeometry, ...geometries]) {
@@ -50716,6 +51072,19 @@ function defineGeometrySurface(BufferGeometry, geometries) {
50716
51072
  return JSON.parse(groups.get?.call(this)).map(({ start, count, materialIndex }) => ({ start, count, materialIndex }));
50717
51073
  }
50718
51074
  });
51075
+ const read = prototype.getAttribute;
51076
+ if (typeof read === "function" && !undefinedOnMissing.has(read)) {
51077
+ const answer = function(name) {
51078
+ return read.call(this, name) ?? void 0;
51079
+ };
51080
+ undefinedOnMissing.add(answer);
51081
+ Object.defineProperty(prototype, "getAttribute", {
51082
+ configurable: true,
51083
+ enumerable: false,
51084
+ value: answer,
51085
+ writable: true
51086
+ });
51087
+ }
50719
51088
  Object.defineProperty(prototype, "attributes", {
50720
51089
  configurable: true,
50721
51090
  get() {