This is a paid asset, but now you can download Black hole shader (2D/3D) for FREE, Please keep in mind this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
For more detail this asset from the Unity Asset Store: Click Here
Black hole shader (2D/3D) v1.22 (Latest version)
Black hole shader (2D/3D) v1.21.1
(Tested with Unity version 2020.3.23f1)
“If possible, please buy the package to support the developer”
Black hole shader, simple to use, has a light and realistic version, each of which has two design options. Works in 2D and 3D, with perspective and orthographic camera.
Works on PC, mobile devices and VR.
Allows you to control:
Select a view with or without halo
Select the mode for orthographic or perspective cameras
Width of all parts excluding singularity
Halo color
Color of the photon sphere
Width of the fluctuating part of the accretion disk
Width of the non-fluctuating part of the accretion disk
Width of the fluctuating part of the accretion disk
The speed of light oscillation in the fluctuating part of the accretion disk
Ligth brightness
The noise used to generate oscillating light
The degree of light deflection during gravitational lensing
Smoothing light deflection in gravitational lensing (scale of deflection of all rays)
Enable or disable smooth transitions between reflection probes in a realistic version of the shader