Raze RTX · in development

Duke Nukem 3D · path traced

Raze RTX

A path tracer built into a fork of the Raze source port. Light bounces, shadows fall and puddles reflect the way they would in a film renderer, at game frame rates.

In developmentWindows · NVIDIA RTX

What you’re watching

E4L1 at night in a storm, captured from the game along a scripted camera path with the level’s own lighting settings. Every frame is path traced and denoised by DLSS Ray Reconstruction. Nothing is baked: the light comes from the lightning, the gate lamps and the fires.

A canyon wall of carved sandstone with deep folds and the west door, lit by a lightning strike.

01 · Displacement

The HD textures become real rock.

The height in each high-resolution texture is carved into the surface as actual geometry. Rays hit the folds, the folds cast shadows, and the shading follows the relief. The geometry is cut once and kept on the GPU, so it adds little to each frame.

Wet cobbled ground lit by a strike, puddles in the low spots and rain rings spreading across them.

02 · Rain

Puddles where the ground is low.

Water collects in the low parts of each texture. Rain rings spread across the puddles and bend the reflections. The ground is a MaterialX Standard Surface with a wet clear coat, so it shines at grazing angles the way wet stone does.

Two lightning bolts strike the wet canyon floor, lighting the rock walls and the boulder.

03 · Lightning

Every strike is a light.

The game’s lightning bolts are light sources in the path tracer. For the moment a bolt is on screen it lights the canyon walls and the water and casts real shadows. It isn’t just a brighter screen.

A low stone room at night, lit only by fires burning in two wall alcoves.

04 · Fire

Lit by what burns.

Fires light the room from the pixels that actually glow, flicker with their animation and are blocked by walls. Below the canyon, two of them are the only light in the room.

A lightning bolt and the canyon walls mirrored in the standing water.

05 · Reflections

Traced, not faked.

Reflections are traced rays, with exact Fresnel for water, glass and metal. Anything off screen still reflects, including the sky, the walls behind you and the inside of a room.

Also in the renderer

Under the hood

API
Direct3D 12, inline ray tracing (RayQuery, shader model 6.5)
Denoise
NVIDIA DLSS Ray Reconstruction
Scene
The world, sprites and models are captured each frame into one acceleration structure
Lights
Every emissive surface goes into a light tree that is sampled with shadow rays
Base
A fork of Raze, the open source port of the Build engine games