def dict_to_txt_files(file_dict, target_dir):
    """
    Converts a dictionary to a list of .txt files stored in target directory.

    :param file_dict: Dictionary with file names as keys and content as values
    :param target_dir: Directory where .txt files will be saved
    """
    # Ensure the target directory exists
    if not os.path.exists(target_dir):
        os.makedirs(target_dir)

    # Iterate over the dictionary and create files
    for file_name, content in file_dict.items():
        file_path = os.path.join(target_dir, file_name + '.glsl')
        with open(file_path, 'w') as file:
            file.write(content)

    print(f"Files saved in {target_dir}")

    Converts a dictionary to a list of .txt files stored in target directory.

    :param file_dict: Dictionary with file names as keys and content as values
    :param target_dir: Directory where .txt files will be saved
    
metadrive/third_party/simplepbr/shaders.py