Cleaned up config by moving its responsibilities into the passes

This commit is contained in:
Rezmason
2020-01-26 13:53:19 -08:00
parent 9a8638976d
commit a48b8dffbe
9 changed files with 249 additions and 229 deletions

View File

@@ -1,3 +1,8 @@
const extractEntries = (src, keys) =>
Object.fromEntries(
Array.from(Object.entries(src)).filter(([key]) => keys.includes(key))
);
const makePassTexture = regl =>
regl.texture({
width: 1,
@@ -167,6 +172,7 @@ const makePipeline = (steps, getInput, ...params) =>
);
export {
extractEntries,
makePassTexture,
makePassFBO,
makeDoubleBuffer,