projects
/
laserbrain_demo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5114db
)
made the exhibit ui slightly more visible
author
John Tsiombikas
<nuclear@member.fsf.org>
Thu, 13 Sep 2018 03:42:38 +0000
(06:42 +0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Thu, 13 Sep 2018 03:42:38 +0000
(06:42 +0300)
src/ui_exhibit.cc
patch
|
blob
|
history
diff --git
a/src/ui_exhibit.cc
b/src/ui_exhibit.cc
index
438a52e
..
02ce049
100644
(file)
--- a/
src/ui_exhibit.cc
+++ b/
src/ui_exhibit.cc
@@
-213,7
+213,6
@@
void exui_draw()
// render the 2D UI in a texture
push_render_target(rtarg);
- glClearColor(0, 1, 0, 0);
glClear(GL_COLOR_BUFFER_BIT);
draw_2d_ui();
pop_render_target();
@@
-244,7
+243,8
@@
void exui_draw()
glPushAttrib(GL_ENABLE_BIT);
glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE);
+ glBlendColor(0, 0, 0, 0.35);
+ glBlendFunc(GL_SRC_ALPHA, GL_CONSTANT_ALPHA);
glEnable(GL_TEXTURE_2D);
glDisable(GL_CULL_FACE);
glDepthMask(0);