From 69c57e7253286e8f4f77e0ae9b512cd081c0227a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 15 Oct 2021 02:13:39 +0200 Subject: sphere360 sphere :( --- src/main.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src') 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 &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 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; -- cgit v1.2.3