From 4ef37f16257b42512ec610cc5def338707308747 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 6 Jun 2023 16:58:40 +0200 Subject: BarChart, Wayland. * Makefile: Added some Wayland stuff to cflags/libs in pkg-config * barchart: Rendering works, no interactivity * main.cpp: Reposition some components for a more compact view * manifest.scm: glfw-wayland: Added GLFW variant with Wayland * scatterplot.cpp and voronoisplat.cpp: Cleanup --- voronoisplat.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'voronoisplat.cpp') diff --git a/voronoisplat.cpp b/voronoisplat.cpp index 749ec42..e4a42cf 100644 --- a/voronoisplat.cpp +++ b/voronoisplat.cpp @@ -98,8 +98,6 @@ void main() { vec2 point = gl_PointCoord - vec2(0.5, 0.5); float d2 = dot(point, point); float radius = rad_max + rad_blur; - // float r = 2.0 * distance(gl_PointCoord, vec2(0.5, 0.5)) * radius; - // float r2 = r * r; float r2 = 4.0 * d2 * radius * radius; float dt_blur = dt + rad_blur; float dt_blur2 = dt_blur * dt_blur; @@ -110,7 +108,6 @@ void main() { fragColor = vec4(w * value, w, 0.0, 0.0); } } - // fragColor = vec4(0.0, 0.0, 0.0, 0.0); } )EOF"; @@ -448,6 +445,7 @@ void VoronoiSplat::draw() if (!m_redraw) { return; } + m_redraw = false; int originalFBO; glGetIntegerv(GL_FRAMEBUFFER_BINDING, &originalFBO); @@ -519,7 +517,6 @@ void VoronoiSplat::draw() */ glBindFramebuffer(GL_FRAMEBUFFER, originalFBO); - m_redraw = false; } // ---------------------------------------------------------------------------- -- cgit v1.2.3