0

I have a simple textured quad (composed of 2 triangles) that im rendering in my iPhone app using GLKit.

Now for some reason I am not seeing any difference when defining my vertices with CW notation vs CCW notation. Why is this? Note that I am using the default GLKit project template with minimal changes. Also, I am using the GLKBaseEffect for rendering, not ES2.

4

1 回答 1

1

对于四边形,CW 与 CCW 改变了法线——三角形的哪一侧“向上”。默认情况下禁用面剔除glEnable(GL_CULL_FACE)(用于启用它),因此“向上”或“向下”三角形都将被渲染。

于 2013-04-21T23:26:15.380 回答