Commit ac50fbaa948a04916475176af27a0274eb6564c9

Thomas de Grivel 2024-02-06T21:59:01

fix opacity

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/window/sdl2/gl_camera.c b/libc3/window/sdl2/gl_camera.c
index e48e197..8dc1521 100644
--- a/libc3/window/sdl2/gl_camera.c
+++ b/libc3/window/sdl2/gl_camera.c
@@ -65,7 +65,7 @@ static const char * g_gl_camera_fragment_shader_src =
   "  return 1.0 / denom;\n"
   "}\n"
   "vec4 schlickFresnel( float lDotH ) {\n"
-  "  vec4 f0 = vec4(0.04);\n"
+  "  vec4 f0 = vec4(0.04, 0.04, 0.04, 1.0);\n"
   "  if( uMaterial.Metal ) {\n"
   "    f0 = uMaterial.Color;\n"
   "  }\n"