import { m_getTexCoord } from "./m_getTexCoord.js";

/**
 * TODO doesn't need to be V3, can save memory
 * @param {vec3} res
 * @param {SMikkTSpaceContext} pContext
 * @param {number} index
 */
export function GetTexCoord(res, pContext, index) {

    // inlined : IndexToData(&iF, &iI, index);
    const iI = index & 0x3;
    const iF = index >> 2;

    m_getTexCoord(pContext, res, iF, iI);

    res[2] = 1;
}
