hello. i’ve been trying to figure this out for a while but so far i’ve come up with nothing.
i have the coordinates of a point in world space and i need to transform this point to normalized device coordinates using the active camera (lower left corner is -1, -1 and upper right is (1, 1)). how would one go about this? if it helps, the camera is assumed to have a perspective projection.
thanks in advance