【Unity3d Shader】掃描效果(場景深度掃描)

Unity3d的深度圖能夠實現一些神奇的效果,關鍵之處僅三行代碼c# _CameraDepthTexture//Unity3d提供給咱們的深度圖  float depth = SAMPLE_DEPTH_TEXTURE(_CameraDepthTexture,uv);//按uv座標獲取_CameraDepthTexture中的深度 depth = Linear01Depth(depth);//深度線
相關文章
相關標籤/搜索