Attempt at generalizing interface shader