Skip to content

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.

image

Description of other macros:

image

To enable a PBS material for a texture, choose the lighting model when creating the THM in IXR editors

image


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

image

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

image


IBL lighting

For correct IBL you need baked mip levels on environment textures (skyboxes).

image

The diffuse irradiance map (small sky) does not need high resolution. Spherical harmonics for diffuse may be supported later.

image

Published under the MIT license.