Documentation

Form3D

Wraps child content onto a 3D raymarched shape with lighting.

Props

shape3dstring
Default:{"type":"ribbon","angle":0,"twist":50,"width":40,"thickness":20,"seed":0}
3D shape and its parameters
center{x: number, y: number}
Default:{"x":0.5,"y":0.5}
Center position of the shape on screen
zoomnumber
Default:50
Camera zoom level
glossinessnumber
Default:50
Specular highlight intensity and sharpness
lightingnumber
Default:50
Overall intensity of lighting effects
uvMode"stretch" | "mirror" | "wrap"
Default:stretch
How to handle UV coordinates at shape boundaries
speednumber
Default:1
Animation speed — scales all spin rates

Usage

<Shader>
  <Form3D>
    <Circle />
  </Form3D>
</Shader>