Compare commits

...
Author SHA1 Message Date
Qingnan Zhou dc17178bed Minor UI tweak. 2021-01-22 10:48:29 -05:00
Qingnan Zhou f4585a8ca9 Update cgal. 2021-01-19 14:16:51 -05:00
Qingnan Zhou c5e6f66748 Add border to point. 2021-01-06 13:41:32 -05:00
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ endfunction()
function(igl_download_cgal)
igl_download_project(cgal
GIT_REPOSITORY https://github.com/CGAL/cgal.git
GIT_TAG f7c3c8212b56c0d6dae63787efc99093f4383415
GIT_TAG v5.2
)
endfunction()
+6 -2
View File
@@ -360,9 +360,13 @@ R"(#version 150
out vec4 outColor;
void main()
{
if (length(gl_PointCoord - vec2(0.5)) > 0.5)
float d = length(gl_PointCoord - vec2(0.5));
if (d > 0.5)
discard;
outColor = vec4(color_frag, 1.0);
if (d > 0.4)
outColor = vec4(0.0, 0.0, 0.0, 1.0);
else
outColor = vec4(color_frag, 1.0);
}
)";
@@ -172,6 +172,7 @@ IGL_INLINE void ImGuiMenu::draw_viewer_window()
"Viewer", &_viewer_menu_visible,
ImGuiWindowFlags_NoSavedSettings
| ImGuiWindowFlags_AlwaysAutoResize
| ImGuiWindowFlags_NoTitleBar
);
ImGui::PushItemWidth(ImGui::GetWindowWidth() * 0.4f);
if (callback_draw_viewer_menu) { callback_draw_viewer_menu(); }