diff --git a/app/qml/ShaderTerminal.qml b/app/qml/ShaderTerminal.qml index 970a428..938e165 100644 --- a/app/qml/ShaderTerminal.qml +++ b/app/qml/ShaderTerminal.qml @@ -220,6 +220,10 @@ ShaderEffect { return result; } + float min2(vec2 v) { + return min(v.x, v.y); + } + float rgb2grey(vec3 v){ return dot(v, vec3(0.21, 0.72, 0.04)); }" + @@ -279,6 +283,7 @@ ShaderEffect { color += randomPass(coords * virtual_resolution) * glowingLine;" : "") + "vec3 txt_color = texture2D(source, txt_coords).rgb;" + + "txt_color *= min2(step(vec2(0.0), staticCoords) - step(vec2(1.0), staticCoords));" + (rbgShift !== 0 ? " float rgb_noise = abs(texture2D(noiseSource, vec2(fract(time/(1024.0 * 128.0)), fract(time/(1024.0*512.0)))).a - 0.5); diff --git a/qmltermwidget b/qmltermwidget index 03fc663..ddd71ac 160000 --- a/qmltermwidget +++ b/qmltermwidget @@ -1 +1 @@ -Subproject commit 03fc663f7da22ff0f134a8dbf51588c56a1bbfb3 +Subproject commit ddd71acdd4d5f6a8f764daec679eadcc100e4d9a