Example #1
0
        public void UpdateMesh(VertexIndexGenerator gen, GraphicsDevice gd)
        {
            Mesh[] meshes = gen.Generate(this, gd);

            if (meshes != null)
            {
                if (meshes.Length > 0)
                    _opaqueMesh = meshes[0];

                if (meshes.Length > 1)
                    _waterMesh = meshes[1];
            }
        }