Kessel Run (Shader Demo)
My submission for the 2024 OLC Code jam (https://itch.io/jam/olc-codejam-2024)
"It's the ship that made the Kessel Run in less than twelve parsecs" Han Solo
Click to move the black hole around the screen.
This was my first real shader project and my goal was to experiment with ray marching, noise and how ray marching could work in a medium of continuously varying refractive index. I found this paper (https://arxiv.org/pdf/0711.0633) which describes the index of refraction around a black hole as a function of G, m and r (equation 19). The values for them aren't accurate though but I think the overall effect of the lensing is more or less what I was trying to capture.
Made in Shadertoy: https://www.shadertoy.com/view/XfBfzR
If you're not familiar with shadertoy, it is a site that allows you to code a pixel shader in glsl (webgl) and run it in the browser. No assets were used in this, everything is grammatically generated and rendered through the custom ray marcher.
Jake
Leave a comment
Log in with itch.io to leave a comment.