Repository navigation
Per Pixel Lighting
The original lights the world per vertex: a brick wall is as flat as its polygon. With rt_pbr=1 surfaces are lit per
pixel from surface maps - a normal (bump) map, roughness and height made from your own textures by a tool. The
bricks, cracks and cobbles catch the sun, shiny surfaces get highlights, and skaters and objects are lit per pixel too.
On top of that:
-
Detail materials (
rt_detail=1) - each surface gets its real material: a high-resolution detail layer (grain, bumps, roughness) up close that fades out with distance, and the roughness and reflectance of asphalt, concrete, brick, stone, metal, wood, dirt, grass, tiles, plaster or gravel. -
De-lighting (
rt_delight=1) - evens out the shadows and highlights painted into the textures, so the lighting does the shading. The files aren't changed.

Boston, the same view twice. Top: off. Bottom: rt_pbr=1 at its default strengths - the bricks, the steps' edges and
the statue show their bumps in the sun.

The same view. Top: rt_pbr=1. Bottom: with rt_detail=1 and rt_delight=1 - the dark patches painted into the
cobbles even out and the stone gets grain. At this distance the difference is small: the detail layer shows up close.
The maps are made once from your installed textures:
node tools/pbr_maps/pbr_maps.ts make --game C:\Games\THUG2
Each texture is classified (text, decals, overlays and see-through textures are left alone) and gets a bump of its own
from its level's terrain and its texel size, so smooth surfaces stay calm. The files go next to the levels' texture
dictionaries (<dictionary>.pbr); remove takes them away again. --levels bo,au makes only some levels.
For detail materials, the material library (CC0 scans from Poly Haven, about 130 MB):
node tools/detail_materials/detail_materials.ts fetch
node tools/detail_materials/detail_materials.ts pack --game C:\Games\THUG2
This writes thug2-decomp-materials.t2dm next to the exe. Without it, surfaces still get their kind's roughness and
reflectance from the surface maps' classes.
Runs on Vulkan; no ray tracing needed, but it looks best with ray-traced lighting.
| Where | Setting |
|---|---|
| Options > Surfaces | Per-pixel lighting, Highlights, Surface bumps, Surface detail, Detail strength, Flatten painted shadows, Flatten strength |
thug2-decomp.ini [Graphics]
|
rt_pbr=1, rt_detail=1, rt_delight=1
|
| Key | Default | What it does |
|---|---|---|
rt_pbr_specular |
1 | How strong the highlights are (0: none) |
rt_pbr_normal_strength |
1 | How deep the bumps look (0 flat, 2 twice as deep) |
rt_pbr_objects |
1 | 0: only surfaces with a map are lit per pixel; skaters and objects keep the game's lighting |
rt_detail_strength |
1 | How strong the detail layer is (0.5-1.5) |
rt_delight_strength |
0.5 | How far the painted shading is evened out (0.25-0.75) |
- Make the maps again after replacing textures (a texture set or a mod): a map is matched to its texture's content, so a changed texture simply has none until then.
-
--generator chorduses a research model you fetch and run locally; textures it does badly on fall back to the classical generator.
Rendering
- Vulkan renderer
- Graphics options
- Ray-traced lighting
- Reflections
- Relit levels
- Per-pixel lighting
- Sky and fog
- Water
- Grass
- Lamp lights
- HDR and bloom
- Upscaling
- Tessellation
Looks
Gameplay and content
Tools