uniform mat4 Eng_ObjectMatrix;
uniform float Eng_WaterMin;

varying float height;

void main()
{		 	
	vec4 wvert = Eng_ObjectMatrix * gl_Vertex;
 	
	height = Eng_WaterMin - wvert.z;	
	 	
 	gl_Position = ftransform();
}
