The color_ramp of a ParticleProcessMaterial sets each particle's vertex color. A StandardMaterial3D ignores vertex color unless vertex_color_use_as_albedo is on (Vertex Color, Use as Albedo in the Inspector), so the particles stay white. If the ramp also fades out, set transparency to Alpha too, or the fade is ignored. The same checkbox makes color and Hue Variation in the process material work.

The code
Attach this to a GPUParticles3D for embers that go from yellow to red and fade out. The two commented lines in the material are the fix.
extends GPUParticles3D
## Embers that go from yellow to red and fade out over their life.
## The color comes from color_ramp in the process material. Two material settings
## below decide whether you see it at all.
func _ready() -> void:
amount = 30
lifetime = 2.0
var ramp := Gradient.new()
ramp.offsets = PackedFloat32Array([0.0, 0.5, 1.0])
ramp.colors = PackedColorArray([Color(1.0, 0.9, 0.3, 1.0), Color(1.0, 0.25, 0.05, 1.0), Color(0.3, 0.05, 0.0, 0.0)])
var rt := GradientTexture1D.new()
rt.gradient = ramp
var m := ParticleProcessMaterial.new()
m.color_ramp = rt
m.direction = Vector3.UP
m.spread = 20.0
m.initial_velocity_min = 0.8
m.initial_velocity_max = 1.2
m.gravity = Vector3.ZERO
process_material = m
var mat := StandardMaterial3D.new()
mat.shading_mode = BaseMaterial3D.SHADING_MODE_UNSHADED
mat.billboard_mode = BaseMaterial3D.BILLBOARD_PARTICLES
mat.vertex_color_use_as_albedo = true # without this, color_ramp is ignored
mat.transparency = BaseMaterial3D.TRANSPARENCY_ALPHA # without this, the alpha in the ramp is ignored
var q := QuadMesh.new()
q.size = Vector2(0.15, 0.15)
q.material = mat
draw_pass_1 = q
What we measured
We let out one particle that does not move, in the middle of the screen, with a lifetime of 2 seconds, and read the pixel color (red/green/blue from 0 to 1) at three points of its life. Two runs gave the same picture.
- The script: 1.00/0.82/0.27 (yellow) at 0.15 seconds, 1.00/0.31 to 0.34/0.06 to 0.07 (red) at 0.9, and 0.17 to 0.20/0.05/0.03 to 0.04 at 1.7, nearly the dark background.
- Use as Albedo off: 1.00/1.00/1.00 at all three points. White the whole time.
- Transparency off: the same yellow and red, but 0.51/0.10/0.00 at 1.7 seconds. The color still changed, the fade to clear did not happen.
Color and Hue Variation need it too
color, hue_variation_min and hue_variation_max in the ParticleProcessMaterial also reach the particle as vertex color. We took the script above, removed the ramp and tried each setting in two runs.
- Color set to 0.20/0.60/1.00: exactly that with Use as Albedo on, 1.00/1.00/1.00 with it off.
- 40 red particles with Hue Variation from -0.5 to 0.5: with Use as Albedo on, the lit points were a mix of red, green and blue in every run, and none were white. With it off, every lit point was white (1,676 and 1,757 points in the two runs).
What to change
- The colors and
offsetsof the gradient: where in the life each color is reached. - The last color's alpha: 0 for a fade out, 1 to keep the particle solid to the end.
A flame that turns into smoke with two emitters: fire and smoke. Particles that do not show at all: GPUParticles3D not showing. Your own ShaderMaterial instead: custom particle shader ignores the color ramp. Recoloring one copy of an effect recolors them all: change the color of one particle effect.
Tested in Godot 4.7 with the Compatibility renderer.
More how-tos: When particles do not show up
- GPUParticles3D not showing in Godot 4
- GPUParticles2D not showing in Godot 4
- GPUParticles2D collision: fall through or vanish
- Particles look black or dark
- Particles only fall down or fly sideways
- Particles not working in a web export
- Particles fall through the floor
- Particles on terrain and uneven ground
- Flipbook animation on GPUParticles3D
- GPUParticles2D sprite sheet not animating
- Pixel art particles look blurry
- Particle trails in the Compatibility renderer
- GPUParticles2D trails not working
- Particle texture shows a square box
- Custom particle shader ignores the color ramp
- Particle scale curve not working
- Additive particles invisible on a white background
- Scale a 3D particle effect evenly
- Particles the same size on screen at any distance