$decal: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) (Removed redirect to Decals) Tag: Removed redirect |
SirYodaJedi (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{this is a|shader parameter|name=$decal|engine=source}} It offsets any faces assigned the material by a minuscule amount along its [[surface normal]], preventing z-fighting with coplanar faces. This makes it suitable for [[decals]]. | {{this is a|shader parameter|name=$decal|engine=source}} It offsets any faces assigned the material by a minuscule amount along its [[surface normal]], preventing [[z-fighting]] with coplanar faces. This makes it suitable for [[decals]]. | ||
[[Category:Shader parameters|d]] | [[Category:Shader parameters|d]] |
Revision as of 10:16, 1 April 2025
$decal
is a material shader parameter available in all Source games. It offsets any faces assigned the material by a minuscule amount along its surface normal, preventing z-fighting with coplanar faces. This makes it suitable for decals.