classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view


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:
Powered by

Visit other Kitware open-source projects at

Please keep messages on-topic and check the VTK FAQ at:

Search the list archives at:

Follow this link to subscribe/unsubscribe: