WorldGGX: Difference between revisions
Jump to navigation
Jump to search
Bug:This shader won't receive light from env_projectedtextures like the player's flashlight. If the player is allowed to use a flashlight, the best case scenario is to only use this shader on materials in lit up areas. [todo tested in ?]
SirYodaJedi (talk | contribs) |
SirYodaJedi (talk | contribs) |
||
Line 4: | Line 4: | ||
== Supported Parameters == | == Supported Parameters == | ||
{{MatParam|$basetexture|to=$basetexture2||Diffuse texture.}} | |||
{{MatParam|$bumpmap|to=$bumpmap2||Normal mapping. {{bug|Animated bump maps aren't possible as the shader lacks the $bumpframe parameter.}} }} | |||
{{MatParam|$color2||Color tinting.}} | |||
{{MatParam|$detail||Detail texturing.}} | |||
{{MatParam|$envmap||Specular reflections.}} | |||
{{MatParam|$blendmodulatetexture||Modulation texture for Displacement blending.}} | |||
=== Blend Mapping Parameters === | === Blend Mapping Parameters === | ||
{{MatParam|$blendmap|to=$blendmap2|texture|Blend map to use for specular and parallaxing (if $parallax is 1). Can also take a height map.}} | |||
{{MatParam|$heightscale|to=$heightscale2|float|A scalar for the $blendmap(2)'s parallax effect.}} | |||
{{MatParam|$heightblend|bool|Enabling allows use of $blendmap and $blendmap2.}} | |||
{{MatParam|$heightblendoffset|float|Offsets the blend map, default is 0.5.}} | |||
{{MatParam|$parallax|bool|Enabling uses the blend map as a height map for a parallax effect.}} | |||
{{MatParam|$selfshadow|bool|Enabling creates ambient occlusion around the parallax effect.}} | |||
=== Misc. Parameters === | === Misc. Parameters === | ||
{{MatParam|$roughnessmultiplier|float|Multiplier for roughness. {{TODO|More detail, what is roughness?}} }} | |||
{{MatParam|$lumroughness|bool|Enabling makes use of the luminance to affect the roughness, default is 0. {{TODO|More detail, luminance of the $basetexture?}} }} | |||
== See also == | == See also == | ||
*{{ent|SurfaceGGX}}, similar shader used for models. | *{{ent|SurfaceGGX}}, similar shader used for models. |
Revision as of 23:35, 23 January 2024
WorldGGX
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. Displacement blending similar to WorldVertexTransition is supported.

Supported Parameters
$basetexture
$bumpmap
$color2
$detail
$envmap
$blendmodulatetexture
Blend Mapping Parameters
$blendmap
$heightscale
$heightblend
$heightblendoffset
$parallax
$selfshadow
Misc. Parameters
$roughnessmultiplier
$lumroughness
See also
- SurfaceGGX, similar shader used for models.