目次
深度テスト (ZTest)
参考:
Culling と Depth Testing | Unity 2018.4 マニュアル [公式]
カメラ深度テクスチャ
DepthTextureMode
- Depth:深度テクスチャ
- DepthNormals:深度と法線をまとめたテクスチャ (RG:ビュー空間法線/BA:深度)
- MotionVectors:モーションベクトル (スクリーン上の動きを表すベクトル/RG16)
参考:
カメラと深度テクスチャ | Unity マニュアル [公式]
Depth Texture Helper Macros | Unity マニュアル [公式]
Depth Texture の使用 | Unity 2019.4 マニュアル [公式]
How to render object with just a depth texture? – Unity Forum
Custom shader not writing to depth buffer – Unity Forum
Is it possible to write into a depth render texture using SetRenderTarget – Unity Forum
Struggling to separate camera from depth texture – Unity Forum
Android depth texture precision issue – Unity Forum
Having trouble sampling the camera depth texture – Stack Overflow
事前深度パス (Pre-pass Z Write)
Pass { ZWrite On ColorMask 0 }
(出典:Unity マニュアル )
(出典:Unity Forum )
参考:
Culling と Depth Testing | Unity 2018.4 マニュアル [公式]
ShaderLab Command: ZWrite | Unity マニュアル [公式]
Transparency Shader with ForwardBase and ForwardAdd? – Unity Forum
How can I add an extra pass to a Shader Graph? – Unity Forum
Question about ZWrite and transparency – Unity Forum
アウトラインを描画する
参考:
カメラからの深度情報を用いてアウトラインを描画する | LIGHT11
シングルパスステレオレンダリング
参考:
Getting the depth render texture in single-pass stereo rendering. – Unity Forum
Supporting Single Pass Stereo Rendering in Image Effects – Unity Forum
Reconstruct World Position from Depth Texture in Single-Pass Stereo VR – Unity Forum