orbitSpotsAccum

The spots of one color orbiting the band, as coverage at this pixel.

orbitSpotsAccum(
  angle01: number,
  border: number,
  animTime: number,
  beat: number,
  spotsF: number,
  spotSize: number,
  pulse: number,
  intensity: number,
  softness: number,
  seed: number,
  colorIdxF: number,
): v2f

Import effects from shaders/std and use effects.edgeGlow.orbitSpotsAccum.

Call it once per color. Takes the angle and band from edgeGlowBand, the layer's clock, the shared beat, spots (1 to 5 per color), spotSize (0 to 1), pulse (0 to 1), intensity (0 to 1), softness, seed and the color's index. Returns a pair for edgeGlowAccumColorFor: .x the layered coverage and .y the additive sum used for bloom.

Parameters

NameTypeNotes
args[angle01: number, border: number, animTime: number, beat: number, spotsF: number, spotSize: number, pulse: number, intensity: number, softness: number, seed: number, colorIdxF: number]

Example

const sectors = call(orbitSpotsAccum, 'orbitSpotsAccum', [band.member('y'), band.member('x'), t, beat, uniforms.spots, uniforms.spotSize, uniforms.pulse, uniforms.intensity, uniforms.softness, uniforms.seed, floatE(colorIndex)])

See also

  • edgeGlowBand — The glowing band around the shape's edge, with drifting smoke, plus the angle around the shape.
  • edgeGlowAccumColorFor — The fold step for one color space: adds one color's spots to the running state.

Used by

LightEdge