Lighting & rendering · Intermediate

Ray tracing

Rendering by following rays of light for true reflections and shadows

What is ray tracing?

Ray tracing is a rendering method that follows rays of light as they bounce around a scene to work out what each pixel should show. Because it models how light really behaves, it gives natural reflections, soft shadows and refraction through glass, at a higher computing cost than rasterization.

Think of it like this

It is like working out a photo by tracing every line of sight from the camera back to the lights, one pixel at a time.

Where it fits in a 3D project

  1. Create
  2. Surface
  3. Rig
  4. Animate
  5. Render
  6. Export

Render: Lighting the scene and turning it into images or video.

CameraPixelsLightHit: check light, shadow, reflection
A ray leaves the camera through a pixel, hits a surface, then checks lights and reflections.

How ray tracing works

  1. 01For each pixel, a ray is sent from the camera into the scene.
  2. 02When it hits a surface, new rays check lights, reflections and shadows.
  3. 03The results are combined into that pixel’s color.
  4. 04More rays per pixel mean less noise and a cleaner image.

Ray tracing vs rasterization

PropertyRay tracingRasterization
How it worksFollows light raysProjects triangles onto the screen
Reflections and shadowsPhysically accurateApproximated with tricks
SpeedSlowerVery fast
Typical useFilm, product shots, high-end gamesMost real-time games and apps

Rasterize when speed matters most; ray trace when lighting has to look true. Modern games often mix both.

Where ray tracing is used

  • Product and architectural renders
  • Film and animation frames
  • Realistic reflections in modern games

Beginner tip

If a ray-traced render looks speckled, raise the sample count or turn on a denoiser before adding lights. Speckle usually means too few rays, not too little light.

Ray tracing FAQ

Is ray tracing the same as path tracing?
Path tracing is a type of ray tracing. It sends many random rays per pixel and follows them through several bounces, which captures indirect light. Simpler ray tracing may follow only direct reflections and shadows.
Why is ray tracing slow?
Every pixel needs many rays, and every ray must test which surfaces it hits: millions of calculations per frame. Graphics cards with ray-tracing hardware, plus denoisers, make it practical in real time.
Do beginners need ray tracing?
Not to start. A real-time viewport is enough for modeling and layout. Switch to a ray-traced engine for final images, where reflections and soft shadows make the biggest difference.

Updated October 29, 2026 · Browse all 3D terms