I’m trying to get shadows to work with no luck yet. I added the following
code based on some of the examples but i’m not seeing anything change.
Is there something missing?
auto shadows = vtkSmartPointer<vtkShadowMapPass>::New();
auto seq = vtkSmartPointer<vtkSequencePass>::New();
auto passes = vtkSmartPointer<vtkRenderPassCollection>::New();
passes->AddItem ( shadows->GetShadowMapBakerPass() );
passes->AddItem ( shadows );
seq->SetPasses ( passes );
auto cameraP = vtkSmartPointer<vtkCameraPass>::New();
cameraP->SetDelegatePass ( seq );
m_renderer->SetPass ( cameraP );