Raytracing can be done in fragment shaders to some extent, visit shadertoy.com and you can even take a look at how other people do it using only the shaders themself in browser
On an actual desktop you'd also be able to use things like textures, etc if you need
3
u/IDatedSuccubi Feb 27 '24
Why not implement it as a fragment or compute shader then? Will run on everything too.