static createIndices(numQuads)
    {
        // the total number of indices in our array, there are 6 points per quad.
        const totalIndices = numQuads * 6;
        const indices = new Uint16Array(totalIndices);

        // fill the indices with the quads to draw
        for (let i = 0, j = 0; i < totalIndices; i += 6, j += 4)
        {
            indices[i + 0] = j + 0;
            indices[i + 1] = j + 1;
            indices[i + 2] = j + 2;
            indices[i + 3] = j + 0;
            indices[i + 4] = j + 2;
            indices[i + 5] = j + 3;
        }

        return indices;
    }
/**
     * Utility to quickly create the indicies for a series of quads.
     *
     * @memberof util
     * @param {number} numQuads - Number of quads to create indices for.
     * @return {Uint16Array} The indices for the quad.
     */
Utility to quickly create the indicies for a series of quads.
@memberof util
@param {number} numQuads - Number of quads to create indices for.
@return {Uint16Array} The indices for the quad.
Utility to quickly create the indicies for a series of quads . @memberof util @param { number } numQuads - Number of quads to create indices for . @return { Uint16Array } The indices for the quad .
static createIndices(numQuads)
    {
        const totalIndices = numQuads * 6;
        const indices = new Uint16Array(totalIndices);
        for (let i = 0, j = 0; i < totalIndices; i += 6, j += 4)
        {
            indices[i + 0] = j + 0;
            indices[i + 1] = j + 1;
            indices[i + 2] = j + 2;
            indices[i + 3] = j + 0;
            indices[i + 4] = j + 2;
            indices[i + 5] = j + 3;
        }
        return indices;
    }
static createIndices ( numQuads ) { const totalIndices = numQuads * 6 ; const indices = new Uint16Array ( totalIndices ) ; for ( let i = 0 , j = 0 ; i < totalIndices ; i += 6 , j += 4 ) { indices [ i + 0 ] = j + 0 ; indices [ i + 1 ] = j + 1 ; indices [ i + 2 ] = j + 2 ; indices [ i + 3 ] = j + 0 ; indices [ i + 4 ] = j + 2 ; indices [ i + 5 ] = j + 3 ; } return indices ; }
Utility to quickly create the indicies for a series of quads.
Utility to quickly create the indicies for a series of quads .
// the total number of indices in our array, there are 6 points per quad. // fill the indices with the quads to draw