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.
- 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.
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.
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.