Properly resize lightmap along with game render texture

This commit is contained in:
crumblingstatue 2023-04-07 22:22:46 +02:00
parent f9a99fc0ae
commit c78123ccd8

View file

@ -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);
}