If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

2D rendering intuition


In the ray tracing algorithm, we start drawing a ray at
, continue it through
, and test whether it intersects with
You can use the interactive diagram below for help: