Original Post
I'm currently working on shadows for a design application. Users can place lights themselves so that's why I need true omnidirectional shadows. I've currenly implemented midpoint pcf (specific technique may change later) shadow maps treating point lights as 6 spotlights, however I've run into some problems with artifacts. When I write the depth from the light position I'm using the same frustum as the main camera. However this means that the different sides may have some overlapping areas, because the aspect ratio is not equal to 1 and the field of view not necesarily 90 degrees. But I can't set it to these values either, because then I get artifacts because I'm comparing depths from two different frustums. Does anyone have any ideas on how to solve these issues? Greets Floris