Pushed virtually all the shader source into shader files that load as assets.

This commit is contained in:
Rezmason
2021-10-20 03:20:46 -07:00
parent 39742d73f3
commit d8a1409907
17 changed files with 556 additions and 536 deletions

View File

@@ -75,13 +75,13 @@ document.body.onload = async () => {
) {
dimensions.width = viewportWidth;
dimensions.height = viewportHeight;
for (const pass of pipeline) {
pass.resize(viewportWidth, viewportHeight);
for (const step of pipeline) {
step.resize(viewportWidth, viewportHeight);
}
}
fullScreenQuad(() => {
for (const pass of pipeline) {
pass.render();
for (const step of pipeline) {
step.render();
}
drawToScreen();
});