diff --git a/app/qml/NewTerminalFrame.qml b/app/qml/NewTerminalFrame.qml index 537fa73..f7b1669 100644 --- a/app/qml/NewTerminalFrame.qml +++ b/app/qml/NewTerminalFrame.qml @@ -61,7 +61,7 @@ ShaderEffect { float inShadowLength = shadowLength * 0.5; float outShadow = max2(1.0 - smoothstep(vec2(-outShadowLength), vec2(0.0), coords) + smoothstep(vec2(1.0), vec2(1.0 + outShadowLength), coords)); - outShadow = clamp(0.0, 1.0, sqrt(outShadow)); + outShadow = clamp(sqrt(outShadow), 0.0, 1.0); color += frameColor.rgb * outShadow; alpha = sum2(1.0 - smoothstep(vec2(0.0), aadelta, coords) + smoothstep(vec2(1.0) - aadelta, vec2(1.0), coords)); alpha = clamp(alpha, 0.0, 1.0) * mix(1.0, 0.9, outShadow); diff --git a/app/qml/ShaderTerminal.qml b/app/qml/ShaderTerminal.qml index 57ac4e2..d480961 100644 --- a/app/qml/ShaderTerminal.qml +++ b/app/qml/ShaderTerminal.qml @@ -482,7 +482,7 @@ Item { (screenCurvature !== 0 ? " float reflectionMask = sum2(step(vec2(0.0), curvatureCoords) - step(vec2(1.0), curvatureCoords)); - reflectionMask = clamp(0.0, 1.0, reflectionMask);" + reflectionMask = clamp(reflectionMask, 0.0, 1.0);" : "float reflectionMask = 1.0;") +