mirror of
https://github.com/knightfox75/nds_nflib.git
synced 2025-06-18 16:55:32 -04:00
examples: Fix alpha configuration of 3dsprites/alpha
The backdrop needs to be added to the destination layers. If not, transparent pixels in the backgrounds won't have correct alpha blending.
This commit is contained in:
parent
25511c82dd
commit
eb91123a9a
@ -56,7 +56,9 @@ int main(int argc, char **argv)
|
||||
NF_CreateTiledBg(0, 3, "bg3");
|
||||
|
||||
// Enable alpha blending between 3D sprites over 3D backgrounds
|
||||
REG_BLDCNT = BLEND_ALPHA | BLEND_SRC_BG0 | BLEND_DST_BG1 | BLEND_DST_BG2 | BLEND_DST_BG3;
|
||||
REG_BLDCNT = BLEND_ALPHA
|
||||
| BLEND_SRC_BG0
|
||||
| BLEND_DST_BG1 | BLEND_DST_BG2 | BLEND_DST_BG3 | BLEND_DST_BACKDROP;
|
||||
|
||||
// Variables
|
||||
s16 x[MAXSPRITES];
|
||||
|
Loading…
Reference in New Issue
Block a user