Skip to content

LAYER_OUTLINE beta ​

Variable of @v12-engine/render

ts
LAYER_OUTLINE = "\n\nstruct Layer {\n\t// the view and projection the frame is drawn with (jittered, as the view's pass has it)\n\tviewProjection: mat4x4f,\n\t// the same without the jitter, this frame's and the frame's before\n\tplain: mat4x4f,\n\tlast: mat4x4f,\n\t// the picture's width and height in pixels, and 1 / them\n\tsize: vec4f,\n}\n@group(0) @binding(0) var<uniform> layer: Layer;\n\n// A thing's number and its style, as the mask keeps them\nfn outlineOut(mark: vec4f) -> vec4f {\n\treturn vec4f(mark.xy, 0.0, 1.0);\n}\n"

The outline's: after a copy's own record its mark comes in one more location (a vec4f), which the fragment returns through outlineOut