Shadows
graphicsmonkey <[email protected]> Mon, 15 Apr 2019 14:04:37 -0700 (MST)
| Newsgroups | gmane.comp.lib.vtk.user |
|---|---|
| Message-ID | <[email protected]> |
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?
Many thanks.
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 );
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers