$envmap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 42: Line 42:
* '''TO DO'''
* '''TO DO'''


=== See Also ===
* [[DirectX Versions]]
* Tutorial: [[Cubemap]]s in Level Design.
* Tutorial: [[Reflective Materials]]


[[Category:List of Shader Parameters]]
[[Category:List of Shader Parameters]]
[[Category:VMT Reflections]]
[[Category:VMT Reflections]]
[[Category:Stubs]]
[[Category:Stubs]]

Revision as of 15:33, 8 November 2007

"$envmap" "env_cubemap"
  • Causes the material surface to reflect the nearest env_cubemap.

$envmap Tweaks

Adjust overall reflection color & contrast

"$envmapcontrast" float
  • Scales the dynamic range of the reflected env_cubmap.
  • Use higher contrasts to diminish relatively darker areas, increase "hot spots".
  • contrast 0 == normal 1 == color*color.
"$envmapsaturation" float
  • Scales the colour intensity of the $envmap.
  • saturation 0 == greyscale 1 == normal
"$envmaptint" "[float float float]"
  • Scales the red, green, and blue components of the $envmap.


Mask reflective areas using alpha channel of a referenced texture

"$envmapmask" "texture"
  • Masks the $envmap according to the alpha channel of the named "texture".
"$basealphaenvmapmask" 1
"$normalmapalphaenvmapmask" 1
"$envmapmaskscale" float

Other envmap tweaks ... ?

"$envmapmode" 1
  • TO DO
"$envmapsphere" 1
  • TO DO

See Also