diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-01 09:19:19 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-01 09:19:19 +0300 |
| commit | 4e3681dfa367c97349df74e7b94970492d4cae2b (patch) | |
| tree | 62b70908ce738ac89cb33d1095aff40d0b0a6e89 /apps/fparkan-game/src/main.rs | |
| parent | 0b8829022bdf49a9b9a4ecf974c10f764aa31b9f (diff) | |
| download | fparkan-4e3681dfa367c97349df74e7b94970492d4cae2b.tar.xz fparkan-4e3681dfa367c97349df74e7b94970492d4cae2b.zip | |
fix(render): use visible building stages for sun glare
Diffstat (limited to 'apps/fparkan-game/src/main.rs')
| -rw-r--r-- | apps/fparkan-game/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs index 0c5facec..b0afe9be 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -8566,7 +8566,7 @@ fn static_preview_mesh_and_materials( }); } if root_sun_eligible { - sun_occlusion_range_indices.extend(range_start..range_start + base_range_count); + sun_occlusion_range_indices.extend(range_start..mesh.draw_ranges.len()); } mesh_components += 1; } @@ -11909,6 +11909,7 @@ impl StaticVulkanApp { materials: &self.materials, active: &frame.material_update.active_materials, hidden: &self.removed_mission_roots, + inactive_building_ranges: &inactive_building_ranges, boarded_hero: self.boarded_hero_index, }, )?; |
