Toggle Sidebar B
Light & dark mode D

Spherize

Map content onto a 3D sphere surface with depth distortion

Map content onto a 3D sphere surface with depth distortion

Props

PropTypeDefaultDescription
radiusrange1Radius of the sphere (1 = half viewport height)
depthrange1How much the sphere bulges toward viewer (0 = flat, higher = more bulge)
centerposition{"x":0.5,"y":0.5}The center point of the sphere
lightPositionposition{"x":0.3,"y":0.3}Position of the specular light source
lightIntensityrange0.5Intensity of the rim light (0 = off)
lightSoftnessrange0.5Softness of the rim light falloff (0 = hard edge, 1 = soft glow)
lightColorcolor#ffffffColor of the specular highlight

Usage

vue
<Shader>
  <Spherize
    :radius="1"
  >
    <Circle />
  </Spherize>
</Shader>