tunabrain / tungsten

High performance physically based renderer in C++11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to disable rendering the infinite_sphere when using it purely as a lightsource?

saliksyed opened this issue · comments

I'm trying to render an object with the environment map for lighting but want to keep a black background. Is there any way to do this?

You can set min_bounces to 1, which will disable directly visible light sources (including the envmap).
This will usually do what you want. Note however that this is global - if you have some other light source in the scene, it will also turn black.

This worked perfectly. Thank You!