Material visibility

 

Is there a method to know if one of the materials of a node does not appear in the camera being rendered?

This serves to check the visibility of a node:

Scene.getNode(j).isVisible() 

I imagine there is an equivalent for materials, but I don't find it.

In my case, I want to know if the materials of node j are exposed to the camera, since I have a scenes with 300 materials and the process on each material takes some time, so it makes no sense to include materials that are off-camera or that are hidden due to a pose.

Thanks in advance.

Comments

Sign In or Register to comment.