$displacementmap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(cleanup)
Line 1: Line 1:
{{wip}}
The '''$displacementmap''' command is an alternative to [[$bumpmap]] that uses a heightmap to give the illusion of depth.


TODO ADD DOCS
It's the most realistic of all the texture shadowing techniques, but consequently is also the most [[expensive]].




http://youtu.be/2pSf6xYv3mg
{{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 <name>
 
==External Links==
*[http://youtu.be/2pSf6xYv3mg The shader parameter in use]


[[Category:List of Shader Parameters|D]]
[[Category:List of Shader Parameters|D]]

Revision as of 17:40, 10 January 2014

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.


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 <name>

External Links