pelican-engine 0.3.21 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +10 -0
- package/distribution.json +12 -12
- package/docs/STATUS.md +3 -1
- package/docs/api/REFERENCE.md +116 -96
- package/docs/api/index.json +124 -97
- package/docs/npm/GAME-AUTHOR.md +10 -0
- package/engine.manifest.json +1 -1
- package/lib/sdk/index.d.ts +18 -1
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/cloth-plugin.js +56 -8
- package/lib/simulation/cloth.js +82 -12
- package/package.json +1 -1
package/docs/api/index.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": "pelican.api-index",
|
|
3
3
|
"version": 1,
|
|
4
|
-
"engineVersion": "0.3.
|
|
4
|
+
"engineVersion": "0.3.23",
|
|
5
5
|
"entry": "pelican-engine",
|
|
6
6
|
"source": "packages/sdk/src/index.ts",
|
|
7
7
|
"symbols": [
|
|
8
8
|
{
|
|
9
9
|
"name": "SDK_VERSION",
|
|
10
10
|
"kind": "constant",
|
|
11
|
-
"signature": "SDK_VERSION = \"0.3.
|
|
11
|
+
"signature": "SDK_VERSION = \"0.3.23\"",
|
|
12
12
|
"line": 2
|
|
13
13
|
},
|
|
14
14
|
{
|
|
@@ -368,10 +368,20 @@
|
|
|
368
368
|
]
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
|
-
"name": "
|
|
371
|
+
"name": "ClothBodyCollider",
|
|
372
372
|
"kind": "InterfaceDeclaration",
|
|
373
|
-
"signature": "export interface
|
|
373
|
+
"signature": "export interface ClothBodyCollider { readonly id: string; readonly entity: string }",
|
|
374
374
|
"line": 237,
|
|
375
|
+
"fields": [
|
|
376
|
+
"id",
|
|
377
|
+
"entity"
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "ClothDefinition",
|
|
382
|
+
"kind": "InterfaceDeclaration",
|
|
383
|
+
"signature": "export interface ClothDefinition {\n id: string;\n points: readonly Vec3[];\n triangles: readonly ClothTriangle[];\n /** Kilograms per movable particle. */\n mass: number;\n radius?: number;\n fixedDt?: number;\n autoStep?: boolean;\n substeps?: number;\n iterations?: number;\n damping?: number;\n gravity?: Vec3;\n /** Distance-based bending approximation across shared triangle edges; defaults to true. */\n bending?: boolean;\n anchors?: readonly { index: number; position: Vec3 }[];\n visual?: ClothVisualOptions;\n /** Discrete non-adjacent particle self-contact; defaults to true for new cloth. */\n selfCollisions?: boolean;\n /** Sphere triangle-surface contacts; defaults to true for new cloth. */\n surfaceCollisions?: boolean;\n /** Optional live dynamic sphere bindings; sampled after the physics phase, one-way only. */\n bodyColliders?: readonly ClothBodyCollider[];\n}",
|
|
384
|
+
"line": 238,
|
|
375
385
|
"fields": [
|
|
376
386
|
"id",
|
|
377
387
|
"points",
|
|
@@ -387,14 +397,16 @@
|
|
|
387
397
|
"bending",
|
|
388
398
|
"anchors",
|
|
389
399
|
"visual",
|
|
390
|
-
"selfCollisions"
|
|
400
|
+
"selfCollisions",
|
|
401
|
+
"surfaceCollisions",
|
|
402
|
+
"bodyColliders"
|
|
391
403
|
]
|
|
392
404
|
},
|
|
393
405
|
{
|
|
394
406
|
"name": "ClothContact",
|
|
395
407
|
"kind": "InterfaceDeclaration",
|
|
396
408
|
"signature": "export interface ClothContact { tick: number; particle: number; colliderId: string; penetration: number }",
|
|
397
|
-
"line":
|
|
409
|
+
"line": 262,
|
|
398
410
|
"fields": [
|
|
399
411
|
"tick",
|
|
400
412
|
"particle",
|
|
@@ -406,7 +418,7 @@
|
|
|
406
418
|
"name": "ClothSelfContact",
|
|
407
419
|
"kind": "InterfaceDeclaration",
|
|
408
420
|
"signature": "export interface ClothSelfContact { tick: number; firstParticle: number; secondParticle: number; penetration: number }",
|
|
409
|
-
"line":
|
|
421
|
+
"line": 263,
|
|
410
422
|
"fields": [
|
|
411
423
|
"tick",
|
|
412
424
|
"firstParticle",
|
|
@@ -414,22 +426,37 @@
|
|
|
414
426
|
"penetration"
|
|
415
427
|
]
|
|
416
428
|
},
|
|
429
|
+
{
|
|
430
|
+
"name": "ClothSurfaceContact",
|
|
431
|
+
"kind": "InterfaceDeclaration",
|
|
432
|
+
"signature": "export interface ClothSurfaceContact { tick: number; triangle: number; colliderId: string; penetration: number; barycentric: [number, number, number] }",
|
|
433
|
+
"line": 264,
|
|
434
|
+
"fields": [
|
|
435
|
+
"tick",
|
|
436
|
+
"triangle",
|
|
437
|
+
"colliderId",
|
|
438
|
+
"penetration",
|
|
439
|
+
"barycentric"
|
|
440
|
+
]
|
|
441
|
+
},
|
|
417
442
|
{
|
|
418
443
|
"name": "ClothState",
|
|
419
444
|
"kind": "InterfaceDeclaration",
|
|
420
|
-
"signature": "export interface ClothState {\n tick: number; simulatedSeconds: number; disposed: boolean; selfCollisions: boolean;\n positions: Vec3[]; velocities: Vec3[]; triangles: ClothTriangle[];\n anchors: { index: number; position: Vec3 }[];\n contacts: ClothContact[]; selfContacts: ClothSelfContact[];\n maxDistanceError: number;\n resources: { particles: number; triangles: number; constraints: number; anchors: number; colliders: number };\n}",
|
|
421
|
-
"line":
|
|
445
|
+
"signature": "export interface ClothState {\n tick: number; simulatedSeconds: number; disposed: boolean; selfCollisions: boolean; surfaceCollisions: boolean;\n positions: Vec3[]; velocities: Vec3[]; triangles: ClothTriangle[];\n anchors: { index: number; position: Vec3 }[];\n contacts: ClothContact[]; selfContacts: ClothSelfContact[]; surfaceContacts: ClothSurfaceContact[];\n maxDistanceError: number;\n resources: { particles: number; triangles: number; constraints: number; anchors: number; colliders: number };\n}",
|
|
446
|
+
"line": 265,
|
|
422
447
|
"fields": [
|
|
423
448
|
"tick",
|
|
424
449
|
"simulatedSeconds",
|
|
425
450
|
"disposed",
|
|
426
451
|
"selfCollisions",
|
|
452
|
+
"surfaceCollisions",
|
|
427
453
|
"positions",
|
|
428
454
|
"velocities",
|
|
429
455
|
"triangles",
|
|
430
456
|
"anchors",
|
|
431
457
|
"contacts",
|
|
432
458
|
"selfContacts",
|
|
459
|
+
"surfaceContacts",
|
|
433
460
|
"maxDistanceError",
|
|
434
461
|
"resources"
|
|
435
462
|
]
|
|
@@ -438,7 +465,7 @@
|
|
|
438
465
|
"name": "ClothVisualState",
|
|
439
466
|
"kind": "InterfaceDeclaration",
|
|
440
467
|
"signature": "export interface ClothVisualState {\n id: string; material: string; positions: Vec3[]; triangles: ClothTriangle[];\n uvs: Vec2[]; castShadow: boolean; receiveShadow: boolean;\n}",
|
|
441
|
-
"line":
|
|
468
|
+
"line": 273,
|
|
442
469
|
"fields": [
|
|
443
470
|
"id",
|
|
444
471
|
"material",
|
|
@@ -453,7 +480,7 @@
|
|
|
453
480
|
"name": "ClothService",
|
|
454
481
|
"kind": "InterfaceDeclaration",
|
|
455
482
|
"signature": "export interface ClothService {\n create(definition: ClothDefinition): void;\n /** Explicit ticks for manual cloth only; automatic cloth rejects this call. */\n step(id: string, ticks?: number): ClothState;\n inspect(id: string): ClothState;\n visuals(): readonly ClothVisualState[];\n setColliders(id: string, colliders: readonly ClothCollider[]): void;\n setAnchor(id: string, index: number, position: Vec3): void;\n releaseAnchor(id: string, index: number): void;\n applyForce(id: string, index: number, force: Vec3): void;\n applyImpulse(id: string, index: number, impulse: Vec3): void;\n destroy(id: string): void;\n}",
|
|
456
|
-
"line":
|
|
483
|
+
"line": 277,
|
|
457
484
|
"fields": [
|
|
458
485
|
"create",
|
|
459
486
|
"step",
|
|
@@ -471,7 +498,7 @@
|
|
|
471
498
|
"name": "NavigationCell",
|
|
472
499
|
"kind": "InterfaceDeclaration",
|
|
473
500
|
"signature": "export interface NavigationCell { readonly x: number; readonly y: number }",
|
|
474
|
-
"line":
|
|
501
|
+
"line": 293,
|
|
475
502
|
"fields": [
|
|
476
503
|
"x",
|
|
477
504
|
"y"
|
|
@@ -481,7 +508,7 @@
|
|
|
481
508
|
"name": "NavigationObstacleUpdate",
|
|
482
509
|
"kind": "InterfaceDeclaration",
|
|
483
510
|
"signature": "export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }",
|
|
484
|
-
"line":
|
|
511
|
+
"line": 295,
|
|
485
512
|
"fields": [
|
|
486
513
|
"cell",
|
|
487
514
|
"blocked"
|
|
@@ -491,7 +518,7 @@
|
|
|
491
518
|
"name": "NavigationGrid",
|
|
492
519
|
"kind": "InterfaceDeclaration",
|
|
493
520
|
"signature": "export interface NavigationGrid {\n readonly id: string;\n readonly owner: string;\n readonly width: number;\n readonly height: number;\n readonly blocked?: readonly NavigationCell[];\n /** Maximum distinct search cells, including endpoints; defaults to 65536. Raising it increases memory and CPU use. */\n readonly searchCellBudget?: number;\n}",
|
|
494
|
-
"line":
|
|
521
|
+
"line": 296,
|
|
495
522
|
"fields": [
|
|
496
523
|
"id",
|
|
497
524
|
"owner",
|
|
@@ -505,7 +532,7 @@
|
|
|
505
532
|
"name": "NavigationService",
|
|
506
533
|
"kind": "InterfaceDeclaration",
|
|
507
534
|
"signature": "export interface NavigationService {\n createGrid(grid: NavigationGrid): void;\n /** Returns a detached description, including the current blocked cells. */\n getGrid(id: string): NavigationGrid;\n isBlocked(id: string, cell: NavigationCell): boolean;\n setBlocked(id: string, cell: NavigationCell, blocked: boolean): void;\n /** Validates the entire batch before committing; the last change for a repeated cell wins. */\n setBlockedBatch(id: string, updates: readonly NavigationObstacleUpdate[]): void;\n findPath(id: string, start: NavigationCell, end: NavigationCell): readonly NavigationCell[];\n destroyGrid(id: string): void;\n destroyOwner(owner: string): void;\n}",
|
|
508
|
-
"line":
|
|
535
|
+
"line": 305,
|
|
509
536
|
"fields": [
|
|
510
537
|
"createGrid",
|
|
511
538
|
"getGrid",
|
|
@@ -521,13 +548,13 @@
|
|
|
521
548
|
"name": "RenderMode",
|
|
522
549
|
"kind": "TypeAliasDeclaration",
|
|
523
550
|
"signature": "export type RenderMode = \"raster\" | \"hybrid\" | \"path\";",
|
|
524
|
-
"line":
|
|
551
|
+
"line": 317
|
|
525
552
|
},
|
|
526
553
|
{
|
|
527
554
|
"name": "RenderCapabilities",
|
|
528
555
|
"kind": "InterfaceDeclaration",
|
|
529
556
|
"signature": "export interface RenderCapabilities {\n backend: \"webgpu\" | \"webgl2\" | \"uninitialized\";\n compute: boolean;\n availableModes: readonly RenderMode[];\n}",
|
|
530
|
-
"line":
|
|
557
|
+
"line": 318,
|
|
531
558
|
"fields": [
|
|
532
559
|
"backend",
|
|
533
560
|
"compute",
|
|
@@ -538,7 +565,7 @@
|
|
|
538
565
|
"name": "RenderSettings",
|
|
539
566
|
"kind": "InterfaceDeclaration",
|
|
540
567
|
"signature": "export interface RenderSettings {\n mode: RenderMode;\n samplesPerFrame: number;\n maxBounces: number;\n denoise: boolean;\n denoiseIterations: number;\n exposure: number;\n directLighting: boolean;\n indirectLighting: boolean;\n debug: \"beauty\" | \"albedo\" | \"normal\" | \"depth\" | \"samples\";\n}",
|
|
541
|
-
"line":
|
|
568
|
+
"line": 323,
|
|
542
569
|
"fields": [
|
|
543
570
|
"mode",
|
|
544
571
|
"samplesPerFrame",
|
|
@@ -555,7 +582,7 @@
|
|
|
555
582
|
"name": "RenderService",
|
|
556
583
|
"kind": "InterfaceDeclaration",
|
|
557
584
|
"signature": "export interface RenderService {\n configure(settings: Partial<RenderSettings>): void;\n state(): Readonly<RenderSettings>;\n capabilities(): Readonly<RenderCapabilities>;\n setMaterialParameter(material: string, name: string, value: GraphValue): void;\n materialParameters(material: string): Readonly<Record<string, GraphValue>>;\n readonly effects: PostProcessService;\n readonly buffers: RenderBufferBindings;\n readonly textures: RenderTextureBindings;\n}",
|
|
558
|
-
"line":
|
|
585
|
+
"line": 334,
|
|
559
586
|
"fields": [
|
|
560
587
|
"configure",
|
|
561
588
|
"state",
|
|
@@ -571,7 +598,7 @@
|
|
|
571
598
|
"name": "MaterialBufferInput",
|
|
572
599
|
"kind": "InterfaceDeclaration",
|
|
573
600
|
"signature": "export interface MaterialBufferInput {\n /** Shared slot declaration for material and postprocess graphs. */\n name: string;\n type: GraphType;\n /** Optional initial logical compute-buffer ID. */\n buffer?: string;\n /** Optional exact element count required by this slot. */\n count?: number;\n}",
|
|
574
|
-
"line":
|
|
601
|
+
"line": 344,
|
|
575
602
|
"fields": [
|
|
576
603
|
"name",
|
|
577
604
|
"type",
|
|
@@ -583,7 +610,7 @@
|
|
|
583
610
|
"name": "RenderBufferReference",
|
|
584
611
|
"kind": "InterfaceDeclaration",
|
|
585
612
|
"signature": "export interface RenderBufferReference {\n id: string;\n type: GraphType;\n count: number;\n}",
|
|
586
|
-
"line":
|
|
613
|
+
"line": 353,
|
|
587
614
|
"fields": [
|
|
588
615
|
"id",
|
|
589
616
|
"type",
|
|
@@ -594,7 +621,7 @@
|
|
|
594
621
|
"name": "RenderBufferBindings",
|
|
595
622
|
"kind": "InterfaceDeclaration",
|
|
596
623
|
"signature": "export interface RenderBufferBindings {\n bind(target: string, name: string, buffer: ComputeBufferHandle): void;\n unbind(target: string, name: string): void;\n state(target: string): Readonly<Record<string, RenderBufferReference>>;\n}",
|
|
597
|
-
"line":
|
|
624
|
+
"line": 358,
|
|
598
625
|
"fields": [
|
|
599
626
|
"bind",
|
|
600
627
|
"unbind",
|
|
@@ -605,7 +632,7 @@
|
|
|
605
632
|
"name": "MaterialTextureInput",
|
|
606
633
|
"kind": "InterfaceDeclaration",
|
|
607
634
|
"signature": "export interface MaterialTextureInput extends ComputeTextureBinding {\n /** Initial managed texture ID; asset import uses computeTextures/createTexture. */\n texture?: string;\n width?: number;\n height?: number;\n}",
|
|
608
|
-
"line":
|
|
635
|
+
"line": 363,
|
|
609
636
|
"fields": [
|
|
610
637
|
"texture",
|
|
611
638
|
"width",
|
|
@@ -616,7 +643,7 @@
|
|
|
616
643
|
"name": "RenderTextureReference",
|
|
617
644
|
"kind": "InterfaceDeclaration",
|
|
618
645
|
"signature": "export interface RenderTextureReference extends ComputeTextureSize {\n id: string;\n format: \"rgba32float\";\n}",
|
|
619
|
-
"line":
|
|
646
|
+
"line": 369,
|
|
620
647
|
"fields": [
|
|
621
648
|
"id",
|
|
622
649
|
"format"
|
|
@@ -626,7 +653,7 @@
|
|
|
626
653
|
"name": "RenderTextureBindings",
|
|
627
654
|
"kind": "InterfaceDeclaration",
|
|
628
655
|
"signature": "export interface RenderTextureBindings {\n bind(target: string, name: string, texture: ComputeTextureHandle): void;\n unbind(target: string, name: string): void;\n state(target: string): Readonly<Record<string, RenderTextureReference>>;\n}",
|
|
629
|
-
"line":
|
|
656
|
+
"line": 373,
|
|
630
657
|
"fields": [
|
|
631
658
|
"bind",
|
|
632
659
|
"unbind",
|
|
@@ -637,7 +664,7 @@
|
|
|
637
664
|
"name": "PostProcessState",
|
|
638
665
|
"kind": "InterfaceDeclaration",
|
|
639
666
|
"signature": "export interface PostProcessState {\n id: string;\n enabled: boolean;\n parameters: Readonly<Record<string, GraphValue>>;\n}",
|
|
640
|
-
"line":
|
|
667
|
+
"line": 378,
|
|
641
668
|
"fields": [
|
|
642
669
|
"id",
|
|
643
670
|
"enabled",
|
|
@@ -648,7 +675,7 @@
|
|
|
648
675
|
"name": "PostProcessService",
|
|
649
676
|
"kind": "InterfaceDeclaration",
|
|
650
677
|
"signature": "export interface PostProcessService {\n /** Compute-buffer slots declared by definePostProcess, addressed by pass ID. */\n readonly buffers: RenderBufferBindings;\n readonly textures: RenderTextureBindings;\n configure(id: string, settings: { enabled: boolean }): void;\n state(id: string): Readonly<PostProcessState>;\n setParameter(id: string, name: string, value: GraphValue): void;\n /** Clears temporal effect images; it does not modify game or trace accumulation state. */\n resetHistory(id?: string): void;\n}",
|
|
651
|
-
"line":
|
|
678
|
+
"line": 383,
|
|
652
679
|
"fields": [
|
|
653
680
|
"buffers",
|
|
654
681
|
"textures",
|
|
@@ -662,7 +689,7 @@
|
|
|
662
689
|
"name": "ComputeBufferHandle",
|
|
663
690
|
"kind": "InterfaceDeclaration",
|
|
664
691
|
"signature": "export interface ComputeBufferHandle {\n readonly owner: number;\n readonly index: number;\n readonly generation: number;\n}",
|
|
665
|
-
"line":
|
|
692
|
+
"line": 393,
|
|
666
693
|
"fields": [
|
|
667
694
|
"owner",
|
|
668
695
|
"index",
|
|
@@ -673,7 +700,7 @@
|
|
|
673
700
|
"name": "ComputeTaskHandle",
|
|
674
701
|
"kind": "InterfaceDeclaration",
|
|
675
702
|
"signature": "export interface ComputeTaskHandle {\n readonly owner: number;\n readonly id: number;\n}",
|
|
676
|
-
"line":
|
|
703
|
+
"line": 398,
|
|
677
704
|
"fields": [
|
|
678
705
|
"owner",
|
|
679
706
|
"id"
|
|
@@ -683,7 +710,7 @@
|
|
|
683
710
|
"name": "ComputeBufferInput",
|
|
684
711
|
"kind": "InterfaceDeclaration",
|
|
685
712
|
"signature": "export interface ComputeBufferInput {\n id: string;\n type: GraphType;\n count: number;\n data?: readonly GraphValue[];\n}",
|
|
686
|
-
"line":
|
|
713
|
+
"line": 402,
|
|
687
714
|
"fields": [
|
|
688
715
|
"id",
|
|
689
716
|
"type",
|
|
@@ -695,7 +722,7 @@
|
|
|
695
722
|
"name": "ComputeTextureHandle",
|
|
696
723
|
"kind": "InterfaceDeclaration",
|
|
697
724
|
"signature": "export interface ComputeTextureHandle {\n readonly owner: number;\n readonly index: number;\n readonly generation: number;\n readonly kind: \"texture\";\n}",
|
|
698
|
-
"line":
|
|
725
|
+
"line": 408,
|
|
699
726
|
"fields": [
|
|
700
727
|
"owner",
|
|
701
728
|
"index",
|
|
@@ -707,7 +734,7 @@
|
|
|
707
734
|
"name": "ComputeTextureSize",
|
|
708
735
|
"kind": "InterfaceDeclaration",
|
|
709
736
|
"signature": "export interface ComputeTextureSize {\n width: number;\n height: number;\n}",
|
|
710
|
-
"line":
|
|
737
|
+
"line": 414,
|
|
711
738
|
"fields": [
|
|
712
739
|
"width",
|
|
713
740
|
"height"
|
|
@@ -717,7 +744,7 @@
|
|
|
717
744
|
"name": "ComputeTextureDataInput",
|
|
718
745
|
"kind": "InterfaceDeclaration",
|
|
719
746
|
"signature": "export interface ComputeTextureDataInput extends ComputeTextureSize {\n id: string;\n /** Linear rgba32float texels in row-major order, without color-space conversion. */\n data?: readonly Vec4[];\n asset?: never;\n}",
|
|
720
|
-
"line":
|
|
747
|
+
"line": 418,
|
|
721
748
|
"fields": [
|
|
722
749
|
"id",
|
|
723
750
|
"data",
|
|
@@ -728,7 +755,7 @@
|
|
|
728
755
|
"name": "ComputeTextureAssetInput",
|
|
729
756
|
"kind": "InterfaceDeclaration",
|
|
730
757
|
"signature": "export interface ComputeTextureAssetInput {\n id: string;\n asset: AssetDefinition | string;\n width?: never;\n height?: never;\n data?: never;\n}",
|
|
731
|
-
"line":
|
|
758
|
+
"line": 424,
|
|
732
759
|
"fields": [
|
|
733
760
|
"id",
|
|
734
761
|
"asset",
|
|
@@ -741,13 +768,13 @@
|
|
|
741
768
|
"name": "ComputeTextureInput",
|
|
742
769
|
"kind": "TypeAliasDeclaration",
|
|
743
770
|
"signature": "export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;",
|
|
744
|
-
"line":
|
|
771
|
+
"line": 431
|
|
745
772
|
},
|
|
746
773
|
{
|
|
747
774
|
"name": "ComputeTextureBinding",
|
|
748
775
|
"kind": "InterfaceDeclaration",
|
|
749
776
|
"signature": "export interface ComputeTextureBinding {\n name: string;\n filter?: \"nearest\" | \"linear\";\n wrapU?: \"clamp\" | \"repeat\" | \"mirror\";\n wrapV?: \"clamp\" | \"repeat\" | \"mirror\";\n}",
|
|
750
|
-
"line":
|
|
777
|
+
"line": 432,
|
|
751
778
|
"fields": [
|
|
752
779
|
"name",
|
|
753
780
|
"filter",
|
|
@@ -759,7 +786,7 @@
|
|
|
759
786
|
"name": "ComputeDispatchInput",
|
|
760
787
|
"kind": "InterfaceDeclaration",
|
|
761
788
|
"signature": "export interface ComputeDispatchInput {\n output: ComputeBufferHandle | ComputeTextureHandle;\n /** Handles capture dispatch-time data; task bindings consume that exact successful output revision. */\n bindings?: Readonly<Record<string, ComputeBufferHandle | { task: ComputeTaskHandle }>>;\n /** Named sampled rgba32float textures; task bindings capture that exact texture result. */\n textures?: Readonly<Record<string, ComputeTextureHandle | { task: ComputeTaskHandle }>>;\n /** Ordering only. It never silently refreshes ordinary handle bindings. */\n after?: readonly ComputeTaskHandle[];\n parameters?: Readonly<Record<string, GraphValue>>;\n /** Fixed simulation time by default, not wall-clock time. */\n time?: number;\n}",
|
|
762
|
-
"line":
|
|
789
|
+
"line": 438,
|
|
763
790
|
"fields": [
|
|
764
791
|
"output",
|
|
765
792
|
"bindings",
|
|
@@ -773,7 +800,7 @@
|
|
|
773
800
|
"name": "ComputeTaskState",
|
|
774
801
|
"kind": "InterfaceDeclaration",
|
|
775
802
|
"signature": "export interface ComputeTaskState {\n status: \"queued\" | \"running\" | \"succeeded\" | \"failed\" | \"cancelled\";\n error?: { code: string; message: string; remediation: string };\n}",
|
|
776
|
-
"line":
|
|
803
|
+
"line": 450,
|
|
777
804
|
"fields": [
|
|
778
805
|
"status",
|
|
779
806
|
"error"
|
|
@@ -783,7 +810,7 @@
|
|
|
783
810
|
"name": "ComputeService",
|
|
784
811
|
"kind": "InterfaceDeclaration",
|
|
785
812
|
"signature": "export interface ComputeService {\n createTexture(input: ComputeTextureInput): ComputeTextureHandle;\n resolveTexture(id: string): ComputeTextureHandle;\n describeTexture(texture: ComputeTextureHandle): Readonly<ComputeTextureSize & { id: string; format: \"rgba32float\"; revision: number }>;\n readTexture(texture: ComputeTextureHandle): readonly Vec4[];\n writeTexture(texture: ComputeTextureHandle, data: readonly Vec4[], region?: ComputeTextureSize & { x: number; y: number }): void;\n releaseTexture(texture: ComputeTextureHandle): void;\n createBuffer(input: ComputeBufferInput): ComputeBufferHandle;\n resolve(id: string): ComputeBufferHandle;\n describeBuffer(buffer: ComputeBufferHandle): Readonly<{ id: string; type: GraphType; count: number; revision: number }>;\n /** Last committed GPU result; detached CPU data, never a GPU object. */\n readBuffer(buffer: ComputeBufferHandle): readonly GraphValue[];\n writeBuffer(buffer: ComputeBufferHandle, values: readonly GraphValue[], offset?: number): void;\n releaseBuffer(buffer: ComputeBufferHandle): void;\n dispatch(kernel: ComputeDefinition | string, input: ComputeDispatchInput): ComputeTaskHandle;\n task(task: ComputeTaskHandle): Readonly<ComputeTaskState>;\n tasks(): readonly { handle: ComputeTaskHandle; state: ComputeTaskState }[];\n cancel(task: ComputeTaskHandle): void;\n releaseTask(task: ComputeTaskHandle): void;\n}",
|
|
786
|
-
"line":
|
|
813
|
+
"line": 454,
|
|
787
814
|
"fields": [
|
|
788
815
|
"createTexture",
|
|
789
816
|
"resolveTexture",
|
|
@@ -808,7 +835,7 @@
|
|
|
808
835
|
"name": "InputService",
|
|
809
836
|
"kind": "InterfaceDeclaration",
|
|
810
837
|
"signature": "export interface InputService {\n held(action: string): boolean;\n pressed(action: string): boolean;\n released(action: string): boolean;\n axis(negative: string, positive: string): number;\n}",
|
|
811
|
-
"line":
|
|
838
|
+
"line": 474,
|
|
812
839
|
"fields": [
|
|
813
840
|
"held",
|
|
814
841
|
"pressed",
|
|
@@ -820,7 +847,7 @@
|
|
|
820
847
|
"name": "PhysicsService",
|
|
821
848
|
"kind": "InterfaceDeclaration",
|
|
822
849
|
"signature": "export interface PhysicsService {\n moveCharacter(entity: string, displacement: Vec3): void;\n grounded(entity: string): boolean;\n velocity(entity: string): Vec3;\n /** World-space rigid-body center of mass, including collider offsets. */\n centerOfMass(entity: string): Vec3;\n setVelocity(entity: string, velocity: Vec3): void;\n impulse(entity: string, impulse: Vec3): void;\n /** Angular velocity in world-space radians per second. */\n angularVelocity(entity: string): Vec3;\n setAngularVelocity(entity: string, velocity: Vec3): void;\n /** Instantaneous world-space angular impulse, in angular-momentum units. */\n torqueImpulse(entity: string, impulse: Vec3): void;\n /** Apply world-space impulse at a world-space point, changing linear and angular motion. */\n impulseAtPoint(entity: string, impulse: Vec3, point: Vec3): void;\n raycast(\n origin: Vec3,\n direction: Vec3,\n maxDistance: number,\n options?: { exclude?: readonly string[]; includeTriggers?: boolean },\n ): { entity: string; distance: number; point: Vec3; normal: Vec3 } | null;\n}",
|
|
823
|
-
"line":
|
|
850
|
+
"line": 480,
|
|
824
851
|
"fields": [
|
|
825
852
|
"moveCharacter",
|
|
826
853
|
"grounded",
|
|
@@ -839,7 +866,7 @@
|
|
|
839
866
|
"name": "AnimationService",
|
|
840
867
|
"kind": "InterfaceDeclaration",
|
|
841
868
|
"signature": "export interface AnimationService {\n play(\n entity: string,\n clip: string,\n options?: { fade?: number; speed?: number; loop?: boolean },\n ): void;\n state(entity: string): {\n clip: string | null;\n time: number;\n playing: boolean;\n };\n}",
|
|
842
|
-
"line":
|
|
869
|
+
"line": 502,
|
|
843
870
|
"fields": [
|
|
844
871
|
"play",
|
|
845
872
|
"state"
|
|
@@ -849,7 +876,7 @@
|
|
|
849
876
|
"name": "CameraService",
|
|
850
877
|
"kind": "InterfaceDeclaration",
|
|
851
878
|
"signature": "export interface CameraService {\n follow(\n entity: string,\n options?: {\n distance?: number;\n height?: number;\n lookHeight?: number;\n yaw?: number;\n smoothing?: number;\n },\n ): void;\n orbit(yaw: number): void;\n}",
|
|
852
|
-
"line":
|
|
879
|
+
"line": 514,
|
|
853
880
|
"fields": [
|
|
854
881
|
"follow",
|
|
855
882
|
"orbit"
|
|
@@ -859,7 +886,7 @@
|
|
|
859
886
|
"name": "UIService",
|
|
860
887
|
"kind": "InterfaceDeclaration",
|
|
861
888
|
"signature": "export interface UIService {\n setText(id: string, text: string): void;\n setProgress(id: string, value: number): void;\n setVisible(id: string, visible: boolean): void;\n}",
|
|
862
|
-
"line":
|
|
889
|
+
"line": 527,
|
|
863
890
|
"fields": [
|
|
864
891
|
"setText",
|
|
865
892
|
"setProgress",
|
|
@@ -870,7 +897,7 @@
|
|
|
870
897
|
"name": "AudioService",
|
|
871
898
|
"kind": "InterfaceDeclaration",
|
|
872
899
|
"signature": "export interface AudioService {\n play(\n id: string,\n options?: { volume?: number; loop?: boolean; entity?: string; bus?: string; priority?: number },\n ): string;\n stop(voice: string): void;\n /** Pause/resume are idempotent; an unknown valid voice id is a no-op. Playback time follows fixed simulation ticks, even while audio is locked. */\n pause(voice: string): void;\n resume(voice: string): void;\n volume(value: number): void;\n /** Set a declared bus gain, independently of master and voice gain. */\n busVolume(id: string, value: number): void;\n /** Fade a declared bus over fixed-tick seconds; busVolume or another fade replaces it. */\n fadeBus(id: string, target: number, duration: number): void;\n}",
|
|
873
|
-
"line":
|
|
900
|
+
"line": 532,
|
|
874
901
|
"fields": [
|
|
875
902
|
"play",
|
|
876
903
|
"stop",
|
|
@@ -885,7 +912,7 @@
|
|
|
885
912
|
"name": "StorageService",
|
|
886
913
|
"kind": "InterfaceDeclaration",
|
|
887
914
|
"signature": "export interface StorageService {\n save(slot: string): void;\n load(slot: string): void;\n status(): {\n state: \"idle\" | \"saving\" | \"loading\" | \"saved\" | \"loaded\" | \"failed\";\n slot: string | null;\n error: string | null;\n };\n}",
|
|
888
|
-
"line":
|
|
915
|
+
"line": 547,
|
|
889
916
|
"fields": [
|
|
890
917
|
"save",
|
|
891
918
|
"load",
|
|
@@ -896,7 +923,7 @@
|
|
|
896
923
|
"name": "SceneService",
|
|
897
924
|
"kind": "InterfaceDeclaration",
|
|
898
925
|
"signature": "export interface SceneService {\n current(): string;\n load(id: string): void;\n}",
|
|
899
|
-
"line":
|
|
926
|
+
"line": 556,
|
|
900
927
|
"fields": [
|
|
901
928
|
"current",
|
|
902
929
|
"load"
|
|
@@ -906,7 +933,7 @@
|
|
|
906
933
|
"name": "ModelDefinition",
|
|
907
934
|
"kind": "InterfaceDeclaration",
|
|
908
935
|
"signature": "export interface ModelDefinition {\n /** Optional whole-model material override; omitted keeps the asset's original materials. */\n material?: MaterialDefinition | string;\n /** Replace all asset material slots with the given exact material name. Mutually exclusive with material. */\n materialSlots?: Record<string, MaterialDefinition | string>;\n castShadow?: boolean;\n receiveShadow?: boolean;\n asset: AssetDefinition | string;\n scale?: number;\n offset?: Vec3;\n rotation?: Vec3;\n animation?: { clip: string; speed?: number; loop?: boolean };\n}",
|
|
909
|
-
"line":
|
|
936
|
+
"line": 560,
|
|
910
937
|
"fields": [
|
|
911
938
|
"material",
|
|
912
939
|
"materialSlots",
|
|
@@ -923,7 +950,7 @@
|
|
|
923
950
|
"name": "RigidBodyDefinition",
|
|
924
951
|
"kind": "InterfaceDeclaration",
|
|
925
952
|
"signature": "export interface RigidBodyDefinition {\n type: \"fixed\" | \"dynamic\" | \"kinematic\";\n collider: {\n shape: \"box\" | \"sphere\" | \"capsule\";\n size?: Vec3;\n radius?: number;\n halfHeight?: number;\n offset?: Vec3;\n };\n mass?: number;\n friction?: number;\n restitution?: number;\n trigger?: boolean;\n}",
|
|
926
|
-
"line":
|
|
953
|
+
"line": 573,
|
|
927
954
|
"fields": [
|
|
928
955
|
"type",
|
|
929
956
|
"collider",
|
|
@@ -937,7 +964,7 @@
|
|
|
937
964
|
"name": "CharacterDefinition",
|
|
938
965
|
"kind": "InterfaceDeclaration",
|
|
939
966
|
"signature": "export interface CharacterDefinition {\n radius: number;\n height: number;\n speed: number;\n jumpSpeed?: number;\n /** Downward acceleration magnitude in world units/s^2; defaults to 9.81. Scene.gravity is a signed vector. */\n gravity?: number;\n}",
|
|
940
|
-
"line":
|
|
967
|
+
"line": 587,
|
|
941
968
|
"fields": [
|
|
942
969
|
"radius",
|
|
943
970
|
"height",
|
|
@@ -950,7 +977,7 @@
|
|
|
950
977
|
"name": "UIElementDefinition",
|
|
951
978
|
"kind": "InterfaceDeclaration",
|
|
952
979
|
"signature": "export interface UIElementDefinition {\n id: string;\n kind: \"text\" | \"bar\" | \"button\" | \"input\";\n text?: string;\n value?: number;\n visible?: boolean;\n anchor?: \"top-left\" | \"top-right\" | \"bottom-left\" | \"bottom-right\" | \"center\";\n x?: number;\n y?: number;\n width?: number;\n color?: string;\n world?: { entity: string; offset?: Vec3; occlude?: boolean };\n}",
|
|
953
|
-
"line":
|
|
980
|
+
"line": 595,
|
|
954
981
|
"fields": [
|
|
955
982
|
"id",
|
|
956
983
|
"kind",
|
|
@@ -969,7 +996,7 @@
|
|
|
969
996
|
"name": "SoundDefinition",
|
|
970
997
|
"kind": "InterfaceDeclaration",
|
|
971
998
|
"signature": "export interface SoundDefinition {\n id: string;\n asset: AssetDefinition | string;\n volume?: number;\n loop?: boolean;\n bus?: string;\n}",
|
|
972
|
-
"line":
|
|
999
|
+
"line": 608,
|
|
973
1000
|
"fields": [
|
|
974
1001
|
"id",
|
|
975
1002
|
"asset",
|
|
@@ -982,7 +1009,7 @@
|
|
|
982
1009
|
"name": "AudioBusDefinition",
|
|
983
1010
|
"kind": "InterfaceDeclaration",
|
|
984
1011
|
"signature": "export interface AudioBusDefinition {\n id: string;\n volume?: number;\n}",
|
|
985
|
-
"line":
|
|
1012
|
+
"line": 615,
|
|
986
1013
|
"fields": [
|
|
987
1014
|
"id",
|
|
988
1015
|
"volume"
|
|
@@ -992,43 +1019,43 @@
|
|
|
992
1019
|
"name": "SYSTEM_PHASES",
|
|
993
1020
|
"kind": "constant",
|
|
994
1021
|
"signature": "SYSTEM_PHASES = [\n \"input\",\n \"prePhysics\",\n \"physics\",\n \"postPhysics\",\n \"update\",\n \"presentation\",\n] as const",
|
|
995
|
-
"line":
|
|
1022
|
+
"line": 619
|
|
996
1023
|
},
|
|
997
1024
|
{
|
|
998
1025
|
"name": "SystemPhase",
|
|
999
1026
|
"kind": "TypeAliasDeclaration",
|
|
1000
1027
|
"signature": "export type SystemPhase = (typeof SYSTEM_PHASES)[number];",
|
|
1001
|
-
"line":
|
|
1028
|
+
"line": 627
|
|
1002
1029
|
},
|
|
1003
1030
|
{
|
|
1004
1031
|
"name": "Geometry",
|
|
1005
1032
|
"kind": "TypeAliasDeclaration",
|
|
1006
1033
|
"signature": "export type Geometry =\n | { kind: \"box\"; size?: Vec3 }\n | { kind: \"sphere\"; radius?: number; segments?: number }\n | { kind: \"plane\"; size?: readonly [number, number] };",
|
|
1007
|
-
"line":
|
|
1034
|
+
"line": 628
|
|
1008
1035
|
},
|
|
1009
1036
|
{
|
|
1010
1037
|
"name": "GRAPH_TYPES",
|
|
1011
1038
|
"kind": "constant",
|
|
1012
1039
|
"signature": "GRAPH_TYPES = [\"float\", \"vec2\", \"vec3\", \"vec4\", \"bool\"] as const",
|
|
1013
|
-
"line":
|
|
1040
|
+
"line": 632
|
|
1014
1041
|
},
|
|
1015
1042
|
{
|
|
1016
1043
|
"name": "GraphType",
|
|
1017
1044
|
"kind": "TypeAliasDeclaration",
|
|
1018
1045
|
"signature": "export type GraphType = typeof GRAPH_TYPES[number];",
|
|
1019
|
-
"line":
|
|
1046
|
+
"line": 633
|
|
1020
1047
|
},
|
|
1021
1048
|
{
|
|
1022
1049
|
"name": "GraphValue",
|
|
1023
1050
|
"kind": "TypeAliasDeclaration",
|
|
1024
1051
|
"signature": "export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;",
|
|
1025
|
-
"line":
|
|
1052
|
+
"line": 634
|
|
1026
1053
|
},
|
|
1027
1054
|
{
|
|
1028
1055
|
"name": "GraphParameter",
|
|
1029
1056
|
"kind": "InterfaceDeclaration",
|
|
1030
1057
|
"signature": "export interface GraphParameter {\n name: string;\n type: GraphType;\n default: GraphValue;\n}",
|
|
1031
|
-
"line":
|
|
1058
|
+
"line": 635,
|
|
1032
1059
|
"fields": [
|
|
1033
1060
|
"name",
|
|
1034
1061
|
"type",
|
|
@@ -1039,31 +1066,31 @@
|
|
|
1039
1066
|
"name": "GRAPH_INPUT_TYPES",
|
|
1040
1067
|
"kind": "constant",
|
|
1041
1068
|
"signature": "GRAPH_INPUT_TYPES = {\n uv: \"vec2\", uv1: \"vec2\", positionWorld: \"vec3\", normalWorld: \"vec3\",\n viewDirectionWorld: \"vec3\", vertexColor: \"vec4\", index: \"float\",\n screenSize: \"vec2\", texelSize: \"vec2\",\n pixelCoord: \"vec2\", outputSize: \"vec2\",\n positionLocal: \"vec3\", normalLocal: \"vec3\", vertexIndex: \"float\", instanceIndex: \"float\",\n} as const",
|
|
1042
|
-
"line":
|
|
1069
|
+
"line": 640
|
|
1043
1070
|
},
|
|
1044
1071
|
{
|
|
1045
1072
|
"name": "GraphInputName",
|
|
1046
1073
|
"kind": "TypeAliasDeclaration",
|
|
1047
1074
|
"signature": "export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;",
|
|
1048
|
-
"line":
|
|
1075
|
+
"line": 647
|
|
1049
1076
|
},
|
|
1050
1077
|
{
|
|
1051
1078
|
"name": "GRAPH_OPERATIONS",
|
|
1052
1079
|
"kind": "constant",
|
|
1053
1080
|
"signature": "GRAPH_OPERATIONS = {\n unary: [\"sin\", \"cos\", \"abs\", \"floor\", \"ceil\", \"fract\", \"negate\", \"saturate\", \"normalize\", \"length\", \"safeSqrt\"] as const,\n binary: [\"add\", \"subtract\", \"multiply\", \"safeDivide\", \"min\", \"max\", \"dot\", \"cross\", \"step\", \"lessThan\", \"lessEqual\", \"greaterThan\", \"greaterEqual\", \"equal\", \"and\", \"or\"] as const,\n ternary: [\"mix\", \"clamp\", \"smoothstep\", \"select\"] as const,\n} as const",
|
|
1054
|
-
"line":
|
|
1081
|
+
"line": 648
|
|
1055
1082
|
},
|
|
1056
1083
|
{
|
|
1057
1084
|
"name": "GraphNode",
|
|
1058
1085
|
"kind": "TypeAliasDeclaration",
|
|
1059
1086
|
"signature": "export type GraphNode =\n | { id: string; op: \"float\"; value: number }\n | { id: string; op: \"bool\"; value: boolean }\n | { id: string; op: \"vec2\"; value: Vec2 }\n | { id: string; op: \"vec3\"; value: Vec3 }\n | { id: string; op: \"vec4\"; value: Vec4 }\n | { id: string; op: \"time\" }\n | { id: string; op: \"input\"; name: GraphInputName }\n | { id: string; op: \"parameter\"; name: string }\n | { id: string; op: typeof GRAPH_OPERATIONS.unary[number] | \"not\"; inputs: readonly [string] }\n | { id: string; op: typeof GRAPH_OPERATIONS.binary[number]; inputs: readonly [string, string] }\n | { id: string; op: typeof GRAPH_OPERATIONS.ternary[number]; inputs: readonly [string, string, string] }\n | { id: string; op: \"compose2\"; inputs: readonly [string, string] }\n | { id: string; op: \"compose3\"; inputs: readonly [string, string, string] }\n | { id: string; op: \"compose4\"; inputs: readonly [string, string, string, string] }\n | { id: string; op: \"swizzle\"; inputs: readonly [string]; components: string }\n | { id: string; op: \"sampleTexture\"; inputs: readonly [string]; texture: AssetDefinition | string }\n | { id: string; op: \"readBuffer\"; inputs: readonly [string]; buffer: string }\n | { id: string; op: \"sampleFrame\"; inputs: readonly [string]; channel: string }\n | { id: string; op: \"sampleHistory\"; inputs: readonly [string]; channel: string };",
|
|
1060
|
-
"line":
|
|
1087
|
+
"line": 653
|
|
1061
1088
|
},
|
|
1062
1089
|
{
|
|
1063
1090
|
"name": "Graph",
|
|
1064
1091
|
"kind": "InterfaceDeclaration",
|
|
1065
1092
|
"signature": "export interface Graph {\n nodes: readonly GraphNode[];\n output: string;\n parameters?: readonly GraphParameter[];\n}",
|
|
1066
|
-
"line":
|
|
1093
|
+
"line": 673,
|
|
1067
1094
|
"fields": [
|
|
1068
1095
|
"nodes",
|
|
1069
1096
|
"output",
|
|
@@ -1074,7 +1101,7 @@
|
|
|
1074
1101
|
"name": "MaterialGraphs",
|
|
1075
1102
|
"kind": "InterfaceDeclaration",
|
|
1076
1103
|
"signature": "export interface MaterialGraphs {\n baseColor?: Graph;\n emissive?: Graph;\n roughness?: Graph;\n metalness?: Graph;\n opacity?: Graph;\n /** Absolute, unsided world-space normal; engine applies material boundary orientation. */\n normalWorld?: Graph;\n}",
|
|
1077
|
-
"line":
|
|
1104
|
+
"line": 678,
|
|
1078
1105
|
"fields": [
|
|
1079
1106
|
"baseColor",
|
|
1080
1107
|
"emissive",
|
|
@@ -1088,7 +1115,7 @@
|
|
|
1088
1115
|
"name": "VertexGraphs",
|
|
1089
1116
|
"kind": "InterfaceDeclaration",
|
|
1090
1117
|
"signature": "export interface VertexGraphs {\n /** Absolute object-local position after built-in morph, skin and instance transforms. */\n position?: Graph;\n /** Unsided object-local normal in the same domain; zero keeps the normalized input normal. */\n normal?: Graph;\n}",
|
|
1091
|
-
"line":
|
|
1118
|
+
"line": 687,
|
|
1092
1119
|
"fields": [
|
|
1093
1120
|
"position",
|
|
1094
1121
|
"normal"
|
|
@@ -1098,7 +1125,7 @@
|
|
|
1098
1125
|
"name": "MaterialInput",
|
|
1099
1126
|
"kind": "InterfaceDeclaration",
|
|
1100
1127
|
"signature": "export interface MaterialInput {\n id: string;\n color?: string;\n roughness?: number;\n metalness?: number;\n texture?: AssetDefinition | string;\n graph?: Graph;\n graphs?: MaterialGraphs;\n vertex?: VertexGraphs;\n buffers?: readonly MaterialBufferInput[];\n textures?: readonly MaterialTextureInput[];\n emissive?: string;\n emissiveIntensity?: number;\n opacity?: number;\n alphaTest?: number;\n side?: \"front\" | \"back\" | \"double\";\n /** Closed-volume dielectric fraction; opacity remains independent stochastic coverage. */\n transmission?: number;\n ior?: number;\n /** Nontransmissive dielectric specular strength in [0,1]. Defaults to 1. */\n specularIntensity?: number;\n /** Nontransmissive dielectric specular color, a hex or named sRGB color. Defaults to white. */\n specularColor?: string;\n attenuationColor?: string;\n /** World-space distance for Beer absorption; omitted means no absorption. */\n attenuationDistance?: number;\n}",
|
|
1101
|
-
"line":
|
|
1128
|
+
"line": 693,
|
|
1102
1129
|
"fields": [
|
|
1103
1130
|
"id",
|
|
1104
1131
|
"color",
|
|
@@ -1127,7 +1154,7 @@
|
|
|
1127
1154
|
"name": "MaterialDefinition",
|
|
1128
1155
|
"kind": "InterfaceDeclaration",
|
|
1129
1156
|
"signature": "export interface MaterialDefinition extends MaterialInput {\n readonly kind: \"material\";\n}",
|
|
1130
|
-
"line":
|
|
1157
|
+
"line": 720,
|
|
1131
1158
|
"fields": [
|
|
1132
1159
|
"kind"
|
|
1133
1160
|
]
|
|
@@ -1136,7 +1163,7 @@
|
|
|
1136
1163
|
"name": "PostProcessInput",
|
|
1137
1164
|
"kind": "InterfaceDeclaration",
|
|
1138
1165
|
"signature": "export interface PostProcessInput {\n id: string;\n buffers?: readonly MaterialBufferInput[];\n textures?: readonly MaterialTextureInput[];\n /** Linear HDR vec4 output. Frame channels: scene.color, scene.normal, scene.depth, or an earlier pass ID. */\n graph: Graph;\n enabled?: boolean;\n}",
|
|
1139
|
-
"line":
|
|
1166
|
+
"line": 723,
|
|
1140
1167
|
"fields": [
|
|
1141
1168
|
"id",
|
|
1142
1169
|
"buffers",
|
|
@@ -1149,7 +1176,7 @@
|
|
|
1149
1176
|
"name": "PostProcessDefinition",
|
|
1150
1177
|
"kind": "InterfaceDeclaration",
|
|
1151
1178
|
"signature": "export interface PostProcessDefinition extends PostProcessInput {\n readonly kind: \"postprocess\";\n}",
|
|
1152
|
-
"line":
|
|
1179
|
+
"line": 731,
|
|
1153
1180
|
"fields": [
|
|
1154
1181
|
"kind"
|
|
1155
1182
|
]
|
|
@@ -1158,7 +1185,7 @@
|
|
|
1158
1185
|
"name": "ComputeInput",
|
|
1159
1186
|
"kind": "InterfaceDeclaration",
|
|
1160
1187
|
"signature": "export interface ComputeInput {\n id: string;\n graph: Graph;\n outputType: GraphType;\n count: number;\n workgroupSize?: number;\n buffers?: readonly { name: string; type: GraphType }[];\n textures?: readonly ComputeTextureBinding[];\n}",
|
|
1161
|
-
"line":
|
|
1188
|
+
"line": 734,
|
|
1162
1189
|
"fields": [
|
|
1163
1190
|
"id",
|
|
1164
1191
|
"graph",
|
|
@@ -1173,7 +1200,7 @@
|
|
|
1173
1200
|
"name": "ComputeDefinition",
|
|
1174
1201
|
"kind": "InterfaceDeclaration",
|
|
1175
1202
|
"signature": "export interface ComputeDefinition extends ComputeInput {\n readonly kind: \"compute\";\n}",
|
|
1176
|
-
"line":
|
|
1203
|
+
"line": 743,
|
|
1177
1204
|
"fields": [
|
|
1178
1205
|
"kind"
|
|
1179
1206
|
]
|
|
@@ -1182,7 +1209,7 @@
|
|
|
1182
1209
|
"name": "AssetInput",
|
|
1183
1210
|
"kind": "InterfaceDeclaration",
|
|
1184
1211
|
"signature": "export interface AssetInput {\n id: string;\n path: string;\n type: \"texture\" | \"binary\" | \"model\" | \"audio\";\n source?: string;\n license?: string;\n attribution?: string;\n /** Texture imports only; defaults to sRGB color. Data/normal/ORM textures use linear. */\n colorSpace?: \"srgb\" | \"linear\";\n}",
|
|
1185
|
-
"line":
|
|
1212
|
+
"line": 746,
|
|
1186
1213
|
"fields": [
|
|
1187
1214
|
"id",
|
|
1188
1215
|
"path",
|
|
@@ -1197,7 +1224,7 @@
|
|
|
1197
1224
|
"name": "AssetDefinition",
|
|
1198
1225
|
"kind": "InterfaceDeclaration",
|
|
1199
1226
|
"signature": "export interface AssetDefinition extends AssetInput {\n readonly kind: \"asset\";\n}",
|
|
1200
|
-
"line":
|
|
1227
|
+
"line": 756,
|
|
1201
1228
|
"fields": [
|
|
1202
1229
|
"kind"
|
|
1203
1230
|
]
|
|
@@ -1206,7 +1233,7 @@
|
|
|
1206
1233
|
"name": "MeshDefinition",
|
|
1207
1234
|
"kind": "InterfaceDeclaration",
|
|
1208
1235
|
"signature": "export interface MeshDefinition {\n geometry: Geometry;\n material: MaterialDefinition | string;\n castShadow?: boolean;\n receiveShadow?: boolean;\n}",
|
|
1209
|
-
"line":
|
|
1236
|
+
"line": 759,
|
|
1210
1237
|
"fields": [
|
|
1211
1238
|
"geometry",
|
|
1212
1239
|
"material",
|
|
@@ -1218,7 +1245,7 @@
|
|
|
1218
1245
|
"name": "LightDefinition",
|
|
1219
1246
|
"kind": "InterfaceDeclaration",
|
|
1220
1247
|
"signature": "export interface LightDefinition {\n kind: \"directional\" | \"point\";\n color?: string;\n intensity?: number;\n castShadow?: boolean;\n target?: Vec3;\n shadow?: {\n mapSize?: number;\n extent?: number;\n bias?: number;\n normalBias?: number;\n near?: number;\n far?: number;\n };\n}",
|
|
1221
|
-
"line":
|
|
1248
|
+
"line": 765,
|
|
1222
1249
|
"fields": [
|
|
1223
1250
|
"kind",
|
|
1224
1251
|
"color",
|
|
@@ -1232,7 +1259,7 @@
|
|
|
1232
1259
|
"name": "EntityInput",
|
|
1233
1260
|
"kind": "InterfaceDeclaration",
|
|
1234
1261
|
"signature": "export interface EntityInput {\n id: string;\n prefab?: PrefabDefinition | string;\n parent?: string;\n transform?: TransformPatch;\n mesh?: MeshDefinition;\n light?: LightDefinition;\n model?: ModelDefinition;\n rigidBody?: RigidBodyDefinition;\n character?: CharacterDefinition;\n components?: readonly ComponentInstance[];\n}",
|
|
1235
|
-
"line":
|
|
1262
|
+
"line": 780,
|
|
1236
1263
|
"fields": [
|
|
1237
1264
|
"id",
|
|
1238
1265
|
"prefab",
|
|
@@ -1250,7 +1277,7 @@
|
|
|
1250
1277
|
"name": "PrefabInput",
|
|
1251
1278
|
"kind": "InterfaceDeclaration",
|
|
1252
1279
|
"signature": "export interface PrefabInput extends Omit<EntityInput, \"prefab\" | \"parent\"> {\n extends?: PrefabDefinition | string;\n}",
|
|
1253
|
-
"line":
|
|
1280
|
+
"line": 792,
|
|
1254
1281
|
"fields": [
|
|
1255
1282
|
"extends"
|
|
1256
1283
|
]
|
|
@@ -1259,7 +1286,7 @@
|
|
|
1259
1286
|
"name": "PrefabDefinition",
|
|
1260
1287
|
"kind": "InterfaceDeclaration",
|
|
1261
1288
|
"signature": "export interface PrefabDefinition extends PrefabInput {\n readonly kind: \"prefab\";\n}",
|
|
1262
|
-
"line":
|
|
1289
|
+
"line": 795,
|
|
1263
1290
|
"fields": [
|
|
1264
1291
|
"kind"
|
|
1265
1292
|
]
|
|
@@ -1268,7 +1295,7 @@
|
|
|
1268
1295
|
"name": "SceneInput",
|
|
1269
1296
|
"kind": "InterfaceDeclaration",
|
|
1270
1297
|
"signature": "export interface SceneInput {\n id: string;\n camera?: {\n position: Vec3;\n target: Vec3;\n fov?: number;\n near?: number;\n far?: number;\n };\n environment?: {\n background?: string;\n ambientIntensity?: number;\n lighting?: \"none\" | \"studio\";\n };\n follow?: {\n entity: string;\n distance?: number;\n height?: number;\n lookHeight?: number;\n yaw?: number;\n smoothing?: number;\n };\n gravity?: Vec3;\n entities: readonly EntityInput[];\n}",
|
|
1271
|
-
"line":
|
|
1298
|
+
"line": 798,
|
|
1272
1299
|
"fields": [
|
|
1273
1300
|
"id",
|
|
1274
1301
|
"camera",
|
|
@@ -1282,7 +1309,7 @@
|
|
|
1282
1309
|
"name": "SceneDefinition",
|
|
1283
1310
|
"kind": "InterfaceDeclaration",
|
|
1284
1311
|
"signature": "export interface SceneDefinition extends SceneInput {\n readonly kind: \"scene\";\n}",
|
|
1285
|
-
"line":
|
|
1312
|
+
"line": 823,
|
|
1286
1313
|
"fields": [
|
|
1287
1314
|
"kind"
|
|
1288
1315
|
]
|
|
@@ -1291,7 +1318,7 @@
|
|
|
1291
1318
|
"name": "SystemInput",
|
|
1292
1319
|
"kind": "InterfaceDeclaration",
|
|
1293
1320
|
"signature": "export interface SystemInput {\n id: string;\n phase?: SystemPhase;\n before?: readonly string[];\n after?: readonly string[];\n reads?: readonly string[];\n writes?: readonly string[];\n structural?: boolean;\n run: (engine: SystemContext, dt: number) => void;\n}",
|
|
1294
|
-
"line":
|
|
1321
|
+
"line": 826,
|
|
1295
1322
|
"fields": [
|
|
1296
1323
|
"id",
|
|
1297
1324
|
"phase",
|
|
@@ -1307,7 +1334,7 @@
|
|
|
1307
1334
|
"name": "SystemDefinition",
|
|
1308
1335
|
"kind": "InterfaceDeclaration",
|
|
1309
1336
|
"signature": "export interface SystemDefinition extends SystemInput {\n readonly kind: \"system\";\n}",
|
|
1310
|
-
"line":
|
|
1337
|
+
"line": 836,
|
|
1311
1338
|
"fields": [
|
|
1312
1339
|
"kind"
|
|
1313
1340
|
]
|
|
@@ -1316,7 +1343,7 @@
|
|
|
1316
1343
|
"name": "GameInput",
|
|
1317
1344
|
"kind": "InterfaceDeclaration",
|
|
1318
1345
|
"signature": "export interface GameInput {\n id: string;\n scene: SceneDefinition;\n systems?: readonly SystemDefinition[];\n components?: readonly ComponentDefinition[];\n prefabs?: readonly PrefabDefinition[];\n materials?: readonly MaterialDefinition[];\n computes?: readonly ComputeDefinition[];\n computeBuffers?: readonly ComputeBufferInput[];\n computeTextures?: readonly ComputeTextureInput[];\n assets?: readonly AssetDefinition[];\n scenes?: readonly SceneDefinition[];\n input?: Readonly<Record<string, readonly string[]>>;\n ui?: readonly UIElementDefinition[];\n sounds?: readonly SoundDefinition[];\n audioBuses?: readonly AudioBusDefinition[];\n render?: Partial<RenderSettings>;\n postProcesses?: readonly PostProcessDefinition[];\n}",
|
|
1319
|
-
"line":
|
|
1346
|
+
"line": 839,
|
|
1320
1347
|
"fields": [
|
|
1321
1348
|
"id",
|
|
1322
1349
|
"scene",
|
|
@@ -1341,7 +1368,7 @@
|
|
|
1341
1368
|
"name": "GameDefinition",
|
|
1342
1369
|
"kind": "InterfaceDeclaration",
|
|
1343
1370
|
"signature": "export interface GameDefinition extends GameInput {\n readonly kind: \"game\";\n}",
|
|
1344
|
-
"line":
|
|
1371
|
+
"line": 858,
|
|
1345
1372
|
"fields": [
|
|
1346
1373
|
"kind"
|
|
1347
1374
|
]
|
|
@@ -1350,7 +1377,7 @@
|
|
|
1350
1377
|
"name": "GameInstance",
|
|
1351
1378
|
"kind": "InterfaceDeclaration",
|
|
1352
1379
|
"signature": "export interface GameInstance {\n update(dt: number): void;\n dispose(): void;\n}",
|
|
1353
|
-
"line":
|
|
1380
|
+
"line": 861,
|
|
1354
1381
|
"fields": [
|
|
1355
1382
|
"update",
|
|
1356
1383
|
"dispose"
|
|
@@ -1360,61 +1387,61 @@
|
|
|
1360
1387
|
"name": "defineComponent",
|
|
1361
1388
|
"kind": "FunctionDeclaration",
|
|
1362
1389
|
"signature": "export function defineComponent<const S extends ComponentSchema>(input: {\n id: string;\n schema: S;\n}): ComponentDefinition<S>;",
|
|
1363
|
-
"line":
|
|
1390
|
+
"line": 865
|
|
1364
1391
|
},
|
|
1365
1392
|
{
|
|
1366
1393
|
"name": "defineMaterial",
|
|
1367
1394
|
"kind": "FunctionDeclaration",
|
|
1368
1395
|
"signature": "export function defineMaterial(input: MaterialInput): MaterialDefinition;",
|
|
1369
|
-
"line":
|
|
1396
|
+
"line": 871
|
|
1370
1397
|
},
|
|
1371
1398
|
{
|
|
1372
1399
|
"name": "definePostProcess",
|
|
1373
1400
|
"kind": "FunctionDeclaration",
|
|
1374
1401
|
"signature": "export function definePostProcess(input: PostProcessInput): PostProcessDefinition;",
|
|
1375
|
-
"line":
|
|
1402
|
+
"line": 874
|
|
1376
1403
|
},
|
|
1377
1404
|
{
|
|
1378
1405
|
"name": "defineCompute",
|
|
1379
1406
|
"kind": "FunctionDeclaration",
|
|
1380
1407
|
"signature": "export function defineCompute(input: ComputeInput): ComputeDefinition;",
|
|
1381
|
-
"line":
|
|
1408
|
+
"line": 877
|
|
1382
1409
|
},
|
|
1383
1410
|
{
|
|
1384
1411
|
"name": "defineAsset",
|
|
1385
1412
|
"kind": "FunctionDeclaration",
|
|
1386
1413
|
"signature": "export function defineAsset(input: AssetInput): AssetDefinition;",
|
|
1387
|
-
"line":
|
|
1414
|
+
"line": 880
|
|
1388
1415
|
},
|
|
1389
1416
|
{
|
|
1390
1417
|
"name": "definePrefab",
|
|
1391
1418
|
"kind": "FunctionDeclaration",
|
|
1392
1419
|
"signature": "export function definePrefab(input: PrefabInput): PrefabDefinition;",
|
|
1393
|
-
"line":
|
|
1420
|
+
"line": 883
|
|
1394
1421
|
},
|
|
1395
1422
|
{
|
|
1396
1423
|
"name": "defineScene",
|
|
1397
1424
|
"kind": "FunctionDeclaration",
|
|
1398
1425
|
"signature": "export function defineScene(input: SceneInput): SceneDefinition;",
|
|
1399
|
-
"line":
|
|
1426
|
+
"line": 886
|
|
1400
1427
|
},
|
|
1401
1428
|
{
|
|
1402
1429
|
"name": "defineSystem",
|
|
1403
1430
|
"kind": "FunctionDeclaration",
|
|
1404
1431
|
"signature": "export function defineSystem(input: SystemInput): SystemDefinition;",
|
|
1405
|
-
"line":
|
|
1432
|
+
"line": 889
|
|
1406
1433
|
},
|
|
1407
1434
|
{
|
|
1408
1435
|
"name": "defineGame",
|
|
1409
1436
|
"kind": "FunctionDeclaration",
|
|
1410
1437
|
"signature": "export function defineGame(input: GameInput): GameDefinition;",
|
|
1411
|
-
"line":
|
|
1438
|
+
"line": 892
|
|
1412
1439
|
},
|
|
1413
1440
|
{
|
|
1414
1441
|
"name": "instantiateGame",
|
|
1415
1442
|
"kind": "FunctionDeclaration",
|
|
1416
1443
|
"signature": "export function instantiateGame(\n game: GameDefinition,\n engine: EngineFacade,\n): GameInstance;",
|
|
1417
|
-
"line":
|
|
1444
|
+
"line": 896
|
|
1418
1445
|
}
|
|
1419
1446
|
],
|
|
1420
1447
|
"installedDeclarations": "lib/sdk/index.d.ts",
|