Zpět
· 1 min čtení
3D particles
particles3d: a 3D emitter drawn as one instanced quad per particle, facing the camera or lying in the node's plane.
- Dragos Balaur
particles3d is a 3D emitter: one quad on the node, drawn once per live particle in a single call.

directionandgravityare world-space vectors, andsizeandsize_endare world units.spread_degreesreaches 180, which scatters every way.billboardturns each particle to the camera. Off, they lie in the node's own plane, turned byrotation_degreesand spun byangular_speed_degrees.texture,material,light_layers,render_layersand the overlay keys apply as on amultimesh3d.cast_shadowis off by default.- A
color_endwith a lower alpha fades the particles, because a translucent instance sends its node to the transparent pass. - Live particles are renderer state seeded from the node, and a one-shot burst says
finishedon the fixed step, as the 2D emitter does. - The 2D emitter beside it is
particles2d. Godot'sCPUParticles3DandGPUParticles3Dimport asparticles3d.
[nodes.particles3d]
rate = 120.0
speed = 3.0
spread_degrees = 20.0
size = 0.15
gravity = [0.0, -4.0, 0.0]
color_end = [1.0, 1.0, 1.0, 0.0]