Physically Based Rendering (PBR)
IMPORTANT
Status: Supported
Minimal version: 1.3
PBS lighting model
Enable PBS in engine_external.ltx by removing/commenting the first line or setting it to 0.
Description of other macros:
To enable a PBS material for a texture, choose the lighting model when creating the THM in IXR editors
- or via THM Editor (Mortan’s build).
PBS material packing
BUMP — Texture 2D — geometry data (classic BC3N packing)
- BUMP R — Height map for parallax/tessellation (optional) — leave empty by default (BC3N writes garbage)
- BUMP G — Normal map green channel (OpenGL format)
- BUMP B — Blue channel (optional) — reserved; leave empty by default (BC3N writes garbage)
- BUMP A — Red channel of the original normal
BUMP# — Texture 2D — material packing
- BUMP# R — Metalness map
- BUMP# G — Roughness map
- BUMP# B — Translucency (SSS) for vegetation — black by default
- BUMP# A — AO map
IBL lighting
For correct IBL you need baked mip levels on environment textures (skyboxes).
The diffuse irradiance map (small sky) does not need high resolution. Spherical harmonics for diffuse may be supported later.