Adding color using materials
In this section, we will be adding materials to our objects to make our scene more interesting! You will learn how to use the Shading workspace to assign random colors to our instance objects by using basic shading nodes and a color ramp.
To add materials to our Geometry Nodes scene, we need to apply the material to our instance object. In this case, it's the cube that we have created and moved over to the side of our scene:
- Click on the cube to select it, and open the Shading workspace by clicking on the Shading tab at the top of the interface.
- With the cube instance still selected, click on New to create a new material:
By default, you will see two nodes: the Material Output node and a Principled BSDF shader node. Let's create a new node called the Object Info node.
- Hover your mouse over the Shader Editor window...