In this tutorial, I will show you how to make a procedural rock material using the shader nodes in Blender for your project.
Rock Base
You can make a rock quickly and easily by activating the Extra Object add-on in Preferences
Make sure you have the Node Wrangler Add-on activated
In the Shading Workspace, you can start with the default material
For the color, you can add a Color Ramp node and connect it to the Base Color of the Principled Shader – changing the color of the Color Stops [#868686, #353535]
To control the Roughness, add a second Color Ramp and connect it to the Roughness input of the Principled Shader
Move the White Color Stop to the left to increase the Roughness
Bump
For the Bump, add a Texture Coordinate node and two Noise Texture nodes
Connect the Object output of the Texture Coordinate to the Vector inputs of the Noise Textures
With the Node Wrangler add-on activated, you can use CTRL + SHIFT + LMB to view the first Noise Texture
Make any changes to the options you wish
Repeat this process for the second Noise Texture
Use CTRL + SHIFT + LMB to view the Principled Shader
Add two Bump nodes
Connect the first Noise Texture to the height of the first Bump node
Connect the first Bump node to the Normal of the second Bump node
Connect the second Bump node to the Normal input of the Principled Shader
Add a Color Ramp and connect the Factor of the second Noise Texture to the Color Ramp
Connect the Color Ramp to the Height of the second Bump node
Make adjustments to the Color Stops to add smoother areas to the rock material
Connect the Factor from the second Noise Texture to the Factor of the second Color Ramp – the one being used for Roughness
Displacement
If you want to use some displacement, switch to the Cycles renderer
Add a Voronoi Texture node and connect the Factor from the second Noise Texture to the Vector of the Voronoi Texture
Add a Displacement node and connect the Distance of the Voronoi Texture to the Normal of the Displacement
Connect the Displacement node to the Displacement of the Material Output Make changes as needed to the nodes