History

Fix for billboards.

Andrzej Kapolka committed 12 years ago

Commit aeb424c1 parent 034870e6 files · +66 −55Browse files

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

Unified · Split

interface/src/Application.cpp+4−3
@@ -2730,7 +2730,8 @@ void Application::setupWorldLight() { · 2729 unmodified lines
27302730 QImage Application::renderAvatarBillboard() {
27312731 _textureCache.getPrimaryFramebufferObject()->bind();
27322732
2733− glDisable(GL_BLEND);
2733+ // the "glow" here causes an alpha of one
2734+ Glower glower;
27342735
27352736 const int BILLBOARD_SIZE = 64;
27362737 renderRearViewMirror(QRect(0, _glWidget->getDeviceHeight() - BILLBOARD_SIZE, BILLBOARD_SIZE, BILLBOARD_SIZE), true);
@@ -2738,10 +2739,10 @@ QImage Application::renderAvatarBillboard() { · 1 unmodified line
27382739 QImage image(BILLBOARD_SIZE, BILLBOARD_SIZE, QImage::Format_ARGB32);
27392740 glReadPixels(0, 0, BILLBOARD_SIZE, BILLBOARD_SIZE, GL_BGRA, GL_UNSIGNED_BYTE, image.bits());
27402741
2741− glEnable(GL_BLEND);
2742−
27432742 _textureCache.getPrimaryFramebufferObject()->release();
27442743
2744+ image.save("billboard.png");
2745+
27452746 return image;
27462747 }
27472748

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