3
$\begingroup$

I have a simple cube object whith a picture texture clipped, not repeated:

The background of the object (I mean, the surface that is not covered by the image) is black.

How can I change the color of this surface part (the surface that is not covered by the image) to white or another color?

maped object

unwrap

enter image description here

$\endgroup$

2 Answers 2

5
$\begingroup$

It should work with this setup, plug your Image Texture node into a MixRGB and use the Alpha output as factor:

enter image description here

$\endgroup$
5
  • $\begingroup$ Ok, thanks. it seems simpler than other method. $\endgroup$
    – aitor
    Nov 3, 2021 at 9:37
  • $\begingroup$ I was not sure it would work but it looks like what is outside the picture is considered as alpha 0 $\endgroup$
    – moonboots
    Nov 3, 2021 at 9:44
  • $\begingroup$ @aitor I would suggest this as accepted answer, it is simpler and sufficient. moonboots: Yes, that's how it works ;) $\endgroup$ Nov 3, 2021 at 12:09
  • $\begingroup$ @ Gordon Brinkmann, yes of course, what could it be except alpha 0 ;) $\endgroup$
    – moonboots
    Nov 3, 2021 at 12:12
  • $\begingroup$ Ok! I changed it as accepted answer. $\endgroup$
    – aitor
    Nov 4, 2021 at 6:38
2
$\begingroup$

you could try this node setup:

enter image description here

I took a very low number as threshold: 0.00001

Sorry, you cannot see that in the screenshot.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .