$displacementmap: Difference between revisions
Jump to navigation
Jump to search
m (talk about requirements) |
Deprecated (talk | contribs) (Added $displacementwrinkle from cra0kalo's VertexLitGeneric documentation) |
||
Line 8: | Line 8: | ||
==Syntax== | ==Syntax== | ||
$displacementmap < | $displacementmap <[[texture]]> | ||
$displacementwrinkle <[[bool]]> | |||
==External Links== | ==External Links== |
Revision as of 13:59, 24 April 2019
The $displacementmap command is an alternative to $bumpmap that uses a heightmap to give the illusion of depth.
It's the most realistic of all the texture shadowing techniques, but consequently is also the most expensive.
It requires a model compiled with $subd. For best results use a relatively high tessellation level.
Todo: Find when it was added into the engine, the earliest example appears to be in Alien Swarm although it works in SFM
Syntax
$displacementmap <texture> $displacementwrinkle <bool>