yes, i use one pass with ifs. i have to look if this can be done in a better way. thanks for your link! it seems to be interesting.

1024*1024 works for me if i set up a new depth buffer with bmap_zbuffer(). strange that this doesn't work for you. what graphics card do you use?

your project is more advanced than mine. i don't know much about vsm or lispsm yet. at the moment i just want to get my simple pssm a bit more optimized and then experiment with different filtering methods.