Also you can cast vTexIndex to int. int textureIndex = int(vTexIndex + 0.5); if (textureIndex == 0) { finalColor = texture2D(textures[0], gl_PointCoord); } ...
確定! 回上一頁