Also apply the alpha scale to sprites
This commit is contained in:
parent
cd2fdb0cd9
commit
a4b57c5fbe
1 changed files with 9 additions and 0 deletions
|
|
@ -186,6 +186,15 @@ void HWDrawInfo::GetDynSpriteLight(AActor *self, float x, float y, float z, FLig
|
|||
lr = light->GetRed() / 255.0f;
|
||||
lg = light->GetGreen() / 255.0f;
|
||||
lb = light->GetBlue() / 255.0f;
|
||||
|
||||
if (light->target)
|
||||
{
|
||||
float alpha = (float)light->target->Alpha;
|
||||
lr *= alpha;
|
||||
lg *= alpha;
|
||||
lb *= alpha;
|
||||
}
|
||||
|
||||
if (light->IsSubtractive())
|
||||
{
|
||||
float bright = (float)FVector3(lr, lg, lb).Length();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue