Just a quick heads-up, I&#39;m starting to tinker with cycles, in particular I&#39;m trying to add support for Pharr/Humphries style importance sampling of environment images.  I wanted to make sure I had a clear understanding of what I need to change to make it happen.<br>
<br>It appears to me that the path integrator just samples the environment on ray misses based on importance sampling the BSDF.  The only time MIS and light importance sampling come into play are when doing direct lighting.  The environment doesn&#39;t count as a &#39;light&#39; in cycles, thus it never even has a chance to offer important directions and a PDF.  So, to start, I need to make the environment also appear as a light (useful for images and the sky background, for example).  Once that is done, I can precompute some importance information, stuff it in a texture, and go from there?<br>
<br>Let me know if I&#39;m totally barking up the wrong tree.<br><br>-Farny<br><br>