Skip to content

Commit

Permalink
Improve look of glow line.
Browse files Browse the repository at this point in the history
  • Loading branch information
Swordfish90 committed Jan 22, 2015
1 parent 546c4f3 commit 40eb51e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/qml/ShaderTerminal.qml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ShaderEffect {
(height) / (noiseTexture.height * appSettings.windowScaling * appSettings.fontScaling))

property real screenCurvature: appSettings.screenCurvature
property real glowingLine: appSettings.glowingLine
property real glowingLine: appSettings.glowingLine * 0.2

property real chromaColor: appSettings.chromaColor;

Expand Down Expand Up @@ -200,7 +200,7 @@ ShaderEffect {

(glowingLine !== 0 ? "
float randomPass(vec2 coords){
return fract(smoothstep(-0.2, 0.0, coords.y - 3.0 * fract(time * 0.0001))) * glowingLine;
return fract(smoothstep(-120.0, 0.0, coords.y - (virtual_resolution.y + 120.0) * fract(time * 0.00015)));
}" : "") +

"highp float getScanlineIntensity(vec2 coords) {
Expand Down Expand Up @@ -272,7 +272,7 @@ ShaderEffect {
color += noiseVal * noise * (1.0 - distance * 1.3);" : "") +

(glowingLine !== 0 ? "
color += randomPass(coords) * glowingLine;" : "") +
color += randomPass(coords * virtual_resolution) * glowingLine;" : "") +

"vec3 txt_color = texture2D(source, txt_coords).rgb;" +

Expand Down

0 comments on commit 40eb51e

Please sign in to comment.