linearClamp constant

SamplerOptions const linearClamp

Smooth and clamped: the default for sampling a full-screen buffer, where wrapping would fold the far edge onto the near one.

Implementation

static const SamplerOptions linearClamp = SamplerOptions(
  minFilter: MinMagFilter.linear,
  magFilter: MinMagFilter.linear,
  widthAddressMode: SamplerAddressMode.clampToEdge,
  heightAddressMode: SamplerAddressMode.clampToEdge,
);