GLSL sampler2DShadow deprecated past version 120? What to use?
I've been trying to implement percentage closer filtering for my shadow mapping as described here Nvidia GPU Gems When I try to sample my shadow map using a uniform sampler2DShadow and shadow2D or shadow2DProj the GLSL compile fails and gives me the error shadow2D deprecated after version 120 How would I go about implementing an equivalent solution in GLSL 330+? I'm currently just using a binary texture sample along with Poisson Sampling but the staircase aliasing is pretty bad. Your title is way off base. sampler2DShadow is not deprecated. The only thing that changed in GLSL 1.30 was that the