1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-02-20 20:09:14 +00:00

Removed some unrealistic screen reflections.

This commit is contained in:
Filippo Scognamiglio 2014-04-17 21:57:15 +02:00
parent 4d9f0a0adb
commit bb320f3e40
3 changed files with 4 additions and 3 deletions

View File

@ -174,7 +174,8 @@ ShaderEffect {
vec2 coords = qt_TexCoord0;") +
(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 ? "
float h_distortion = 0.5 * sin(time*0.001 + coords.y*10.0*fract(time/10.0));

View File

@ -84,7 +84,7 @@ Item{
property var fonts_list: fontlist
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 int profiles_index: 0

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>