Complex sentence: The eye can be directly affected in the form of episcleritis or scleritis, which when severe can very rarely progress to perforating scleromalacia.
Split into simpler sentences: The eye can be directly affected in the form of episcleritis or scleritis. Scleritis when severe can very rarely progress to perforating scleromalacia.