# Depth Texture Experiment

**URL:** <https://discourse.threejs.org/t/depth-texture-experiment/89932>\
**Category:** Showcase\
**Tags:** depth-of-field, depth-texture, depth-buffer, depth-test\
**Created:** [February 19, 2026, 5:38am UTC](https://discourse.threejs.org/t/depth-texture-experiment/89932 "2026-02-19T05:38:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tibi](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/tibi/32/61300_2.png) [@Tibi](https://discourse.threejs.org/u/Tibi)\
**Post date:** [February 19, 2026, 5:38am UTC](https://discourse.threejs.org/t/depth-texture-experiment/89932/1 "2026-02-19T05:38:11Z")

</div>

> **[Depth Texture](https://fwdapps.net/l/depth-texture/)**

Realtime depth-driven line distortion experiment built with Three.js and custom GLSL shaders.  
This project samples a depth texture from a 3D face model and uses that depth data to displace thousands of line vertices in real time. It includes simplex noise (`snoise`) for animated organic motion, RGB line styling, camera/depth sync, and responsive layout scaling for consistent proportions across aspect ratios.

Made as a creative coding + shader playground to explore depth mapping, vertex displacement, and procedural animation.

 ![44](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/4/0/4014afe2f310741f7475af5a01acee2321fb63bb.png)

---

<div class="post-metadata">

**Author:** ![phil\_crowther](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/phil_crowther/32/64202_2.png) [@phil\_crowther](https://discourse.threejs.org/u/phil_crowther)\
**Post date:** [February 19, 2026, 9:46pm UTC](https://discourse.threejs.org/t/depth-texture-experiment/89932/2 "2026-02-19T21:46:41Z")

</div>

It seems to work fine, but FYI, Chrome is giving an error notice relating to glDrawElements

---

<div class="post-metadata">

**Author:** ![Tibi](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/tibi/32/61300_2.png) [@Tibi](https://discourse.threejs.org/u/Tibi)\
**Post date:** [February 19, 2026, 11:38pm UTC](https://discourse.threejs.org/t/depth-texture-experiment/89932/3 "2026-02-19T23:38:03Z")

</div>

This is just an experiment… but noted!
