[vtkusers] Shadows
graphicsmonkey
k.weatherly at gmail.com
Mon Apr 15 17:04:37 EDT 2019
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
More information about the vtkusers
mailing list