Baking light from an emissive material onto other scene GameObjects
As well as Lights, other objects can also emit light if their Materials have Emission properties (such as a Texture, and/or tint Color). In this recipe we’ll create a lamp that glows green via its Emission Texture. The lamp and other 3D objects in the scene will be baked to create a pre-computed Lightmap for the scene.
Figure 13.52: Cube with green emissive Material
Getting ready
This recipe follows on from the previous one, so make a copy of that project to work on for this recipe.
How to do it...
To bake light from an emissive Material onto other scene GameObjects, follow these steps:
- If there is a Spot Light in the scene, delete it.
- Ensure your scene has a Directional Light, and that it has no Cookie Texture. Reduce its Emission Intensity value to
0.5
(so we can better see the glowing green Cube we are about to create!). Also in its General settings, set this light...