History

Don't use textures/fancy shaders when rendering shadow map. Closes #2270.

Andrzej Kapolka committed 12 years ago

Commit 62884f11 parent cd9d19319 files · +159 −94Browse files

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

Unified · Split

interface/src/Application.cpp+2−2
@@ -2210,7 +2210,7 @@ void Application::updateShadowMap() { · 2209 unmodified lines
22102210
22112211 glTranslatef(translation.x, translation.y, translation.z);
22122212
2213− _avatarManager.renderAvatars(true);
2213+ _avatarManager.renderAvatars(Avatar::SHADOW_RENDER_MODE);
22142214 _particles.render();
22152215
22162216 glPopMatrix();
@@ -2388,7 +2388,7 @@ void Application::displaySide(Camera& whichCamera, bool selfAvatarOnly) { · 171 unmodified lines
23882388 }
23892389
23902390 bool mirrorMode = (whichCamera.getInterpolatedMode() == CAMERA_MODE_MIRROR);
2391− _avatarManager.renderAvatars(mirrorMode, selfAvatarOnly);
2391+ _avatarManager.renderAvatars(mirrorMode ? Avatar::MIRROR_RENDER_MODE : Avatar::NORMAL_RENDER_MODE, selfAvatarOnly);
23922392
23932393 if (!selfAvatarOnly) {
23942394 // Render the world box

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