Skip to main content

REFERENCE_PX

Constant REFERENCE_PX 

Source
pub const REFERENCE_PX: u32 = 230_400;
Expand description

The render target the attractor’s sample density is anchored to: 640x360, 230 400 pixels.

The attractor’s trail grid is surface-sized, so its deposit spreads over whatever the target holds and a flat count therefore falls in density as the target grows — 0.651 particles per pixel per frame here, 0.072 at 1080p, which is the whole of the “it just looks like Leviathan upscaled” verdict. This is the size whose density is already accepted, so it is where attractor_budget resolves to exactly the tier’s own anchor.

The denominator is target pixels, not grid texels, and the two differ by the grid’s 256-px quantization — 1.71x here, 1.07x at 720p, 1.26x at 1080p, 1.00x at 4K. Bounded, and named because the deposit lands per texel.