mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-11-04 00:52:11 +00:00 
			
		
		
		
	Improve bloom effect. This is more pronounced in very bright areas.
This commit is contained in:
		@@ -30,7 +30,7 @@ ShaderEffect {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    property color fontColor: appSettings.fontColor
 | 
					    property color fontColor: appSettings.fontColor
 | 
				
			||||||
    property color backgroundColor: appSettings.backgroundColor
 | 
					    property color backgroundColor: appSettings.backgroundColor
 | 
				
			||||||
    property real bloom: appSettings.bloom * 2.5
 | 
					    property real bloom: appSettings.bloom * 2.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    property real burnIn: appSettings.burnIn
 | 
					    property real burnIn: appSettings.burnIn
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -320,7 +320,7 @@ ShaderEffect {
 | 
				
			|||||||
                    "bloomColor = fontColor.rgb * mix(vec3(rgb2grey(bloomColor)), bloomColor, chromaColor);"
 | 
					                    "bloomColor = fontColor.rgb * mix(vec3(rgb2grey(bloomColor)), bloomColor, chromaColor);"
 | 
				
			||||||
                :
 | 
					                :
 | 
				
			||||||
                    "bloomColor = fontColor.rgb * rgb2grey(bloomColor);") +
 | 
					                    "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);
 | 
					            "finalColor *= smoothstep(-dispX, 0.0, staticCoords.x) - smoothstep(1.0, 1.0 + dispX, staticCoords.x);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -49,7 +49,7 @@ ShaderTerminal{
 | 
				
			|||||||
        height: parent.height * appSettings.bloomQuality
 | 
					        height: parent.height * appSettings.bloomQuality
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        sourceComponent: FastBlur{
 | 
					        sourceComponent: FastBlur{
 | 
				
			||||||
            radius: Utils.lint(16, 48, appSettings.bloomQuality * appSettings.windowScaling);
 | 
					            radius: Utils.lint(16, 64, appSettings.bloomQuality * appSettings.windowScaling);
 | 
				
			||||||
            source: terminal.mainSource
 | 
					            source: terminal.mainSource
 | 
				
			||||||
            transparentBorder: true
 | 
					            transparentBorder: true
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user