Using Material Emission to bake light from a glowing lamp onto scene objects
As well as Lights, other objects can also emit light if their Materials have Emmision properties (such as a Texture, and/or tint color). In this recipe we'll create a lamp that glows green via its EmissionTexture. The lamp and other 3D objects in the scene will be baked in order to create a pre-computed Lightmap for the scene:

Getting ready
For this recipe, we have provided a 3D lamp model (lamp
), as well as a green Texture (lamp_emission) in the lamp.unitypackage
Unity package in the 07_08
folder .
How to do it...
To create a glowing lamp using Material Emission, follow these steps:
- Create a new 3D Project. You should start with a basic scene containing a Main Camera and a Directional Light.
- Import the Unity package
lamp.unitypackage
containing the 3D lamp model (lamp), as well as a green Texture (lamp_emission). - With the 3D model asset lamp selected in the Project panel, in the Inspector, check its GenerateLightmap UVs...