摘要: 仔细查阅了一下RedBook上关于自动纹理坐标生成的说明: The GL_OBJECT_LINEAR function calculates the texture coordinates in the model's coordinate system. In Example 9-3 , where the contour lines are perpendicular to the... 阅读全文
posted @ 2004-12-20 15:35 Pointer 阅读(729) 评论(0) 推荐(0) 编辑
摘要: Project Texture是Shadow Mapping中的重要一环。所以要先搞定Project Texture才行。:) Project Texture是一种很常见的特效了,在OGL中Project Texture的通常做法是:设置好纹理矩阵,然后让OGL自动生成纹理坐标。 这样做虽然也能得到很好的效果,但是本着知其然,知其所以然的精神,还是让我们自己来计算一下纹理坐标吧。 Pro... 阅读全文
posted @ 2004-12-20 00:56 Pointer 阅读(5852) 评论(3) 推荐(0) 编辑