Summer pricing is live: save $50 on Starwind Pro lifetime access.

Event Horizon

Pro

A black hole with a luminous accretion disk and bent light, adapted from Apache-2.0 shader source.

Upgrade to Pro
Loading code...

Starwind Dependencies

Sign in to view code and copy install commands.

Sign in

This component requires Starwind Pro.

Get lifetime access to all premium components, updates, and priority support.

Upgrade to Pro

Failed to load code. Please try again.

Code

Usage
<ShaderEventHorizon
  viewTilt={83.72}
  viewAngle={0}
  dragEnabled={true}
  diskDrift={0.16}
  diskBrightness={1.25}
  lensScale={1}
  diskColor="#ffb65e"
  backdropColor="#030406"
/>

Props

proptypedefaultdescription
viewTilt number 83.72 Inclination from the disk normal in degrees, from face-on to nearly edge-on.
viewAngle number 0 Rotation of the view in degrees.
dragEnabled boolean true Enable the camera trackball and its keyboard controls.
diskDrift number 0.16 Disk drift amount.
diskBrightness number 1.25 Disk brightness amount.
lensScale number 1 Lens scale amount.
diskColor string "#ffb65e" Disk CSS color.
backdropColor string "#030406" Backdrop CSS color.
opacity number 1 Effect opacity.
maxDpr number 1 Maximum device pixel ratio.