A simple spheres raytracer with editable images

It can render spheres of different colour, light and also renders specular reflections.

This entire script/shader is purely mathematical (which i bearly understand), only using the sphere objects in studio to get object data in the scene for convince. Using the buffer object to push the pixel data to the EditableImage

Although I’m proud of it, it has it’s flaws, main one being that since it’s cpu based, it’s extremely slow to render one frame, which has forced me to keep resolution low, I’m still trying to find solutions to decrease the render time.

I used Sebastian’s league’s raytracer videos to get a understanding on the concept and put it in roblox.

If you have any suggestions to make this tracer perform better, I’m open to hear from you!

6 Likes