History

Cube texture are working with the GL backend, useing it in SKybox successfullly

Sam Gateau committed 11 years ago

Commit dc81a3e1 parent b1fb05e21 files · +363 −41Browse files

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

Unified · Split

interface/src/Application.cpp+8−0
@@ -3116,6 +3116,14 @@ void Application::displaySide(Camera& theCamera, bool selfAvatarOnly, RenderArgs · 3115 unmodified lines
31163116 }
31173117 }
31183118 } else if (skyStage->getBackgroundMode() == model::SunSkyStage::SKY_BOX) {
3119+ auto skybox = skyStage->getSkybox();
3120+ if (skybox) {
3121+ gpu::Batch batch;
3122+ model::Skybox::render(batch, _viewFrustum, *skybox);
3123+
3124+ gpu::GLBackend::renderBatch(batch);
3125+ glUseProgram(0);
3126+ }
31193127 }
31203128
31213129 if (Menu::getInstance()->isOptionChecked(MenuOption::Wireframe)) {