mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 06:10:52 +02:00
Add calls to Overlays::render3DFront()
This commit is contained in:
parent
0b46e35f31
commit
8b982872c2
1 changed files with 12 additions and 0 deletions
|
@ -2839,6 +2839,11 @@ void Application::updateShadowMap() {
|
||||||
_overlays.render3D(RenderArgs::SHADOW_RENDER_MODE);
|
_overlays.render3D(RenderArgs::SHADOW_RENDER_MODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
PerformanceTimer perfTimer("3dOverlaysFront");
|
||||||
|
_overlays.render3DFront(RenderArgs::SHADOW_RENDER_MODE);
|
||||||
|
}
|
||||||
|
|
||||||
glDisable(GL_POLYGON_OFFSET_FILL);
|
glDisable(GL_POLYGON_OFFSET_FILL);
|
||||||
|
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
|
@ -3135,6 +3140,13 @@ void Application::displaySide(Camera& whichCamera, bool selfAvatarOnly, RenderAr
|
||||||
if (Menu::getInstance()->isOptionChecked(MenuOption::Wireframe)) {
|
if (Menu::getInstance()->isOptionChecked(MenuOption::Wireframe)) {
|
||||||
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
|
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Render 3D overlays that should be drawn in front
|
||||||
|
{
|
||||||
|
PerformanceTimer perfTimer("3dOverlaysFront");
|
||||||
|
glClear(GL_DEPTH_BUFFER_BIT);
|
||||||
|
_overlays.render3DFront();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::updateUntranslatedViewMatrix(const glm::vec3& viewMatrixTranslation) {
|
void Application::updateUntranslatedViewMatrix(const glm::vec3& viewMatrixTranslation) {
|
||||||
|
|
Loading…
Reference in a new issue