# No shadows

**URL:** https://discourse.vtk.org/t/no-shadows/767
**Category:** Support
**Created:** [April 17, 2019, 3:27am UTC](https://discourse.vtk.org/t/no-shadows/767 "2019-04-17T03:27:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![graphicsmonkey](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@graphicsmonkey](https://discourse.vtk.org/u/graphicsmonkey)
#### Post date: [April 17, 2019, 3:27am UTC](https://discourse.vtk.org/t/no-shadows/767/1 "2019-04-17T03:27:27Z")

</div>

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 );
