Jump to content
  • Advertisement
Sign in to follow this  

Mixing correctly image based lighting with classical lighting

This topic is 611 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

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.

Edited by Alundra

Share this post

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

  • 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!