n64-fast3d-engine
n64-fast3d-engine copied to clipboard
Avoid using texture_tile offset in calculating size
Hi. Could you explain a bit why this change is needed?
Here are the 2 images of scrolling done using F2 command. Without this fix, texture size is set wrong which is causing weird clamping
F2 command?
https://hack64.net/wiki/doku.php?id=super_mario_64:fast3d_display_list_commands#f2g_settilesize I am referring to G_SETTILESIZE, its "SSS" and "TTT" are used to specify only the position of the texture, not the size. In hacks it is commonly used to perform texture scrolling.
In this very example, the lava fountain is getting scrolled by changing G_SETTILESIZE. Here is an example of such scroll: https://github.com/aglab2/sm64/blob/303a49ea17b301e628985cce02a96f65d0938e32/src/mill/color_pads.cpp#L62 (do not mind the name)