$displacementmap: Difference between revisions
Jump to navigation
Jump to search
(Created page with "TODO ADD DOCS WIP http://youtu.be/2pSf6xYv3mg") |
Thunder4ik (talk | contribs) m (→External links: clean up, replaced: External Links → External links) |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
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]]. | |||
http://youtu.be/2pSf6xYv3mg | 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]]> | |||
==External links== | |||
*[http://youtu.be/2pSf6xYv3mg The shader parameter in use] | |||
[[Category:Shader parameters|d]] |
Latest revision as of 01:34, 6 January 2024
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>