goofi v3.0.0

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.

Feedback wgsl
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

SlotDirectionType
inputinputTEXTURE
outoutputTEXTURE

Parameters

common

NameTypeDefaultRangeDoc
widthint00 … 8192Texture size in pixels; 0 follows the first wired texture input. A node that makes its own frames follows the patch's default instead.
heightint00 … 8192Texture 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.

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);
}

← All nodes