public void setHeightMapAsBitMap() { terrain.TessDisplacementMap = null; terrain.Width = 20; terrain.Height = 20; terrain.Origin = new xyzf(-10, -10, 0); terrain.HightScale = 200; // scales the height of the Bitmap by dividing. terrain.SetHighMap(HighMap); // sets the Height terrain.Texture = TextureForHeightMap; terrain.VAODispose(); terrain.ActivateVao(); }