$envmap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (This parameter is not limited to env_cubemap - other textures work as well.)
Line 1: Line 1:
'''The $envmap [[VMT]] parameter causes the material surface to reflect the nearest [[env_cubemap]].'''
The $envmap [[VMT]] parameter defines the environment map of a material, normally reflecting the nearest [[env_cubemap]].


=== Basic VMT Syntax===
=== Basic VMT Syntax===
  "$envmap" "env_cubemap"
  "$envmap" "texture"
* AFAIK this is currently the only use of [[$envmap]].
* This is the texture to use as the environment map. Normally this is set to "env_cubemap".
 


=== Additional Parameters ===
=== Additional Parameters ===

Revision as of 07:02, 22 January 2008

The $envmap VMT parameter defines the environment map of a material, normally reflecting the nearest env_cubemap.

Basic VMT Syntax

"$envmap" "texture"
  • This is the texture to use as the environment map. Normally this is set to "env_cubemap".


Additional Parameters

Adjust overall reflection color & contrast

$envmapcontrast
"$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
"$envmapsaturation" float
  • Scales the colour intensity of the $envmap.
  • saturation 0 == greyscale 1 == normal
$envmaptint
"$envmaptint" "[float float float]"
  • Scales the red, green, and blue components of the $envmap.


Specular masking

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

TO DO ... help required

$envmaptransform
"$envmaptransform" 
  • dx9
$envmapframe
"$envmapframe" 
$envmapmode
"$envmapmode" 1
$envmapsphere
"$envmapsphere" 1
$basetexturenoenvmap
"$basetexturenoenvmap" 
$basetexture2noenvmap
"$basetexture2noenvmap" 

See Also