mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-30 22:54:21 +00:00 
			
		
		
		
	modify shaders
This commit is contained in:
		| @@ -218,7 +218,7 @@ Item{ | |||||||
|         id: finalSource |         id: finalSource | ||||||
|         sourceItem: blurredterminal |         sourceItem: blurredterminal | ||||||
|         sourceRect: frame.sourceRect |         sourceRect: frame.sourceRect | ||||||
|         format: ShaderEffectSource.Alpha |         //format: ShaderEffectSource.Alpha | ||||||
|         hideSource: true |         hideSource: true | ||||||
|     } |     } | ||||||
|     ShaderEffect { |     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 |         onStatusChanged: if (log) console.log(log) //Print warning messages | ||||||
|   | |||||||
| @@ -183,8 +183,8 @@ ShaderEffect { | |||||||
|  |  | ||||||
|             (glowing_line_strength !== 0 ? " |             (glowing_line_strength !== 0 ? " | ||||||
|                 color += randomPass(coords) * glowing_line_strength;" : "") + |                 color += randomPass(coords) * glowing_line_strength;" : "") + | ||||||
|  |             "vec4 new_font_color = mix(texture2D(source, txt_coords), font_color, 0.2);" + | ||||||
|             "vec3 finalColor = mix(background_color, font_color, color).rgb;" + |             "vec3 finalColor = mix(background_color, new_font_color, color).rgb;" + | ||||||
|             "finalColor *= texture2D(rasterizationSource, coords).a;" + |             "finalColor *= texture2D(rasterizationSource, coords).a;" + | ||||||
|  |  | ||||||
|             (bloom !== 0 ? " |             (bloom !== 0 ? " | ||||||
| @@ -194,6 +194,7 @@ ShaderEffect { | |||||||
|                 finalColor *= brightness;" : "") + |                 finalColor *= brightness;" : "") + | ||||||
|  |  | ||||||
|             "gl_FragColor = vec4(finalColor *"+str(brightness)+", qt_Opacity); |             "gl_FragColor = vec4(finalColor *"+str(brightness)+", qt_Opacity); | ||||||
|  |              //gl_FragColor = texture2D(source, txt_coords); | ||||||
|         }" |         }" | ||||||
|  |  | ||||||
|      onStatusChanged: if (log) console.log(log) //Print warning messages |      onStatusChanged: if (log) console.log(log) //Print warning messages | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user