Fix Android crash in Cartoon and Natural Shader