@forgeax/engine-vfx-render 0.1.28 → 0.1.29

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 (40) hide show
  1. package/README.md +55 -10
  2. package/dist/__tests__/persistent-ticks.integration.test.d.ts +2 -0
  3. package/dist/__tests__/persistent-ticks.integration.test.d.ts.map +1 -0
  4. package/dist/feature/event-resources.d.ts +10 -3
  5. package/dist/feature/event-resources.d.ts.map +1 -1
  6. package/dist/feature/gpu-particle-feature.d.ts +18 -5
  7. package/dist/feature/gpu-particle-feature.d.ts.map +1 -1
  8. package/dist/feature/particle-resources.d.ts +43 -6
  9. package/dist/feature/particle-resources.d.ts.map +1 -1
  10. package/dist/host/data-interface-providers.d.ts +4 -1
  11. package/dist/host/data-interface-providers.d.ts.map +1 -1
  12. package/dist/host/vfx-runtime-host.d.ts +21 -2
  13. package/dist/host/vfx-runtime-host.d.ts.map +1 -1
  14. package/dist/index.d.ts +4 -3
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.mjs +1027 -307
  17. package/dist/index.mjs.map +1 -1
  18. package/package.json +11 -9
  19. package/src/__tests__/billboard-advanced.integration.test.ts +1 -1
  20. package/src/__tests__/data-interface-providers.unit.test.ts +4 -0
  21. package/src/__tests__/data-interface-public-api.test-d.ts +1 -0
  22. package/src/__tests__/gpu-host.integration.test.ts +1471 -59
  23. package/src/__tests__/particle-resources.unit.test.ts +75 -0
  24. package/src/__tests__/persistent-ticks.integration.test.ts +162 -0
  25. package/src/__tests__/render-vocabulary-owner.test-d.ts +7 -7
  26. package/src/feature/event-resources.ts +18 -4
  27. package/src/feature/gpu-particle-feature.ts +1153 -376
  28. package/src/feature/particle-resources.ts +223 -11
  29. package/src/host/data-interface-providers.ts +19 -0
  30. package/src/host/vfx-runtime-host.ts +82 -2
  31. package/src/index.ts +8 -0
  32. package/src/shaders/beam-inputs.wgsl +40 -0
  33. package/src/shaders/beam.wgsl +4 -3
  34. package/src/shaders/billboard-inputs.wgsl +85 -0
  35. package/src/shaders/mesh-inputs.wgsl +95 -0
  36. package/src/shaders/mesh-shadow.wgsl +18 -0
  37. package/src/shaders/mesh.wgsl +64 -40
  38. package/src/shaders/ribbon-inputs.wgsl +39 -0
  39. package/src/shaders/trail-inputs.wgsl +45 -0
  40. package/src/shaders/trail.wgsl +9 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgeax/engine-vfx-render",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -22,15 +22,17 @@
22
22
  "LICENSE"
23
23
  ],
24
24
  "dependencies": {
25
- "@forgeax/engine-assets-runtime": "0.1.28",
26
- "@forgeax/engine-ecs": "0.1.28",
27
- "@forgeax/engine-math": "0.1.28",
28
- "@forgeax/engine-render": "0.1.28",
29
- "@forgeax/engine-scene": "0.1.28",
30
- "@forgeax/engine-types": "0.1.28",
31
- "@forgeax/engine-vfx": "0.1.28"
25
+ "@forgeax/engine-assets-runtime": "0.1.29",
26
+ "@forgeax/engine-ecs": "0.1.29",
27
+ "@forgeax/engine-math": "0.1.29",
28
+ "@forgeax/engine-render": "0.1.29",
29
+ "@forgeax/engine-scene": "0.1.29",
30
+ "@forgeax/engine-types": "0.1.29",
31
+ "@forgeax/engine-vfx": "0.1.29"
32
+ },
33
+ "devDependencies": {
34
+ "@forgeax/engine-vfx-compiler": "0.1.29"
32
35
  },
33
- "devDependencies": {},
34
36
  "forgeax": {
35
37
  "metrics": {
36
38
  "bundle-size": {
@@ -7,7 +7,7 @@ const renderer = {
7
7
  textureSheet: { columns: 4, rows: 2, frameRate: 12, frameCount: 8 },
8
8
  pivot: [0.2, 0.8],
9
9
  softParticle: { fadeDistance: 0.5 },
10
- sorting: 'back-to-front',
10
+ sorting: 'view-depth',
11
11
  } as const;
12
12
 
13
13
  describe('billboard advanced executable inputs', () => {
@@ -17,6 +17,10 @@ function provider(token: VfxDataInterfaceProvider['token']): VfxDataInterfacePro
17
17
  kind: token.slice(4) as VfxDataInterfaceProvider['kind'],
18
18
  bindingType: token === 'vfx:scene-depth' ? 'sampled-depth' : 'uniform',
19
19
  generation,
20
+ resource:
21
+ token === 'vfx:scene-depth'
22
+ ? { kind: 'texture-view', value: {} }
23
+ : { kind: 'buffer', value: {}, size: 16, usage: 'uniform' },
20
24
  }),
21
25
  };
22
26
  }
@@ -51,6 +51,7 @@ describe('VFX Data Interface public types', () => {
51
51
  kind: 'scene-depth',
52
52
  bindingType: 'sampled-depth',
53
53
  generation: 1,
54
+ resource: { kind: 'texture-view', value: {} },
54
55
  }),
55
56
  };
56
57
  expectTypeOf(invalid).toMatchTypeOf<VfxDataInterfaceProvider>();