mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Cache uniform IDs upon recompiling of shader programs. Renaming of uniforms in shader code.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
#include <modules/globebrowsing/chunk/chunk.h>
|
||||
#include <modules/globebrowsing/chunk/chunkedlodglobe.h>
|
||||
#include <modules/globebrowsing/tile/layeredtextures.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@@ -201,7 +202,7 @@ namespace openspace {
|
||||
// In the future, this should be abstracted away and more easily queryable.
|
||||
// One must also handle how to sample pick one out of multiplte heightmaps
|
||||
auto tileProvidermanager = owner()->getTileProviderManager();
|
||||
auto heightMapProviders = tileProvidermanager->getActivatedLayerCategory("HeightMaps");
|
||||
auto heightMapProviders = tileProvidermanager->getActivatedLayerCategory(LayeredTextures::HeightMaps);
|
||||
if (heightMapProviders.size() > 0) {
|
||||
TileAndTransform tileAndTransform = heightMapProviders[0]->getHighestResolutionTile(_index);
|
||||
if (tileAndTransform.tile.status == Tile::Status::OK) {
|
||||
|
||||
Reference in New Issue
Block a user