Game Development Reference
In-Depth Information
Building the material
Add a new material to Content Browser and name it particlesMaterial , then double click
to open the material editor. Select its base node and set Blend Mode to Translucent and
Shading Model to Unlit . With these two options, you will find some of the inputs the ma-
terial has disabled as we will not need them with a typical particle material.
Now you can add the RadialGradientExponential node to your material grid, which will
be responsible for showing a radial gradient shape (small particle shape) in the shaded sur-
face.
Also, add a Particle Color node, which will hold the color of the particles (you will be
able to change it later per instance). Now as you need to connect color to the material
Emissive Color and alpha to the Opacity material input, you will need to add a Multiply
node to multiply the RadialGradientExponential value to the Particle Color node values
and display a correctly shaded particle at the end.
Search WWH ::




Custom Search