$envmap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
'''The $envmap [[VMT]] parameter causes the material surface to reflect the nearest [[env_cubemap]].'''
=== Basic VMT Syntax===
  "$envmap" "env_cubemap"
  "$envmap" "env_cubemap"
* Causes the material surface to reflect the nearest [[env_cubemap]].
* AFAIK this is currently the only use of [[$envmap]].


=== $envmap Tweaks ===
=== Additional Parameters ===


==== Adjust overall reflection color & contrast ====
==== Adjust overall reflection color & contrast ====


=====$envmapcontrast=====
  "$envmapcontrast" float
  "$envmapcontrast" float
* Scales the dynamic range of the reflected env_cubmap.  
* Scales the dynamic range of the reflected env_cubmap.  
* Use higher contrasts to diminish relatively darker areas, increase "hot spots".  
* Use higher contrasts to diminish relatively darker areas, increase "hot spots".  
* contrast 0 == normal 1 == color*color.  
* contrast 0 == normal 1 == color*color.  


=====$envmapsaturation=====
  "$envmapsaturation" float
  "$envmapsaturation" float
* Scales the colour intensity of the [[$envmap]].  
* Scales the colour intensity of the [[$envmap]].  
* saturation 0 == greyscale 1 == normal  
* saturation 0 == greyscale 1 == normal  


=====$envmaptint=====
  "$envmaptint" "[float float float]"
  "$envmaptint" "[float float float]"
* Scales the red, green, and blue components of the [[$envmap]].  
* Scales the red, green, and blue components of the [[$envmap]].  




==== Mask reflective areas using alpha channel of a referenced texture====
====Specular masking====


=====$envmapmask=====
  "$envmapmask" "texture"
  "$envmapmask" "texture"
* Masks the [[$envmap]] according to the alpha channel of the named <code>"texture"</code>.
* Masks the [[$envmap]] according to the alpha channel of the named <code>"texture"</code>.


=====$basealphaenvmapmask=====
  "$basealphaenvmapmask" 1
  "$basealphaenvmapmask" 1
* Masks the [[$envmap]] according to the alpha channel of the [[$basetexture]].  
* Masks the [[$envmap]] according to the alpha channel of the [[$basetexture]].  


=====$normalmapalphaenvmapmask=====
  "$normalmapalphaenvmapmask" 1
  "$normalmapalphaenvmapmask" 1
* Masks the [[$envmap]] according to the alpha channel of the [[$bumpmap]].
* Masks the [[$envmap]] according to the alpha channel of the [[$bumpmap]].


=====$envmapmaskscale=====
  "$envmapmaskscale" float
  "$envmapmaskscale" float
* Scales the [[$envmapmask]] by the <code>float</code> value.
* Scales the [[$envmapmask]] by the <code>float</code> value.
* dx8
=====$envmaskframe=====
"$envmaskframe"
* (to do ...)
==== TO DO ... help required ====
=====$envmaptransform=====
"$envmaptransform"
* dx9


==== Other envmap tweaks ... ? ====
=====$envmapframe=====
"$envmapframe"
*


=====$envmapmode=====
  "$envmapmode" 1
  "$envmapmode" 1
* '''TO DO'''
*  


=====$envmapsphere=====
  "$envmapsphere" 1
  "$envmapsphere" 1
* '''TO DO'''
*  


=== See Also ===
=== See Also ===

Revision as of 17:42, 8 November 2007

The $envmap VMT parameter causes the material surface to reflect the nearest env_cubemap.

Basic VMT Syntax

"$envmap" "env_cubemap"
  • AFAIK this is currently the only use of $envmap.

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

See Also