Test MAS model rendering with existing functionality

This commit is contained in:
Matthias Berg
2018-04-18 11:12:42 -04:00
parent 4ddcc3bef2
commit c87d784656
13 changed files with 153 additions and 13 deletions

View File

@@ -115,13 +115,13 @@ namespace openspace {
}
void TransferFunctionHandler::setHistogramProperty(std::shared_ptr<openspace::Histogram> histogram) {
// histogram->print();
_histogramProperty.setValue(histogram->getBinaryData());
}
void TransferFunctionHandler::setTexture() {
if (_transferFunctionProperty.value().createTexture(_texture)) {
uploadTexture();
useTxtTexture = false;
}
}
@@ -156,6 +156,7 @@ namespace openspace {
void TransferFunctionHandler::setFilepath(const std::string& path) {
_filePath = path;
_transferFunction->updateTexture();
}
ghoul::opengl::Texture& TransferFunctionHandler::getTexture() {