Currently, I am in the process of constructing a network graph through the use of Three.js, which involves creating numerous nodes and connecting lines. My main objective is to ensure that the lines always appear behind the nodes, particularly because the nodes are represented as Sprites. However, I have encountered significant challenges in achieving this.
One approach I attempted was to disable renderer.sortObjects by setting it to false and then generating the lines before the nodes, but unfortunately, this strategy did not yield the desired outcome. Additionally, I experimented with employing multiple renders and incorporating the EffectComposer, yet I have not been successful in solving the issue.
I would greatly appreciate any assistance or guidance on how to resolve this matter effectively.