Sign in to follow this  
JohnnyCode

how lights combining works in reality?

Recommended Posts

JohnnyCode    1046

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
Samith    2460

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
alvaro    21246

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

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

Sign in to follow this