Pixelate

Pixelation effect with adjustable cell size

Props

  • scale

    Number of pixels along the longest edge (higher = smaller pixels)

    Type
    number
    Default
    50
  • gap

    Space between pixels as a fraction of cell size (0 = no gap, 1 = fully invisible)

    Type
    number
    Default
    0
  • roundness

    Roundness of each pixel's corners (0 = square, 1 = circle)

    Type
    number
    Default
    0

Usage

<Shader>
  <Pixelate>
    <Circle />
  </Pixelate>
</Shader>