how lights combining works in reality?

Started by
1 comment, last by alvaro 10 years, 3 months ago

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

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.

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).

This topic is closed to new replies.

Advertisement