$envmap: Difference between revisions

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


=== Tweak envmap reflected color intensity ===
=== $envmap Tweaks ===
 
==== Adjust overall reflection color & contrast ====


  "$envmapcontrast" float
  "$envmapcontrast" float
Line 18: Line 20:




=== Tweak envmap reflective areas ===
==== Mask reflective areas using alpha channel of a referenced texture====


  "$envmapmask" "texture"
  "$envmapmask" "texture"
Line 32: Line 34:
* Scales the [[$envmapmask]] by the <code>float</code> value.
* Scales the [[$envmapmask]] by the <code>float</code> value.


=== Tweak envmap ... ? ===
==== Other envmap tweaks ... ? ====


  "$envmapmode" 1
  "$envmapmode" 1
Line 39: Line 41:
  "$envmapsphere" 1
  "$envmapsphere" 1
* '''TO DO'''
* '''TO DO'''





Revision as of 15:10, 8 November 2007

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