A little reorganization of methods in the passes.

This commit is contained in:
Rezmason
2021-11-10 18:10:26 -08:00
parent f4130013f4
commit dc4032e42a
4 changed files with 21 additions and 18 deletions

View File

@@ -92,6 +92,11 @@ export default (context, getInputs) => {
let output;
let highPassOutput;
const getOutputs = () => ({
primary: output,
highPass: highPassOutput,
});
const ready = (async () => {
const [msdfTexture, rainShader] = await Promise.all(assets);
@@ -168,11 +173,6 @@ export default (context, getInputs) => {
highPassOutput = makePassFBO(device, width, height, canvasFormat);
};
const getOutputs = () => ({
primary: output,
highPass: highPassOutput,
});
const execute = (encoder) => {
// We render the code into an FBO using MSDFs: https://github.com/Chlumsky/msdfgen