Skip to content

RenderingOptions.PixelSnapping Property

Definition

Namespace: Brine2D.Rendering

Snaps sprite/primitive vertex positions to whole pixel coordinates before submitting to the GPU. Eliminates sub-pixel jitter on pixel-art games. Default: true. Disable for smooth sub-pixel movement \(e\.g\., physics\-driven objects at high resolution\).

C#
public bool PixelSnapping { get; set; }

Property Value

System.Boolean