Here's the SQL query that implements a ray tracer and runs to render every frame: https://github.com/petergpt/doomql/blob/main/sql/003_render....