From c78123ccd813a54d1a099c18e862aa8bc2e665a2 Mon Sep 17 00:00:00 2001 From: crumblingstatue Date: Fri, 7 Apr 2023 22:22:46 +0200 Subject: [PATCH] Properly resize lightmap along with game render texture --- src/app.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app.rs b/src/app.rs index 39f9505..24a7d01 100644 --- a/src/app.rs +++ b/src/app.rs @@ -88,6 +88,9 @@ impl App { self.rt = RenderTexture::new(width / self.scale as u32, height / self.scale as u32) .unwrap(); + self.light_map = + RenderTexture::new(width / self.scale as u32, height / self.scale as u32) + .unwrap(); let view = View::from_rect(Rect::new(0., 0., width as f32, height as f32)); self.rw.set_view(&view); }