View Full Version : How to "Fake Phong" with OpenGL ???

05-14-2000, 12:56 PM
Is there an easy way to do "phong" shading with OpenGL ??? I mean the fake envmapping with vertex normals, u=nx*(texturesize.x/2)+(texturesize.x/2) ?! I tried it with specular light but thats not what i want, maybe ive done something wrong...

05-14-2000, 01:57 PM
I heard that the new GeForce will have per-pixel lighting, I guess you'll have to wait for the extension.

05-14-2000, 02:43 PM
you mean i have to use first normal texmapping and after that overblend it with "fake phong" including envmapping ??? i just wont some highlights on my objects !

05-14-2000, 05:38 PM
I don't think there is considering that opengl interpolates colors at the vertices
Phong shading involves shading each pixel

You can write your own shading algorythm however and just assign it with glColor..

but then whats the point of opengl