Example #1
0
        public void StoreNoise(CompressedMarchingCubeChunk chunk)
        {
            int pointsPerAxis = chunk.PointsPerAxis;
            int pointsVolume  = pointsPerAxis * pointsPerAxis * pointsPerAxis;

            float[] pointsArray = new float[pointsVolume];
            pipeline.pointsBuffer.GetData(pointsArray);
            if (chunk is ReducedMarchingCubesChunk c)
            {
                c.Points = pointsArray;
                storageGroup.Store(chunk.AnchorPos, chunk as ReducedMarchingCubesChunk, true);
            }
        }
Example #2
0
 public void Store(Vector3Int anchorPos, ReducedMarchingCubesChunk chunk, bool overrideNoise = false) => storageGroup.Store(anchorPos, chunk, overrideNoise);