Skip to content
Sign UpLog In

Raycasted 3D Sun

trippings
trippings
25 followers
Made with
C
C
Published on Dec 3, 2022
  • #cpp
  • #Raycasting

A C program that uses raycasting to render a 3D representation of the sun. The program calculates the intersection of a ray with a sphere representing the sun, and determines the color of each pixel based on the sun's surface color at that point. The resulting image is outputted in the PPM format.

Loading comments...