Adding a material

To add some color to the cube, we can give a quick introduction to materials. Materials define how a surface should be rendered, including references to colorings and the textures used (a texture is an image file that gets painted on the object surface, not unlike wallpaper or package labeling, used for simulating details and making objects more realistic). For now, let's just add a touch of color to our white cube, technically referred to as albedo. Follow these steps:

  1. In the Project panel, select the top-level Assets folder, and select Create | Folder. Rename it Materials.
  2. With the Materials folder selected, select Create | Material, and rename it Red.
  3. In the Inspector panel, click the white rectangle to the right of Albedo, which opens the Color panel. Choose a nice red.
  4. Select and drag the Red material from the Project panel into the Scene and drop it onto the cube. It should now look red.

Your scene should now look something like this:

We will talk a lot more about materials in other projects in this book.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset