Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc17178bed | ||
|
|
f4585a8ca9 | ||
|
|
c5e6f66748 |
@@ -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()
|
||||
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user