projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- fixed bug in mirror matching
[laserbrain_demo]
/
src
/
app.cc
diff --git
a/src/app.cc
b/src/app.cc
index
fcf5fe0
..
21e8acc
100644
(file)
--- a/
src/app.cc
+++ b/
src/app.cc
@@
-183,6
+183,11
@@
bool app_init(int argc, char **argv)
if(!rend->init()) {
return false;
}
if(!rend->init()) {
return false;
}
+ if(opt.reflect) {
+ rend->ropt |= RENDER_MIRRORS;
+ } else {
+ rend->ropt &= ~RENDER_MIRRORS;
+ }
rend->set_scene(mscn);
glUseProgram(0);
rend->set_scene(mscn);
glUseProgram(0);
@@
-406,7
+411,7
@@
void app_display()
ImGui::GetIOPtr()->DeltaTime = dt;
ImGui::NewFrame();
ImGui::GetIOPtr()->DeltaTime = dt;
ImGui::NewFrame();
- ImGui::ShowTestWindow();
+ //ImGui::ShowTestWindow();
}
glClearColor(1, 1, 1, 1);
}
glClearColor(1, 1, 1, 1);