Shockwave and Heat Distortion Effects in Unity URP
A shockwave or a heat haze bends what is behind it. The effect reads a copy of the picture the camera has already drawn and samples it again with every pixel nudged sideways, more where the ring or the haze is strongest. In URP that copy is the Opaque Texture: it is off by default, and it holds only the opaque objects, which decides what a distortion can bend.

How screen distortion works
Section titled “How screen distortion works”The distortion is drawn on a particle or a quad, usually invisible itself. For each of its pixels it takes the colour of the scene a little to one side, read from the copy of the frame, and shows that instead. The direction and the strength come from a texture:
- A normal map is the usual source. Its red and green channels say which way and how far to push. A ring normal map gives a shockwave; a scrolling cloudy one gives a heat haze.
- The particle’s own alpha fades it, so a ring that grows and fades over its lifetime bends less and less until it is gone.
The copy is made after the opaque objects and before the transparent ones. So a distortion bends opaque meshes, the ground, walls and characters, but not sprites, other particles or anything transparent: they are drawn after the copy and are not in it. Unity’s own threads report the same limit, and there is no simple setting that changes it.
Turning on the Opaque Texture
Section titled “Turning on the Opaque Texture”In URP, select the pipeline asset (Project Settings → Graphics shows which) and tick Opaque Texture. Each camera then has an Opaque Texture setting under Rendering, which follows the pipeline asset by default and can turn it off for that camera. With it off, the shader reads an empty texture and the distortion shows black or grey instead of the scene: in our test the toolkit’s particle drew a grey square, and the graph below a black one.
Under URP’s 2D Renderer there is no Opaque Texture. Sprites are transparent anyway, so they would not be in it. The 2D Renderer has its own copy instead, the Camera Sorting Layer Texture, which holds everything drawn up to a sorting layer you choose; a shader of your own can read it and bend it. VFX in a 2D Unity Game goes through what that means for 2D games, tested.
A shockwave by hand
Section titled “A shockwave by hand”In Shader Graph, make an Unlit graph, set Surface Type to Transparent, and put it on a quad or a particle:
- UV minus a Vector 2 of (0.5, 0.5) gives each pixel’s direction from the centre. Its Length is the distance. Subtract a Vector 2 rather than typing 0.5 into the node: the UV node has four channels, and Z and W left over would count in the Length.
- A ring: two Smoothstep nodes around a radius of about 0.4, one rising (Edge1 0.32, Edge2 0.4) and one falling (Edge1 0.48, Edge2 0.4), multiplied. It is 1 on the ring and 0 elsewhere.
- The offset: the direction, Normalized, times the ring, times a Strength property, times the A of the Vertex Color node (through a Split).
- Screen Position plus the offset into the Scene Color node, and that into Base Color. Leave Alpha at 1: the quad shows the bent scene, so it is invisible where nothing is pushed.

Play it with a Particle System of one particle: Size over Lifetime from small to large, Color over Lifetime alpha from 1 to 0, and the material on its Renderer. Scene Color needs the Opaque Texture on, as above.

Heat haze by hand
Section titled “Heat haze by hand”The same graph, with a different offset: a scrolling noise instead of the ring.
- UV plus Time times a Speed property (a Vector 2 of 0, 0.3, so the haze rises) into a Simple Noise at Scale 12, minus 0.5: the push in X. The same coordinates plus a Vector 2 of 7.3, 3.1 into a second Simple Noise, minus 0.5: the push in Y. Both into a Vector 2.
- A soft circle: UV minus a Vector 2 of 0.5, 0.5, its Length into a Smoothstep from 0.2 to 0.5, then One Minus, so the haze fades at its edges.
- The push times a small Strength (0.02), times the circle, times the Vertex Color’s A, added to Screen Position, into Scene Color and Base Color, as in the shockwave.

Put it on a quad over the fire, or on a few slow particles above it.
With All In 1 VFX Toolkit
Section titled “With All In 1 VFX Toolkit”Don’t own it yet? → Get it on the Unity Asset Store
The toolkit’s Screen Distortion effect does the work of both graphs above, on any of its materials. Follow the URP steps on Setup and Render Pipelines, which include ticking Opaque Texture. In the material, tick Screen Distortion and use the Transparent preset, as the inspector reminds you.

- Normal Map (
_DistNormalMap) is the distortion’s shape. The demo’s ring isDistortionRing6, and its hazeDistortionSmoke3, both inDemo & Assets/Textures/Distortion Normal Maps. The asset window’s Normal/Distortion Map Creator makes a new one from any image (Creating the Distortion Map). - Distortion Power (
_DistortionPower) is how far it pushes, 10 by default; the demo’s shockwave and haze use 3. The right value depends on the effect’s size on screen: for the clip at the top of this page, the haze looked best at 0.8, and a shockwave ring grown to a few metres across needed about 10 to be seen. - Distortion Blend (
_DistortionBlend) mixes the bent scene with the material’s own colour, from 0 to 1. - Scroll speed X Axis and Y Axis scroll the normal map, which is what makes a haze shimmer.
- Distort only objects behind? is meant to stop objects in front of the effect from smearing into it, at some extra cost. It reads the scene’s depth, so it needs the Depth Texture on, like Soft Particles. In our URP test, with the Depth Texture on, a character standing close in front of the ring and Distortion Power up to 30, it changed a few pixels of the bent background next to the character, but neither version showed a visible smear, so leave it off unless you see one.
- Use Global Color as distortion mask? takes the shape from the material’s own colour instead of a normal map.
The strength also follows the particle’s alpha, so a Color over Lifetime fade fades the distortion with it.
Start from the demo. Explosion Bomb, Explosion Galaxy and Toon Explosion each carry a shockwave (the ShockwaveDistortion material), Gun Impact and Incinerate Spell a smaller one (DistortionShockwave), and Real Fire and Blue Fire a heat haze (SmokeDistortion). Copy the particle system out of the prefab and change its size and timing.
Screen Distortion is the most expensive effect in the toolkit, more so in the Built-in pipeline, where turning it on swaps the material to the AllIn1VfxGrabPass shader (Screen Distortion). Keep the distorting particles few and short lived.
One distortion across the whole screen
Section titled “One distortion across the whole screen”When the whole screen should ripple, say every background in a 2D game at once, a material on each object is the wrong tool. A full screen pass bends the finished frame instead, sprites included, since by then they are part of it. In URP that is the Full Screen Pass Renderer Feature with a Fullscreen Shader Graph: read the frame with the URP Sample Buffer node set to Blit Source, offset its UV with the ring from the graph above, centred on a point you set from a script. The 3D outlines guide builds a Full Screen Pass step by step.

We checked it on both URP renderers: a Full Screen Pass built this way bends the whole frame, sprites included, on the Universal Renderer and on the 2D Renderer. Measured in screen UV, as above, the ring comes out as an oval on a screen that is wider than it is tall.
For a camera-wide bend with no ring, URP’s own Lens Distortion post processing override bends the whole image from the centre.
What it does not do
Section titled “What it does not do”- Bend sprites, particles or other transparent objects. They are not in the Opaque Texture, on either URP renderer.
- Work under URP’s 2D Renderer, which makes no Opaque Texture. The 2D Renderer import turns Screen Distortion off on the demo’s distortion materials and sets their Alpha to 0, so they disappear.
- Run in VFX Graph. VFX Graph takes Shader Graph shaders only.
