pointSlot.presenceRadius

The mote's size: params.bodyR scaled by the same per-mote presence as the brightness, so the motes that read nearer are bigger and brighter together.

pointSlot.presenceRadius(layout: {readonly $: {readonly params: {readonly bodyR: number}}}): PointWorldSplatConfig['bodyRadius']

Import sim from shaders/std and use sim.agentRender.pointSlot.presenceRadius.

Parameters

NameTypeNotes
layout{readonly $: {readonly params: {readonly bodyR: number}}}

Example

bodyRadius: pointSlot.presenceRadius(simLayout)

See also

  • pointSlot.twinkleBrightness — The mote's brightness: a twinkle at freq cycles per second, blended in by params.twinkle (0 steady, 1 full shimmer), times a per-mote presence so some motes read nearer than others.