Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

OpenGL VSM problem

$
0
0

Hello!

I am having a big problem implementing VSM and I have been stucked for a couple of days.

When I use VSM instead of a basic shadow mapping, all the scene turns black. I think the shadow map that I am generating is good, so I dont understand what is happening.

 

As you can see, it looks like the depth is not being calculated well, even when I am using a render buffer to store the depth

 

The code of the render buffer and the code I use to render to this shadow map: 

for (int …

Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>