Moved looking glass context logic into an "lkgHelper" module. Fixed math issues.

This commit is contained in:
Rezmason
2021-12-19 22:02:19 -08:00
parent 87fa3462ea
commit 1a7043a986
6 changed files with 119 additions and 125 deletions

View File

@@ -3,11 +3,7 @@ import { loadImage, loadText, makePassFBO, makePass } from "./utils.js";
// Multiplies the rendered rain and bloom by a loaded in image
export default ({ regl, config, lkg }, inputs) => {
let enabled = lkg.tileX * lkg.tileY > 1;
// enabled = false;
if (!enabled) {
if (!lkg.enabled) {
return makePass({
primary: inputs.primary,
});