Commit e4f88e7db7832deaac3b986e88589f85685a8549

Thomas de Grivel 2023-12-04T02:48:42

lightspeed

diff --git a/libc3/window/sdl2/demo/lightspeed.c b/libc3/window/sdl2/demo/lightspeed.c
index da13fd7..5167165 100644
--- a/libc3/window/sdl2/demo/lightspeed.c
+++ b/libc3/window/sdl2/demo/lightspeed.c
@@ -75,8 +75,11 @@ bool lightspeed_render (s_sequence *seq, s_window_sdl2 *window,
   //glTranslatef(1.0f, 1.0f, 0.0f);
   glClearColor(0, 0, 0, 1);
   glClear(GL_COLOR_BUFFER_BIT);
-  glLineWidth(0.004);
-  glColor3f(1, 1, 1);
+  glLineWidth(2);
+  glColor4f(1, 1, 1, 0.7f);
+  glEnable(GL_BLEND);
+  glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+  glEnable(GL_LINE_SMOOTH);
   glBegin(GL_LINES);
   i = 0;
   while (i < LIGHTSPEED_STARS) {
diff --git a/libc3/window/sdl2/demo/lightspeed.h b/libc3/window/sdl2/demo/lightspeed.h
index bda531a..44b297f 100644
--- a/libc3/window/sdl2/demo/lightspeed.h
+++ b/libc3/window/sdl2/demo/lightspeed.h
@@ -15,7 +15,7 @@
 
 #include "../types.h"
 
-#define LIGHTSPEED_STARS 2000
+#define LIGHTSPEED_STARS 10000
 
 bool lightspeed_load (s_sequence *seq, s_window_sdl2 *window);
 bool lightspeed_render (s_sequence *seq, s_window_sdl2 *window,