modify shaders

This commit is contained in:
Firemark 2014-07-31 22:21:14 +02:00
parent 39f48022ad
commit 0f3c78a8c7
2 changed files with 6 additions and 4 deletions

View File

@ -218,7 +218,7 @@ Item{
id: finalSource
sourceItem: blurredterminal
sourceRect: frame.sourceRect
format: ShaderEffectSource.Alpha
//format: ShaderEffectSource.Alpha
hideSource: true
}
ShaderEffect {
@ -261,7 +261,8 @@ Item{
: "") +
"gl_FragColor.a = floor(color) / 256.0;" +
"gl_FragColor = texture2D(source, coords);" +
"gl_FragColor.a = color / 256.0;" +
"}"
onStatusChanged: if (log) console.log(log) //Print warning messages

View File

@ -183,8 +183,8 @@ ShaderEffect {
(glowing_line_strength !== 0 ? "
color += randomPass(coords) * glowing_line_strength;" : "") +
"vec3 finalColor = mix(background_color, font_color, color).rgb;" +
"vec4 new_font_color = mix(texture2D(source, txt_coords), font_color, 0.2);" +
"vec3 finalColor = mix(background_color, new_font_color, color).rgb;" +
"finalColor *= texture2D(rasterizationSource, coords).a;" +
(bloom !== 0 ? "
@ -194,6 +194,7 @@ ShaderEffect {
finalColor *= brightness;" : "") +
"gl_FragColor = vec4(finalColor *"+str(brightness)+", qt_Opacity);
//gl_FragColor = texture2D(source, txt_coords);
}"
onStatusChanged: if (log) console.log(log) //Print warning messages