O'Reilly logo

Virtual Reality Blueprints by John Williamson, Charles Palmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting the mood

It's great to be able to see our scene in action, but the harsh lighting and grey walls don't really fit our zombie theme. We can correct that with a few materials and a new lighting setup:

  1. Right-click in the Project panel and create two new materials.
  2. Rename the materials Ground and Walls.
  3. Set the color for both materials. Use darker colors for both, but the walls should be a bit brighter. We used hex values #514735FF for the Ground and #65615AFF for the Walls.
Unity uses 4 pairs of hexadecimal values to specify color. The format for these values is #RRGGBBAA, where RR (red), GG (green), BB (blue) and AA (Alpha) are hexadecimal integers between 00 and FF specifying the intensity of the color. For example, #FF800000 is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required