0
$\begingroup$

I need to change the background color of a PNG to a specific color. The background of the lable renders black and I want so set the color by my own.

How can I do it within the node editor?

Preview render

Here's the PNG and the nodes:

PNG

Nodes

Thanks!

$\endgroup$
0
3
$\begingroup$

I would just add in a MixRGB node between your transparent image and the color of the principled shader.

Make sure you plug in the alpha socket into the factor of the MixRGB node and change the color to your liking.

animated gif - color changing

cycles material nodes

$\endgroup$
4
  • $\begingroup$ O was trying it earlier with mix RGB and some other Nodes but never had figuered it out, i was close but now it works. $\endgroup$
    – Jan Z
    Jul 2 '18 at 22:39
  • $\begingroup$ So connecting the Alpha Channel to the Fac Input tells wich part to seperate from each other and the order of the Color inputs which part to colorize?! Hope thats right. If yes, i understand the hole process now. Thanks for the solution! $\endgroup$
    – Jan Z
    Jul 2 '18 at 22:46
  • $\begingroup$ You're absolutely correct! $\endgroup$
    – icYou520
    Jul 2 '18 at 22:48
  • 1
    $\begingroup$ It's easier if you don't think in terms of transparency, but how to use a mask to control how two colors or shader mix together. Read Add a transparent image on top of a material $\endgroup$
    – user1853
    Jul 3 '18 at 2:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.