Setting up a glow mask using the Material Editor window
Torque 3D makes it easy to make a material emissive (not affected by lighting) and glow using the Material Editor window. However, activating these Material
class properties makes the entire material emissive and glow. In this recipe, we will
learn how to mask out the glow region of a material to limit its effect.
Getting ready
This recipe requires some work to be done in the Paint program of your choice, as well as in Torque 3D. We will describe the Paint program steps in general terms as each application is different. However, most Paint programs that are in-depth enough for game development, support the same general operations.
In Torque 3D we will be using the Materials Editor window to modify the material properties of a 2D object.
How to do it...
In the following steps, we will create a new glow texture and apply it to an object:
Start up your Paint program and load in the texture file we'll use as a base. This could be the texture...