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 ...

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.