View Full Version : Per Pixel Lighting ?

05-03-2004, 01:39 PM
Is it possible to do per pixel lighting (hardware accelerated or not )without using Nvidia extensions ?
I know Doom 3 has lighting effects like those achieved with Direct3D`s pixel shader, but is it possible to do that hardware accelerated with OpenGL ? and so that it can work with all video cards not only Nvidia (all demos I`ve seen use Nvidia proprietary extensions )

05-03-2004, 03:05 PM
Most per pixel lighting effects make use of register combiners of nvidia graphics cards. The same effects can however be implemented by using the ARB_texture_env_* extensions.

I think you will probably be interested in the ARB_texture_env_dot3 extension in perticular.

05-04-2004, 09:26 AM
Where can i read about this extension and it`s use in lighting ?

05-04-2004, 09:37 AM
Check out http://www.paulsprojects.net/tutorials/simplebump/simplebump.html

There's an implementation of a bump mapped torus in combination with per pixel lighting.


05-04-2004, 09:39 AM
Also, a detailed explenation of the extensions can be found at

Lots of reading fun :)