shouldn't this:
give the same result as this?Code :float GetShadow( sampler2D shadowmap, vec4 projection ) { return texture2DProj( shadowmap, projection ).r; }
first one works fine for my shadow mapping shader, second one does not.Code :float GetShadow( sampler2D shadowmap, vec4 projection ) { return texture2D( shadowmap, projection.xy /projection.w ).r; }



