Rt WaterReflection: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "The "_rt_WaterReflection" is a parameter for use with "$reflecttexture". This texture is use for real-time reflections.")
 
No edit summary
Line 1: Line 1:
The "_rt_WaterReflection" is a parameter for use with "$reflecttexture".
The "_rt_WaterReflection" is a parameter for use with "$reflecttexture".
This texture is use for real-time reflections.
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"
{
}
}
}

Revision as of 06:50, 30 July 2015

The "_rt_WaterReflection" is a parameter for use with "$reflecttexture". 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"
		{
		}
	}
}