mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-22 23:59:31 -07:00
A couple changes on the REGL side that missed the boat
This commit is contained in:
@@ -16,7 +16,7 @@ struct Config {
|
||||
brightnessDecay : f32,
|
||||
baseBrightness : f32,
|
||||
baseContrast : f32,
|
||||
cursorEffectThreshold : f32,
|
||||
cursorBrightness : f32,
|
||||
cycleSpeed : f32,
|
||||
cycleFrameSkip : i32,
|
||||
fallSpeed : f32,
|
||||
@@ -209,7 +209,7 @@ fn applyRippleEffect(effect : f32, simTime : f32, screenPos : vec2<f32>) -> f32
|
||||
}
|
||||
|
||||
fn applyCursorEffect(effect : f32, brightness : f32) -> f32 {
|
||||
if (brightness >= config.cursorEffectThreshold) {
|
||||
if (brightness >= config.cursorBrightness) {
|
||||
return 1.0;
|
||||
}
|
||||
return effect;
|
||||
|
||||
Reference in New Issue
Block a user