• Advertisement
Sign in to follow this  

how lights combining works in reality?

This topic is 1518 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

 

I wonder how lights that illuminate the same surface behave in reality. Do they add up linearily, or the most donating light simply negates the other? How do you implement lights combining in your deffered blended renderes?

 

Thanks a lot

Share this post


Link to post
Share on other sites
Advertisement

I think it's safe to model light contribution as adding linearly, unless you're trying to model quantum wave interference effects tongue.png

 

In my deferred renderers I simply add the contribution of each light.

 

The only thing I think you should be aware of is this: make sure you do your lighting calculations in linear space, not sRGB space. sRGB space is not linear.

Share this post


Link to post
Share on other sites

I think it's safe to model light contribution as adding linearly, unless you're trying to model quantum wave interference effects tongue.png

 

Actually, even in that case it's additive, but you may have to use complex numbers to describe how much light hits a particular spot (a magnitude and a phase, if you will).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement