Separate the calculations from their settings
A shader contains appearance calculations, such as removing black from a mask or multiplying its color. A material supplies the image, color and values for those calculations. In Unity, Material references a Shader or Shader Graph. In Unreal Engine, build the calculation in Material Editor and adjust exposed values through a Material Instance. You can reuse an image, but build its material in each engine.
For more detail, the Shader Graph glossary explains the visual node editor.
Begin with separate color and opacity paths
Build color and transparency separately. Color is Tint RGB × Intensity: chosen color multiplied by brightness. Transparency is Saturate(Mask R × Opacity): the grayscale image’s red component multiplied by opacity. Saturate keeps the result between 0 and 1. Black disappears and gray becomes translucent. If a transparent PNG stores the shape in A, read A instead of R.
Unlit shows the chosen color without directional-light shading. Connect display color to Emissive Color in Unreal Engine or Base Color in the Unity URP Unlit graph. A bright material does not by itself light nearby objects. Add a Light for that; use Bloom separately for a glow around bright areas.
Choose blending as part of the asset design
Blending decides how the effect combines with its background. Start with Alpha for smoke or dark clumps, Additive for bright sparks, and Opaque for solid rocks.
| Mode | Use | Check |
|---|---|---|
| Alpha / translucent | Smoke, spray, colored transparency | Sorting and edges; low opacity does not guarantee low cost. |
| Additive | Sparks and bright light | Poor for dark smoke; may disappear against bright backgrounds. |
| Masked / alpha clipping | Sharp cutout shapes | Threshold edges and aliasing; not continuous transparency. |
Identify what is moving
- UV scrolling changes sampled coordinates, not the mesh position.
- Vertex deformation changes shape and also requires suitable subdivisions and bounds.
- Particle lifetime, velocity and color require matching renderer/shader data contracts.
- Design gameplay collision, damage and spawn control separately from visual shading.