diff --git a/src/core/src/app.rs b/src/core/src/app.rs index 7220324c..8bc47cfd 100644 --- a/src/core/src/app.rs +++ b/src/core/src/app.rs @@ -656,7 +656,6 @@ where let surveys = &mut self.surveys; let catalogs = &self.manager; let colormaps = &self.colormaps; - let fbo_view = &self.fbo_view; // Render the scene gl.clear_color(0.0, 0.0, 0.0, 1.0); gl.clear(WebGl2RenderingContext::COLOR_BUFFER_BIT); @@ -664,7 +663,9 @@ where surveys.draw::
(camera, shaders, colormaps); // Draw the catalog - catalogs.draw::
(&gl, shaders, camera, colormaps, fbo_view)?; + //let fbo_view = &self.fbo_view; + //catalogs.draw::
(&gl, shaders, camera, colormaps, fbo_view)?; + catalogs.draw::
(&gl, shaders, camera, colormaps, None)?; grid.draw::
(camera, shaders)?; let dpi = self.camera.get_dpi(); @@ -816,9 +817,9 @@ where let h = (height as f32) * dpi; self.camera.set_screen_size::
(w, h); // resize the view fbo - self.fbo_view.resize(w as usize, h as usize); + //self.fbo_view.resize(w as usize, h as usize); // resize the ui fbo - self.fbo_ui.resize(w as usize, h as usize); + //self.fbo_ui.resize(w as usize, h as usize); // launch the new tile requests self.look_for_new_tiles(); diff --git a/src/core/src/camera/viewport.rs b/src/core/src/camera/viewport.rs index df76dc63..9da1ab97 100644 --- a/src/core/src/camera/viewport.rs +++ b/src/core/src/camera/viewport.rs @@ -184,17 +184,18 @@ impl CameraViewPort { self.moved = true; self.last_user_action = UserAction::Starting; - /*self.vertices.set_fov::
( + self.vertices.set_fov::
(
&self.ndc_to_clip,
self.clip_zoom_factor,
&self.w2m,
self.aperture,
- self.longitude_reversed,
&self.system,
+ false
);
- self.is_allsky = !P::is_included_inside_projection(
- &crate::projection::ndc_to_clip_space(&Vector2::new(-1.0, -1.0), self),
- );*/
+ self.is_allsky = !P::is_included_inside_projection(&crate::projection::ndc_to_clip_space(
+ &Vector2::new(-1.0, -1.0),
+ self,
+ ));
}
pub fn set_aperture