Finished leaf-write shader