This texture access does not return real value under the shadow map, but actually the result of comparison between point.z and a value in the map on location (point.x, point.y)- 0
or 1
(for nearest filtering), or value in between when linear filtering is used.
- http://www.opengl.org/wiki/Sampler_(GLSL)#Shadow_samplers
- http://www.opengl.org/wiki/Sampler_Object#Comparison_mode
note that GL_TEXTURE_COMPARE_MODE
used in glSamplerParameter or glTexParameter should be enabled.