PDA

View Full Version : OpenGL ES Per Pixel Lighting



bobGL
05-25-2008, 10:27 PM
Im coding in OpenGL ES v1.1 (so no shader) and I found this link:

http://www.ronfrazier.net/apparition/research/per_pixel_lighting.html

The guy is using Nvidia specific instructions to produce per pixel light, would it be possible to do the same as described in this article using standard OpenGL ES instructions?

Tks in advance,


Cheers!

V-man
05-26-2008, 06:13 AM
The link is dead but I remember this guy's project. It was using GL_NV_register_combiners. I modified it so that it uses texture combiners. I think I was using glTexEnv(...GL_DOT3) or whatever it was called. That is pretty much the key to PPL. I don't have the code anymore.

sqrt[-1]
05-26-2008, 06:28 AM
The link is not dead, just that site I remember is funny.
You have to click on:
http://www.ronfrazier.net/apparition/research/

then click on the contained link for it to work..