private static final boolean DEBUG = true;
public static void ParseNoiseFSHAndLoadInNewDaemonThread(Thread Thred) throws IOException {
StringBuilder asphalt = new StringBuilder();
List strings = (List) Files.readAllLines(Paths.get("noise.fsh"));
// утромбовываем эту хуйню в асфальт
strings.forEach(asphalt::append);
if (DEBUG) {
// откладка
strings.forEach(System.out::println);
}
// инициализируем
Thread thread = new Thread(() -> {
// run
// загружаешь тут свой шейдер ебаный
});
thread.setDaemon(true);
thread.start();
}