The primary and bloom textures are now combined with a weight so that fainter bloom doesn't create a fainter overall effect.

This commit is contained in:
Rezmason
2021-12-24 21:33:39 -08:00
parent a962a6128d
commit 928067996d
20 changed files with 113 additions and 35 deletions

View File

@@ -186,7 +186,7 @@ const versions = {
bloomStrength: 0.3,
numColumns: 50,
raindropLength: 0.9,
fallSpeed: 0.15,
fallSpeed: 0.1,
cycleStyle: "cycleRandomly",
highPassThreshold: 0.0,
hasSun: true,
@@ -206,6 +206,7 @@ const versions = {
cycleStyle: "cycleRandomly",
cycleSpeed: 0.8,
glyphEdgeCrop: 0.1,
ditherMagnitude: 0,
paletteEntries: [
{ hsl: [0.39, 0.9, 0.0], at: 0.0 },
{ hsl: [0.39, 1.0, 0.6], at: 0.5 },
@@ -216,7 +217,7 @@ const versions = {
cursorEffectThreshold: 0.8,
renderer: "regl",
bloomSize: 0,
bloomStrength: 0,
volumetric: true,
forwardSpeed: 0,
density: 3,
@@ -292,10 +293,16 @@ export default (urlParams) => {
const fontName = [validParams.font, version.font, defaults.font].find((name) => name in fonts);
const font = fonts[fontName];
return {
const config = {
...defaults,
...version,
...font,
...validParams,
};
if (config.bloomSize <= 0) {
config.bloomStrength = 0;
}
return config;
};