revert
This commit is contained in:
parent
7fdab4f62b
commit
80bb04f84a
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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<T, Channels, Alignment> 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<T, Channels, Alignment>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue