$envmap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
  "$envmap" "env_cubemap"
  "$envmap" "env_cubemap"
* Uses nearest [[env_cubemap]] for reflection.
* Uses nearest [[env_cubemap]] for reflection.
=== Tweak envmap reflected color intensity ===
"$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]].
=== Tweak envmap reflective areas ===
"$envmapmask" "texture"
* Masks the [[$envmap]] according to the alpha channel of the named <code>"texture"</code>.
"$basealphaenvmapmask" 1
* Masks the [[$envmap]] according to the alpha channel of the [[$basetexture]].
"$normalmapalphaenvmapmask" 1
* Masks the [[$envmap]] according to the alpha channel of the [[$bumpmap]].
"$envmapmaskscale" float
* Scales the [[$envmapmask]] by the <code>float</code> value.
=== Tweak envmap ... ? ===
"$envmapmode" 1
* '''TO DO'''
"$envmapsphere" 1
* '''TO DO'''





Revision as of 14:48, 8 November 2007

"$envmap" "env_cubemap"

Tweak envmap reflected color intensity

"$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.


Tweak envmap reflective areas

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

Tweak envmap ... ?

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