kitgit

tirbofish/dropbear · commit

33ad3d6ff1e43d337f6a2b4bff7f98fab987b3d5

fix: before hdr (it compiles) fix: reverted the weird camera stuff jarvis, run github actions

Unverified

Thribhu K <4tkbytes@pm.me> · 2026-02-04 01:25

view full diff

diff --git a/crates/dropbear-engine/src/lib.rs b/crates/dropbear-engine/src/lib.rs
index 32f0558..3351b71 100644
--- a/crates/dropbear-engine/src/lib.rs
+++ b/crates/dropbear-engine/src/lib.rs
@@ -62,7 +62,7 @@ pub use gilrs;
 pub use wgpu;
 pub use winit;
 use winit::window::{WindowAttributes, WindowId};
-use crate::pipelines::hdr::HdrPipeline;
+// use crate::pipelines::hdr::HdrPipeline;
 use crate::scene::Scene;
 
 pub struct BindGroupLayouts {
@@ -95,7 +95,7 @@ pub struct State {
     pub texture_id: Arc<TextureId>,
     pub future_queue: Arc<FutureQueue>,
     pub mipmapper: Arc<MipMapper>,
-    pub hdr: Arc<HdrPipeline>,
+    // pub hdr: Arc<HdrPipeline>,
 
     physics_accumulator: Duration,
 
@@ -246,7 +246,7 @@ Hardware:
         let mut egui_renderer = Arc::new(Mutex::new(EguiRenderer::new(
             &device,
             Texture::TEXTURE_FORMAT,
-            Some(Texture::DEPTH_FORMAT),
+            None,
             1,
             &window,
         )));
@@ -335,7 +335,7 @@ Hardware:
         let device = Arc::new(device);
         let queue = Arc::new(queue);
 
-        let hdr = Arc::new(HdrPipeline::new(&device, &config));
+        // let hdr = Arc::new(HdrPipeline::new(&device, &config));
 
         // let yakui_renderer = Arc::new(Mutex::new(yakui_wgpu::YakuiWgpu::new(
         //     &device,
@@ -379,7 +379,7 @@ Hardware:
             supports_storage: supports_storage_resources,
             // yakui_renderer,
             // yakui_texture,
-            hdr,
+            // hdr,
         };
 
         Ok(result)
@@ -395,8 +395,8 @@ Hardware:
             }
             self.surface.configure(&self.device, &self.config.read());
             self.is_surface_configured = true;
-            Arc::get_mut(&mut self.hdr)
-                .resize(&self.device, width, height);
+            // Arc::get_mut(&mut self.hdr)
+            //     .resize(&self.device, width, height);
         }
 
         self.depth_texture =
@@ -473,7 +473,8 @@ Hardware:
                 let _ = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {
                     label: Some("surface clear pass"),
                     color_attachments: &[Some(wgpu::RenderPassColorAttachment {
-                        view: &self.hdr.view(),
+                        // view: &self.hdr.view(),
+                        view: &view,
                         depth_slice: None,
                         resolve_target: None,
                         ops: wgpu::Operations {
diff --git a/crates/dropbear-engine/src/pipelines/mod.rs b/crates/dropbear-engine/src/pipelines/mod.rs
index 13c0f4f..afb626a 100644
--- a/crates/dropbear-engine/src/pipelines/mod.rs
+++ b/crates/dropbear-engine/src/pipelines/mod.rs
@@ -5,7 +5,7 @@ use crate::shader::Shader;
 pub mod shader;
 pub mod light_cube;
 pub mod globals;
-pub mod hdr;
+// pub mod hdr;
 
 pub use globals::{Globals, GlobalsUniform};