Vexator
09-17-2007, 05:31 AM
i've just switched to deferred shading, but shadow mapping doesn't work anymore. sampler2DShadow() needs the fragment's depth to compare the shadow map's depth value with, right? argh!
what can i do? would it help to get the depth somehow and write it to gl_FragDepth before the shadow map comparison?
thanks!
what can i do? would it help to get the depth somehow and write it to gl_FragDepth before the shadow map comparison?
thanks!