You can now loop the effect. It's not super great, but it ought to make it easier to create repeating backgrounds or something.

This commit is contained in:
Rezmason
2021-12-21 02:22:20 -08:00
parent 62e9bfea82
commit 38f29ad21b
5 changed files with 44 additions and 14 deletions

View File

@@ -77,6 +77,7 @@ const defaults = {
useHalfFloat: false,
renderer: "webgpu", // The preferred web graphics API
useHoloplay: false,
loops: false,
};
const versions = {
@@ -274,6 +275,7 @@ const paramMapping = {
stripeColors: { key: "stripeColors", parser: (s) => s },
backgroundColor: { key: "backgroundColor", parser: (s) => s.split(",").map(parseFloat) },
volumetric: { key: "volumetric", parser: (s) => s.toLowerCase().includes("true") },
loops: { key: "loops", parser: (s) => s.toLowerCase().includes("true") },
renderer: { key: "renderer", parser: (s) => s },
};
paramMapping.dropLength = paramMapping.raindropLength;