How to reveal texture based on mouse location

how is it possible to recreate the look for this site where they’re able to show two different textures?

https://wanderjaunt.thoughtlab.com/

You can use coords of a pixel in NDC to paint the parts of meshes by functions (circles, rectangles, blobs of noise etc.)

Demo: https://codepen.io/prisoner849/full/JjayPpZ

Pretty similar to:

2 Likes

Two different textures? Here is an example with polka dots amoeba over artish painting. The code is long, because textures are generated procedurally. The ideas is to have two objects one over the other. The top object has a dynamic alpha mask.

https://codepen.io/boytchev/full/gOdxbjj

image


@prisoner849 Your solution is also interesting