Game dev
Saved & recent

Ray tracing

Related terms: path tracing, RTX, RT reflections

Draws by following rays of light. For each pixel a ray is shot from the camera into the scene. Where it hits, more rays go toward the lights to test for shadow, and off the surface to collect reflections.

It gives correct reflections, soft shadows and bounced light, at a high cost. Most games still rasterize the scene and add ray tracing for selected effects.

Further reading
Epic Games: hardware ray tracing
camera image sample primary ray visibility ray point light reflector reflected ray
One selected image sample sends a primary ray to the sphere. Ideal reflection sends the blue ray to the floor; the gold visibility ray reaches the point light unobstructed. This point-light example has a hard shadow and shows one reflection, without sampling soft shadows or diffuse indirect illumination.

View in the full Game dev collection