mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Add scale to topic
This commit is contained in:
@@ -74,6 +74,7 @@ public:
|
||||
bool isFacingCamera() const;
|
||||
void setEnabled(bool isEnabled);
|
||||
float depth();
|
||||
float scale() const;
|
||||
|
||||
// Screen space functionality in these coords: [-1,1][-ratio,ratio]
|
||||
glm::vec2 screenSpacePosition();
|
||||
|
||||
@@ -198,6 +198,7 @@ ghoul::Dictionary TargetBrowserPair::dataAsDictionary() const {
|
||||
res.setValue("isFacingCamera", isFacingCamera());
|
||||
res.setValue("isUsingRae", isUsingRadiusAzimuthElevation());
|
||||
res.setValue("selectedImages", selectedImages());
|
||||
res.setValue("scale", static_cast<double>(_browser->scale()));
|
||||
res.setValue("opacities", _browser->opacities());
|
||||
|
||||
std::vector<std::pair<std::string, glm::dvec3>> copies = renderCopies();
|
||||
|
||||
@@ -436,6 +436,10 @@ float ScreenSpaceRenderable::depth() {
|
||||
cartesianToSpherical(_cartesianPosition).x;
|
||||
}
|
||||
|
||||
float ScreenSpaceRenderable::scale() const {
|
||||
return _scale;
|
||||
}
|
||||
|
||||
void ScreenSpaceRenderable::createShaders() {
|
||||
ghoul::Dictionary dict = ghoul::Dictionary();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user