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.

R3F22: manual reference regenerated for the SDK's TSL compute (bun tools/manual-ref/sdk.ts gen): ThreeShaderMaterial's wgsl names the lit surface and the storage buffers it reads, and Compute takes three's kernels as well as ComputeProps

shinyobjectz090cfeff1a8b
diff --git a/docs/manual/reference/sdk/pbr.md b/docs/manual/reference/sdk/pbr.md
index 75c0319d..e3d84e78 100644
--- a/docs/manual/reference/sdk/pbr.md
+++ b/docs/manual/reference/sdk/pbr.md
@@ -626,7 +626,7 @@ from the first frame.
| Field | Type | What it is |
| --- | --- | --- |
| `glsl` | `{ vertex: string; fragment: string; raw?: boolean; vertexColors?: boolean }` | a ShaderMaterial's GLSL, its `#include`s expanded and its `defines` as #define lines in front; `raw` for a RawShaderMaterial (which declares three's built-ins itself), `vertexColors` as the material's |
-| `wgsl` | `{ vertex: string; fragment: string; uniforms?: { name: string; type: string; array?: nu…` | a node material's WGSL, as three's TSL builder writes it for raea (sdk/r3f's input/tsl.ts): the contract's `three_vertex` and `three_fragment`, its uniforms' types, the mesh attributes it reads beyond the standard four |
+| `wgsl` | `{ vertex: string; fragment: string; uniforms?: { name: string; type: string; array?: nu…` | a node material's WGSL, as three's TSL builder writes it for raea (sdk/r3f's input/tsl.ts): the contract's `three_vertex` and `three_fragment`, its uniforms' types, the mesh attributes it reads beyond the standard four, whether it is a lit surface (three_surface), and the storage buffers it reads (`tsl_s0`, `tsl_s1`: each a buffer a <Compute>'s kernels share by key, its size in bytes and first contents) |
| `uniforms` | `Record<string, ThreeUniform>` | each uniform's value this frame |
| `textures` | `Record<string, string \| { src: string; colorSpace?: "srgb" \| "linear"; sampler?: Record…` | each sampler's picture: a file, a data URL, "render:NAME" (at most four); `colorSpace: "linear"` for one three samples raw (NoColorSpace: a distance field, a data map), "srgb" (the default) for a colour picture |
| `output` | `"display" \| "linear"` | "display": its colour is what three's canvas shows (a ShaderMaterial's); "linear": scene light, tone-mapped as the rest of the frame is (a node material's) |
diff --git a/docs/manual/reference/sdk/post_process.md b/docs/manual/reference/sdk/post_process.md
index c1418453..925c217f 100644
--- a/docs/manual/reference/sdk/post_process.md
+++ b/docs/manual/reference/sdk/post_process.md
@@ -55,8 +55,6 @@ A compute over the frame, in the 3D beside the camera; several run in the order
Rust: `raea_sys_compute::Computes`.
-Takes [`ComputeProps`](3d.md#computeprops)'s props.
-
### `DepthOfField`
A lens's depth of field: what's nearer or farther than the camera's `focus` blurs. Put it inside the Canvas3D;