mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-14 12:29:30 -07:00
A little reorganization of methods in the passes.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user