|
以前也有人问过,但是我在论坛没有搜索到答案。
纹理坐标的两个参数是什么意思?
海军教程中的例子
(*texcoords)[0].set(0.00f,0.0f);
(*texcoords)[1].set(0.25f,0.0f);
(*texcoords)[2].set(0.50f,0.0f);
(*texcoords)[3].set(0.75f,0.0f);
(*texcoords)[4].set(0.50f,1.0f);
pyramidGeometry->setTexCoordArray(0,texcoords);
开始我以为是把纹理图片四等分贴上去,后来发现不是。 |
|