Rt WaterReflection

From Valve Developer Community
Jump to: navigation, search

The "_rt_WaterReflection" is a parameter for use with "$refracttexture". This texture is use for real-time reflections.

Example :

<Water>

{
	"Water_DX81"
	{
		"$refractamount" ".25"
	}

 	"$forceexpensive" 1
	"$REFLECTBLENDFACTOR" "0.4"
	"$nofresnel" "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"
		{
		}
	}
}