r16f: single-component 16-bit floating point buffer
https://docs.unity3d.com/ScriptReference/TextureFormat.html
http://gamedev.stackexchange.com/questions/96326/why-encode-floats-in-rgba
https://www.gamedev.net/topic/486847-encoding-16-and-32-bit-floating-point-value-into-rgba-byte-texture/
https://www.gamedev.net/topic/516146-how-to-encode-the-depth-value-in-a-32bit-rgba-texture/
http://stackoverflow.com/questions/41566049/understanding-unitys-rgba-encoding-in-float-encodefloatrgba
有一点需要注意的是,如果相机的近平面和远平面相距太远,直接将深度值输出到单通道会造成精度的丢失。Unity 提供了一种技巧可以将 float 存储到 RGBA 四个通道中。当然在对精度要求不是很高的情况下,可以忽略,减少计算量。
inline float4 EncodeFloatRGBA( float v )
inline float DecodeFloatRGBA( float4 enc )
https://chengkehan.github.io/CustomDepthTexture.html
http://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=auto&sp=nmt4&tl=en&u=http://qiita.com/edo_m18/items/74ec5832a07f11128f0e&usg=ALkJrhirsVx0ITG6wGskhREFts2KVKom1w
Off-screen rendering means using it as a "texture" after a while.
https://chengkehan.github.io/ComputeScreenPos.html
https://forum.unity3d.com/threads/what-does-the-function-computescreenpos-in-unitycg-cginc-do.294470/
http://www.jianshu.com/p/df878a386bec
http://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=auto&sp=nmt4&tl=en&u=http://qiita.com/edo_m18/items/74ec5832a07f11128f0e&usg=ALkJrhirsVx0ITG6wGskhREFts2KVKom1w
https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=auto&sp=nmt4&tl=en&u=https://wgld.org/d/webgl/w051.html&usg=ALkJrhiekbaoluqbD99ZSG7D3G_dHh0x7g
http://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=auto&sp=nmt4&tl=en&u=http://qiita.com/edo_m18/items/4658357683ec253f38ff&usg=ALkJrhgldCOwlHiuSQAgI2zpUP9c2GSw-w
http://translate.google.com/translate?hl=en&sl=auto&tl=en&u=http%3A%2F%2Fqiita.com%2Fedo_m18%2Fitems%2F21d3b37596da3fd4b32b
https://chrismflynn.wordpress.com/2012/09/06/fun-with-shaders-and-the-depth-buffer/
m.blog.csdn.net/article/details?id=50559732
https://chengkehan.github.io/CustomDepthTexture.html