Depth Texture
Depth Texture algorithmically estimates the depth of a Camera Input Texture.
![depth texture demo](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/depth_texture_demo-ab193f3bec9e2c684a8b86d4198bd6da.gif)
Import Depth Texture
- Go to the Assets panel
- Click the Add asset button [+]
- Go to Texture
- Click Depth Texture
![add depth texture](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/add_depth_texture-5080baaffe52fb6ceee3c584dff7fdeb.png)
How Depth Texture Works
Depth Texture adds algorithmically-predicted depth to your effect. The Depth Texture asset is a black and white texture, where the resulting grayscale texture predicts a real-world object’s distance from the camera. For example, the darker the texture, the closer it is to the camera.
![depth texture preview](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/depth_texture_preview-94a27aa082c6c3bc6f7edc4ae9522984.png)
tip
Try using Depth Texture in Material Editor to achieve different results!
Demo
Start by downloading the following demo project:
![depth texture demo](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/depth_texture_project_demo-892145f0768b287b0c0a728880fbf050.gif)
In this demo project, the R (red) values of Depth Texture is pulled to apply a blue strip between two estimated points. The darker the texture, or the lower the R value, the closer to the camera the blue strip will appear.
![demo subgrah](http://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/effect/learn/assets/images/demo_subgraph-ad9136fa3998d0421276898bd49e06b0.png)