mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-30 22:54:21 +00:00 
			
		
		
		
	Removed some unrealistic screen reflections.
This commit is contained in:
		| @@ -174,7 +174,8 @@ ShaderEffect { | |||||||
|             vec2 coords = qt_TexCoord0;") + |             vec2 coords = qt_TexCoord0;") + | ||||||
|  |  | ||||||
|         (frame_reflection_strength ? " |         (frame_reflection_strength ? " | ||||||
|             coords = abs(mod(floor(coords), 2.0) - fract(coords));" : "") + |             vec2 inside = step(0.0, coords) - step(1.0, coords); | ||||||
|  |             coords = abs(mod(floor(coords), 2.0) - fract(coords)) * clamp(inside.x + inside.y, 0.0, 1.0);" : "") + | ||||||
|  |  | ||||||
|         (horizontal_sincronization !== 0 ? " |         (horizontal_sincronization !== 0 ? " | ||||||
|             float h_distortion = 0.5 * sin(time*0.001 + coords.y*10.0*fract(time/10.0)); |             float h_distortion = 0.5 * sin(time*0.001 + coords.y*10.0*fract(time/10.0)); | ||||||
|   | |||||||
| @@ -84,7 +84,7 @@ Item{ | |||||||
|     property var fonts_list: fontlist |     property var fonts_list: fontlist | ||||||
|  |  | ||||||
|     property bool frame_reflections: true |     property bool frame_reflections: true | ||||||
|     property real frame_reflection_strength: ((frame_reflections && framelist.get(frames_index).reflections) ? 1.0 : 0.0) * 0.15 |     property real frame_reflection_strength: ((frame_reflections && framelist.get(frames_index).reflections) ? 1.0 : 0.0) * 0.2 | ||||||
|  |  | ||||||
|     property var profiles_list: profileslist |     property var profiles_list: profileslist | ||||||
|     property int profiles_index: 0 |     property int profiles_index: 0 | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!DOCTYPE QtCreatorProject> | <!DOCTYPE QtCreatorProject> | ||||||
| <!-- Written by QtCreator 3.0.1, 2014-04-17T14:53:07. --> | <!-- Written by QtCreator 3.0.1, 2014-04-17T21:26:12. --> | ||||||
| <qtcreator> | <qtcreator> | ||||||
|  <data> |  <data> | ||||||
|   <variable>ProjectExplorer.Project.ActiveTarget</variable> |   <variable>ProjectExplorer.Project.ActiveTarget</variable> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user