History

Deferred lighting tweaks.

Andrzej Kapolka committed 12 years ago

Commit bfaac9e1 parent 7580a1d5 files · +17 −19Browse files

Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all

Unified · Split

interface/src/Application.cpp+8−10
@@ -2895,21 +2895,12 @@ void Application::displaySide(Camera& whichCamera, bool selfAvatarOnly) { · 2894 unmodified lines
28952895 "Application::displaySide() ... AmbientOcclusion...");
28962896 _ambientOcclusionEffect.render();
28972897 }
2898−
2899− _nodeBoundsDisplay.draw();
2900−
29012898 }
29022899
29032900 bool mirrorMode = (whichCamera.getInterpolatedMode() == CAMERA_MODE_MIRROR);
29042901 {
29052902 PerformanceTimer perfTimer("avatars");
2906−
2907− _avatarManager.renderAvatars(mirrorMode ? Avatar::MIRROR_RENDER_MODE : Avatar::NORMAL_RENDER_MODE, selfAvatarOnly);
2908−
2909− //Render the sixense lasers
2910− if (Menu::getInstance()->isOptionChecked(MenuOption::SixenseLasers)) {
2911− _myAvatar->renderLaserPointers();
2912− }
2903+ _avatarManager.renderAvatars(mirrorMode ? Avatar::MIRROR_RENDER_MODE : Avatar::NORMAL_RENDER_MODE, selfAvatarOnly);
29132904 }
29142905
29152906 {
@@ -2917,7 +2908,14 @@ void Application::displaySide(Camera& whichCamera, bool selfAvatarOnly) { · 1 unmodified line
29172908 _deferredLightingEffect.render();
29182909 }
29192910
2911+ //Render the sixense lasers
2912+ if (Menu::getInstance()->isOptionChecked(MenuOption::SixenseLasers)) {
2913+ _myAvatar->renderLaserPointers();
2914+ }
2915+
29202916 if (!selfAvatarOnly) {
2917+ _nodeBoundsDisplay.draw();
2918+
29212919 // Render the world box
29222920 if (whichCamera.getMode() != CAMERA_MODE_MIRROR && Menu::getInstance()->isOptionChecked(MenuOption::Stats) &&
29232921 Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t