Enabling PBR Removes Backfaces
Whenever PBR is enabled within VTK, backfaces are culled regardless of the setting of SetBackfaceCulling.
Here's an example with PyVista on this branch (about to be merged):
import pyvista as pv
from pyvista import examples
sphere = pv.Sphere()
clipped_sphere = sphere.clip(normal='z', value=0.4)
pl = pv.Plotter()
pl.set_environment_texture(examples.download_sky_box_cube_map())
pl.background_color = 'w'
pl.add_mesh(
clipped_sphere,
backface_params={'color': 'r'},
pbr=True,
metallic=1.0,
roughness=0.2,
)
pl.show()
Here's the same plot without PBR:
import pyvista as pv
from pyvista import examples
sphere = pv.Sphere()
clipped_sphere = sphere.clip(normal='z', value=0.4)
pl = pv.Plotter()
pl.set_environment_texture(examples.download_sky_box_cube_map())
pl.background_color = 'w'
pl.add_mesh(
clipped_sphere,
backface_params={'color': 'r'},
)
pl.show()
Also discussed at https://discourse.vtk.org/t/backface-culling-with-pbr/9547/2
Edited by Alex Kaszynski