mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-03-20 09:39:07 +00:00
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.
This commit is contained in:
parent
f157648d1e
commit
af6516789d
@ -321,7 +321,7 @@ Item {
|
|||||||
|
|
||||||
(displayTerminalFrame ?
|
(displayTerminalFrame ?
|
||||||
"vec4 frameColor = texture2D(frameSource, qt_TexCoord0);
|
"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);" +
|
"gl_FragColor = vec4(finalColor, qt_Opacity);" +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user