1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-09-28 08:02:40 +01:00

Finally introducing texture scaling.

This commit is contained in:
Filippo Scognamiglio
2014-04-20 22:59:46 +02:00
parent 01b5dd9651
commit 1ef94e083c
8 changed files with 54 additions and 49 deletions

View File

@@ -13,10 +13,9 @@ TerminalFrame{
borderBottom: 232
imageSource: "../images/black-frame.png"
normalsSource: "../images/black-frame-normals.png"
sourceRect: Qt.rect(-20 * shadersettings.total_scaling,
-20 * shadersettings.total_scaling,
terminal.width + 40 * shadersettings.total_scaling,
terminal.height + 40 * shadersettings.total_scaling)
rectX: 20
rectY: 20
distortionCoefficient: 1.9

View File

@@ -13,10 +13,9 @@ TerminalFrame{
borderBottom: 116
imageSource: "../images/screen-frame.png"
normalsSource: "../images/screen-frame-normals.png"
sourceRect: Qt.rect(-15 * shadersettings.total_scaling,
-15 * shadersettings.total_scaling,
terminal.width + 30 * shadersettings.total_scaling,
terminal.height+ 30 * shadersettings.total_scaling)
rectX: 15
rectY: 15
distortionCoefficient: 1.5

View File

@@ -13,6 +13,10 @@ Item{
property rect sourceRect
property string shaderString
//Value used to create the rect used to add the border to the texture
property real rectX
property real rectY
//Values used to displace the texture in the screen. Used to make reflections correct.
property real displacementLeft
property real displacementTop