Tweaked debug lines (thinner, darker when occluded)

master
Martin Felis 2017-02-20 10:48:59 +01:00
parent e0e57a2b4f
commit a49290885e
2 changed files with 2 additions and 2 deletions

View File

@ -12,5 +12,5 @@ void main()
if (mod(v_path_length * 20.0, 2) < 1.0) if (mod(v_path_length * 20.0, 2) < 1.0)
discard; discard;
gl_FragColor = v_color0; gl_FragColor = v_color0 * 0.8;
} }

View File

@ -1639,7 +1639,7 @@ void Renderer::paintGL() {
line.UpdateBuffers(); line.UpdateBuffers();
} }
float thickness = 0.143f; float thickness = 0.05143f;
float miter = 0.0f; float miter = 0.0f;
float aspect = static_cast<float>(width) / height; float aspect = static_cast<float>(width) / height;