LightmappedReflective
Jump to navigation
Jump to search
LightmappedReflective
(DX9 SM2) is a Pixel shader available in all Source games since
Source 2007. This shader renders real-time reflection and refractions similar to Water (shader).






Water
shader (see True reflections under CSS).
Example
The example shown here is materials/glass/reflectiveglass001.vmt
"lightmappedreflective" { "%tooltexture" "dev/flat_normal" "$refracttexture" "_rt_WaterRefraction" "$refractamount" "0" "$refracttint" "[.5 .5 .6]" "$reflecttexture" "_rt_WaterReflection" "$reflectamount" "0" "$reflecttint" "[1 1 1]" "$fresnelpower" "0" "$minreflectivity" "0.8" "$maxreflectivity" "1.0" "$normalmap" "dev/flat_normal" "$surfaceprop" "glass" "$bumpframe" "0" }







Shader parameters
Textures

$basetexture
$normalmap
$bumpframe
$bumptransform
Reflection
$reflecttexture
$reflectamount
$reflecttint
$reflectance
$envmapmask
$minreflectivity
$maxreflectivity
Refraction
$refracttexture
$refractamount
$refracttint