mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-17 05:49:30 -07:00
Cleaned up config by moving its responsibilities into the passes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user