mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 20:35:02 +01:00
Properly resize lightmap along with game render texture
This commit is contained in:
parent
f9a99fc0ae
commit
c78123ccd8
1 changed files with 3 additions and 0 deletions
|
|
@ -88,6 +88,9 @@ impl App {
|
||||||
self.rt =
|
self.rt =
|
||||||
RenderTexture::new(width / self.scale as u32, height / self.scale as u32)
|
RenderTexture::new(width / self.scale as u32, height / self.scale as u32)
|
||||||
.unwrap();
|
.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));
|
let view = View::from_rect(Rect::new(0., 0., width as f32, height as f32));
|
||||||
self.rw.set_view(&view);
|
self.rw.set_view(&view);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue