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:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user