Event Horizon
Pro
A black hole with a luminous accretion disk and bent light, adapted from Apache-2.0 shader source.
Code
Usage
<ShaderEventHorizon
viewTilt={83.72}
viewAngle={0}
dragEnabled={true}
diskDrift={0.16}
diskBrightness={1.25}
lensScale={1}
diskColor="#ffb65e"
backdropColor="#030406"
/>Props
| prop | type | default | description |
|---|---|---|---|
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. |