/**
* Gets the position for the element 'uv' in the elements list for use in LightUtil.pack/unpack for a given format.
*
* @param format The format.
* @return The element position, -1 if it does not exist.
*/
public static int getUVElement(VertexFormat format) {
for (int e = 0; e < format.getElementCount(); e++) {
if (format.getElement(e).getUsage() == EnumUsage.UV && format.getElement(e).getIndex() == 0) {
return e;
}
}
return -1;
}
VertexDataUtils.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:CodeChickenLib
作者:
评论列表
文章目录