Iterate over invisible objects too, so they can cast shadows, ...
Also, now you can use a collection to set an object to invisible, not
only to visible.
For example:
Scene > Master collection > bedroom > furniture
Scene > View Layer > bedroom (visible)
> furniture (invisible)
The View Layer has two linked collections, bedroom and furniture.
This setup will make the furniture collection invisible.
Pending Task:
- Draw invisible objects in the lightprobes
- Make that work for Cycles too (tackled Eevee and draw manager at first)
(2) Cycles to use collection visibility
Note: this could be named "visible" instead, and I think it should in the end.
But for now if we do it it conflicts with visible_get.
In the near future we could/should move visible_get and select_get to the scene
layers.
Patch by Brecht Van Lommel.
@Sergey Sharybin (sergey), let me know your thoughts on the Depsgraph part?