Currently, I am working on a solar system project in three.js and have been wondering if there is a simple way to ensure that the labels for the planets are displayed at the same size regardless of their distance from the camera. Unfortunately, I haven't been able to find a solution for this yet. One possible approach could be calculating the distance from each label to the camera and then establishing a scaling factor based on this information. However, it seems like there should be a more straightforward method to achieve this. Any suggestions would be greatly appreciated!
Thank you!
https://i.sstatic.net/3lEvn.jpg
Recently updated with an answer provided by prisoner849, which has proven to work excellently!