@aura3d/cli 4.6.2 → 4.7.1

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 (45) hide show
  1. package/dist/admission/cubeLut.d.ts +18 -0
  2. package/dist/admission/cubeLut.d.ts.map +1 -0
  3. package/dist/admission/cubeLut.js +53 -0
  4. package/dist/admission/cubeLut.js.map +1 -0
  5. package/dist/asset-core-types.d.ts +7 -4
  6. package/dist/asset-core-types.d.ts.map +1 -1
  7. package/dist/cli-help.d.ts.map +1 -1
  8. package/dist/cli-help.js +7 -4
  9. package/dist/cli-help.js.map +1 -1
  10. package/dist/cli-options.d.ts +1 -1
  11. package/dist/cli-options.d.ts.map +1 -1
  12. package/dist/cli-options.js +2 -2
  13. package/dist/cli-options.js.map +1 -1
  14. package/dist/cli.js +3 -2
  15. package/dist/cli.js.map +1 -1
  16. package/dist/commands/assets/certifyCategories.d.ts +26 -0
  17. package/dist/commands/assets/certifyCategories.d.ts.map +1 -0
  18. package/dist/commands/assets/certifyCategories.js +31 -0
  19. package/dist/commands/assets/certifyCategories.js.map +1 -0
  20. package/dist/commands/assets/optimize.d.ts +66 -0
  21. package/dist/commands/assets/optimize.d.ts.map +1 -1
  22. package/dist/commands/assets/optimize.js +270 -1
  23. package/dist/commands/assets/optimize.js.map +1 -1
  24. package/dist/commands/assets/optimizeVerb.d.ts.map +1 -1
  25. package/dist/commands/assets/optimizeVerb.js +26 -1
  26. package/dist/commands/assets/optimizeVerb.js.map +1 -1
  27. package/dist/commands/evidence/judge.d.ts +50 -1
  28. package/dist/commands/evidence/judge.d.ts.map +1 -1
  29. package/dist/commands/evidence/judge.js +154 -6
  30. package/dist/commands/evidence/judge.js.map +1 -1
  31. package/dist/commands/prd05/index.js +1 -1
  32. package/dist/commands/prd05/index.js.map +1 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +25 -9
  35. package/dist/index.js.map +1 -1
  36. package/dist/look/judge.d.ts +53 -5
  37. package/dist/look/judge.d.ts.map +1 -1
  38. package/dist/look/judge.js +226 -50
  39. package/dist/look/judge.js.map +1 -1
  40. package/package.json +5 -5
  41. package/skills/aura3d-art-direction/references/look-recipes.md +2 -1
  42. package/skills/aura3d-game-art/SKILL.md +39 -17
  43. package/skills/aura3d-materials-environments/SKILL.md +4 -4
  44. package/skills/aura3d-materials-environments/references/look-overrides-4.7.md +93 -0
  45. package/skills/llms.txt +2 -2
