void addVert(Vector2 position)
        {
            var index = _vertices.length;

            _vertices.ensureCapacity();
            _vertices.buffer[index].Position          = position.toVector3();
            _vertices.buffer[index].TextureCoordinate = position;
            _vertices.length++;
        }
Exemple #2
0
        void addVert(Vector3 position, Vector2 texCoord)
        {
            var index = _vertices.length;

            _vertices.ensureCapacity();
            _vertices.buffer[index].Position          = position;
            _vertices.buffer[index].TextureCoordinate = texCoord;
            _vertices.length++;
        }