mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-31 07:04:20 +00:00 
			
		
		
		
	modify shaders
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user