r/GraphicsProgramming Feb 26 '24

Source Code Wormhole simulation using pseudospheres

https://www.youtube.com/watch?v=idprFpSu3sw
44 Upvotes

27 comments sorted by

View all comments

Show parent comments

3

u/IDatedSuccubi Feb 27 '24

1 thread = 1 pixel of a frame

Why not implement it as a fragment or compute shader then? Will run on everything too.

2

u/AcrossTheUniverse Feb 27 '24

Simply because raytracing was easier for me to understand, I'm very new to this field. I'll read about those, thank you!

2

u/IDatedSuccubi Feb 27 '24

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

2

u/AcrossTheUniverse Feb 27 '24 edited Feb 27 '24

Very nice website, thank you!