Fixed wrong perpendicular ray calculation causing weird rendering