Feedback
the previous tick's input
The one node a loop closes through: it reads its input as the last tick left it, so a chain can build on what it drew.
input
out
- Type name
graphics:Feedback- Plane
graphics- Tags
imagetransform- Language
wgsl- Tier
shader- Bundle
graphics- Source
node-bundles/graphics/Feedback.wgsl- Availability
- available
Slots
| Slot | Direction | Type | |
|---|---|---|---|
input | input | TEXTURE | |
out | output | TEXTURE |
Parameters
common
| Name | Type | Default | Range | Doc |
|---|---|---|---|---|
width | int | 0 | 0 … 8192 | Texture size in pixels; 0 follows the first wired texture input. A node that makes its own frames follows the patch's default instead. |
height | int | 0 | 0 … 8192 | Texture size in pixels; 0 follows the first wired texture input. A node that makes its own frames follows the patch's default instead. |
Source
The current source of this node, as it stands in the goofi repository at node-bundles/graphics/Feedback.wgsl.
/* goofi
{ "doc": "the previous tick's input\nThe one node a loop closes through: it reads its input as the last tick left it, so a chain can build on what it drew.",
"tags": ["image", "transform"],
"inputs": [{"name": "input", "kind": "TEXTURE"}],
"feedback": true }
*/
fn shade(uv: vec2f) -> vec4f {
return textureSample(input, samp, uv);
}