aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-15 02:13:39 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-15 02:13:39 +0200
commit69c57e7253286e8f4f77e0ae9b512cd081c0227a (patch)
tree4d5236e6ede2b02a6b4c5daf2a6c8b5d3e4ad4ab /src
parent62652c8887b3a2c2057a7ca10d9fcbd4e91de87c (diff)
sphere360 sphere :(
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 06c01ca..a22ebe7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1744,17 +1744,6 @@ static void vertices_rotate(float *vertices, size_t num_vertices, float angle, g
//-----------------------------------------------------------------------------
void CMainApplication::AddCubeToScene( const glm::mat4 &mat, std::vector<float> &vertdata )
{
- // glm::mat4 mat( outermat.data() );
-
- glm::vec4 A = mat * glm::vec4( 0, 0, 0, 1 );
- glm::vec4 B = mat * glm::vec4( 1, 0, 0, 1 );
- glm::vec4 C = mat * glm::vec4( 1, 1, 0, 1 );
- glm::vec4 D = mat * glm::vec4( 0, 1, 0, 1 );
- glm::vec4 E = mat * glm::vec4( 0, 0, 1, 1 );
- glm::vec4 F = mat * glm::vec4( 1, 0, 1, 1 );
- glm::vec4 G = mat * glm::vec4( 1, 1, 1, 1 );
- glm::vec4 H = mat * glm::vec4( 0, 1, 1, 1 );
-
double width_ratio = (double)pixmap_texture_width / (double)pixmap_texture_height;
arrow_ratio = width_ratio;
@@ -1909,6 +1898,7 @@ void CMainApplication::AddCubeToScene( const glm::mat4 &mat, std::vector<float>
if(stretch)
arrow_ratio = width_ratio * 2.0;
} else if (projection_mode == ProjectionMode::SPHERE360) {
+ border_width_return += 2; // Meh, hac k to deal with seams a bit
double px = (double)border_width_return / (double)pixmap_texture_width;
double py = (double)border_width_return / (double)pixmap_texture_height;