A couple changes on the REGL side that missed the boat

This commit is contained in:
Rezmason
2022-09-07 23:00:58 -07:00
parent 2eb7b70926
commit a14b6db911
4 changed files with 3 additions and 153 deletions

View File

@@ -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;