1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-18 20:20:45 +00:00

Improve bloom effect. This is more pronounced in very bright areas.

This commit is contained in:
Filippo Scognamiglio 2018-11-01 23:35:55 +01:00
parent a2e689a0dc
commit 37ba495354
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ ShaderEffect {
property color fontColor: appSettings.fontColor
property color backgroundColor: appSettings.backgroundColor
property real bloom: appSettings.bloom * 2.5
property real bloom: appSettings.bloom * 2.0
property real burnIn: appSettings.burnIn
@ -320,7 +320,7 @@ ShaderEffect {
"bloomColor = fontColor.rgb * mix(vec3(rgb2grey(bloomColor)), bloomColor, chromaColor);"
:
"bloomColor = fontColor.rgb * rgb2grey(bloomColor);") +
"finalColor += bloomColor * bloom * bloomAlpha;"
"finalColor += clamp(bloomColor * bloom * bloomAlpha, 0.0, 0.5);"
: "") +
"finalColor *= smoothstep(-dispX, 0.0, staticCoords.x) - smoothstep(1.0, 1.0 + dispX, staticCoords.x);

View File

@ -49,7 +49,7 @@ ShaderTerminal{
height: parent.height * appSettings.bloomQuality
sourceComponent: FastBlur{
radius: Utils.lint(16, 48, appSettings.bloomQuality * appSettings.windowScaling);
radius: Utils.lint(16, 64, appSettings.bloomQuality * appSettings.windowScaling);
source: terminal.mainSource
transparentBorder: true
}