Perspective
Rotate the plane in 3D space with pan and tilt
Rotate the plane in 3D space with pan and tilt
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| center | position | {"x":0.5,"y":0.5} | Center point of rotation |
| pan | range | 0 | Horizontal rotation (left/right) |
| tilt | range | 0 | Vertical rotation (up/down) |
| fov | range | 60 | Field of view - controls perspective intensity |
| zoom | range | 1 | Zoom in to fill the frame after rotation |
| offset | position | {"x":0.5,"y":0.5} | Shift the result in X/Y |
| edges | "stretch" | "transparent" | "mirror" | "wrap" | transparent | How to handle edges |
Usage
vue
<Shader>
<Perspective>
<Circle />
</Perspective>
</Shader>