From 4fdf28fb79da340aa754c30097c7caef785204c8 Mon Sep 17 00:00:00 2001 From: Frost Date: Sat, 2 Oct 2021 12:01:14 -0700 Subject: [PATCH] Add reflections to frame for better glossiness I mean, it's how it works in the real world; it's added to the frame's base color, not occluded by the frame. --- app/qml/ShaderTerminal.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/qml/ShaderTerminal.qml b/app/qml/ShaderTerminal.qml index bb46df2..7e280d8 100644 --- a/app/qml/ShaderTerminal.qml +++ b/app/qml/ShaderTerminal.qml @@ -321,7 +321,7 @@ Item { (displayTerminalFrame ? "vec4 frameColor = texture2D(frameSource, qt_TexCoord0); - finalColor = mix(finalColor, frameColor.rgb, frameColor.a);" + finalColor = mix(finalColor, frameColor.rgb + finalColor, frameColor.a);" : "") + "gl_FragColor = vec4(finalColor, qt_Opacity);" +