@@ -0,0 +1,93 @@
1
+ # Look overrides, HDRI ids and runtime light, environment, fog and post (4.7.0)
2
+
3
+ Requires `@aura3d/engine` 4.7.0 or later. On 4.6.x the override keys below are
4
+ rejected and the runtime setters do not exist: check the installed version
5
+ first and keep `environments.hdri({ texture })` with an admitted texture there.
6
+
7
+ ## Look overrides
8
+
9
+ A look stays the starting point (`looks.preset(<id>, overrides)`); the
10
+ overrides retune it instead of replacing it with hand-built nodes. Every number
11
+ is clamped to the range in the comment.
12
+
13
+ ```ts
14
+ looks.preset("golden-hour", {
15
+ sun: { azimuthDeg: 250, elevationDeg: 18 }, // existing keys: sun, exposureEv [-2,2], fogDensityScale [0,3], accent, background
16
+ background: "look", // or a colour: the HDRI then lights only (background: false)
17
+ hdri: "venice_sunset", // AuraHdriId, or a texture-typed asset ref
18
+ environmentIntensity: 0.8, // [0,4]
19
+ environmentRotationDeg: 120, // wraps into [0,360)
20
+ key: { color: "#ffd2a1", intensity: 3.2, shadow: { mapSize: 2048 } }, // intensity [0,20]
21
+ rim: { color: "#9fc4ff", intensity: 1.5, azimuthDeg: 70 }, // or rim: false to drop the look's rim light
22
+ fog: { color: "#c9a27e", near: 30, far: 420 }, // or height: AuraHeightFogSpec for height fog
23
+ grade: { contrast: 1.08, saturation: 1.1, temperature: 0.15, tint: -0.05, lut: assets.duskLut }, // temperature/tint [-1,1]
24
+ post: "cinematic-film" // an AuraPostPresetId, or { bloom: false | AuraBloomOptions }
25
+ });
26
+ ```
27
+
28
+ - An unknown `hdri` id throws `LOOK_HDRI_UNKNOWN:<id>`; an unknown `post` id
29
+ throws `LOOK_POST_UNKNOWN:<id>`.
30
+ - The look's grade now emits `temperature` and `tint`, and the look's post
31
+ preset id becomes the output preset (a `post` override replaces it).
32
+ - `background` set to a colour keeps the HDRI as light only, so a studio HDRI
33
+ no longer paints itself as the sky behind a coloured backdrop.
34
+ - The look's emitted nodes are named `look hdri <id>_1k`, `look rim light`,
35
+ `look fog` and `look color grade`; find them there when a capture disagrees.
36
+
37
+ ## HDRI catalogue
38
+
39
+ The 17 `AuraHdriId` values, each served as a 1k Radiance file at
40
+ `/hdri/<id>_1k.hdr` (`lookHdriIds` lists them, `lookHdriUrl` builds the URL;
41
+ credits in `public/hdri/ATTRIBUTION.md`):
42
+
43
+ | Mood | Ids |
44
+ |---|---|
45
+ | Day sky | `autumn_field_puresky`, `kloppenheim_06_puresky`, `kloppenheim_02`, `outdoor-midday` |
46
+ | Sunrise and sunset | `belfast_sunset_puresky`, `industrial_sunset_puresky`, `spruit_sunrise`, `venice_sunset`, `sunset-dramatic` |
47
+ | Night and space | `rooftop_night`, `cobblestone_street_night`, `deep_space_starfield` |
48
+ | Interior and studio | `studio_small_08`, `hangar_interior`, `warm_bar`, `museum_of_history`, `indoor-workshop` |
49
+
50
+ Live games must not share a primary visible HDRI (`background: "hdri"` in the
51
+ game's art direction): the `look-identity` game-check compares the file hashes.
52
+ A different file for IBL only is fine if rotation and intensity differ.
53
+
54
+ ## Runtime light, environment and fog
55
+
56
+ ```ts
57
+ // a light node's runtime handle: blends over transitionSeconds
58
+ app.nodes.require("key light").setLight({ color: "#ffb36b", intensity: 2.4, direction: [-0.4, -0.6, -0.7] }, { transitionSeconds: 1.5 });
59
+ // swap the image-based light without remounting the scene
60
+ app.lighting.setEnvironment(assets.duskSky, { intensity: 0.7, background: true, rotationDeg: 90, crossfadeSeconds: 2 });
61
+ app.lighting.setEnvironmentRotation(Math.PI / 2);
62
+ // overrideSceneFog applies the change to a scene that declares its own fog node
63
+ app.atmosphere.setFog({ color: "#7d8fa6", near: 20, far: 260 }, { transitionSeconds: 3, overrideSceneFog: true });
64
+ ```
65
+
66
+ - `setLight` patches `color`, `intensity`, `power`, `distance`, `direction`
67
+ and `position`; light nodes follow `setPosition` and `setVisible` every frame
68
+ (a hidden light drops its shadow map too).
69
+ - `app.diagnostics().lighting` reports `shadows`, `punctualLights` and
70
+ `localShadowLights`. Local lights cast shadows besides the sun up to the
71
+ quality tier's cap (low 0, medium 1, high 2, ultra 4); read the count on a
72
+ capture before claiming a second shadow.
73
+
74
+ ## Runtime post
75
+
76
+ ```ts
77
+ app.post.setEffect("color-grade", { temperature: 0.2, contrast: 1.1 });
78
+ app.post.setEffect("bloom", { intensity: 0.6, threshold: 1.2 });
79
+ app.post.setEffectEnabled("depth-of-field", false);
80
+ ```
81
+
82
+ - Effect names: `bloom`, `color-grade`, `depth-of-field`, `motion-blur`,
83
+ `chromatic-aberration`, `volumetric-fog`, `vignette`.
84
+ - A colour grade takes a `.cube` LUT admitted as a LUT asset
85
+ (`assets add <file.cube> --type lut` on 4.7.0), plus `temperature`, `tint`,
86
+ `lift`, `gamma`, `gain`, `shadows`, `midtones` and `highlights`.
87
+ - Depth of field takes `tiltShift: { bandCenter, bandWidth, angleDeg }`;
88
+ volumetric fog takes `godRayDensity` (0.05 to 1, independent of the scene
89
+ fog); a material takes `bloom` (0 to 2, default 1) for selective bloom.
90
+
91
+ Every look number you report is "software WebGL2" until a real-GPU run exists.
92
+ Judge a change on a remote capture with per-region stats, not mean luma alone
93
+ (lesson R21 in `docs/agents/lessons-learned.md`).
package/skills/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # Aura3D
2
2
 
3
- > Aura3D 4.6.2: a TypeScript SDK for browser 3D apps and games. You write a typed, declarative scene with `@aura3d/engine`; the `@aura3d/cli` toolchain handles typed GLB/glTF assets, checks and deploy gates. Built to be driven by AI coding agents. Site: https://aura3d.auraone.ai
3
+ > Aura3D 4.7.1: a TypeScript SDK for browser 3D apps and games. You write a typed, declarative scene with `@aura3d/engine`; the `@aura3d/cli` toolchain handles typed GLB/glTF assets, checks and deploy gates. Built to be driven by AI coding agents. Site: https://aura3d.auraone.ai
4
4
 
5
5
  ## Fast path (read this first)
6
6
 
@@ -142,4 +142,4 @@ Release integrity rules:
142
142
  - Docs: https://aura3d.auraone.ai/docs/api.html, https://aura3d.auraone.ai/docs/agent-quickstart.html, https://aura3d.auraone.ai/docs/claims.html
143
143
  - Showcase (25 playable games): https://aura3d.auraone.ai/apps/showcase-index/
144
144
  - Sitemap: https://aura3d.auraone.ai/sitemap.xml; crawl policy: https://aura3d.auraone.ai/robots.txt
145
- - Last updated: 2026-10-29
145
+ - Last updated: 2026-10-31