PolarCoordinates
Convert rectangular coordinates to polar space
Convert rectangular coordinates to polar space
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| center | position | {"x":0.5,"y":0.5} | The center point for polar coordinate conversion |
| wrap | range | 1 | Controls how much of the angular range to use (1 = full 360°, 0.5 = 180°) |
| radius | range | 1 | Controls how much of the radius range to use (affects the radial mapping) |
| intensity | range | 1 | Blends between original UVs (0) and polar coordinates (1) |
| edges | "stretch" | "transparent" | "mirror" | "wrap" | transparent | How to handle edges when distortion pushes content out of bounds |
Usage
vue
<Shader>
<PolarCoordinates
:radius="1"
:intensity="1"
>
<Circle />
</PolarCoordinates>
</Shader>