Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

The manual's SDK reference from the SDK as this stack leaves it (bun tools/manual-ref/sdk.ts gen): an inline FramePass's uniforms are each frame's own (3d, post_process), a controller is a standing decision (brief), and Nudge places by scale, rotate and opacity too (raea)

shinyobjectz619816627e35
diff --git a/docs/manual/reference/sdk/3d.md b/docs/manual/reference/sdk/3d.md
index 44a32678..b82fd9d1 100644
--- a/docs/manual/reference/sdk/3d.md
+++ b/docs/manual/reference/sdk/3d.md
@@ -1611,8 +1611,8 @@ A shader over the whole frame. Its source defines
| `samplers` | `Record<string, SamplerSpec>` | a file's samplers by name |
| `wesl` | `string` | the source in WESL (a superset of WGSL) |
| `wgsl` | `string` | the same in plain WGSL |
-| `uniforms` | `Record<string, number \| number[] \| string \| StorageValue>` | up to 16, as a surface shader's (a file's: each var<uniform>, a struct's { field: value }) |
-| `textures` | `Record<string, string \| Record<string, unknown>>` | up to 4, as a surface shader's, each read with its own sampler |
+| `uniforms` | `Record<string, number \| number[] \| string \| StorageValue>` | up to 16, as a surface shader's (a file's: each var<uniform>, a struct's { field: value }); each frame's own, so a camera's matrices, a time or a frame index handed in move through a render (each keeps its first frame's type) |
+| `textures` | `Record<string, string \| Record<string, unknown>>` | up to 4, as a surface shader's, each read with its own sampler; the first frame's for the whole render (pick a layer of a texture array with a uniform to change what's read frame by frame) |
| `defs` | `ShaderDefs` | shader defs, as a surface shader's |
| `at` | `"before-tonemap" \| "after-tonemap"` | "after-tonemap" (display colours; the default) or "before-tonemap" (the HDR frame, after bloom) |
| `prepass` | `boolean \| { depth?: boolean; normal?: boolean }` | the camera's depth and normal prepasses, for depth(uv) and normal(uv) (turns its multisampling off) |
diff --git a/docs/manual/reference/sdk/brief.md b/docs/manual/reference/sdk/brief.md
index e0a80310..ac98e40f 100644
--- a/docs/manual/reference/sdk/brief.md
+++ b/docs/manual/reference/sdk/brief.md
@@ -48,6 +48,8 @@ function brief(b: Brief): Brief
### `controller`
A workspace's controller (controllers/<id>.ts): settings in groups of typed fields that every agent works to.
+A standing decision ("every ad is 9:16"), not one piece of work: that's a feed item, and a note on it. The raea app
+shows a new controller in the project's feed, and an agent brings one to the person with `controller_post`.
```ts
function controller(c: ControllerInput): ControllerInput
diff --git a/docs/manual/reference/sdk/post_process.md b/docs/manual/reference/sdk/post_process.md
index 1dcd92fd..d666038a 100644
--- a/docs/manual/reference/sdk/post_process.md
+++ b/docs/manual/reference/sdk/post_process.md
@@ -208,8 +208,8 @@ A shader over the whole frame. Its source defines
| `samplers` | `Record<string, SamplerSpec>` | a file's samplers by name |
| `wesl` | `string` | the source in WESL (a superset of WGSL) |
| `wgsl` | `string` | the same in plain WGSL |
-| `uniforms` | `Record<string, number \| number[] \| string \| StorageValue>` | up to 16, as a surface shader's (a file's: each var<uniform>, a struct's { field: value }) |
-| `textures` | `Record<string, string \| Record<string, unknown>>` | up to 4, as a surface shader's, each read with its own sampler |
+| `uniforms` | `Record<string, number \| number[] \| string \| StorageValue>` | up to 16, as a surface shader's (a file's: each var<uniform>, a struct's { field: value }); each frame's own, so a camera's matrices, a time or a frame index handed in move through a render (each keeps its first frame's type) |
+| `textures` | `Record<string, string \| Record<string, unknown>>` | up to 4, as a surface shader's, each read with its own sampler; the first frame's for the whole render (pick a layer of a texture array with a uniform to change what's read frame by frame) |
| `defs` | `ShaderDefs` | shader defs, as a surface shader's |
| `at` | `"before-tonemap" \| "after-tonemap"` | "after-tonemap" (display colours; the default) or "before-tonemap" (the HDR frame, after bloom) |
| `prepass` | `boolean \| { depth?: boolean; normal?: boolean }` | the camera's depth and normal prepasses, for depth(uv) and normal(uv) (turns its multisampling off) |
diff --git a/docs/manual/reference/sdk/raea.md b/docs/manual/reference/sdk/raea.md
index 3ec8e7e0..d9d70df6 100644
--- a/docs/manual/reference/sdk/raea.md
+++ b/docs/manual/reference/sdk/raea.md
@@ -167,13 +167,16 @@ The master: every sound in the composition brought to `lufs` integrated loudness
### `Nudge`
-Moves its child by (x, y): an element gets the move in front of its own transform; a component, whose box it
-can't reach, moves inside a full-frame layer.
+Places its child: an element gets the move in front of its own transform and the fade times its own opacity; a
+component, whose box it can't reach, is placed inside a full-frame layer.
| Prop | Type | What it does |
| --- | --- | --- |
| `x` | `number` | how far to move it, in the composition's pixels |
| `y` | `number` | how far to move it down, in the composition's pixels |
+| `scale` | `number` | how much bigger (2) or smaller (0.5), about its centre |
+| `rotate` | `number` | a turn, in degrees, about its centre |
+| `opacity` | `number` | 0 (gone) to 1 (as it was), times its own opacity |
| `children` | `ReactNode` | the part it places: an element, or a component, which moves inside a full-frame layer |
### `Overlay`