shiben.tech

x youtube linkedin instagram bluesky

Devlog - An easy and simple to understand C raytracer

Devlog - An easy and simple to understand C raytracer

Monday, 20 April 2026, 02:35 PM
# tech raytracer

simple c ray tracer output

This post is directly related to an earlier blog post. I have made a devlog on YouTube explaining how to get started with this. The code is written in C, but I have intentionally not followed good programming practices in it, making sure that code readability get the most points.

While it may be written simple, it covers all the basic rendering concepts of recursion of rays, basic diffuse and specular models, refraction, reflection and shadows, using transformations involving matrix multiplications. This is perfect for a budding graphics programmer as a starting point.

github/shibenb/simple-c-raytracer

Hope you learn something from it. Drop a comment under the video or message me on X if you find it useful or have any doubts, thanks.