Use object location X/Y, X/Z or Z/Y as your UV input. With small tweaking to scaling, it will map perfectly like a projector no matter how much you rotate it.
Use object location X/Y, X/Z or Z/Y as your UV input. With small tweaking to scaling, it will map perfectly like a projector no matter how much you rotate it.