SurfaceGGX
Jump to navigation
Jump to search
SurfaceGGX
is a material shader available in the following Source engine games:
Day of Infamy ,
Insurgency . It was first introduced in Day of Infamy and back ported to Insurgency. It supports PBR.

Supported Parameters
[[$basetexture|$basetexture]]
[[$bumpmap|$bumpmap]]
[[$color2|$color2]]
[[$detail|$detail]]
[[$envmap|$envmap]]
[[$alphatest|$alphatest]]
Metalness Parameters
Specular/Gloss Parameters
Misc. Parameters
Configuring the masks
$phongexponenttexture
The RGB channels of $phongexponenttexture
is configured as follows:
Channel | Data |
---|---|
Red | Glossiness (roughness inverted) |
Green | Metalness inverted |
Blue | Sub-surface scattering mask |
$metal
must be set to 1
in order to use the green channel.

$fuzz
and $detailnormal
use the inverse of the blue channel.$masks
The RGB and alpha channels of $masks
is configured as follows:
Channel | Data |
---|---|
RGB | Specular tint |
Alpha | Glossiness |
$pbr
must be enabled to make use of $masks
.
See Also
- WorldGGX, similar shader used for brushes and displacements.