//! frame
void CWaterSurfaceSceneNode::OnPreRender()
{
	int d= os::Timer::getRealTime();
	if (IsVisible)
		SceneManager->registerNodeForRendering(this);

	animateWaterSurface();

	CMeshSceneNode::OnPreRender();
}
//! frame
void CWaterSurfaceSceneNode::OnRegisterSceneNode()
{
	if (IsVisible)
	{
		SceneManager->registerNodeForRendering(this);

		animateWaterSurface();

		CMeshSceneNode::OnRegisterSceneNode();
	}
}