diff --git a/app/ShaderManager.qml b/app/ShaderManager.qml index ac5238f..28ec48b 100644 --- a/app/ShaderManager.qml +++ b/app/ShaderManager.qml @@ -91,7 +91,7 @@ ShaderEffect { originalCoord = qt_MultiTexCoord0; qt_TexCoord0.x = -"+disp_left.toFixed(1)+"/txt_Size.x + qt_MultiTexCoord0.x / ((txt_Size.x -("+(disp_left+disp_right).toFixed(1)+")) / txt_Size.x);" + "qt_TexCoord0.y = -"+disp_top.toFixed(1)+"/txt_Size.y + qt_MultiTexCoord0.y / ((txt_Size.y -("+(disp_top+disp_bottom).toFixed(1)+")) / txt_Size.y);" + - "vec2 coords = vec2(fract(time/(1024.0*2.0)), fract(time/(1024.0*1024.0*2.0)));" + + "vec2 coords = vec2(fract(time/(1024.0*2.0)), fract(time/(1024.0*1024.0)));" + (brightness_flickering !== 0.0 ? " brightness = texture2D(randomFunctionSource, coords).g * "+brightness_flickering.toFixed(1)+";" : "") + diff --git a/app/app.qmlproject.user b/app/app.qmlproject.user index 116bec3..295a3ec 100644 --- a/app/app.qmlproject.user +++ b/app/app.qmlproject.user @@ -1,6 +1,6 @@ - + ProjectExplorer.Project.ActiveTarget diff --git a/app/main.qml b/app/main.qml index 095566f..8fd0b31 100644 --- a/app/main.qml +++ b/app/main.qml @@ -109,6 +109,9 @@ ApplicationWindow{ source: "frames/images/randfunction.png" width: 512 height: 512 + sourceSize.width: 512 + sourceSize.height: 256 + fillMode: Image.TileVertically } ShaderEffectSource{ id: randfuncsource