Vertically tapered layers for optical applications fabricated using resist reflow