0
$\begingroup$

How can I have a Skybox object that works as background all around my scene but also have a HDRi or Sun to produce ambient light?. In my current setup the Skybox blocks the HDRi or Sun.

$\endgroup$

1 Answer 1

3
$\begingroup$

If you are using a mesh for the "skybox", all you need to do is make the material visible to camera, but transparent for all other rays. A light path node is used as mix factor in a mix shader node for this.

Then use a normal environment texture in the world.

enter image description here

If you have a real skybox texture then use it on the world as enviroment along with another texture to light the scene, and use a light path node to control the visibility. The camera will see one background, but the scene will be lit by the other.

$\endgroup$
2
  • $\begingroup$ Thanks for the answer, but my Skybox isn't a background usable with Environment texture. It's a mesh, with different texture and layer (clouds and other stuff animated). I just want to exclude this object from blocking light. My question title got edited and doesn't mean the same thing as what i'm asking now $\endgroup$
    – Melio550
    Commented Dec 29, 2020 at 7:39
  • $\begingroup$ See edited answer $\endgroup$
    – susu
    Commented Dec 29, 2020 at 17:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .