- [Zach] In this video, we take a look on how
to change the color of a texture
on the fly directly in Blender Shader Editor.
(air whooshing sound)
So here I have the tree from the construction site,
as you can see,
and I added a new material here
with the basic box mapping set up.
I have the texture coordinate node
with the object texture coordinates,
the mapping node,
which I set to texture with the scale value of two,
to scale up the texture a bit.
Then I used a bark texture
from the CCOTEXTURES.COM
with the box projection and a blend value of two.
This I connected to the principled Shader.
Here I set the specular down to zero,
so that we don't have these specular highlights on the tree.
And this as always is connected with a material output node
so it appears on the surface.
I have the material preview shading enabled, as you can see.
And by the way, you can also turn off the background
by setting the world opacity to zero.
And if you don't want to have this HDRI preview,
you can disable this over here by un-checking HDRI preview.
(air whooshing sound)
Now let's select these nodes down here.
Drag a box and left click and hold and move this to the side
so that we have some space in between here.
A node tree, this down here is called node tree
you always read from left to right.
That means on the left side, we start with some inputs.
Here we have the texture coordinate node
and the mapping node which defines the coordinates
of this texture here which we added then.
And then this manipulated texture
will be outputted through
the color here and then connected to the principal Shader.
And here we add some effects like glossiness, metallic
and all this stuff,
and this, we will give further
to the surface of the object which appears up here.
So, and imagine you wanna change the color, the brightness,
the contrast of this object here,
then you might think, okay
then you have to put the original texture
into Photoshop for example, or Krita.
Make some adjustments, save this again
and reload this into Blender
to see the changes over here.
This involves a lot of steps
and if you just want to make some little tweaks,
this can be a pain in the...
you know what I mean.
So, but good news
we can also change textures directly here
in the Shader Editor.
If I hit Shift A,
we have this color category
and a bunch of nodes over here.
Let's go through some of the most important ones.
We don't cover all of them here,
but the ones which you will probably use most often.
(air whooshing sound)
Let's click on bright contrast and drag and drop this
onto this noodle.
Bright contrast, as the name implies
can be used to brighten or darken
the texture and to change the contrast.
Let's select this node, press Control X to remove it
without removing this noodle here.
(air whooshing sound)
Let's add the HUE Saturation node as the next node.
This is one of the nodes which I use more often
because it allows very easy
and quick adjustments
like changing the colors.
Hold down Shift when changing this value here
to have fine control.
So we can, for example, make it more reddish, if we like.
Then we can change the saturation and we can change
the value, basically making it brighter or darker.
And this Fac value down here defines
the overall effect this node should have on this texture.
So if I reduce this down to zero,
none of these values here will have an effect
on the texture as you can see.
And if I slightly increase it, for example, 0.5,
then these values will affect this texture only by 50%.
(air whooshing sound)
Let's remove this by pressing Control X.
Go to color once again, then we have the invert node,
which just inverts the color.
And here again, we have this Fac slider.
(air whooshing sound)
Let's remove this one,
the mix RGB node we will have a closer look
in the next video.
Now let's finish this video here by having a closer
look on the RGB curves node.
Let's place it here.
RGB filters or adjustment tools are very common
in image editors like Photoshop, Krita, GIMP and so on
or in video editors.
And they are used to adjust the values and colors
of an image or a video.
So in this case,
we wanna change the values and colors
of this bark texture.
First of all, here we have access on the overall color
and on the different channels like red, green, and blue.
So this RGB curves node gifts us really the power
to fine tune everything in one texture.
So we can change the red channel individually,
same as a green and blue channel,
or we can change everything together.
Let's click on the C here to change the overall color.
And then we have this grid box down here.
The horizontal line of this grid here defines
the values from black to white.
Down here we have black and up here we have white.
So the value is from zero to one.
Then we have a little dot on that left side,
which defines the dark values.
And then we have a dot on the right side,
which defines the bright values.
And everything in between are the mid-tones
between black and white.
So to better understand this,
let's have a closer look on the texture.
If I take this little dot here and move it up,
I bring it closer to the value of one,
which is perfect white,
that means I add more bright colors to the dark values.
If I move it completely up here,
you can see everything is white so we turned all
the dark values into perfect white values.
Let's move this dot down once again.
So everything is back as it was originally.
Now let's click on the bright values
and move it down a little bit.
That means all the bright values here in this image
will be darkened.
And if I put it down to zero,
everything is just black.
So, but we cannot only move the left and right handle.
We can also left click and add more dots here on this curve,
as many as you like.
And for example,
this area down here are the darker mid-tones.
And if I move this down,
I darken these darker mid-tones even more, as you can see.
And up here, we have the brighter mid-tones.
If I move this up, we can add more brightness
to the bright values.
And in this way, I add more contrast to the overall image.
When you wanna remove the dots,
simply select it and click on this X.
Or if you wanna remove all the dots,
if you have like a lot of dots,
then click on this arrow and click on reset curve.
So the same as you can do for the overall color you
can also do for the individual channels.
So let's go to the red channel.
Here, for example, we can remove the red color
from the bright values.
Or we can add more red color to the bright values
and the same for the dark values.
We can add more red color or we can remove red color
from the dark values.
Or if we overall wanna tint the whole image,
we can simply add a dot here in the center
and move it to the right so it gets more red.
Or I wanna remove red color from the overall image,
then I can move it into the other direction.
And the same applies to the green channel
as you can see here
and to the blue channel.
So in this way you can tint your texture
and change the appearance which is cool if you wanna use
the same texture in your 3D scene and different places
but adjusted so that the texture looks
a little bit different in each place.
(air whooshing sound)
So, and certainly you can not only add one node here,
you can combine as many nodes as you like.
So for example, now I have tinted this into yellow.
Now let's simply add the HUE Saturation node behind this,
and maybe it changed to HUE once again,
and the value a bit,
and then maybe add a bright contrast node.
Doesn't make much sense right now,
but just to show you that you can combine
as many color nodes as you like to adjust your texture.
Now this texture, the original input goes into
the RGB curves.
This adds the yellow tone,
then this yellowish texture goes through
the HUE Saturation value node.
Then this will be adjusted.
Then this adjusted image goes through
the bright contrast node.
And the final output here goes into the principled Shader
and then onto the surface of the object.
Yeah, and in this way you can easily tweak your textures.
And this is especially cool if you, for example,
wanna tweak your texture so that it better fits
the overall scene.
So for example, here, since everything
is like black and white,
lets add a HUE Saturation node
and set the saturation down to zero.
Now this tree looks as boring
as the rest of the textures here.
Nice.
(upbeat music)