LAYER_GLOW beta
Variable of @v12-engine/render
ts
LAYER_GLOW = "\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\nstruct Glow { colour: vec4f }\n@group(0) @binding(1) var<uniform> glow: Glow;\n"The glow's: the batch's colour (Batch.glow), which the fragment returns, times whatever of its own says where it shines