Overlay Pattern on Texture in Material

I have a diffuse texture that I want to overlay a simple grid pattern on top of. Is there any way to overlay the grid on the texture without the texture coming through the grid? In the attachment you can see the diffuse texture and the simple grid I want to overlay. In the other attachment you can see how the texture is showing through the grid. I am also trying to set it up where I can change the color of the grid. The way I currently have it set up as shown works, but it also changes the color of the DiffuseTexture.

The Lerp node is what you’re looking for. You use the first slot (A) as your base color/texture, your second slot (B) as the colour/texture of the mask, and the third slot (Alpha) as your alpha mask. Here’s an example I whipped up. The first texture I want as the base goes into A. The alpha slot is the transparent grid texture I’ve used (though I’ve just inverted it with a One Minus node for the sake of visibility here, to show how it doesn’t show through. Slot B I plugged in a regular 3 vector (colour node) to act as what colour I want the grid pattern to be. So, the end result is a blocky red grid with the base texture peeking through the lines, but no textures are actually showing through the other. They’re both solid. Hope this helps!

1 Like