Fix model track-group movement and RGB destination-alpha blending
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user