Setting up the scene

To begin, we'll need a high-poly model. We found one of a pair of sunglasses on Turbosquid with over 5,800 triangles, and which includes a transparent material for the lenses (https://www.turbosquid.com/3d-models/3ds-sunglasses-blender/764082). Please download the FBX file now. A copy is also included with the files for this book, for convenience. We will refer to this as Sunglasses-original.fbx to distinguish it from other versions we'll modify along the way.

Then, go into Unity, as follows:

  1. Create a new scene (File | New Scene), then save it (File | Save Scene As) and name it Optimization
  2. Import the model into your Project Assets Models folder (Assets | Import New Asset)
  3. Create a ground plane for reference (Create ...

Get Unity Virtual Reality Projects - Second Edition 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.