---
title: "Depth fade for sprite sheet smoke and dust"
description: "Depth fade hides the hard line where a flat smoke or dust quad cuts into the ground. The shader compares depths and fades the effect where they meet."
canonical: https://appliedmanifold.com/effects/sheets/depth-fade/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Effects](https://appliedmanifold.com/effects/)
3.  [Sprite sheets](https://appliedmanifold.com/effects/sheets/)
4.  Depth fade

SHEET FORMAT // DEPTH

# How depth fade stops hard edges where smoke meets the ground

Depth fade hides the hard line where a flat smoke or dust quad cuts into the ground or a wall: the shader compares the effect's depth with your scene's and fades the effect where they meet. Dust and smoke then sit softly in the scene. You get a depth channel in the sheets, and Godot 4 uses it.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [See the examples →](https://appliedmanifold.com/docs/pyrofx/examples/)

-   Godot 4 Available
-   Unity Manual setup
-   Unreal Engine Manual setup
-   Roblox Studio Manual setup
-   three.js Available

A draft compile is from $0.05, and new accounts start with $5 of usage.

**DUST\_RINGFINAL**

![First frame of the dust\_ring bake](/bakes/dust_ring/poster.webp)

Dust ring, 10.5 x 2.2 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-dust_ring)

01 // HOW IT WORKS

## Why flat effects show a hard line

A sprite sheet effect is drawn on a flat quad. Where the quad passes through the floor, the floor cuts it in a straight line. Depth fade, also called soft particles, reads the scene's depth and lowers the effect's opacity as it gets close to whatever is behind it.

02 // SPATIAL COMPILER

## The depth channel

The blue channel of `main_aux.png` holds depth, with the scale to decode it in `layout.json`. The Godot 4 shader uses it for the soft fade against scene geometry.

Depth is in the default `export.channels`. Keep it for anything that touches the ground, such as the dust ring, the impact and the fire loops.

03 // OTHER SETUPS

## Soft edges without the wired shader

In Godot 4 with your own material, turn on Proximity Fade on a StandardMaterial3D. Unity's URP particle shaders have a Soft Particles option, and Unreal Engine materials have a DepthFade node. These fade by the flat quad's depth, which works for most effects.

In three.js you write the fade into a `ShaderMaterial` that reads a depth texture of the scene.

04 // RELATED

## Related pages

-   [Soft particlesSoft particles fade a flat effect quad where it meets scene geometry by comparing depths, which hides the hard cut line.](https://appliedmanifold.com/learn/soft-particles/)
-   [Smoke that is not flat Godot 4Diagnose why smoke particles look like flat cards in Godot 4 and fix each cause with Proximity Fade, randomness and lighting.](https://appliedmanifold.com/guides/godot-smoke-not-flat/)
-   [Dust ring sprite sheetA low ring of dust thrown outward along the ground as a 2.1 second one-shot sprite sheet, precomputed from a 35 degree camera for views from above.](https://appliedmanifold.com/effects/dust-ring-sprite-sheet/)
-   [Impact sprite sheetA shell hit on dry ground as a 2 second one-shot sprite sheet, the three sources that make it, and how to vary hits across a barrage.](https://appliedmanifold.com/effects/impact-sprite-sheet/)
-   [Motion vectorsHow motion vectors blend flipbook frames without ghosting, where they sit in Spatial Compiler's sheets, and what cross-fade blending offers in other engines.](https://appliedmanifold.com/effects/sheets/motion-vectors/)
-   [OutputsWith the default export, each view writes four sheets, `<view>_pos.png`, `_neg.png`, `_colour.png` and `_aux.png`, plus `layout.json`, two still previews, the animated `preview_anim.png` and `bake_report.json`. Sheets are 8 x 8 tiles of 256 px by default.](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All pages in Sprite sheets →](https://appliedmanifold.com/effects/sheets/)

[← Motion vectors](https://appliedmanifold.com/effects/sheets/motion-vectors/)[Flame brightness →](https://appliedmanifold.com/effects/sheets/flame-brightness/)

05 // FAQ

## Depth fade questions

[All questions →](https://appliedmanifold.com/faq/)

**README.SHEETS\_DEPTH\_FADE**

### How do I make smoke flipbook particles blend correctly over the scene?

Use alpha blending with depth writes off and fade the smoke near scene geometry so the quad never shows a hard edge.

### How do I add depth fade to an Unreal flipbook material?

Multiply the opacity by a DepthFade node in your Translucent material and keep the Particle SubUV node for the frames.

### Does a Godot flipbook texture fade where it meets the floor?

With the wired scene, yes, because the shader fades the effect against scene geometry. With your own StandardMaterial3D, turn on Proximity Fade.

### How do I stop a Unity flipbook material from cutting into the ground?

Turn on Soft Particles in the URP particle material surface options and enable the Depth Texture setting on your URP asset.

### Can a three.js flipbook fade into the ground?

Yes, with a ShaderMaterial that compares each pixel depth with a scene depth texture and lowers alpha near geometry.

## Compile your first effect

You pay per compile and see the price before it runs. New accounts start with $5 of usage.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [Outputs →](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
