A flat quad that goes into the floor is cut off in a straight line, and a soft smoke puff shows that line clearly. Turn on proximity_fade_enabled in the particles' StandardMaterial3D (Proximity Fade in the Inspector, off by default). The puff then fades where it comes close to what is behind it, such as the floor or a wall. proximity_fade_distance sets how wide that fade is, 1 meter by default. It works in the Compatibility renderer too.

The code
Attach this to a GPUParticles3D on the ground for slow smoke puffs. The puff is a GradientTexture2D, so there is no image file to import. The two proximity fade lines are the fix.
extends GPUParticles3D
## Smoke puffs that sit on the ground without a hard line where they cut into it.
## Proximity Fade makes each puff clear where it comes close to the floor or a wall.
func _ready() -> void:
amount = 10
lifetime = 4.0
var m := ParticleProcessMaterial.new()
m.emission_shape = ParticleProcessMaterial.EMISSION_SHAPE_BOX
m.emission_box_extents = Vector3(1.2, 0.0, 0.4)
m.direction = Vector3.UP
m.spread = 10.0
m.initial_velocity_min = 0.05
m.initial_velocity_max = 0.15
m.gravity = Vector3.ZERO
process_material = m
var dot := Gradient.new() # a soft round puff without an image file
dot.set_color(0, Color(1, 1, 1, 1))
dot.set_color(1, Color(1, 1, 1, 0))
var dt := GradientTexture2D.new()
dt.gradient = dot
dt.fill = GradientTexture2D.FILL_RADIAL
dt.fill_from = Vector2(0.5, 0.5)
dt.fill_to = Vector2(1.0, 0.5)
var mat := StandardMaterial3D.new()
mat.shading_mode = BaseMaterial3D.SHADING_MODE_UNSHADED
mat.transparency = BaseMaterial3D.TRANSPARENCY_ALPHA
mat.billboard_mode = BaseMaterial3D.BILLBOARD_PARTICLES
mat.albedo_texture = dt
mat.albedo_color = Color(0.75, 0.75, 0.8, 0.9)
mat.proximity_fade_enabled = true # the fix: fade out where the puff meets the floor
mat.proximity_fade_distance = 0.5 # in meters: how far from the floor the fade starts
var q := QuadMesh.new()
q.size = Vector2(1.4, 1.4)
q.material = mat
draw_pass_1 = q
What we measured
One puff that does not move, with its middle on the floor, so the lower half is under it. The camera was 4 meters away and 0.8 meters up. We read the color on the puff 2, 5, 10, 20 and 40 cm above the floor (red/green/blue from 0 to 1). The floor itself was 0.22/0.20/0.18. Two runs gave the same numbers.
- Proximity Fade off: 0.68/0.68/0.72 at 2 cm, right next to the floor color. That jump is the hard line.
- The script, distance 0.5: 0.26/0.24/0.23 at 2 cm, close to the floor, then 0.49/0.48/0.49 at 5 cm. From 10 cm up it was the same as without the fade (0.63/0.62/0.65).
- Distance 2.0: the floor color at 2 cm, 0.30/0.28/0.27 at 10 cm and 0.48/0.47/0.48 at 20 cm, where the puff without the fade was 0.56/0.55/0.57. A wider fade that took some of the puff with it. At 40 cm all three were the same.
- A new StandardMaterial3D had Proximity Fade off and a distance of 1.0.
What to change
proximity_fade_distance: wider for bigger puffs. Too wide and the lower part of every puff turns see-through.- The alpha of
albedo_color: how thick the smoke is. q.sizeandemission_box_extents: the size of a puff and the area the puffs come from.
Smoke on top of a fire: fire and smoke with two emitters. Puffs that overlap in the wrong order: particles drawing in the wrong order. Particles that vanish behind water or glass: particles behind transparent water or glass.
Tested in Godot 4.7 with the Compatibility renderer.
More how-tos: Fire, smoke and explosions
- Fire that turns to smoke in a cone
- Bright fire with dark smoke
- Particles drawing in the wrong order
- Explosion effect in one burst
- 3D debris particles not rotating
- Particles all disappear at once
- Muzzle flash with a real light
- Glowing particles in Godot 4
- Glowing particles cast dark shadows
- Particles from the surface of a mesh, at runtime
- Fireworks without sub-emitters
- Fire or dust over a whole building