- fixed: Alpha textures need to use a color's grayscale value, not their red channel.
This commit is contained in:
parent
fb71563311
commit
d68cd3aa80
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ const uint8_t *FSoftwareTexture::GetPixels(int style)
|
|||
{
|
||||
for (int x = 0; x < GetPhysicalWidth(); x++)
|
||||
{
|
||||
Pixels[y + x * GetPhysicalHeight()] = pe[x + y * GetPhysicalWidth()].r;
|
||||
Pixels[y + x * GetPhysicalHeight()] = pe[x + y * GetPhysicalWidth()].Luminance();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue