$envmap
Jump to navigation
Jump to search
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 (envmap).
- Normally <texture> is set to "env_cubemap".
- See also $envmapmask.
Additional Parameters
$envmapcontrast
"$envmapcontrast" <float>
- Controls the contrast (i.e. dynamic range) of the reflected $envmap.
- The parameter accepts a value between 0 and 1, where 0 is the normal contrast, and 1 is the full squaring of the color (color*color).
- Use higher contrasts to diminish relatively darker areas and increase "hot spots".
$envmapsaturation
"$envmapsaturation" <float>
- Controls the colour saturation of the reflected $envmap.
- The parameter accepts a value between 0 and 1, where 0 is 100% greyscale, and 1 is normal saturation.
$envmaptint
"$envmaptint" "[<float> <float> <float>]"
- Controls the tint (red, green and blue channels) of the reflected $envmap.
- The default is "[1 1 1]".
$envmapframe
"$envmapframe" <integer>
- Todo: ?
$envmapmode
"$envmapmode" 1
- Todo: ?
$envmapsphere
"$envmapsphere" 1
- Todo: ?
$basetexturenoenvmap
- Requires DirectX 9.
"$basetexturenoenvmap" <boolean>
- Todo: what does it do?
- Default is 0.
- See also $basetexture.
$basetexture2noenvmap
- Requires DirectX 9.
"$basetexture2noenvmap" <boolean>
- Todo: what does it do?
- Default is 0.
- See also $basetexture2.
$envmapoptional
- Requires DirectX 8.
"$envmapoptional" <choices>
- Sets the oldest DirectX version required for the shader to do a specular pass.
- Valid values are:
80
(DirectX 8.0)81
(DirectX 8.1)90
(DirectX 9.0)
- Default value is
90
.
See Also
- DirectX Versions
- Tutorial: Cubemaps in Level Design.
- Tutorial: Reflective Materials