Fix blending modes
This commit is contained in:
parent
42138a6ab9
commit
204c037017
3 changed files with 18 additions and 10 deletions
|
|
@ -55,8 +55,9 @@ SSAVec4i DrawerCodegen::shade_pal_index_advanced(SSAInt index, SSAInt light, con
|
|||
|
||||
SSAVec4i DrawerCodegen::shade_bgra_simple(SSAVec4i color, SSAInt light)
|
||||
{
|
||||
SSAInt alpha = color[3];
|
||||
color = color * light / 256;
|
||||
return color.insert(3, 255);
|
||||
return color.insert(3, alpha);
|
||||
}
|
||||
|
||||
SSAVec4i DrawerCodegen::shade_bgra_advanced(SSAVec4i color, SSAInt light, const SSAShadeConstants &constants)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue