glShadeModel(GL_SMOOTH) dosnt work!?

Started by
1 comment, last by silvermace 21 years, 5 months ago
im specifying the normals per triangle while(Faces) { glNormal3fv(norm); glVertex(...) glVertex(...) glVertex(...) Faces++; } glShadeModel(GL_SMOOTH) has no effect on the shading, its just GL_FLAT ... any ideas how i can fix this? or do i have to manual normal averaging ??? thanx in advance danu | silvermace
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
Advertisement
That thing is not for light, but for color. if you want to do that for lights, do a normals averaging, per vertex...

Height Map Editor
stupid me, thanx :D
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website

This topic is closed to new replies.

Advertisement