Fix model track-group movement and RGB destination-alpha blending

This commit is contained in:
shen
2026-09-30 08:13:29 -07:00
parent f345bd5d3b
commit 905f23f135
16 changed files with 367 additions and 72 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
#include "vulkan_window.h"
#include "host_util.h"
#include "blend_state.h"
#include <cstring>
#include <stdexcept>
@@ -212,7 +213,7 @@ VkPipeline VulkanWindow::get_pipeline(std::uint8_t cull, std::uint8_t depth, std
}
auto d3d_to_vk_blend = [](std::uint8_t d3d, VkBlendFactor fallback) -> VkBlendFactor {
switch (d3d) {
switch (d3d_blend_for_rgb_target(d3d)) {
case 1: return VK_BLEND_FACTOR_ZERO;
case 2: return VK_BLEND_FACTOR_ONE;
case 3: return VK_BLEND_FACTOR_SRC_COLOR;