mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-19 04:30:44 +00:00
Fix: tweak blur values.
This commit is contained in:
parent
26d5c56cd0
commit
ce5658a205
@ -43,8 +43,8 @@ Item{
|
|||||||
//The blur effect has to take into account the framerate
|
//The blur effect has to take into account the framerate
|
||||||
property real mBlur: appSettings.motion_blur
|
property real mBlur: appSettings.motion_blur
|
||||||
property real motionBlurCoefficient: (_maxBlurCoefficient * Math.sqrt(mBlur) + _minBlurCoefficient * (1 - Math.sqrt(mBlur)))
|
property real motionBlurCoefficient: (_maxBlurCoefficient * Math.sqrt(mBlur) + _minBlurCoefficient * (1 - Math.sqrt(mBlur)))
|
||||||
property real _minBlurCoefficient: 0.70
|
property real _minBlurCoefficient: 0.50
|
||||||
property real _maxBlurCoefficient: 0.95
|
property real _maxBlurCoefficient: 0.90
|
||||||
|
|
||||||
property size terminalSize: kterminal.terminalSize
|
property size terminalSize: kterminal.terminalSize
|
||||||
property size fontMetrics: kterminal.fontMetrics
|
property size fontMetrics: kterminal.fontMetrics
|
||||||
@ -273,7 +273,7 @@ Item{
|
|||||||
"vec3 blur_color = texture2D(blurredSource, coords).rgb * (1.0 - blurCoefficient);" +
|
"vec3 blur_color = texture2D(blurredSource, coords).rgb * (1.0 - blurCoefficient);" +
|
||||||
"vec3 color = min(origColor + blur_color, max(origColor, blur_color));" +
|
"vec3 color = min(origColor + blur_color, max(origColor, blur_color));" +
|
||||||
|
|
||||||
"gl_FragColor = vec4(color, step(0.004, rgb2grey(color - origColor)));" +
|
"gl_FragColor = vec4(color, step(0.02, rgb2grey(color - origColor)));" +
|
||||||
"}"
|
"}"
|
||||||
|
|
||||||
onStatusChanged: if (log) console.log(log) //Print warning messages
|
onStatusChanged: if (log) console.log(log) //Print warning messages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user