Rt WaterRefraction

From Valve Developer Community
Jump to: navigation, search

Stub

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

_rt_WaterRefraction is a parameter for use with "$refracttexture". This texture is used for creating real-time refraction in water.

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"
		{
		}
	}
}