added shader hot reloading, compute shader now uses some of paper technique

This commit is contained in:
2024-09-14 17:09:20 -04:00
parent 244440c38a
commit 1cecc3cdaf
8 changed files with 612 additions and 582 deletions

View File

@@ -123,5 +123,12 @@ impl Client<'_> {
})),
}));
}
if input.just_pressed(Key::KeyR) {
self.renderer.update_shader();
}
if input.just_pressed(Key::KeyT) {
self.renderer.reset_shader();
}
}
}