mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 22:29:28 -07:00
Move brightness from the shine compute shader to the fragment shader and clean it up
This commit is contained in:
@@ -59,7 +59,7 @@ export default ({ regl, config, lkg }) => {
|
||||
const rainPassShine = loadText("shaders/glsl/rainPass.shine.frag.glsl");
|
||||
const shineUniforms = {
|
||||
...commonUniforms,
|
||||
...extractEntries(config, ["baseBrightness", "baseContrast", "brightnessDecay", "fallSpeed", "raindropLength", "loops"]),
|
||||
...extractEntries(config, ["brightnessDecay", "fallSpeed", "raindropLength", "loops"]),
|
||||
};
|
||||
const shine = regl({
|
||||
frag: regl.prop("frag"),
|
||||
@@ -126,6 +126,8 @@ export default ({ regl, config, lkg }) => {
|
||||
"forwardSpeed",
|
||||
"glyphVerticalSpacing",
|
||||
// fragment
|
||||
"baseBrightness",
|
||||
"baseContrast",
|
||||
"brightnessThreshold",
|
||||
"brightnessOverride",
|
||||
"cursorBrightness",
|
||||
|
||||
Reference in New Issue
Block a user