ctx.logicalViewportSize

The frame size in CSS pixels, as a vec2f, for feature counts that should not change with screen density.

ctx.logicalViewportSize: CtxToken

Import ctx from shaders/std and use ctx.logicalViewportSize.