revert
This commit is contained in:
parent
7fdab4f62b
commit
80bb04f84a
2 changed files with 3 additions and 2 deletions
|
|
@ -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