# Interpolate a one texture to another texture

**URL:** https://discourse.threejs.org/t/interpolate-a-one-texture-to-another-texture/61788
**Category:** Questions
**Tags:** interpolation, textures
**Created:** [February 22, 2024, 4:53am UTC](https://discourse.threejs.org/t/interpolate-a-one-texture-to-another-texture/61788 "2024-02-22T04:53:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Harshil\_HexaCoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/harshil_hexacoder/32/52081_2.png) [@Harshil\_HexaCoder](https://discourse.threejs.org/u/Harshil_HexaCoder)
#### Post date: [February 22, 2024, 4:53am UTC](https://discourse.threejs.org/t/interpolate-a-one-texture-to-another-texture/61788/1 "2024-02-22T04:53:36Z")

</div>

I am trying to achieve transition effect of a one texture another texture while animating mesh with shape key but have no clue how to achieve this. Thanks in advance for help.

---

<div class="post-metadata">

### Author: ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)
#### Post date: [February 22, 2024, 4:59am UTC](https://discourse.threejs.org/t/interpolate-a-one-texture-to-another-texture/61788/2 "2024-02-22T04:59:48Z")

</div>

To interpolate between textures on the same material / surface, you’ll need a custom shader - that’ll pretty much do just:

```glsl
vColor = mix(tTexture1, tTexture2, alpha); // NOTE Alpha being a value between 0 and 1, defining the linear interpolation between textures

```
