RectangularCoordinates

Convert polar coordinates back to rectangular space

Props

  • center

    The center point for rectangular coordinate conversion

    Type
    {x: number, y: number}
    Default
    {"x":0.5,"y":0.5}
  • scale

    Scale factor for the rectangular output

    Type
    number
    Default
    1
  • intensity

    Blends between original UVs (0) and rectangular coordinates (1)

    Type
    number
    Default
    1
  • edges

    How to handle edges when distortion pushes content out of bounds

    Type
    "stretch" | "transparent" | "mirror" | "wrap"
    Default
    transparent

Usage

<Shader>
  <RectangularCoordinates
    intensity={1}
  >
    <Circle />
  </RectangularCoordinates>
</Shader>