50°27′0.36″ N, 30°31′24.24″ E
Dariia Zodcha

Guide to Unity VFX Shader Techniques

by Octanta Studio

Learn a reusable shader-based workflow for creating lightweight, customizable VFX in Unity – with AI as your assistant, not a replacement for your skills. You provide the vision, text descriptions or visual references; the system helps bring them to life as closely as possible to your original intent.

01Shader
MyEffect.shader
02Material
MyEffect.mat
03Prefab + Player
Glow Material
No material
Loop

Step 1/3Right-click the shader.

Already know the pipeline or have the full Procedural VFX Toolkit? Jump to Hands-On Practice ↓
Practice

What You'll Find Here

Approach

In this guide, we share our studio's approach to creating visual effects in Unity projects. It mostly comes down to Unity shaders combined with AI generation based on hand-made references.

Inside

The guide includes ready-to-use Unity VFX Shader Techniques, a prompt, and links to free & extended resources, so you can try everything yourself.

Why we share

These approaches took us 4+ years of practice to develop, and we want to share them to free up more of other indie developers' time for creative work instead of routine.

Practice

Learn the shader and the material, learn the sample prefabs, learn how to spawn them. Practice on the free asset.

Full version

Buy the full Procedural VFX Toolkit when you want 50+ ready-made effects as examples, trails & touch effects, the wizard, the AI-agent skills and much more.

Contents
  1. Studio Values
  2. Who This Guide Is For
  3. What We Mean by VFX and Why It Matters
  4. Our Approach and How We Got There
  5. Advantages of the Shader Approach
  6. Hands-On Practice
  7. What You Gain
  8. Extended Guide
  9. Free vs Full Version
  10. Useful Resources

Studio Values

We're indie developers ourselves, and choose to strengthen the creative community, not by competing with AI, but by using it to amplify personal expertise. We value handmade work (most of our games' art is hand-drawn).

Who This Guide Is For

This VFX creation guide is intended for experienced Unity developers who already have their own Unity projects. It's a good fit for you as:

  • a Unity developer who needs effects but doesn't want to assemble them from dozens of third-party assets;
  • an indie developer who can't afford a dedicated VFX artist;
  • a mobile game developer who needs lightweight effects without a heavy particle system;
  • a programmer who knows Unity but can't draw or animate custom effects;
  • a small studio that needs a repeatable technique, not yet another set of pretty ready-made visuals.

Not required: drawing or programming skills, apart from some prototyping.

What We Mean by VFX and Why It Matters

Combat hit with VFX
Combat hit without VFX

