Ray tracing is used for more than just pretty graphics, especially in 2D, eg. calculating line of sight and drawing shadows.
There are tons of material online explaining the topic. Just Google it.
If you plan to get into this sort of thing, I highly recommend starting with 2D. Graphics programming is a pretty heavy topic, and it gets unimaginably more complex in 3 dimensions.
View all comments
Show parent comment
13
u/RIcaz Jul 18 '20
Ray tracing is used for more than just pretty graphics, especially in 2D, eg. calculating line of sight and drawing shadows.
There are tons of material online explaining the topic. Just Google it.
If you plan to get into this sort of thing, I highly recommend starting with 2D. Graphics programming is a pretty heavy topic, and it gets unimaginably more complex in 3 dimensions.