How do I make closer 3D Particles appear in front of distant Particles?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By josephcantrell14

I am making my first 3D project, and I am using particles on the player’s sprite. In the editor as well as in-game using the camera, far away white particles appear as if they are in front of the player’s particles. There is no issue with a ShaderMaterial used to render the particles. This issue only occurs with a SpatialMaterial texture used to render the particles. Does anyone know of a solution?
Example of Particles error