Workaround for materials used outside legacy renderers