Sign in to follow this  
Alundra

Mixing correctly image based lighting with classical lighting

Recommended Posts

Hi,
Image Based Lighring (IBL) is the use of pre-computed radiance and irradiance cubemap (for the actual most used at least).
My question is about to mix correctly IBL with classical lighting (PBR), meaning mix the result of radiance and irradiance sampling.
I tried multiple thing but i'm not sure how to achieve the most physically correct result :
1) LightingResult += DiffuseColor * Irradiance + Radiance * Reflectance
2) On each light do DiffuseFactor * Irradiance + SpecularFactor * Radiance * Reflectance
For the second version, the ambient light should do AmbientLight * Irradiance if i'm correct.
I'm not sure the first version is correct because then you always have one lighting and never have black result.
So, I guess the second version is more correct or a more correct calcule exists.
Thanks

Edited by Alundra

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