Rt WaterReflection: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Bold)
(badly moved multipage)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The '''_rt_WaterReflection''' is a parameter for use with "$refracttexture". This texture is used for real-time reflections.
{{LanguageBar}}
{{stub}}


Example :
{{screenshot}}
<[[Water]]>
 
 
{
'''_rt_WaterReflection''' is a parameter for use with "[[$reflecttexture]]". This texture is used for "real-time" reflections.<br>
"Water_DX81"
Its most common use is in in [[Water (shader)|Water]] materials, which causes the water to reflect the world around it, similar to {{ent|env_cubemap}}, but better. It is also used by [[LightmappedReflective]].
{
 
"$refractamount" ".25"
{{CodeBlock|style=1|
}
$reflecttexture _rt_WaterReflection
$reflectamount "0.4"
  "$forceexpensive" 1
$reflecttint "{ 190 190 190 }"
"$REFLECTBLENDFACTOR" "0.4"
$reflectskyboxonly 1
"$nofresnel" "1"
$reflectentities 1
"%tooltexture" "dev/water_normal"
}}
'''"$refracttexture" "_rt_WaterRefraction"'''
"$refractamount" "3.0"
"$envmap" "env_cubemap"
"$reflectamount" "0.2"
"$scale" "[1 1]"
"$bumpmap" "dev/water_dudv"
"$normalmap" "dev/water_normal"
"%compilewater" 1
"$surfaceprop" "water"
"$bottommaterial" "nature/sewer_water001_bottom"
"$bumpframe" "0"
"$fogenable" 1
"$fogcolor" "{15 15 8}"
"$fogstart" 0.00
"$fogend" 150.00
"$abovewater" 1
"Proxies"
{
"AnimatedTexture"
{
"animatedtexturevar" "$normalmap"
"animatedtextureframenumvar" "$bumpframe"
"animatedtextureframerate" 20.00
}
"TextureScroll"
{
"texturescrollvar" "$bumptransform"
"texturescrollrate" .05
"texturescrollangle" 45.00
}
"WaterLOD"
{
}
}
}

Latest revision as of 03:55, 13 July 2024

English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

Nuvola apps ksnapshot.png
This article or section needs a screenshot to help visually convey the subject.
You can upload screenshots at Special:Upload. For help, see Help:Images.


_rt_WaterReflection is a parameter for use with "$reflecttexture". This texture is used for "real-time" reflections.
Its most common use is in in Water materials, which causes the water to reflect the world around it, similar to env_cubemap, but better. It is also used by LightmappedReflective.

$reflecttexture _rt_WaterReflection

$reflectamount "0.4" $reflecttint "{ 190 190 190 }" $reflectskyboxonly 1

$reflectentities 1