aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/projectile_render.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-12-02 20:55:24 +0300
committerValentin Popov <valentin@popov.link>2026-12-02 20:55:24 +0300
commitbd3fbb71cdef1cda0e4db5efa14c632ae72859d6 (patch)
tree610ba427410fcabdb59e80dcf26bf430852d5d08 /apps/fparkan-game/src/projectile_render.rs
parentf35ccda5dd88cb0ddebed33efa2660c1b9742cbe (diff)
downloadfparkan-bd3fbb71cdef1cda0e4db5efa14c632ae72859d6.tar.xz
fparkan-bd3fbb71cdef1cda0e4db5efa14c632ae72859d6.zip
fix(ui): restore native cockpit miniature lighting
Diffstat (limited to 'apps/fparkan-game/src/projectile_render.rs')
-rw-r--r--apps/fparkan-game/src/projectile_render.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/fparkan-game/src/projectile_render.rs b/apps/fparkan-game/src/projectile_render.rs
index c57c63a1..ed475a2a 100644
--- a/apps/fparkan-game/src/projectile_render.rs
+++ b/apps/fparkan-game/src/projectile_render.rs
@@ -3,7 +3,7 @@
use super::{
append_static_preview_component, cross3, fixed_effect_field, normalize3, projectile_sound,
projectile_trail, shot_sound, static_preview_component_materials, EffectMaterials,
- MaterialAnimationBinding, StaticPreviewScene, VulkanStaticMaterial,
+ MaterialAnimationBinding, ModelMaterialStyle, StaticPreviewScene, VulkanStaticMaterial,
};
use fparkan_assets::{
load_resource_entry_bytes_from_root, PreparedControlEffectRow, PreparedControlEffectSection,
@@ -195,6 +195,7 @@ pub(super) fn prepare_projectile_draw_into(
None,
materials,
material_animations,
+ ModelMaterialStyle::Scene,
)?;
let capacity = capacity(projectile.lifetime_ms).min(128);
let mut instances = Vec::new();