/// <summary>
        /// Construts a height map from a pixel buffer.
        /// </summary>
        /// <param name="pixels"></param>
        public HeightMapTerrain(PixelBuffer pixels)
        {
            this.pixels = pixels.Clone();
            Width       = 1;
            Height      = 1;
            MaxPeak     = 1;

            VertexType = PositionTextureNormal.VertexLayout;
        }
예제 #2
0
        public void Clone()
        {
            var result = src.Clone();

            VerifyCopyResult(result);

            Assert.AreNotSame(result, src);
            Assert.AreNotSame(result.Data, src.Data);
        }