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

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.

 

This is the shadow map generated when I use a two channel texture to store the depth and depth^2

 

This is the code I use to generate this dual channel depth map:

for (int i = 0; i < SHADOWMAP_CASCADE_COUNT; i++)
	{
		//generamos los shadowmaps originales, donde …

Viewing all articles
Browse latest Browse all 17625

Trending Articles



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