Example #1
0
        // DEBUGGING
        public Vector3[] DebugWaterfall()
        {
            GPUWaterVertex[] data = new GPUWaterVertex[_verticescount];
            _bufWaterfallVertices.GetData(data);

            Vector3[] output = new Vector3[_verticescount];
            for (int i = 0; i < data.Length; i++)
            {
                output[i] = data[i].Position;
            }

            return(output);
        }
Example #2
0
    public Vector3[] DebugVert()
    {
        WaterF.GPUWaterVertex[] data = new WaterF.GPUWaterVertex[GetVerticesCount(_buildData.Size)];
        Vector3[] output             = new Vector3[GetVerticesCount(_buildData.Size)];
        _bufVertices.GetData(data);

        for (int i = 0; i < data.Length; i++)
        {
            output[i] = data[i].Position;
        }


        return(output);
    }