Skip to content

MangoButtermilch/Unity-volumetric-black-hole

Repository files navigation

Unity volumetric black hole

Compute shader approach for rendering a volumetric black hole in Unity

Experimental(https://www.youtube.com/watch?v=2_W_-2elfEs) Video Showcase of current version: https://www.youtube.com/watch?v=2_W_-2elfEs

Resources

Benchmark (before 4bfca642bbb7e9a593a03560ea4fb33170b2edce)

GPU Resolution px March steps Light steps FPS GPU LOAD
GTX 1070 480 x 270 500 4 60 (clamped) 64% - 66%
GTX 1070 720 x 405 750 1 60 (clamped) 95% - 100%
RTX 3060 480 x 270 500 4 150 (unclamped) 33% - 35%
RTX 3060 480 x 270 500 18 60 (unclamped) 100%
RTX 3060 850 x 490 500 4 55 - 60 (unclamped) 100%

Volume textures

The provided (pseudo) 3D textures are created with my free volume generator tool:

Volume generator(https://acetix.itch.io/pseudo-volume-generator)

Example settings

Example settings 1 Example settings 2

About

Compute shader approach for rendering a volumetric black hole

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages