diff --git a/implementations/Crafter.Graphics-Device.cpp b/implementations/Crafter.Graphics-Device.cpp index 644fb67..5845570 100644 --- a/implementations/Crafter.Graphics-Device.cpp +++ b/implementations/Crafter.Graphics-Device.cpp @@ -475,7 +475,7 @@ void Device::Initialize() { VkApplicationInfo app{VK_STRUCTURE_TYPE_APPLICATION_INFO}; app.pApplicationName = ""; app.pEngineName = "Crafter.Graphics"; - app.apiVersion = VK_MAKE_VERSION(1, 4, 0); + app.apiVersion = VK_MAKE_VERSION(1, 3, 0); VkInstanceCreateInfo instanceCreateInfo = {}; instanceCreateInfo.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO; diff --git a/interfaces/Crafter.Graphics-Rendertarget.cppm b/interfaces/Crafter.Graphics-Rendertarget.cppm index 4dabef1..3ec6826 100644 --- a/interfaces/Crafter.Graphics-Rendertarget.cppm +++ b/interfaces/Crafter.Graphics-Rendertarget.cppm @@ -78,6 +78,7 @@ export namespace Crafter { } break; } + case OpaqueType::SemiOpaque: case OpaqueType::Transparent: // For transparent, always perform blending for (std::uint16_t y = dirty.top; y < dirty.bottom; y++) { @@ -88,7 +89,7 @@ export namespace Crafter { Vector dst = buffer[frame][y * this->sizeX + x]; float srcA = src.a / 255.0f; - float dstA = dst.a / 255.0f;k + float dstA = dst.a / 255.0f; float outA = srcA + dstA * (1.0f - srcA); this->buffer[frame][y * this->sizeX + x] = Vector(