وَنُدِبَ صَلَاةُ الْعَارِي جَالِسًا بِالْإِيمَاءِ مَادًّا رِجْلَيْهِ نَحْوَ الْقِبْلَةِ، فَإِنْ صَلَّى قَائِمًا بِالْإِيمَاءِ أَوْ بِالرُّكُوعِ وَالسُّجُودِ صَحَّ
If no covering is available, the preferred method is to pray sitting, with the legs extended toward the Qiblah, using gestures for Ruku and Sujud because this offers greater concealment. Standing with gestures or with normal Ruku/Sujud is also valid.