This is a raytracer-like project baseed on Oldschooler2's project "Fast Raytracer."
The light and color patterns are completely interactive.
Variables:
shader_spot_x = the x position of the shader arrow
shader_spot_y = the y position of the shader arrow
Note: the shader always points towards (0,0)
color_spot = the spot where the shader bulb is, so
value of -1 = object on the right
value of 0 = object on the bottom
value of 1 = object on the left
value of 2 = object on the top
color = pen color
light = pen shade
Hope you like it!
Comments
You need to be logged in to post comments
Add a Comment
??
(view all replies)Comment Reply