mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-30 22:54:21 +00:00 
			
		
		
		
	Now reflections play well with horizontal flickering.
This commit is contained in:
		| @@ -173,6 +173,9 @@ ShaderEffect { | ||||
|         :" | ||||
|             vec2 coords = qt_TexCoord0;") + | ||||
|  | ||||
|         (frame_reflection_strength ? " | ||||
|             coords = abs(mod(floor(coords), 2.0) - fract(coords));" : "") + | ||||
|  | ||||
|         (horizontal_sincronization !== 0 ? " | ||||
|             float h_distortion = 0.5 * sin(time*0.001 + coords.y*10.0*fract(time/10.0)); | ||||
|             h_distortion += 0.5 * cos(time*0.04 + 0.03 + coords.y*50.0*fract(time/10.0 + 0.4)); | ||||
| @@ -181,9 +184,6 @@ ShaderEffect { | ||||
|                 noise += horizontal_distortion * 0.5;" : "") | ||||
|         : "") + | ||||
|  | ||||
|         (frame_reflection_strength ? " | ||||
|             coords = abs(mod(floor(coords), 2.0) - fract(coords));" : "") + | ||||
|  | ||||
|         "float color = texture2D(source, coords).r;" + | ||||
|  | ||||
|         (noise_strength !== 0 ? " | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <!DOCTYPE QtCreatorProject> | ||||
| <!-- Written by QtCreator 3.0.1, 2014-04-06T16:41:45. --> | ||||
| <!-- Written by QtCreator 3.0.1, 2014-04-06T17:39:45. --> | ||||
| <qtcreator> | ||||
|  <data> | ||||
|   <variable>ProjectExplorer.Project.ActiveTarget</variable> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user