How GTA 6's Ray-Traced Reflections Work

That neon sign mirrored perfectly in a GTA 6 puddle is light run backwards: the console fires a ray out of your screen, bounces it off the water, and asks what it hits — about once per pixel, thirty times a second.

How GTA 6's Ray-Traced Reflections Work — interactive 3D animation

Step 01 of 07

The puddle in GTA 6

Wet, neon-lit streets are all over GTA 6's trailers, and the puddles give the game away: the sign on the wall shows up in the water on the road, sharp and in exactly the right place. Older games mostly faked that. Digital Foundry's trailer breakdowns found real ray-traced reflections in GTA 6 — reports point to cars, glass and some of the water — mixed with a cheaper trick you'll meet in step 6. Here is what the console does to paint that one patch of pink.

Step 02 of 07

Light, run backwards

In a real street, light leaves the neon tube, bounces off the water and lands in your eye. Simulating that is hopeless — almost none of the light a sign gives off ever reaches you. So the renderer runs it in reverse. Your screen is a grid of pixels, and for each one it fires a ray out of a virtual camera, through that pixel, into the 3D street. This one lands in the puddle.

Step 03 of 07

The bounce

At the puddle the ray needs to know where to go next. The renderer reads the surface normal — the direction the water faces, straight up — and mirrors the ray around it: angle in equals angle out. The new ray flies on until it strikes the neon sign. The colour it finds there is carried back along the path, and that one pixel turns pink. That is a ray-traced reflection: one pixel, one question, one answer.

Step 04 of 07

Boxes inside boxes

The bounce is easy. The slow part is finding what the ray hits among millions of triangles. So the scene is wrapped in a tree of boxes: the ray checks the big box, then the boxes inside it, and any box it misses is skipped along with everything in it. Here it rules out the car, the palm, the shop window and the lamp without touching them, and only tests the triangles of the sign. The PS5's graphics chip has 36 ray accelerators — circuits that do nothing but these box and triangle checks.

Step 05 of 07

Mirror or smear

Still water is almost a perfect mirror, so its bounce rays stay together in a tight bundle and the reflection is sharp. Rough wet asphalt scatters them into a wide cone — which is why neon on a road smears into long streaks. A film frame spends hundreds of rays per pixel averaging that out. A game running at 30 frames a second can afford about one, so the raw picture comes out speckled. A denoiser cleans it, borrowing from neighbouring pixels and from the frames before.

Step 06 of 07

The cheap trick, and where it breaks

Ray tracing is expensive, so games also use screen-space reflections: reuse the finished image and march across it looking for what belongs in the water. That only works if the thing is already on screen. Tilt the camera down until the sign leaves the top of the frame and the march runs off the edge — the reflection vanishes. A traced ray isn't limited to the picture; it flies on through the 3D street and still finds the sign. Trailer analysis suggests GTA 6 mixes both, saving traced rays for where they show.

Step 07 of 07

Every pixel, every frame

Now do it for every pixel. Each ray leaves the camera and hits the street; if it lands in the puddle it bounces once more and brings back whatever it finds. The grid fills with the colours those rays actually found — a tiny ray-traced picture of this street, computed from these models. GTA 6 does the same for every reflective pixel on your screen, thirty times a second. Every puddle is a ray running backwards.