I'm interested in knowing how ToScreen calculates the 2d position from 3d position.
I hope someone could explain this to me as detailed as possible.
I'm pretty sure it would need your camera position , your viewangle and the 3d position.
TL;DR How can i recreate the ToScreen function with pseudocode/lua?