From b4bece12647fc3194833a01e862295177b21fd2c Mon Sep 17 00:00:00 2001 From: Rezmason Date: Wed, 20 Oct 2021 14:00:55 -0700 Subject: [PATCH] resurrectionPass wasn't waiting for its shader to load. --- js/resurrectionPass.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/resurrectionPass.js b/js/resurrectionPass.js index 40fe10d..938c795 100644 --- a/js/resurrectionPass.js +++ b/js/resurrectionPass.js @@ -21,6 +21,8 @@ export default (regl, config, inputs) => { { primary: output, }, - () => render({ frag: resurrectionPassFrag.text() }) + () => render({ frag: resurrectionPassFrag.text() }), + null, + resurrectionPassFrag.loaded ); };