By VFX, we mean visual effects that respond to the player's actions, as well as temporary effects that guide the player by highlighting areas, characters, and so on (not baked backgrounds or interfaces). Technically, we mean instantiated effect objects placed in 2D/3D space and on the UI Canvas (not things like screen dimming or camera zooms). As developers, we see a game's VFX not as beauty for beauty's sake, but as a functional part of the game, just as important as gameplay, narrative, SFX, and the rest. The goals of quality VFX are to:

  • Improve readability (for example, outline a skill's area of effect or show the impact of damage).
  • Add juice, with effects that blend harmoniously into the rest of the gameplay and respond to the player's actions (for example, a distinctive visual touch response at the moment of a level-up or a purchase).

Quality visuals make your project stand out and easy to understand.

Our Approach and How We Got There

In our own practice as indie devs, we looked for ways to cut costs, automate processes, and make visual development easier, along with tricks and creative solutions. We used to build VFX the standard way: particle systems and script-animated particles. That meant processing a large pool of objects in the scene at once, plus project memory taken up by the particles' sprites. Later, we switched to Unity shaders for these tasks.

Touch Effect System

It all started when we, as Unity asset developers, came across a community member asking how to make a heat trail effect from finger input on a phone. We took on the challenge and spent a long time searching for an approach that was visually harmonious, optimized for mobile, and scalable. That's how our Touch Effect System was born. A shader effect with a spawn-and-fade cycle plays on a transparent UI particle, and a whole sequence of these particles on the Canvas forms the trail: the newest particles light up brightly, while the ones left behind in the chain gradually fade out and get reused. This approach had no noticeable impact on FPS, so we kept going. Once we saw that an effect could be animated inside a single particle, we tried something beyond a simple glow, such as a randomly generated fingerprint-style pattern for a single tap. That worked great on UI too, and it required neither sprites in the project nor any drawing. The shader architecture let us tune the visuals with numeric sliders.

Procedural VFX Toolkit

With that result for touch effects, we decided to make them possible to generate independently of input, and not only on UI but in world space, so they'd become full-fledged spawnable VFX. Spawning a single particle on UI was an easy task (just detach it from input and call instantiation manually), but spawning the same shader effect in the world required a new structure that accounted for the differences between render pipelines. We needed a transparent material to act as a Canvas on which the shader effect plays, and we pulled it off. The flow works like this: an effect is written in the shader → a material is created from it → the material is assigned to a player component, which animates the effect on a flat quad with a mesh renderer. Position this quad correctly relative to the player's camera, and the effect looks convincingly volumetric, using just one particle and a lightweight shader calculation. Bringing all these capabilities together, we renamed the system Procedural VFX Toolkit.

I (Dariia Zodcha) also worked as a freelance full-stack developer. Whenever VFX was needed, I was mostly expected to grab free packs and pick effects to fit the project. Our shader-based approach saves search time.

Advantages of the Shader Approach

  • Lightweight on disk. No textures needed - only a shader, a material, and a prefab per effect (a fingerprint touch shader weighs ~9.36 KB, its material ~1.35 KB; that's everything the effect needs).
  • Optimized, with no noticeable FPS impact. One effect = one particle; the shader runs on the GPU without touching Transform or Canvas components, and mobile is supported with no textures at all.
  • Easy customization. No redrawing or animation corrections. Everything is tuned with sliders, so no extra expertise is required.
  • Scalability & consistency. Reuse effects or write new ones from the same template. No hunting for packs that match the project's style - create exactly what you need.
  • Versatility. One shader works for UI or world space, in URP, HDRP, or Built-In RP.

Hands-On Practice

Practice

Manual effect creation

The main source of the visual effect is always the shader material. With a shader and its material in hand, you can create an effect for both the UI and world space by simply assigning a customized Glow Material to effect prefabs.

To create a new UI effect:

To create a new world effect, do the same:

Effect prefab with its own Glow Material

What You Gain

Takes

Mastering our Unity VFX Shader Techniques takes a few things: an understanding of how a shader and the material made from it are structured, familiarity with the sample effect prefabs for different use cases, and the ability to spawn an effect prefab in the right context.

Gain

In return, you get lightweight, optimized VFX that can be customized for your project, a system you can use as a foundation for building new effects, and coverage of different devices and render pipelines with flexible settings. This gives you:

  • Time savings. No hunting for a suitable effect, no reworking someone else's, no building a new system from scratch.
  • Independence. No reliance on a suitable asset or a specialist being available: you can create what you need yourself.
  • A portable skill. Learn the principle once and apply it across different projects, games, and situations.

This system was originally meant to ship together with a custom-effect service for other developers. In the end, we wrote this guide instead, so you can build them yourself and keep full autonomy over your project. That said, we still need to make a living - and we're open to exchange, so the full Procedural VFX Toolkit is available to buy.

A montage of effects in a single consistent style

Extended Guide

Practice

The shader's frag is where the effect is drawn. The direction of motion within the particle is what distinguishes a hit effect from an aura. Before creating a shader, decide how the internal visuals should move. Effects can also combine multiple directions rather than relying on just one.

Common directions

Radial direction Radial
From the center toward the edges of the particle, or the other way around. A simple impact seen from above or from the front: FrostCute, ComicPuff.
Vertical direction Vertical
From bottom to top, for auras like HealingPluses seen from the side: WaterSplash, GroundDebris. Top-to-bottom fits fall impacts.
Directed motion Rotating
Any other direction or rotation: a drift, a swirl, a spiral. MagicBloom, Fireflies and FloralGrowth are built on this.
No motion No movement
The effect is carried by glow, pulsing, scale, random placement, and curves. Cloud and Fingerprint work this way.

Worked Example: Lightning Strike

Quad layout for the lightning strike effect

In our studio's practice, we designed a lightning strike as a shader effect. Its strike point sits at a fixed spot at the bottom of the transparent quad and is then attached to the target in the scene. _RandomSeed drives the bolt: it stretches from a random top corner of the quad down to that strike point, so spawned strikes look organic and varied. The effect never leaves the particle bounds.

  1. If you use multimodal generative AI, feed it your layout sketch built on the same principle. The more concrete the layout in the prompt, the closer the generated effect gets to the visual you want.

Free vs Full Version

The full Procedural VFX Toolkit makes creating effects faster and more convenient with built-in Tools and a Wizard.

  • Randomized effect playback: a unique look on every cycle
  • Shader-based universal effects for UI and world space

Procedural VFX Toolkit

Everything in Free, plus
Full
  • Glitch-free rendering
  • 50+ shader variants and ready-made prefabs
  • Editor Tools, Wizard and VfxController
  • Effects that react to player input
  • Sprite-based effects (SparkleSpawner)
  • Text-based effects (TouchTextUI)
  • Technical support and custom effects

Useful Resources

  1. Unity resources on shaders
  2. ShaderLab language reference
  3. High-level shader language (HLSL) on Microsoft Learn
  4. Procedural VFX Mini page in the Unity Asset Store
  5. Procedural VFX Mini documentation
  6. Procedural VFX Toolkit thread on Unity Discussions
  7. Procedural VFX Toolkit page in the Unity Asset Store
  8. Procedural VFX Toolkit documentation
  9. Shader generation prompt: preview page on GitHub
  10. The studio's website: octantastudio.com

octantastudio@gmail.com

All content © 2022 by Octanta Studio is licensed under CC BY-NC-ND 4.0.

uk