There is an easier method to achieve what you are looking for.
Search for Fredborgs light example basing on AccumBuffers.
This should give you exactly such behavior without any problems. (beside needing a 9500 / GeForce 5 upward which shouldn't be a problem)
Search for Fredborgs light example basing on AccumBuffers.
This should give you exactly such behavior without any problems. (beside needing a 9500 / GeForce 5 upward which shouldn't be a problem)