So, we’ve got our basic PBR material working, and we’ve looked at how we can use an ORM texture to combine our Ambient Occlusion, Roughness and Metallic information into a single texture.
But what if we want to make adjustments to these textures without having to keep opening up the Material Editor?
Well, this is where Blueprints become really useful.
So, we’ve got our basic PBR material working, and we’ve looked at how we can use an ORM texture to combine our Ambient Occlusion, Roughness and Metallic information into a single texture.
But what if we want to make adjustments to these textures without having to keep opening up the Material Editor?
Well, this is where Blueprints become really useful.
Unreal Engine allows us to expose different material properties as parameters, which we can then control through Blueprints. This means we can adjust things like the brightness of our Base Color, the intensity of our Normal map, or even the Roughness and Metallic properties of our material.
So, let’s take our basic PBR material and turn it into something a little more flexible.
1. Preparing Our Basic Material
Let’s start by opening up the basic material we created in our previous tutorial.
If you’ve followed along, you should already have something similar to this:
- A Base Color texture.
- A Normal texture.
- An ORM texture containing Ambient Occlusion, Roughness and Metallic information.
If you haven’t created an ORM texture before, I’ve got a separate tutorial showing how to combine these maps using Affinity Photo. I’ll leave a link to that below.
For now, we’re going to concentrate on making our existing material adjustable.
Rather than connecting our textures directly to the material output, we’re going to introduce a few additional nodes that will allow us to modify the texture information.
The important thing here is that we’re going to use Parameters rather than regular Constant values.
This is what allows us to expose these properties outside the material itself.
2. Creating a Base Color Brightness Parameter
Let’s start with our Base Color.
At the moment, we have our Base Color texture connected directly to the Base Color input.
What we’re going to do is introduce a Multiply node between these two connections.
Hold down the M key and left-click to create a Multiply node.
Connect the RGB output from our Base Color texture to the A input of the Multiply node.
Next, we need a value that will control the brightness.
Hold down the S key and left-click to create a Scalar Parameter.
A Scalar Parameter is essentially a single numerical value that we can adjust later.
Select the node and give it a name. Let’s call this one Albedo Brightness.
Connect it to the B input of our Multiply node.
Finally, connect the output of the Multiply node to the Base Color input on the Material Output.
Set the default value of our Scalar Parameter to 1.
What we’re doing here is multiplying the original Base Color by our brightness value.
If we set this value to zero, our material will become black.
If we set it to one, we’ll get our original texture.
And if we increase it above one, we’ll start making the texture brighter.
That’s our first adjustable material property!
3. Creating a Base Color Contrast Parameter
Now let’s add a little more control over the appearance of our Base Color.
Brightness is useful, but sometimes we want to increase or decrease the contrast without changing the overall brightness in the same way.
We can do this using a Power node.
Hold down the E-key and Left-click to add a Power node.
Connect the output of our previous Multiply node to the Base input of the Power node.
Next, hold down the S key and create another Scalar Parameter.
Let’s call this one Albedo Contrast.
Connect it to the Exponent input of the Power node.
Set its default value to 1.
Connect the output of the Power node to the Base Color input.
Now we’ve got a couple of useful controls.
The brightness parameter allows us to adjust the overall intensity of our Base Color, while the contrast parameter allows us to change the distribution of its values.
4. Adding a Base Color Tint
Let’s add one more adjustment to our Base Color.
This time, we’re going to create a Tint parameter.
Add another Multiply node by holding down M and left-clicking.
Connect the output of our Power node to the A input.
Now hold down the 3 key and left-click to create a Constant3Vector.
Right-click on this node and select Convert to Parameter.
Let’s call this parameter Albedo Tint.
Connect it to the B input of our new Multiply node.
Set the default value to white.
This is important because white will preserve the original Base Color, whereas other colors will tint the texture.
Finally, connect the output of this Multiply node to the Base Color input on the Material Output.
We now have three ways to adjust our Base Color:
- Brightness.
- Contrast.
- Tint.
That’s a pretty useful amount of control for such a simple material!
5. Adding Controls to Our ORM Texture
Next, let’s move on to our ORM texture.
Remember, our ORM texture contains three separate properties:
- Red channel: Ambient Occlusion.
- Green channel: Roughness.
- Blue channel: Metallic.
Because we’ve combined these into a single texture, we can still access each individual channel and adjust them independently.
Let’s start with Metallic.
Metallic brightness
Find the Blue output on our ORM Texture Sample node.
Add a Multiply node and connect the Blue output to its A input.
Next, create a Scalar Parameter and call it Metallic Brightness.
Connect this parameter to the B input of the Multiply node.
Set the default value to 1.
Finally, connect the output to the Metallic input on the Material Output node.
This gives us control over the intensity of our metallic information.
For example, reducing the value towards zero will reduce the metallic response across the material.
Roughness brightness
Now let’s do the same thing with Roughness.
Our Roughness information is stored in the Green channel of the ORM texture.
Add another Multiply node.
Connect the Green output from our ORM texture to the A input.
Create another Scalar Parameter and call it Roughness Brightness.
Connect this to the B input and set its default value to 1.
Connect the output to the Roughness input on the Material Output.
Now we can adjust how rough or smooth our material appears without having to edit the original texture.
Ambient Occlusion
Finally, we have Ambient Occlusion, which is stored in the Red channel.
For this basic material, we can connect the Red output directly to the Ambient Occlusion input.
We could also introduce another Multiply node and a Scalar Parameter called AO Strength if we wanted additional control over this property.
6. Adding Normal Map Intensity Control
One final adjustment I’d like to add is Normal intensity.
Normal maps are particularly useful for adding surface detail, but sometimes the effect can be a little too strong.
Rather than editing the original Normal texture, we can expose a parameter that allows us to control how pronounced that detail appears.
Right-click in the material graph and search for FlattenNormal.
Connect the RGB output from our Normal texture to the Normal input on this node.
Next, create a Scalar Parameter called Normal Intensity.
Set its default value to 1.
Now add a OneMinus node by holding down O and left-clicking.
Connect our Normal Intensity parameter to the OneMinus input.
Connect the output of the OneMinus node to the Flatness input on the FlattenNormal node.
Finally, connect the output of FlattenNormal to the Normal input on the Material Output.
This might seem a little strange at first, but here’s what’s happening.
The FlattenNormal node allows us to blend our Normal map towards a completely flat surface.
By using OneMinus, we’re reversing our intensity value so that:
- A value of 1 gives us the original Normal map intensity.
- A value of 0 flattens the Normal map completely.
And now we have another adjustable property!
7. Organizing Our Material Parameters
Before we move on, let’s take a moment to organize our material graph.
We’ve now got quite a few different parameters, and it’s a good idea to keep things tidy.
Select the nodes associated with our Base Color adjustments and press C to create a Comment Box.
Let’s call this Albedo.
Repeat this process for our Metallic, Roughness and Normal adjustments.
We can also organize the parameters themselves.
Select one of our Scalar or Vector Parameters and look in the Details panel.
You’ll see a property called Group.
We can use this to organize our parameters into categories.
For example:
- Albedo
- Normal
- ORM
This will make things much easier to work with when we create our Material Instance.
Once everything is connected, apply and save the material.
8. Creating a Material Instance
Now that we’ve prepared our material, let’s create a Material Instance.
Go back to the Content Browser, right-click on our master material and select Create Material Instance.
Let’s call this one MI_ORM.
Double-click to open it.
You’ll notice that all of the parameters we’ve just created are now available in the Details panel.
We can enable each parameter and adjust its value.
Try changing the brightness, tint, roughness and normal intensity.
You’ll see that we can make quite a few changes to our material without having to open the original Material Editor.
9. Wrapping Things Up
And there we have it!
We’ve taken a fairly basic PBR material and turned it into something much more flexible by exposing its properties as parameters.
We’ve looked at how to adjust:
- Base Color brightness.
- Base Color contrast.
- Base Color tint.
- Metallic intensity.
- Roughness intensity.
- Normal map intensity.
The really useful thing about this approach is that we’re no longer limited to using one fixed material.
We can reuse our master material across multiple objects and give each one its own appearance.
This is particularly useful for things like environment assets, modular objects, prop variations and player customization.
And this is really just scratching the surface of what we can do.
Once you understand how to expose material parameters and control them through Blueprints, you can start building much more sophisticated material systems.