فهرست منبع

Obey background color's alpha value

Former-commit-id: 0b3c560fa49fe20f55a44fae621b40d2fc48d736
Alec Jacobson 7 سال پیش
والد
کامیت
5dad6625c9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      include/igl/opengl/ViewerCore.cpp

+ 1 - 1
include/igl/opengl/ViewerCore.cpp

@@ -90,7 +90,7 @@ IGL_INLINE void igl::opengl::ViewerCore::clear_framebuffers()
   glClearColor(background_color[0],
                background_color[1],
                background_color[2],
-               1.0f);
+               background_color[3]);
   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
 }