Hello,
im currently experiencing a weird problem. My shadow mapping only applies to the rtv im not seeing (Using doublebuffered swapchain)
Checking with Visual Studios graphics debugger shows that the shadow map is written fine (depth stencil texture with state transition to shader resource)
In the mid the picture i see while running the application. On the left the debugger output of the other rtv. Its always with shadow mapping applied. On the right the shadow map.
The Shadow map is always on one rtv, but this never seems to be the one visible. Its not even flickering (not one rtv with shadow map and one without), its constant without any shadows. Only the debugger shows the shadows.
Any idea what could cause this problem?
Edit:
Outputting the shadow depth texture as a diffuse texture just shows that the visible rtv somehow has a depth texture from camera perspective (the default depth stencil used). In the debugger, the other one rtv has the real shadow map applied. What the hell?