$envmap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
  "$envmap" "env_cubemap"
  "$envmap" "env_cubemap"
* Causes the surface to reflect the nearest [[env_cubemap]].
* Causes the material surface to reflect the nearest [[env_cubemap]].


=== $envmap Tweaks ===
=== $envmap Tweaks ===

Revision as of 15:11, 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