Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
- [Zach] Welcome to the second bonus video where we
recreate the cubic world shader from scratch.
Here in this video, we will finish up the nodes setup.
So besides the gradient button, edge, and the random color,
we are still missing the specular,
which I'm mainly using for transparent materials.
For that, let's hit Shift + A and add a noise texture.
Then let's select this and with the Node Wrangler
add-on enabled, let's press Control + T to add this mapping
and texture coordinate set up.
However here we don't need the mapping,
so let's press Control + X to remove it
without losing the connection here
and here let's connect the reflection output
to the noise texture vector.
If I now hold on Control + Shift + Left Click
to preview the vector over here,
we can see that this noise texture is displayed
on this object as if this is a reflection,
which looks pretty cool already.
To make this a bit better visible,
let's hit Shift + A and search for a color ramp
and add it behind the noise texture.
And if I move the black handle over here,
we are increasing the contrast here,
and to make the edges here look a bit smoother,
lets change the interpolation to ease out.
This looks better, as you can see.
Then let's select the black handle
and set this to be something like 0.6,
the white handle to be 0.7,
and then we have very high contrast here.
Then let's simplify the noise texture,
maybe let's scale it to four which makes the texture
a bit bigger, reduce the details to zero,
the roughness to zero,
and then we have these big smooth blobs on the texture.
And as I mentioned before, we will use the orthographic view
for our Cubic World scenes.
So this is how it looks like when I orbit around the object.
So we have these white spots popping up here and there.
Now before we add the specular on top of our defuse shader,
let's first add the emission shader
and the transparency setup because we will add
this specular later on top.
But before we do that, let's select these nodes here.
Press Control + J to frame them, F2,
let's call it specular, increase the label size,
and let's press Control + H to hide the unnecessary in
and outputs and we can go even one step further
by collapsing these nodes, because we don't need
to change any settings on them.
And we can do it basically for all the nodes where
we don't need to change any settings.
To clean up our whole nodes setup even more, same down here.
And as you can see this looks now much cleaner
and we can immediately see which nodes are important
to change any settings here.
So right now we have our diffuse shader set up,
so for all the materials which should
just be like solid objects.
Now in order to make an emissive material,
let's hit Shift + A, search for the emission shader,
put it in here, and all we need to do is to add a color
to the emission as well, and then we can simply connect this
to the surface, and with the strength
we can change the strength of the emission shader,
pretty simple, and now let's set this up
for the transparency.
For that, we need the transparent shader,
not the translucent, and first of all, connect this
with the surface here and also plug in the color.
Then in order to see transparency on the object,
we need to change the blend mode to alpha blend
and in order to make it work for the shadow as well,
change the shadow to alpha hashed.
However, we can barely see the transparency,
now it looks a bit weird.
We can't really control the opacity,
and for that, let's hit Shift + A,
add a diffuse shader, and hit Shift + A once again
and add mix shader, not the mix RGB node,
plug it in here, then put the diffuse shader
into shader input one, the transparent shader input two
and then let's also add the color
to the diffuse shader up here
and now we have this nice slider here
which allows us to change the opacity
and maybe let's reduce the strength of the gradient
a bit here so we can better see what's going on
and now you can see it is transparent.
So now we have the basic setup for the transparency,
the emission, and the diffuse and now let's add the specular
on top and this we do with an add shader.
An add shader and also a mix shader is something similar
as the mix RGB node here, but in this case,
we can mix shaders, not different color and texture values.
So that means we need two shaders
in order to mix something.
Let's duplicate the diffuse shader, connect these two
in here, and let's plug in the specular
into the upper diffuse shader and let's reconnect this
with the surface here and let's change the blend mode back
to opaque so we can see it as solid object
and now we can see how the specular is added on top.
So now there is still a little problem
because I want to be able to disable the specular
and change the color and the intensity
and this we could do by selecting the white handle
and reducing the color to black, then this will disappear.
However, doing this inside this color ramp
is a bit problematic for further use.
So let's add a simple mix RGB behind the color ramp,
plug the output into the vector here,
and change the first color to be black,
and the second color to be pure white
and now if I Control + Shift + Left Click on the color ramp,
this is how the output from the color ramp looks like,
and if I click on here with Control + Shift + Left Click,
you can see it looks identical.
However, now we have the ability to simply change the color
over here and the intensity and this output now goes
into the diffuse shader up here.
Let's move this into the frame
and then it is also inside here.
Then we can collapse the color ramp,
we don't need it anymore, and then let's put a frame
around this set up here, Control + J, F2,
let's call this diffuse, and increase the label size
and down here, let's add the same setup
as up here to add the specular on top.
Hit Shift + A, add an add shader here,
duplicate the diffuse shader, connect this up here,
and this here as well and then let's grab the output
from the specular and plug this into this color here
and now when I connect this to the material output
and re-enable the alpha blend,
we can see we have this transparency
but we still have the full strength of the specular here.
If I would have added the specular here on the color level,
like with a mix RGB node, and then simply plugged this
into the diffuse shader and into the transparency,
we would lose the strength of the specular effect here.
So let's add a frame around these nodes down here,
call it transparency, and again, let's press Control + H
to hide unnecessary in and outputs, and collapse these here.
Here we don't want to change anything, same over here.
We only need this mix slider here.
Here we need the strength,
and here we can basically collapse everything.
So with everything moved around a bit,
This is what we have.
We have the diffuse output, the emission output,
and the transparency output.
Let's stay with the diffuse output here,
and let's change this back to opaque,
same for the shadow mode, opaque.
And now let's quickly put this into a nice node group.
For that, let's select everything here
except the material output,
press Control + G to pack this into a group,
then hit Tab to get outside of this group
and now you can see all these nodes were grouped
inside this simple node group.
Let's call this CW_Shader_new, for example.
However, as you can see over here, now we don't have access
to all these nice sliders and color changers
and let's quickly set this up.
If I select this and hit Tab, I can look inside
this node group.
Let's press Control + Space
to full screen the shader editor here
and we have two new nodes here,
we have the group input and the group output,
and if I click on group up here,
if you don't have the sidebar open press N,
and here we also have a list of inputs and outputs,
and here we can do some pretty cool things.
First of all, you can see the diffuse shader
is already connected with the output node
and if I hit Tab to go back,
we can see this output over here.
And if I now connect the emission and also the add shader
from the transparency setup, we can see
that we have the list of outputs over here as well,
and over here, if I double click on these,
I can simply change the names to diffuse,
emission is good.
Let's change the last one to transparency,
which we now can also see over here.
So we can simply connect whatever we want to use.
Either diffuse, emission or transparency
and now we need to define the inputs over here.
First of all, let's connect the base color
and this we had set up using this temporary RGB node.
That means we need to connect color one,
and also color one from this one here, to the same socket.
That means now here we can change the color
and this will change the color of input one
from this mix node and input one from this mix node.
Then let's change this to base color,
and let's connect color two, which was the random color.
So let's call this random color.
The next input should be the color of the specular,
which is this output here, let's connect this.
Let's call this specular color.
Then we want to be able to control the strength
of both gradients, so let's connect this one here
and also this one here,
which we call gradient edges and gradient bottom.
Then we want to control the strength of the transparency
which we can find over here, let's connect this.
Let's make this bigger here, transparency.
Then up here we want to control the randomness.
Meaning if we want to have the randomness,
yes or no basically, let's call this random
and the last thing we need is the strength
of the emission shader, which we call emission.
So, and then I think this is all we need.
Then we can delete this temporary RGB node,
and if I go back with Tab,
we now have everything we need here.
We can change the base color, random color, specular color,
the different gradients, transparency, randomness,
and the emission.
And before we test this setup,
let's get back into the shader,
and if I click through these different inputs here,
we can see that we can define default values,
which is really cool.
So let's change the default values here,
base colors should be pure white, I would say,
random color the same.
Specular color should be pure black,
so it's disabled by default.
The gradient I usually set up to 0.5, the edge gradient,
and the minimum value is zero, and the maximum is one.
The bottom gradient I usually set up to 0.75,
minimum zero, maximum is one.
Transparency is set to zero, minimum and maximum the same.
The randomness is also set
to zero, minimum and maximum the same.
And the emission is set to zero by default,
minimum is zero and maximum can be as high as you like,
if you want really strong glowing elements.
Then let's hit Tab, press Control + Space to get out
of full screen mode and now if I delete this shader here,
hit Shift + A, go to group, and add this CW_Shader_new,
then you can see that all these values are reset
to the default values, and if you click this shield,
by the way, we add a fake user, so we make sure
that this shader group stays in this blend file
even though we would delete it, and no material is using it.
So let's connect this
and let's quickly see if everything works as expected.
So we can change the color here, and that's great.
We can add a random color when we have random set to one
and now when we duplicate this, each of them
should have a random color.
Works nicely.
Then we can enable the specularity, works also nice.
We can play around with the edge gradients,
same with the bottom gradient.
Then let's connect the emission here,
and increase the strengths down here, and it's working.
By the way, I have not added the specular color
to the emissive material because I thought
we will never add this to glowing elements.
However, if you want to do this,
you can of course add this diffuse and edge shader setup
to the emission shader as well.
And the last one is the transparency.
For that, let's change the blend mode
to alpha blend and alpha hashed,
and then with changing the transparency value down here,
we can play around with the transparency.
And yeah, it seems to be working fine.
And this is how you set up the Cubic Worlds Shader
from scratch.
I know these were two very long videos, but anyway,
I hope you learned a thing or two
and from now on, we keep the shading process simple
by just using this specific shader
for the rest of the course.
And as always, if you followed along,
don't forget to save.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.