mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 22:29:28 -07:00
Pushed virtually all the shader source into shader files that load as assets.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user