From d8166352578d9305f15c9fb1ea9d686f4640d970 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 21:44:01 +0400 Subject: feat(camera): render the authored cockpit geometry Sample state 0, group 4 from the active camera component. Keep its moving model attached to the unit and apply the CTLD camera projection only to those draw ranges. Checked in the Constructor at the stock start and while looking sideways, plus the first cockpit in AutoDemo with Vulkan validation. The native depth ordering and matched warbot comparison remain open. --- adapters/fparkan-render-vulkan/src/ffi/resources.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adapters/fparkan-render-vulkan/src/ffi/resources.rs') diff --git a/adapters/fparkan-render-vulkan/src/ffi/resources.rs b/adapters/fparkan-render-vulkan/src/ffi/resources.rs index 449750fe..5916c87f 100644 --- a/adapters/fparkan-render-vulkan/src/ffi/resources.rs +++ b/adapters/fparkan-render-vulkan/src/ffi/resources.rs @@ -545,7 +545,7 @@ pub(super) fn create_frame_uniform_buffer( )? / alignment * alignment; let size = stride - .checked_mul(2 * super::VULKAN_FRAME_SLOT_COUNT as u64) + .checked_mul((super::FRAME_VIEWS_PER_SLOT * super::VULKAN_FRAME_SLOT_COUNT) as u64) .ok_or(VulkanSmokeRendererError::InvalidStaticMesh { context: "frame uniform buffer size overflow", })?; -- cgit v1.2.3