The cursor channel of the rain pass is now propagated in isolation to the effect passes.

This commit is contained in:
Rezmason
2022-09-15 23:33:47 -07:00
parent 17a615eec7
commit 6969514c9b
9 changed files with 48 additions and 33 deletions

View File

@@ -65,7 +65,7 @@ const makePalette = (regl, entries) => {
export default ({ regl, config }, inputs) => {
const output = makePassFBO(regl, config.useHalfFloat);
const palette = makePalette(regl, config.paletteEntries);
const { backgroundColor, ditherMagnitude, bloomStrength } = config;
const { backgroundColor, cursorColor, ditherMagnitude, bloomStrength } = config;
const palettePassFrag = loadText("shaders/glsl/palettePass.frag.glsl");
@@ -74,6 +74,7 @@ export default ({ regl, config }, inputs) => {
uniforms: {
backgroundColor,
cursorColor,
ditherMagnitude,
bloomStrength,
tex: inputs.primary,

View File

@@ -130,7 +130,7 @@ export default ({ regl, config, lkg }) => {
"baseContrast",
"brightnessThreshold",
"brightnessOverride",
"cursorBrightness",
"isolateCursor",
"glyphEdgeCrop",
"isPolar",
]),

View File

@@ -31,7 +31,7 @@ const prideStripeColors = [
export default ({ regl, config }, inputs) => {
const output = makePassFBO(regl, config.useHalfFloat);
const { backgroundColor, ditherMagnitude, bloomStrength } = config;
const { backgroundColor, cursorColor, ditherMagnitude, bloomStrength } = config;
// Expand and convert stripe colors into 1D texture data
const stripeColors =
@@ -49,6 +49,7 @@ export default ({ regl, config }, inputs) => {
uniforms: {
backgroundColor,
cursorColor,
ditherMagnitude,
bloomStrength,
tex: inputs.primary,