mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Include ellipsoid.hglsl as an include file for use in ellipsoidal mapping.
This commit is contained in:
@@ -135,19 +135,20 @@ namespace openspace {
|
||||
bool usingTile = true;
|
||||
tile00 = tileProvider.getTile(tileIndex);
|
||||
|
||||
if (tile00 == nullptr) {
|
||||
tile00 = _tileSet.getTile(tileIndex);
|
||||
if (tile00 != nullptr) {
|
||||
//tile00 = _tileSet.getTile(tileIndex);
|
||||
usingTile = false;
|
||||
|
||||
glm::mat3 uvTransform = glm::mat3(1);
|
||||
// Bind and use the texture
|
||||
ghoul::opengl::TextureUnit texUnit;
|
||||
texUnit.activate();
|
||||
tile00->bind();
|
||||
_programObject->setUniform("textureSampler00", texUnit);
|
||||
_programObject->setUniform("uvTransformPatchToTile00", uvTransform);
|
||||
|
||||
}
|
||||
|
||||
glm::mat3 uvTransform = usingTile ? glm::mat3(1) : _tileSet.getUvTransformationPatchToTile(newPatch, tileIndex);
|
||||
|
||||
// Bind and use the texture
|
||||
ghoul::opengl::TextureUnit texUnit;
|
||||
texUnit.activate();
|
||||
tile00->bind();
|
||||
_programObject->setUniform("textureSampler00", texUnit);
|
||||
_programObject->setUniform("uvTransformPatchToTile00", uvTransform);
|
||||
|
||||
Geodetic2 swCorner = newPatch.southWestCorner();
|
||||
_programObject->setUniform("segmentsPerPatch", _grid->xSegments());
|
||||
|
||||
Reference in New Issue
Block a user