Original Post
Hello everyone.
I was looking for some advice on how to get what I have done to look right. Basically I have got per pixel attenuation from a light source and DOT3 bump mapping per light source.
Now both work fine on their own as u sinply go through each light adding them to the scene, then modulate the base texture map on top of it, however, when it comes to combining the 2 I have problems as I have multiple lights in the scene.
The light attenuation can be put into the scene easily first by adding each light to the frame buffer. This should then be modulated by all the dot3 bump map lights added together, but I cannot do this as each light source is added seperately, ie each light source is modulated one by one as opposed to all teh lights at once. This cuts out light where there should be some.
Does anyone have any ideas as to how I could get around this? sorry if my problem is not very clear. I though about rendering each one to texture and then multiplying the 2 resulting polys together but I am worried about slowdown and also the fact that the texture must be a power of 2 and thus scaled.
- James