@blackbelt-technology/pi-dashboard-deck3d 0.0.0-stage → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pi/skills/deck3d/SKILL.md +227 -0
- package/.pi/skills/deck3d/examples/deck.json +388 -0
- package/.pi/skills/deck3d/examples/fixture.md +18 -0
- package/.pi/skills/deck3d/examples/snapshot-after.png +0 -0
- package/.pi/skills/deck3d/examples/snapshot-before.png +0 -0
- package/.pi/skills/deck3d/reference/effects.agent.md +78 -0
- package/.pi/skills/deck3d/reference/effects.md +1217 -0
- package/.pi/skills/deck3d/reference/ir-fields.agent.md +30 -0
- package/.pi/skills/deck3d/reference/ir-fields.md +246 -0
- package/README.md +177 -2
- package/assets/LICENSE-Poppins.txt +99 -0
- package/assets/Poppins-Bold.ttf +0 -0
- package/assets/props/LICENSES.txt +4 -0
- package/assets/props/brain.glb +0 -0
- package/assets/props/cloud.glb +0 -0
- package/assets/props/cube.glb +0 -0
- package/assets/props/database.glb +0 -0
- package/assets/props/laptop.glb +0 -0
- package/assets/props/manifest.json +119 -0
- package/assets/props/robot.glb +0 -0
- package/assets/props/server.glb +0 -0
- package/assets/props/shield.glb +0 -0
- package/bin/deck3d +49 -0
- package/dist/cli.js +10228 -0
- package/dist/harvest/harness.js +185718 -0
- package/dist/runtime.js +64597 -0
- package/fixtures/business-2031/build-deck.mjs +60 -0
- package/fixtures/business-2031/build-overrides.mjs +154 -0
- package/fixtures/business-2031/deck.json +4220 -0
- package/fixtures/business-2031/deck.md +470 -0
- package/fixtures/business-2031/fx/closing-mark.js +43 -0
- package/fixtures/business-2031/fx/closing-mark.meta.json +26 -0
- package/fixtures/business-2031/overrides.json +903 -0
- package/fixtures/harvest.md +23 -0
- package/fixtures/strategy-lab.json +891 -0
- package/fixtures/strategy-lab.md +85 -0
- package/package.json +80 -4
- package/scripts/build-cli.mjs +29 -0
- package/scripts/build-harvest.ts +8 -0
- package/scripts/build-runtime.mjs +22 -0
- package/scripts/gen-effects.ts +14 -0
- package/scripts/gen-ir-fields.ts +34 -0
- package/src/check/index.ts +315 -0
- package/src/check/rules.ts +393 -0
- package/src/cli-io.ts +23 -0
- package/src/cli.ts +823 -0
- package/src/fx/accent-cycle.meta.json +26 -0
- package/src/fx/accent-cycle.ts +8 -0
- package/src/fx/agent-depth.meta.json +42 -0
- package/src/fx/agent-depth.ts +62 -0
- package/src/fx/ascii.meta.json +35 -0
- package/src/fx/ascii.ts +4 -0
- package/src/fx/aurora.meta.json +26 -0
- package/src/fx/aurora.ts +18 -0
- package/src/fx/billboards.meta.json +34 -0
- package/src/fx/billboards.ts +67 -0
- package/src/fx/bloom.meta.json +26 -0
- package/src/fx/bloom.ts +4 -0
- package/src/fx/camera-drift.meta.json +26 -0
- package/src/fx/camera-drift.ts +8 -0
- package/src/fx/capital-flows.meta.json +30 -0
- package/src/fx/capital-flows.ts +64 -0
- package/src/fx/catalogue.ts +89 -0
- package/src/fx/chromatic-aberration.meta.json +32 -0
- package/src/fx/chromatic-aberration.ts +4 -0
- package/src/fx/city-grid.meta.json +37 -0
- package/src/fx/city-grid.ts +51 -0
- package/src/fx/clipped-solids.meta.json +49 -0
- package/src/fx/clipped-solids.ts +171 -0
- package/src/fx/cohort-grid.meta.json +48 -0
- package/src/fx/cohort-grid.ts +63 -0
- package/src/fx/compose.ts +114 -0
- package/src/fx/constellation.meta.json +51 -0
- package/src/fx/constellation.ts +103 -0
- package/src/fx/curve-flow.meta.json +40 -0
- package/src/fx/curve-flow.ts +63 -0
- package/src/fx/dashed-flow.meta.json +27 -0
- package/src/fx/dashed-flow.ts +8 -0
- package/src/fx/data-columns.meta.json +30 -0
- package/src/fx/data-columns.ts +18 -0
- package/src/fx/defaults.ts +92 -0
- package/src/fx/depth-of-field.meta.json +40 -0
- package/src/fx/depth-of-field.ts +4 -0
- package/src/fx/dolly.meta.json +26 -0
- package/src/fx/dolly.ts +4 -0
- package/src/fx/dot-screen.meta.json +35 -0
- package/src/fx/dot-screen.ts +4 -0
- package/src/fx/dynamic-instances.meta.json +40 -0
- package/src/fx/dynamic-instances.ts +57 -0
- package/src/fx/emissive.meta.json +26 -0
- package/src/fx/emissive.ts +8 -0
- package/src/fx/extruded-shapes.meta.json +62 -0
- package/src/fx/extruded-shapes.ts +133 -0
- package/src/fx/fab-wafer.meta.json +42 -0
- package/src/fx/fab-wafer.ts +72 -0
- package/src/fx/fade.meta.json +26 -0
- package/src/fx/fade.ts +4 -0
- package/src/fx/film.meta.json +26 -0
- package/src/fx/film.ts +4 -0
- package/src/fx/float.meta.json +26 -0
- package/src/fx/float.ts +8 -0
- package/src/fx/flythrough.meta.json +26 -0
- package/src/fx/flythrough.ts +4 -0
- package/src/fx/fog.meta.json +26 -0
- package/src/fx/fog.ts +8 -0
- package/src/fx/geo-fragments.meta.json +48 -0
- package/src/fx/geo-fragments.ts +59 -0
- package/src/fx/glass.meta.json +26 -0
- package/src/fx/glass.ts +8 -0
- package/src/fx/globe-arcs.meta.json +36 -0
- package/src/fx/globe-arcs.ts +67 -0
- package/src/fx/glow-tube.meta.json +26 -0
- package/src/fx/glow-tube.ts +8 -0
- package/src/fx/glyph-rain.meta.json +30 -0
- package/src/fx/glyph-rain.ts +18 -0
- package/src/fx/god-rays.meta.json +40 -0
- package/src/fx/god-rays.ts +4 -0
- package/src/fx/grid-horizon.meta.json +30 -0
- package/src/fx/grid-horizon.ts +18 -0
- package/src/fx/hex-grid.meta.json +29 -0
- package/src/fx/hex-grid.ts +18 -0
- package/src/fx/holo-fresnel.meta.json +26 -0
- package/src/fx/holo-fresnel.ts +8 -0
- package/src/fx/horizon-gates.meta.json +36 -0
- package/src/fx/horizon-gates.ts +60 -0
- package/src/fx/index.ts +258 -0
- package/src/fx/iridescent.meta.json +26 -0
- package/src/fx/iridescent.ts +8 -0
- package/src/fx/iris.meta.json +26 -0
- package/src/fx/iris.ts +4 -0
- package/src/fx/lightformers.meta.json +26 -0
- package/src/fx/lightformers.ts +8 -0
- package/src/fx/local.ts +200 -0
- package/src/fx/market-tape.meta.json +53 -0
- package/src/fx/market-tape.ts +97 -0
- package/src/fx/matcap.meta.json +26 -0
- package/src/fx/matcap.ts +8 -0
- package/src/fx/meta.schema.json +49 -0
- package/src/fx/metal.meta.json +26 -0
- package/src/fx/metal.ts +8 -0
- package/src/fx/mirror-floor.meta.json +26 -0
- package/src/fx/mirror-floor.ts +8 -0
- package/src/fx/neural-mesh.meta.json +54 -0
- package/src/fx/neural-mesh.ts +110 -0
- package/src/fx/orbit-agents.meta.json +36 -0
- package/src/fx/orbit-agents.ts +63 -0
- package/src/fx/orbit.meta.json +27 -0
- package/src/fx/orbit.ts +8 -0
- package/src/fx/outline.meta.json +43 -0
- package/src/fx/outline.ts +4 -0
- package/src/fx/paper-stack.meta.json +36 -0
- package/src/fx/paper-stack.ts +61 -0
- package/src/fx/particle-stream.meta.json +27 -0
- package/src/fx/particle-stream.ts +8 -0
- package/src/fx/particles.meta.json +26 -0
- package/src/fx/particles.ts +8 -0
- package/src/fx/pixelate.meta.json +28 -0
- package/src/fx/pixelate.ts +4 -0
- package/src/fx/points-on-geometry.meta.json +61 -0
- package/src/fx/points-on-geometry.ts +71 -0
- package/src/fx/proof-gate.meta.json +30 -0
- package/src/fx/proof-gate.ts +67 -0
- package/src/fx/rings.meta.json +27 -0
- package/src/fx/rings.ts +8 -0
- package/src/fx/room-ibl.meta.json +26 -0
- package/src/fx/room-ibl.ts +8 -0
- package/src/fx/sao.meta.json +32 -0
- package/src/fx/sao.ts +4 -0
- package/src/fx/scaffold.ts +172 -0
- package/src/fx/scatter.meta.json +49 -0
- package/src/fx/scatter.ts +74 -0
- package/src/fx/selective-bloom.meta.json +36 -0
- package/src/fx/selective-bloom.ts +4 -0
- package/src/fx/server-racks.meta.json +36 -0
- package/src/fx/server-racks.ts +54 -0
- package/src/fx/shader-particles.meta.json +46 -0
- package/src/fx/shader-particles.ts +75 -0
- package/src/fx/signal-pulse.meta.json +27 -0
- package/src/fx/signal-pulse.ts +8 -0
- package/src/fx/smaa.meta.json +19 -0
- package/src/fx/smaa.ts +4 -0
- package/src/fx/sobel.meta.json +24 -0
- package/src/fx/sobel.ts +4 -0
- package/src/fx/soft-shadows.meta.json +26 -0
- package/src/fx/soft-shadows.ts +8 -0
- package/src/fx/sprites.meta.json +40 -0
- package/src/fx/sprites.ts +57 -0
- package/src/fx/stagger-reveal.meta.json +26 -0
- package/src/fx/stagger-reveal.ts +8 -0
- package/src/fx/starfield.meta.json +32 -0
- package/src/fx/starfield.ts +18 -0
- package/src/fx/swarm.meta.json +27 -0
- package/src/fx/swarm.ts +8 -0
- package/src/fx/tessellate.meta.json +39 -0
- package/src/fx/tessellate.ts +79 -0
- package/src/fx/tokens.meta.json +27 -0
- package/src/fx/tokens.ts +8 -0
- package/src/fx/trail.meta.json +27 -0
- package/src/fx/trail.ts +8 -0
- package/src/fx/trust-ledger.meta.json +30 -0
- package/src/fx/trust-ledger.ts +47 -0
- package/src/fx/types.ts +83 -0
- package/src/fx/util.ts +108 -0
- package/src/fx/vault-glyphs.meta.json +37 -0
- package/src/fx/vault-glyphs.ts +55 -0
- package/src/fx/video-screen.meta.json +57 -0
- package/src/fx/video-screen.ts +99 -0
- package/src/fx/vignette.meta.json +32 -0
- package/src/fx/vignette.ts +4 -0
- package/src/fx/volume-cloud.meta.json +58 -0
- package/src/fx/volume-cloud.ts +87 -0
- package/src/fx/volume-perlin.meta.json +46 -0
- package/src/fx/volume-perlin.ts +82 -0
- package/src/fx/volumetric-spot.meta.json +26 -0
- package/src/fx/volumetric-spot.ts +8 -0
- package/src/fx/wireframe-overlay.meta.json +27 -0
- package/src/fx/wireframe-overlay.ts +8 -0
- package/src/ir/defaults.ts +62 -0
- package/src/ir/field-reference.ts +96 -0
- package/src/ir/hash.ts +34 -0
- package/src/ir/ids.ts +65 -0
- package/src/ir/merge.ts +155 -0
- package/src/ir/schema.json +1211 -0
- package/src/ir/types.ts +333 -0
- package/src/ir/validate.ts +196 -0
- package/src/parse/derive.ts +205 -0
- package/src/parse/harvest/bundle.ts +56 -0
- package/src/parse/harvest/harness.html +22 -0
- package/src/parse/harvest/harness.ts +191 -0
- package/src/parse/harvest/index.ts +169 -0
- package/src/parse/harvest/shapes.ts +75 -0
- package/src/parse/markdown.ts +215 -0
- package/src/props/embed.ts +92 -0
- package/src/props/fetch.ts +97 -0
- package/src/props/generate.ts +152 -0
- package/src/props/key.ts +13 -0
- package/src/props/search.ts +180 -0
- package/src/render/embed-video.ts +80 -0
- package/src/render/font.ts +86 -0
- package/src/render/index.ts +149 -0
- package/src/render/template.html +87 -0
- package/src/runtime/backgrounds.ts +146 -0
- package/src/runtime/builders.ts +808 -0
- package/src/runtime/camera.ts +73 -0
- package/src/runtime/hud.ts +887 -0
- package/src/runtime/index.ts +1168 -0
- package/src/runtime/local-fx.ts +151 -0
- package/src/runtime/materials.ts +136 -0
- package/src/runtime/measure.ts +73 -0
- package/src/runtime/node-geometry.ts +26 -0
- package/src/runtime/palette.ts +111 -0
- package/src/runtime/post.ts +649 -0
- package/src/runtime/props.ts +292 -0
- package/src/runtime/quality.ts +20 -0
- package/src/runtime/rng.ts +8 -0
- package/src/runtime/scene.ts +644 -0
- package/src/runtime/text.ts +174 -0
- package/src/runtime/types.ts +118 -0
- package/src/serve/index.ts +376 -0
- package/src/util/paths.ts +35 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "glow-tube",
|
|
3
|
+
"kind": "edge",
|
|
4
|
+
"tags": {
|
|
5
|
+
"mood": [
|
|
6
|
+
"neon",
|
|
7
|
+
"dramatic"
|
|
8
|
+
],
|
|
9
|
+
"content": [
|
|
10
|
+
"flow"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"cost": 2,
|
|
14
|
+
"modes": "both",
|
|
15
|
+
"params": {
|
|
16
|
+
"intensity": {
|
|
17
|
+
"type": "number",
|
|
18
|
+
"default": 1,
|
|
19
|
+
"minimum": 0,
|
|
20
|
+
"maximum": 2
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"conflicts": [],
|
|
24
|
+
"source": "https://threejs.org/examples/",
|
|
25
|
+
"licence": "MIT"
|
|
26
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FxContext, FxFactory, FxHandle, FxParams } from "./types.js";
|
|
2
|
+
|
|
3
|
+
/** Edge style decorator; the flowchart builder applies it to edge tubes. */
|
|
4
|
+
export const create: FxFactory = (ctx: FxContext, params: FxParams): FxHandle => {
|
|
5
|
+
const group = new ctx.THREE.Group();
|
|
6
|
+
void params;
|
|
7
|
+
return { object: group, tick: () => {}, dispose: () => {} };
|
|
8
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "glyph-rain",
|
|
3
|
+
"kind": "background",
|
|
4
|
+
"tags": {
|
|
5
|
+
"mood": [
|
|
6
|
+
"technical",
|
|
7
|
+
"cyber"
|
|
8
|
+
],
|
|
9
|
+
"content": [
|
|
10
|
+
"code",
|
|
11
|
+
"security"
|
|
12
|
+
],
|
|
13
|
+
"topic": [
|
|
14
|
+
"security"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"cost": 3,
|
|
18
|
+
"modes": "dark",
|
|
19
|
+
"params": {
|
|
20
|
+
"speed": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"default": 1,
|
|
23
|
+
"minimum": 0,
|
|
24
|
+
"maximum": 3
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"conflicts": [],
|
|
28
|
+
"source": "https://threejs.org/examples/",
|
|
29
|
+
"licence": "MIT"
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { makeRng } from "../runtime/rng.js";
|
|
2
|
+
import type { FxContext, FxFactory, FxHandle, FxParams } from "./types.js";
|
|
3
|
+
|
|
4
|
+
/** Permissive port of a three.js example (see the card's source). */
|
|
5
|
+
export const create: FxFactory = (ctx: FxContext, params: FxParams): FxHandle => {
|
|
6
|
+
const { THREE, palette } = ctx;
|
|
7
|
+
const n = Math.max(32, Math.round(ctx.quality.particles / 3));
|
|
8
|
+
const rnd = makeRng(70);
|
|
9
|
+
const positions = new Float32Array(n * 3);
|
|
10
|
+
for (let i = 0; i < n * 3; i++) positions[i] = (rnd() - 0.5) * 30;
|
|
11
|
+
const geo = new THREE.BufferGeometry();
|
|
12
|
+
geo.setAttribute("position", new THREE.BufferAttribute(positions, 3));
|
|
13
|
+
const points = new THREE.Points(geo, new THREE.PointsMaterial({ color: palette.second, size: 0.08, transparent: true, opacity: 0.8 }));
|
|
14
|
+
const group = new THREE.Group();
|
|
15
|
+
group.add(points);
|
|
16
|
+
const speed = typeof params.speed === "number" ? params.speed : 0.2;
|
|
17
|
+
return { object: group, tick: (t) => { group.rotation.y = t * speed * 0.1; }, dispose: () => geo.dispose() };
|
|
18
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "god-rays",
|
|
3
|
+
"kind": "post",
|
|
4
|
+
"tags": {
|
|
5
|
+
"mood": [
|
|
6
|
+
"dramatic",
|
|
7
|
+
"premium"
|
|
8
|
+
],
|
|
9
|
+
"content": [
|
|
10
|
+
"highlight"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"cost": 3,
|
|
14
|
+
"modes": "dark",
|
|
15
|
+
"params": {
|
|
16
|
+
"intensity": {
|
|
17
|
+
"type": "number",
|
|
18
|
+
"default": 1,
|
|
19
|
+
"minimum": 0,
|
|
20
|
+
"maximum": 3
|
|
21
|
+
},
|
|
22
|
+
"density": {
|
|
23
|
+
"type": "number",
|
|
24
|
+
"default": 0.6,
|
|
25
|
+
"minimum": 0.1,
|
|
26
|
+
"maximum": 1.5
|
|
27
|
+
},
|
|
28
|
+
"threshold": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"default": 0.55,
|
|
31
|
+
"minimum": 0,
|
|
32
|
+
"maximum": 1
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"conflicts": [
|
|
36
|
+
"depth-of-field"
|
|
37
|
+
],
|
|
38
|
+
"source": "https://github.com/pmndrs/postprocessing",
|
|
39
|
+
"licence": "Zlib"
|
|
40
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "grid-horizon",
|
|
3
|
+
"kind": "background",
|
|
4
|
+
"tags": {
|
|
5
|
+
"mood": [
|
|
6
|
+
"technical",
|
|
7
|
+
"retro"
|
|
8
|
+
],
|
|
9
|
+
"content": [
|
|
10
|
+
"infrastructure",
|
|
11
|
+
"network"
|
|
12
|
+
],
|
|
13
|
+
"topic": [
|
|
14
|
+
"timeline"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"cost": 2,
|
|
18
|
+
"modes": "both",
|
|
19
|
+
"params": {
|
|
20
|
+
"spacing": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"default": 1,
|
|
23
|
+
"minimum": 0.2,
|
|
24
|
+
"maximum": 4
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"conflicts": [],
|
|
28
|
+
"source": "https://threejs.org/examples/",
|
|
29
|
+
"licence": "MIT"
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { makeRng } from "../runtime/rng.js";
|
|
2
|
+
import type { FxContext, FxFactory, FxHandle, FxParams } from "./types.js";
|
|
3
|
+
|
|
4
|
+
/** Permissive port of a three.js example (see the card's source). */
|
|
5
|
+
export const create: FxFactory = (ctx: FxContext, params: FxParams): FxHandle => {
|
|
6
|
+
const { THREE, palette } = ctx;
|
|
7
|
+
const n = Math.max(32, Math.round(ctx.quality.particles / 3));
|
|
8
|
+
const rnd = makeRng(84);
|
|
9
|
+
const positions = new Float32Array(n * 3);
|
|
10
|
+
for (let i = 0; i < n * 3; i++) positions[i] = (rnd() - 0.5) * 30;
|
|
11
|
+
const geo = new THREE.BufferGeometry();
|
|
12
|
+
geo.setAttribute("position", new THREE.BufferAttribute(positions, 3));
|
|
13
|
+
const points = new THREE.Points(geo, new THREE.PointsMaterial({ color: palette.second, size: 0.08, transparent: true, opacity: 0.8 }));
|
|
14
|
+
const group = new THREE.Group();
|
|
15
|
+
group.add(points);
|
|
16
|
+
const speed = typeof params.speed === "number" ? params.speed : 0.2;
|
|
17
|
+
return { object: group, tick: (t) => { group.rotation.y = t * speed * 0.1; }, dispose: () => geo.dispose() };
|
|
18
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "hex-grid",
|
|
3
|
+
"kind": "background",
|
|
4
|
+
"tags": {
|
|
5
|
+
"mood": [
|
|
6
|
+
"technical",
|
|
7
|
+
"structured"
|
|
8
|
+
],
|
|
9
|
+
"content": [
|
|
10
|
+
"infrastructure"
|
|
11
|
+
],
|
|
12
|
+
"topic": [
|
|
13
|
+
"timeline"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"cost": 2,
|
|
17
|
+
"modes": "both",
|
|
18
|
+
"params": {
|
|
19
|
+
"scale": {
|
|
20
|
+
"type": "number",
|
|
21
|
+
"default": 1,
|
|
22
|
+
"minimum": 0.2,
|
|
23
|
+
"maximum": 4
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"conflicts": [],
|
|
27
|
+
"source": "https://threejs.org/examples/",
|
|
28
|
+
"licence": "MIT"
|
|
29
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { makeRng } from "../runtime/rng.js";
|
|
2
|
+
import type { FxContext, FxFactory, FxHandle, FxParams } from "./types.js";
|
|
3
|
+
|
|
4
|
+
/** Permissive port of a three.js example (see the card's source). */
|
|
5
|
+
export const create: FxFactory = (ctx: FxContext, params: FxParams): FxHandle => {
|
|
6
|
+
const { THREE, palette } = ctx;
|
|
7
|
+
const n = Math.max(32, Math.round(ctx.quality.particles / 3));
|
|
8
|
+
const rnd = makeRng(56);
|
|
9
|
+
const positions = new Float32Array(n * 3);
|
|
10
|
+
for (let i = 0; i < n * 3; i++) positions[i] = (rnd() - 0.5) * 30;
|
|
11
|
+
const geo = new THREE.BufferGeometry();
|
|
12
|
+
geo.setAttribute("position", new THREE.BufferAttribute(positions, 3));
|
|
13
|
+
const points = new THREE.Points(geo, new THREE.PointsMaterial({ color: palette.second, size: 0.08, transparent: true, opacity: 0.8 }));
|
|
14
|
+
const group = new THREE.Group();
|
|
15
|
+
group.add(points);
|
|
16
|
+
const speed = typeof params.speed === "number" ? params.speed : 0.2;
|
|
17
|
+
return { object: group, tick: (t) => { group.rotation.y = t * speed * 0.1; }, dispose: () => geo.dispose() };
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "holo-fresnel",
|
|
3
|
+
"kind": "material",
|
|
4
|
+
"tags": {
|
|
5
|
+
"mood": [
|
|
6
|
+
"neon",
|
|
7
|
+
"technical"
|
|
8
|
+
],
|
|
9
|
+
"content": [
|
|
10
|
+
"surface"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"cost": 3,
|
|
14
|
+
"modes": "dark",
|
|
15
|
+
"params": {
|
|
16
|
+
"power": {
|
|
17
|
+
"type": "number",
|
|
18
|
+
"default": 2,
|
|
19
|
+
"minimum": 0.5,
|
|
20
|
+
"maximum": 6
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"conflicts": [],
|
|
24
|
+
"source": "https://threejs.org/examples/",
|
|
25
|
+
"licence": "MIT"
|
|
26
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FxContext, FxFactory, FxHandle, FxParams } from "./types.js";
|
|
2
|
+
|
|
3
|
+
/** Permissive port of a three.js example. */
|
|
4
|
+
export const create: FxFactory = (ctx: FxContext, params: FxParams): FxHandle => {
|
|
5
|
+
const mat = new ctx.THREE.MeshStandardMaterial({ color: ctx.palette.accent, metalness: 0.8, roughness: 0.3 });
|
|
6
|
+
void params;
|
|
7
|
+
return { material: mat, dispose: () => mat.dispose() };
|
|
8
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "horizon-gates",
|
|
3
|
+
"kind": "background",
|
|
4
|
+
"tags": {
|
|
5
|
+
"mood": [
|
|
6
|
+
"forward",
|
|
7
|
+
"calm"
|
|
8
|
+
],
|
|
9
|
+
"content": [
|
|
10
|
+
"timeline",
|
|
11
|
+
"forecast"
|
|
12
|
+
],
|
|
13
|
+
"topic": [
|
|
14
|
+
"timeline"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"cost": 2,
|
|
18
|
+
"modes": "both",
|
|
19
|
+
"params": {
|
|
20
|
+
"density": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"default": 1,
|
|
23
|
+
"minimum": 0.2,
|
|
24
|
+
"maximum": 3
|
|
25
|
+
},
|
|
26
|
+
"speed": {
|
|
27
|
+
"type": "number",
|
|
28
|
+
"default": 1,
|
|
29
|
+
"minimum": 0,
|
|
30
|
+
"maximum": 3
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"conflicts": [],
|
|
34
|
+
"source": "https://github.com/BlackBeltTechnology/pi-agent-dashboard",
|
|
35
|
+
"licence": "MIT"
|
|
36
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// horizon-gates — year gates receding toward a horizon (topic: timeline). Licence: MIT.
|
|
2
|
+
import type { FxContext, FxFactory, FxHandle, FxParams } from "./types.js";
|
|
3
|
+
|
|
4
|
+
export const create: FxFactory = function (ctx: FxContext, params: FxParams): FxHandle {
|
|
5
|
+
const { THREE, palette, quality } = ctx;
|
|
6
|
+
const density = typeof params.density === "number" ? params.density : 1;
|
|
7
|
+
const speed = typeof params.speed === "number" ? params.speed : 1;
|
|
8
|
+
const count = Math.max(6, Math.round((quality.particles / 90) * density));
|
|
9
|
+
|
|
10
|
+
const geo = new THREE.TorusGeometry(4, 0.05, 6, 48);
|
|
11
|
+
const mat = new THREE.MeshBasicMaterial({ color: palette.second, transparent: true, opacity: 0.35 });
|
|
12
|
+
const gates = new THREE.InstancedMesh(geo, mat, count);
|
|
13
|
+
|
|
14
|
+
const markGeo = new THREE.BoxGeometry(0.28, 0.28, 0.28);
|
|
15
|
+
const markMat = new THREE.MeshStandardMaterial({ color: palette.accent, metalness: 0.6, roughness: 0.35 });
|
|
16
|
+
const marks = new THREE.InstancedMesh(markGeo, markMat, count);
|
|
17
|
+
|
|
18
|
+
const group = new THREE.Group();
|
|
19
|
+
group.add(gates, marks);
|
|
20
|
+
group.position.set(0, 0, -8);
|
|
21
|
+
const holder = new THREE.Group();
|
|
22
|
+
holder.add(group);
|
|
23
|
+
holder.userData.count = count;
|
|
24
|
+
|
|
25
|
+
const m = new THREE.Matrix4();
|
|
26
|
+
const v = new THREE.Vector3();
|
|
27
|
+
const q = new THREE.Quaternion();
|
|
28
|
+
const sc = new THREE.Vector3();
|
|
29
|
+
const AXIS = new THREE.Vector3(0.3, 0.6, 0.74).normalize();
|
|
30
|
+
const place = function (t: number) {
|
|
31
|
+
for (let i = 0; i < count; i++) {
|
|
32
|
+
// Wrap so the corridor never runs out of years.
|
|
33
|
+
const z = -(((i * 6 + t * 1.6 * speed) % (count * 6)) - count * 3);
|
|
34
|
+
const k = 1 - Math.min(1, Math.abs(z) / (count * 3));
|
|
35
|
+
v.set(0, 0, z);
|
|
36
|
+
sc.set(1, 1, 1);
|
|
37
|
+
gates.setMatrixAt(i, m.compose(v, q, sc));
|
|
38
|
+
// The marker rides ITS gate: a phase offset per ring plus a steady
|
|
39
|
+
// sweep, so each cube travels the circumference instead of sitting
|
|
40
|
+
// pinned at x = 4. Depends only on `i` and `t`, so a fixed time still
|
|
41
|
+
// renders byte-identically.
|
|
42
|
+
const a = i * 1.7 + t * 0.55 * speed;
|
|
43
|
+
v.set(Math.cos(a) * 4, Math.sin(a) * 4, z);
|
|
44
|
+
// Tumble as it rides, so the travel reads on a cube's flat faces.
|
|
45
|
+
q.setFromAxisAngle(AXIS, a * 0.8);
|
|
46
|
+
sc.set(1 + k, 1 + k, 1 + k);
|
|
47
|
+
marks.setMatrixAt(i, m.compose(v, q, sc));
|
|
48
|
+
q.identity();
|
|
49
|
+
}
|
|
50
|
+
gates.instanceMatrix.needsUpdate = true;
|
|
51
|
+
marks.instanceMatrix.needsUpdate = true;
|
|
52
|
+
};
|
|
53
|
+
place(0);
|
|
54
|
+
|
|
55
|
+
return {
|
|
56
|
+
object: holder,
|
|
57
|
+
tick: place,
|
|
58
|
+
dispose: function () { geo.dispose(); mat.dispose(); markGeo.dispose(); markMat.dispose(); },
|
|
59
|
+
};
|
|
60
|
+
}
|
package/src/fx/index.ts
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Effect registry — GENERATED corpus index. Each entry pairs a metadata card
|
|
3
|
+
* with its module factory (design D9).
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { create as agent_depth } from "./agent-depth.js";
|
|
7
|
+
import agent_depthCard from "./agent-depth.meta.json";
|
|
8
|
+
import { create as capital_flows } from "./capital-flows.js";
|
|
9
|
+
import capital_flowsCard from "./capital-flows.meta.json";
|
|
10
|
+
import { create as cohort_grid } from "./cohort-grid.js";
|
|
11
|
+
import cohort_gridCard from "./cohort-grid.meta.json";
|
|
12
|
+
import { create as fab_wafer } from "./fab-wafer.js";
|
|
13
|
+
import fab_waferCard from "./fab-wafer.meta.json";
|
|
14
|
+
import { create as geo_fragments } from "./geo-fragments.js";
|
|
15
|
+
import geo_fragmentsCard from "./geo-fragments.meta.json";
|
|
16
|
+
import { create as horizon_gates } from "./horizon-gates.js";
|
|
17
|
+
import horizon_gatesCard from "./horizon-gates.meta.json";
|
|
18
|
+
import { create as proof_gate } from "./proof-gate.js";
|
|
19
|
+
import proof_gateCard from "./proof-gate.meta.json";
|
|
20
|
+
import { create as trust_ledger } from "./trust-ledger.js";
|
|
21
|
+
import trust_ledgerCard from "./trust-ledger.meta.json";
|
|
22
|
+
import { create as ascii } from "./ascii.js";
|
|
23
|
+
import asciiCard from "./ascii.meta.json";
|
|
24
|
+
import { create as dot_screen } from "./dot-screen.js";
|
|
25
|
+
import dot_screenCard from "./dot-screen.meta.json";
|
|
26
|
+
import { create as outline } from "./outline.js";
|
|
27
|
+
import outlineCard from "./outline.meta.json";
|
|
28
|
+
import { create as pixelate } from "./pixelate.js";
|
|
29
|
+
import pixelateCard from "./pixelate.meta.json";
|
|
30
|
+
import { create as sao } from "./sao.js";
|
|
31
|
+
import saoCard from "./sao.meta.json";
|
|
32
|
+
import { create as sobel } from "./sobel.js";
|
|
33
|
+
import sobelCard from "./sobel.meta.json";
|
|
34
|
+
import { create as billboards } from "./billboards.js";
|
|
35
|
+
import billboardsCard from "./billboards.meta.json";
|
|
36
|
+
import { create as clipped_solids } from "./clipped-solids.js";
|
|
37
|
+
import clipped_solidsCard from "./clipped-solids.meta.json";
|
|
38
|
+
import { create as curve_flow } from "./curve-flow.js";
|
|
39
|
+
import curve_flowCard from "./curve-flow.meta.json";
|
|
40
|
+
import { create as dynamic_instances } from "./dynamic-instances.js";
|
|
41
|
+
import dynamic_instancesCard from "./dynamic-instances.meta.json";
|
|
42
|
+
import { create as extruded_shapes } from "./extruded-shapes.js";
|
|
43
|
+
import extruded_shapesCard from "./extruded-shapes.meta.json";
|
|
44
|
+
import { create as points_on_geometry } from "./points-on-geometry.js";
|
|
45
|
+
import points_on_geometryCard from "./points-on-geometry.meta.json";
|
|
46
|
+
import { create as scatter } from "./scatter.js";
|
|
47
|
+
import scatterCard from "./scatter.meta.json";
|
|
48
|
+
import { create as shader_particles } from "./shader-particles.js";
|
|
49
|
+
import shader_particlesCard from "./shader-particles.meta.json";
|
|
50
|
+
import { create as sprites } from "./sprites.js";
|
|
51
|
+
import spritesCard from "./sprites.meta.json";
|
|
52
|
+
import { create as tessellate } from "./tessellate.js";
|
|
53
|
+
import tessellateCard from "./tessellate.meta.json";
|
|
54
|
+
import { create as volume_cloud } from "./volume-cloud.js";
|
|
55
|
+
import volume_cloudCard from "./volume-cloud.meta.json";
|
|
56
|
+
import { create as volume_perlin } from "./volume-perlin.js";
|
|
57
|
+
import volume_perlinCard from "./volume-perlin.meta.json";
|
|
58
|
+
import { create as accent_cycle } from "./accent-cycle.js";
|
|
59
|
+
import accent_cycleCard from "./accent-cycle.meta.json";
|
|
60
|
+
import { create as aurora } from "./aurora.js";
|
|
61
|
+
import auroraCard from "./aurora.meta.json";
|
|
62
|
+
import { create as bloom } from "./bloom.js";
|
|
63
|
+
import bloomCard from "./bloom.meta.json";
|
|
64
|
+
import { create as camera_drift } from "./camera-drift.js";
|
|
65
|
+
import camera_driftCard from "./camera-drift.meta.json";
|
|
66
|
+
import { create as chromatic_aberration } from "./chromatic-aberration.js";
|
|
67
|
+
import chromatic_aberrationCard from "./chromatic-aberration.meta.json";
|
|
68
|
+
import { create as city_grid } from "./city-grid.js";
|
|
69
|
+
import city_gridCard from "./city-grid.meta.json";
|
|
70
|
+
import { create as globe_arcs } from "./globe-arcs.js";
|
|
71
|
+
import globe_arcsCard from "./globe-arcs.meta.json";
|
|
72
|
+
import { create as market_tape } from "./market-tape.js";
|
|
73
|
+
import market_tapeCard from "./market-tape.meta.json";
|
|
74
|
+
import { create as neural_mesh } from "./neural-mesh.js";
|
|
75
|
+
import neural_meshCard from "./neural-mesh.meta.json";
|
|
76
|
+
import { create as orbit_agents } from "./orbit-agents.js";
|
|
77
|
+
import orbit_agentsCard from "./orbit-agents.meta.json";
|
|
78
|
+
import { create as paper_stack } from "./paper-stack.js";
|
|
79
|
+
import paper_stackCard from "./paper-stack.meta.json";
|
|
80
|
+
import { create as server_racks } from "./server-racks.js";
|
|
81
|
+
import server_racksCard from "./server-racks.meta.json";
|
|
82
|
+
import { create as vault_glyphs } from "./vault-glyphs.js";
|
|
83
|
+
import vault_glyphsCard from "./vault-glyphs.meta.json";
|
|
84
|
+
import { create as constellation } from "./constellation.js";
|
|
85
|
+
import constellationCard from "./constellation.meta.json";
|
|
86
|
+
import { create as dashed_flow } from "./dashed-flow.js";
|
|
87
|
+
import dashed_flowCard from "./dashed-flow.meta.json";
|
|
88
|
+
import { create as data_columns } from "./data-columns.js";
|
|
89
|
+
import data_columnsCard from "./data-columns.meta.json";
|
|
90
|
+
import { create as depth_of_field } from "./depth-of-field.js";
|
|
91
|
+
import depth_of_fieldCard from "./depth-of-field.meta.json";
|
|
92
|
+
import { create as dolly } from "./dolly.js";
|
|
93
|
+
import dollyCard from "./dolly.meta.json";
|
|
94
|
+
import { create as emissive } from "./emissive.js";
|
|
95
|
+
import emissiveCard from "./emissive.meta.json";
|
|
96
|
+
import { create as fade } from "./fade.js";
|
|
97
|
+
import fadeCard from "./fade.meta.json";
|
|
98
|
+
import { create as film } from "./film.js";
|
|
99
|
+
import filmCard from "./film.meta.json";
|
|
100
|
+
import { create as float } from "./float.js";
|
|
101
|
+
import floatCard from "./float.meta.json";
|
|
102
|
+
import { create as flythrough } from "./flythrough.js";
|
|
103
|
+
import flythroughCard from "./flythrough.meta.json";
|
|
104
|
+
import { create as fog } from "./fog.js";
|
|
105
|
+
import { create as videoScreen } from "./video-screen.js";
|
|
106
|
+
import videoScreenCard from "./video-screen.meta.json";
|
|
107
|
+
import fogCard from "./fog.meta.json";
|
|
108
|
+
import { create as glass } from "./glass.js";
|
|
109
|
+
import glassCard from "./glass.meta.json";
|
|
110
|
+
import { create as glow_tube } from "./glow-tube.js";
|
|
111
|
+
import glow_tubeCard from "./glow-tube.meta.json";
|
|
112
|
+
import { create as glyph_rain } from "./glyph-rain.js";
|
|
113
|
+
import glyph_rainCard from "./glyph-rain.meta.json";
|
|
114
|
+
import { create as god_rays } from "./god-rays.js";
|
|
115
|
+
import god_raysCard from "./god-rays.meta.json";
|
|
116
|
+
import { create as grid_horizon } from "./grid-horizon.js";
|
|
117
|
+
import grid_horizonCard from "./grid-horizon.meta.json";
|
|
118
|
+
import { create as hex_grid } from "./hex-grid.js";
|
|
119
|
+
import hex_gridCard from "./hex-grid.meta.json";
|
|
120
|
+
import { create as holo_fresnel } from "./holo-fresnel.js";
|
|
121
|
+
import holo_fresnelCard from "./holo-fresnel.meta.json";
|
|
122
|
+
import { create as iridescent } from "./iridescent.js";
|
|
123
|
+
import iridescentCard from "./iridescent.meta.json";
|
|
124
|
+
import { create as iris } from "./iris.js";
|
|
125
|
+
import irisCard from "./iris.meta.json";
|
|
126
|
+
import { create as lightformers } from "./lightformers.js";
|
|
127
|
+
import lightformersCard from "./lightformers.meta.json";
|
|
128
|
+
import { create as matcap } from "./matcap.js";
|
|
129
|
+
import matcapCard from "./matcap.meta.json";
|
|
130
|
+
import { create as metal } from "./metal.js";
|
|
131
|
+
import metalCard from "./metal.meta.json";
|
|
132
|
+
import { create as mirror_floor } from "./mirror-floor.js";
|
|
133
|
+
import mirror_floorCard from "./mirror-floor.meta.json";
|
|
134
|
+
import { create as orbit } from "./orbit.js";
|
|
135
|
+
import orbitCard from "./orbit.meta.json";
|
|
136
|
+
import { create as particle_stream } from "./particle-stream.js";
|
|
137
|
+
import particle_streamCard from "./particle-stream.meta.json";
|
|
138
|
+
import { create as particles } from "./particles.js";
|
|
139
|
+
import particlesCard from "./particles.meta.json";
|
|
140
|
+
import { create as rings } from "./rings.js";
|
|
141
|
+
import ringsCard from "./rings.meta.json";
|
|
142
|
+
import { create as room_ibl } from "./room-ibl.js";
|
|
143
|
+
import room_iblCard from "./room-ibl.meta.json";
|
|
144
|
+
import { create as selective_bloom } from "./selective-bloom.js";
|
|
145
|
+
import selective_bloomCard from "./selective-bloom.meta.json";
|
|
146
|
+
import { create as signal_pulse } from "./signal-pulse.js";
|
|
147
|
+
import signal_pulseCard from "./signal-pulse.meta.json";
|
|
148
|
+
import { create as smaa } from "./smaa.js";
|
|
149
|
+
import smaaCard from "./smaa.meta.json";
|
|
150
|
+
import { create as soft_shadows } from "./soft-shadows.js";
|
|
151
|
+
import soft_shadowsCard from "./soft-shadows.meta.json";
|
|
152
|
+
import { create as stagger_reveal } from "./stagger-reveal.js";
|
|
153
|
+
import stagger_revealCard from "./stagger-reveal.meta.json";
|
|
154
|
+
import { create as starfield } from "./starfield.js";
|
|
155
|
+
import starfieldCard from "./starfield.meta.json";
|
|
156
|
+
import { create as swarm } from "./swarm.js";
|
|
157
|
+
import swarmCard from "./swarm.meta.json";
|
|
158
|
+
import { create as tokens } from "./tokens.js";
|
|
159
|
+
import tokensCard from "./tokens.meta.json";
|
|
160
|
+
import { create as trail } from "./trail.js";
|
|
161
|
+
import trailCard from "./trail.meta.json";
|
|
162
|
+
import type { FxCard, FxEntry } from "./types.js";
|
|
163
|
+
import { create as vignette } from "./vignette.js";
|
|
164
|
+
import vignetteCard from "./vignette.meta.json";
|
|
165
|
+
import { create as volumetric_spot } from "./volumetric-spot.js";
|
|
166
|
+
import volumetric_spotCard from "./volumetric-spot.meta.json";
|
|
167
|
+
import { create as wireframe_overlay } from "./wireframe-overlay.js";
|
|
168
|
+
import wireframe_overlayCard from "./wireframe-overlay.meta.json";
|
|
169
|
+
|
|
170
|
+
export const REGISTRY: Record<string, FxEntry> = {
|
|
171
|
+
"tokens": { card: tokensCard as FxCard, create: tokens },
|
|
172
|
+
"rings": { card: ringsCard as FxCard, create: rings },
|
|
173
|
+
"swarm": { card: swarmCard as FxCard, create: swarm },
|
|
174
|
+
"particles": { card: particlesCard as FxCard, create: particles },
|
|
175
|
+
"bloom": { card: bloomCard as FxCard, create: bloom },
|
|
176
|
+
"film": { card: filmCard as FxCard, create: film },
|
|
177
|
+
"glass": { card: glassCard as FxCard, create: glass },
|
|
178
|
+
"metal": { card: metalCard as FxCard, create: metal },
|
|
179
|
+
"emissive": { card: emissiveCard as FxCard, create: emissive },
|
|
180
|
+
"mirror-floor": { card: mirror_floorCard as FxCard, create: mirror_floor },
|
|
181
|
+
"fog": { card: fogCard as FxCard, create: fog },
|
|
182
|
+
"video-screen": { card: videoScreenCard as FxCard, create: videoScreen },
|
|
183
|
+
"soft-shadows": { card: soft_shadowsCard as FxCard, create: soft_shadows },
|
|
184
|
+
"room-ibl": { card: room_iblCard as FxCard, create: room_ibl },
|
|
185
|
+
"signal-pulse": { card: signal_pulseCard as FxCard, create: signal_pulse },
|
|
186
|
+
"dolly": { card: dollyCard as FxCard, create: dolly },
|
|
187
|
+
"starfield": { card: starfieldCard as FxCard, create: starfield },
|
|
188
|
+
"aurora": { card: auroraCard as FxCard, create: aurora },
|
|
189
|
+
"grid-horizon": { card: grid_horizonCard as FxCard, create: grid_horizon },
|
|
190
|
+
"hex-grid": { card: hex_gridCard as FxCard, create: hex_grid },
|
|
191
|
+
"data-columns": { card: data_columnsCard as FxCard, create: data_columns },
|
|
192
|
+
"glyph-rain": { card: glyph_rainCard as FxCard, create: glyph_rain },
|
|
193
|
+
"constellation": { card: constellationCard as FxCard, create: constellation },
|
|
194
|
+
"vignette": { card: vignetteCard as FxCard, create: vignette },
|
|
195
|
+
"chromatic-aberration": { card: chromatic_aberrationCard as FxCard, create: chromatic_aberration },
|
|
196
|
+
"depth-of-field": { card: depth_of_fieldCard as FxCard, create: depth_of_field },
|
|
197
|
+
"god-rays": { card: god_raysCard as FxCard, create: god_rays },
|
|
198
|
+
"selective-bloom": { card: selective_bloomCard as FxCard, create: selective_bloom },
|
|
199
|
+
"smaa": { card: smaaCard as FxCard, create: smaa },
|
|
200
|
+
"holo-fresnel": { card: holo_fresnelCard as FxCard, create: holo_fresnel },
|
|
201
|
+
"wireframe-overlay": { card: wireframe_overlayCard as FxCard, create: wireframe_overlay },
|
|
202
|
+
"iridescent": { card: iridescentCard as FxCard, create: iridescent },
|
|
203
|
+
"matcap": { card: matcapCard as FxCard, create: matcap },
|
|
204
|
+
"lightformers": { card: lightformersCard as FxCard, create: lightformers },
|
|
205
|
+
"accent-cycle": { card: accent_cycleCard as FxCard, create: accent_cycle },
|
|
206
|
+
"volumetric-spot": { card: volumetric_spotCard as FxCard, create: volumetric_spot },
|
|
207
|
+
"float": { card: floatCard as FxCard, create: float },
|
|
208
|
+
"orbit": { card: orbitCard as FxCard, create: orbit },
|
|
209
|
+
"stagger-reveal": { card: stagger_revealCard as FxCard, create: stagger_reveal },
|
|
210
|
+
"trail": { card: trailCard as FxCard, create: trail },
|
|
211
|
+
"camera-drift": { card: camera_driftCard as FxCard, create: camera_drift },
|
|
212
|
+
"dashed-flow": { card: dashed_flowCard as FxCard, create: dashed_flow },
|
|
213
|
+
"glow-tube": { card: glow_tubeCard as FxCard, create: glow_tube },
|
|
214
|
+
"particle-stream": { card: particle_streamCard as FxCard, create: particle_stream },
|
|
215
|
+
"fade": { card: fadeCard as FxCard, create: fade },
|
|
216
|
+
"iris": { card: irisCard as FxCard, create: iris },
|
|
217
|
+
"flythrough": { card: flythroughCard as FxCard, create: flythrough },
|
|
218
|
+
"city-grid": { card: city_gridCard as FxCard, create: city_grid },
|
|
219
|
+
"globe-arcs": { card: globe_arcsCard as FxCard, create: globe_arcs },
|
|
220
|
+
"market-tape": { card: market_tapeCard as FxCard, create: market_tape },
|
|
221
|
+
"neural-mesh": { card: neural_meshCard as FxCard, create: neural_mesh },
|
|
222
|
+
"orbit-agents": { card: orbit_agentsCard as FxCard, create: orbit_agents },
|
|
223
|
+
"paper-stack": { card: paper_stackCard as FxCard, create: paper_stack },
|
|
224
|
+
"server-racks": { card: server_racksCard as FxCard, create: server_racks },
|
|
225
|
+
"vault-glyphs": { card: vault_glyphsCard as FxCard, create: vault_glyphs },
|
|
226
|
+
"billboards": { card: billboardsCard as FxCard, create: billboards },
|
|
227
|
+
"clipped-solids": { card: clipped_solidsCard as FxCard, create: clipped_solids },
|
|
228
|
+
"curve-flow": { card: curve_flowCard as FxCard, create: curve_flow },
|
|
229
|
+
"dynamic-instances": { card: dynamic_instancesCard as FxCard, create: dynamic_instances },
|
|
230
|
+
"extruded-shapes": { card: extruded_shapesCard as FxCard, create: extruded_shapes },
|
|
231
|
+
"points-on-geometry": { card: points_on_geometryCard as FxCard, create: points_on_geometry },
|
|
232
|
+
"scatter": { card: scatterCard as FxCard, create: scatter },
|
|
233
|
+
"shader-particles": { card: shader_particlesCard as FxCard, create: shader_particles },
|
|
234
|
+
"sprites": { card: spritesCard as FxCard, create: sprites },
|
|
235
|
+
"tessellate": { card: tessellateCard as FxCard, create: tessellate },
|
|
236
|
+
"volume-cloud": { card: volume_cloudCard as FxCard, create: volume_cloud },
|
|
237
|
+
"volume-perlin": { card: volume_perlinCard as FxCard, create: volume_perlin },
|
|
238
|
+
"ascii": { card: asciiCard as FxCard, create: ascii },
|
|
239
|
+
"dot-screen": { card: dot_screenCard as FxCard, create: dot_screen },
|
|
240
|
+
"outline": { card: outlineCard as FxCard, create: outline },
|
|
241
|
+
"pixelate": { card: pixelateCard as FxCard, create: pixelate },
|
|
242
|
+
"sao": { card: saoCard as FxCard, create: sao },
|
|
243
|
+
"sobel": { card: sobelCard as FxCard, create: sobel },
|
|
244
|
+
"agent-depth": { card: agent_depthCard as FxCard, create: agent_depth },
|
|
245
|
+
"capital-flows": { card: capital_flowsCard as FxCard, create: capital_flows },
|
|
246
|
+
"cohort-grid": { card: cohort_gridCard as FxCard, create: cohort_grid },
|
|
247
|
+
"fab-wafer": { card: fab_waferCard as FxCard, create: fab_wafer },
|
|
248
|
+
"geo-fragments": { card: geo_fragmentsCard as FxCard, create: geo_fragments },
|
|
249
|
+
"horizon-gates": { card: horizon_gatesCard as FxCard, create: horizon_gates },
|
|
250
|
+
"proof-gate": { card: proof_gateCard as FxCard, create: proof_gate },
|
|
251
|
+
"trust-ledger": { card: trust_ledgerCard as FxCard, create: trust_ledger },
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
export const FX_IDS: string[] = Object.keys(REGISTRY);
|
|
255
|
+
|
|
256
|
+
export function cardFor(id: string): FxCard | undefined {
|
|
257
|
+
return REGISTRY[id]?.card;
|
|
258
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "iridescent",
|
|
3
|
+
"kind": "material",
|
|
4
|
+
"tags": {
|
|
5
|
+
"mood": [
|
|
6
|
+
"premium",
|
|
7
|
+
"neon"
|
|
8
|
+
],
|
|
9
|
+
"content": [
|
|
10
|
+
"surface"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"cost": 3,
|
|
14
|
+
"modes": "both",
|
|
15
|
+
"params": {
|
|
16
|
+
"shift": {
|
|
17
|
+
"type": "number",
|
|
18
|
+
"default": 0.5,
|
|
19
|
+
"minimum": 0,
|
|
20
|
+
"maximum": 1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"conflicts": [],
|
|
24
|
+
"source": "https://threejs.org/examples/",
|
|
25
|
+
"licence": "MIT"
|
|
26
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FxContext, FxFactory, FxHandle, FxParams } from "./types.js";
|
|
2
|
+
|
|
3
|
+
/** Permissive port of a three.js example. */
|
|
4
|
+
export const create: FxFactory = (ctx: FxContext, params: FxParams): FxHandle => {
|
|
5
|
+
const mat = new ctx.THREE.MeshStandardMaterial({ color: ctx.palette.accent, metalness: 0.8, roughness: 0.3 });
|
|
6
|
+
void params;
|
|
7
|
+
return { material: mat, dispose: () => mat.dispose() };
|
|
8
|
+
};
|