Documentation

Spherize

Map content onto a 3D sphere surface with depth distortion

Props

radiusnumber
Default:1
Radius of the sphere (1 = half viewport height)
depthnumber
Default:1
How much the sphere bulges toward viewer (0 = flat, higher = more bulge)
center{x: number, y: number}
Default:{"x":0.5,"y":0.5}
The center point of the sphere
lightPosition{x: number, y: number}
Default:{"x":0.3,"y":0.3}
Position of the specular light source
lightIntensitynumber
Default:0.5
Intensity of the rim light (0 = off)
lightSoftnessnumber
Default:0.5
Softness of the rim light falloff (0 = hard edge, 1 = soft glow)
lightColorstring
Default:#ffffff
Color of the specular highlight

Usage

<Shader>
  <Spherize
    radius={1}
  >
    <Circle />
  </Spherize>
</Shader>