Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prism/Transparency effect does not work with pre-calculated backgrounds #8

Open
ABelliqueux opened this issue Jul 1, 2021 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@ABelliqueux
Copy link
Owner

With pre-rendered background, we could just set the tpage to bpp, x, y of the image in vram : 8bpp, 320, 0 by default for now.

if (fixed_BGs){
     ( (POLY_GT3 *) poly )->tpage = getTPage( 0, 0, 320, 0 );
}

But how do we now fixed BGs are used ?
We could use curLvl.camPtr->BGtim to determine the existence of the data, and even use prect to know x,y coords in vram,

if (curLvl.camPtr->BGtim){
     ( (POLY_GT3 *) poly )->tpage = getTPage( curLvl.camPtr->BGtim&0x3, 0, 
                                              curLvl.camPtr->BGtim->prect->x,
                                              curLvl.camPtr->BGtim->prect->y );
}

but do we want to add a function argument just for that ?

@ABelliqueux ABelliqueux self-assigned this Jul 1, 2021
@ABelliqueux ABelliqueux added todo That's on the to-do list bug Something isn't working enhancement New feature or request and removed todo That's on the to-do list labels Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant