Creating the particle shader
In Unity particle systems use a unique kind of shader. We will create this next:
- In the Project panel, click on the
PACKT_Shadersfolder to view its contents in the Assets panel.
- In an empty area of the Assets panel, create a new shader. Right-click and choose Shader | Unlit Shader.
Unlit shaders do not respond to scene lighting. This makes them a great choice for particle effects that tend to use billboard textures rather than being actual geometry.
- Rename the new shader
- Double-click on the shader to open it in MonoDevelop.
- In MonoDevelop, change the first line of the shader to match the following:
Putting this shader in an
Unlitsubfolder will make it easy to select when ...