How to do it...

To create a glowing lamp using Material Emission, follow these steps:

  1. Create a new 3D Project. You should start with a basic scene containing a Main Camera and a Directional Light.
  2. Import the Unity package lamp.unitypackage containing the 3D lamp model (lamp), as well as a green Texture (lamp_emission).
  3. With the 3D model asset lamp selected in the Project panel, in the Inspector, check its Generate Lightmap UVs option, and click on the Apply button to confirm the changes:

  1. In the Project panel, select Material m_lamp. Check the Emission option, and then assign Texture lamp_emission to its Emission Color property. Set the ...

Get Unity 2018 Cookbook - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.