Skip to content

Commit

Permalink
make the map smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed Dec 5, 2023
1 parent e13b5df commit 3ba9ab6
Show file tree
Hide file tree
Showing 3 changed files with 399 additions and 399 deletions.
2 changes: 1 addition & 1 deletion engine/src/lamplights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub struct LampLights {

impl LampLights {
pub const LIGHTCHUNK_SIZE: u32 = 32; // in meters, side length of a light chunk, can contain at most 4 lights
pub const MAP_SIZE: u32 = 50 * 1024; // in meters, side length of the map
pub const MAP_SIZE: u32 = 25 * 1024; // in meters, side length of the map
pub const LIGHTMAP_SIZE: u32 = Self::MAP_SIZE / Self::LIGHTCHUNK_SIZE; // in light chunks

pub fn new(device: &wgpu::Device, queue: &wgpu::Queue) -> Self {
Expand Down
Loading

0 comments on commit 3ba9ab6

Please sign in to comment.