Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Why? Why dost thou torment me so?

Sign in to follow this  
Stephen R


I got multiple coloured lights working today - kind of. I seem to have run into quite a significant hurdle though. I can't seem to get the system to render multiple layers of objects well.

I'm working off the 2d soft shadows article here on GDNet which uses the alpha channel to store the light values before it renders the actual geometry on top of that. I can't quite seem to get the system to both blend the geometry correctly when using multiple layers of geometry as well as blending the multiple render passes. The only solution I can think of is to render all the geometry to a texture once, fully bright without any lighting. Then render each light using the target texture as the geometry source. I should be able to get the effect I want but it will result in a bit of a performance hit because I'm going to have to change the render target twice per scene - hopefully it'll still be fast enough. If its done well it might even be faster than the other way.

So I'll get that working tomorrow.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!