Make it possible to add two copies of the sky browser, which will make it possible to display many copies in a dome environment and have an interactive copy on the master node

This commit is contained in:
Ylva Selling
2022-03-16 16:22:56 -04:00
parent 99bfd1cf57
commit 7d3a88f007
4 changed files with 169 additions and 81 deletions

View File

@@ -105,6 +105,12 @@ protected:
virtual void bindTexture() = 0;
virtual void unbindTexture();
glm::vec3 sphericalToRae(glm::vec3 spherical) const;
glm::vec3 raeToSpherical(glm::vec3 rae) const;
glm::vec3 cartesianToSpherical(const glm::vec3& cartesian) const;
glm::vec3 sphericalToCartesian(glm::vec3 spherical) const;
glm::vec3 sanitizeSphericalCoordinates(glm::vec3 spherical) const;
properties::BoolProperty _enabled;
properties::BoolProperty _usePerspectiveProjection;
properties::BoolProperty _useRadiusAzimuthElevation;