Opengl shadow acne when using shadow2D
问题 I'm trying to implement shadow mapping in opengl. It's working, however aliasing is visible, so I decided to use sampler2Dshadow with shadow2D, cause I've read it serves as simple anti-aliasing solution. But as soon as I use it, it causes very significant shadow acne across whole scene. Note that when using sampler2D with texture2D, there's none. Is this intended? If so, how should I solved it? This is how it looks while using sampler2DShadow: This is part of fragment shader that handles