Water Situation

DrPowerKraut

L1: Registered
May 9, 2010
10
0
Problem Solved!

func_water seems like it would work but there's no fog. I tried the water a 0 alpha texture and "$translucent" 1 but for some reason I got the same error in the console and I looked exactly the same.

EDIT: AHA! I got it! I've actually no idea why I didn't think of this sooner: "%compilenodraw" 1.

Here's the code I used if anyone else ever needs invisi-water.
Code:
"Water"
{
	"%keywords" "tf"
	"%tooltexture" "dev/tfwater_normal"
	"%compilewater" 1
	"%compilenodraw" 1
	"$forcecheap" 1
	"$translucent" 1
	"$abovewater" 1
	"$envmap" "env_cubemap"	
	"$scale" "[1 1]"
	"$surfaceprop" "water"
	"$bottommaterial" "water/water_2fort_beneath.vmt"
	"$fogenable" 0
	"$fogcolor" "{0 0 0}"
	"$fogstart" "0"
	"$fogend" "700"

	"Water_DX60"
	{
		"$fallbackmaterial" "nature/water_dx70"
	}
}
 
Last edited: