mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-19 04:30:44 +00:00
Add frame gloss setting
Lets you turn off the bright reflections.
This commit is contained in:
parent
a59ec1b47b
commit
a9e5901f10
@ -92,6 +92,7 @@ QtObject {
|
|||||||
|
|
||||||
property real chromaColor: 0.25
|
property real chromaColor: 0.25
|
||||||
property real saturationColor: 0.25
|
property real saturationColor: 0.25
|
||||||
|
property real frameGloss: 0
|
||||||
|
|
||||||
property real jitter: 0.2
|
property real jitter: 0.2
|
||||||
|
|
||||||
@ -259,6 +260,7 @@ QtObject {
|
|||||||
"staticNoise": staticNoise,
|
"staticNoise": staticNoise,
|
||||||
"chromaColor": chromaColor,
|
"chromaColor": chromaColor,
|
||||||
"saturationColor": saturationColor,
|
"saturationColor": saturationColor,
|
||||||
|
"frameGloss": frameGloss,
|
||||||
"screenCurvature": screenCurvature,
|
"screenCurvature": screenCurvature,
|
||||||
"glowingLine": glowingLine,
|
"glowingLine": glowingLine,
|
||||||
"burnIn": burnIn,
|
"burnIn": burnIn,
|
||||||
@ -357,6 +359,7 @@ QtObject {
|
|||||||
chromaColor = settings.chromaColor !== undefined ? settings.chromaColor : chromaColor
|
chromaColor = settings.chromaColor !== undefined ? settings.chromaColor : chromaColor
|
||||||
saturationColor = settings.saturationColor
|
saturationColor = settings.saturationColor
|
||||||
!== undefined ? settings.saturationColor : saturationColor
|
!== undefined ? settings.saturationColor : saturationColor
|
||||||
|
frameGloss = settings.frameGloss !== undefined ? settings.frameGloss : frameGloss
|
||||||
screenCurvature = settings.screenCurvature
|
screenCurvature = settings.screenCurvature
|
||||||
!== undefined ? settings.screenCurvature : screenCurvature
|
!== undefined ? settings.screenCurvature : screenCurvature
|
||||||
glowingLine = settings.glowingLine !== undefined ? settings.glowingLine : glowingLine
|
glowingLine = settings.glowingLine !== undefined ? settings.glowingLine : glowingLine
|
||||||
|
@ -149,6 +149,11 @@ ColumnLayout {
|
|||||||
value: appSettings.saturationColor
|
value: appSettings.saturationColor
|
||||||
enabled: appSettings.chromaColor !== 0
|
enabled: appSettings.chromaColor !== 0
|
||||||
}
|
}
|
||||||
|
CheckableSlider {
|
||||||
|
name: qsTr("Frame Gloss")
|
||||||
|
onNewValue: appSettings.frameGloss = newValue
|
||||||
|
value: appSettings.frameGloss
|
||||||
|
}
|
||||||
}
|
}
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
@ -37,6 +37,8 @@ Item {
|
|||||||
|
|
||||||
property real ambientLight: appSettings.ambientLight * 0.2
|
property real ambientLight: appSettings.ambientLight * 0.2
|
||||||
|
|
||||||
|
property real frameGloss: appSettings.frameGloss
|
||||||
|
|
||||||
property size virtualResolution
|
property size virtualResolution
|
||||||
property size screenResolution
|
property size screenResolution
|
||||||
|
|
||||||
@ -59,6 +61,7 @@ Item {
|
|||||||
property real screenCurvature: parent.screenCurvature
|
property real screenCurvature: parent.screenCurvature
|
||||||
property real chromaColor: parent.chromaColor
|
property real chromaColor: parent.chromaColor
|
||||||
property real ambientLight: parent.ambientLight
|
property real ambientLight: parent.ambientLight
|
||||||
|
property real frameGloss: parent.frameGloss
|
||||||
|
|
||||||
property real flickering: appSettings.flickering
|
property real flickering: appSettings.flickering
|
||||||
property real horizontalSync: appSettings.horizontalSync
|
property real horizontalSync: appSettings.horizontalSync
|
||||||
@ -172,6 +175,7 @@ Item {
|
|||||||
uniform highp vec4 fontColor;
|
uniform highp vec4 fontColor;
|
||||||
uniform highp vec4 backgroundColor;
|
uniform highp vec4 backgroundColor;
|
||||||
uniform lowp float shadowLength;
|
uniform lowp float shadowLength;
|
||||||
|
uniform lowp float frameGloss;
|
||||||
|
|
||||||
uniform highp vec2 virtualResolution;
|
uniform highp vec2 virtualResolution;
|
||||||
uniform lowp float rasterizationIntensity;\n" +
|
uniform lowp float rasterizationIntensity;\n" +
|
||||||
@ -321,7 +325,7 @@ Item {
|
|||||||
|
|
||||||
(displayTerminalFrame ?
|
(displayTerminalFrame ?
|
||||||
"vec4 frameColor = texture2D(frameSource, qt_TexCoord0);
|
"vec4 frameColor = texture2D(frameSource, qt_TexCoord0);
|
||||||
finalColor = mix(finalColor, frameColor.rgb + finalColor, frameColor.a);"
|
finalColor = mix(finalColor, frameColor.rgb + (finalColor*frameGloss), frameColor.a);"
|
||||||
: "") +
|
: "") +
|
||||||
|
|
||||||
"gl_FragColor = vec4(finalColor, qt_Opacity);" +
|
"gl_FragColor = vec4(finalColor, qt_Opacity);" +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user