mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
scrolling textures tweak
This commit is contained in:
parent
78e07a7064
commit
f0009d36b5
2 changed files with 3 additions and 6 deletions
|
@ -70,17 +70,14 @@ static inline void shift_UV_NORMAL(struct ScrollTarget *scroll, u16 vertcount, s
|
||||||
verts[0]->n.flag++;
|
verts[0]->n.flag++;
|
||||||
} else {
|
} else {
|
||||||
if (bhv < SCROLL_UV_X) {
|
if (bhv < SCROLL_UV_X) {
|
||||||
u8 bhvIndex = MIN(bhv, 2);
|
|
||||||
for (i = 0; i < vertcount; i++) {
|
for (i = 0; i < vertcount; i++) {
|
||||||
verts[i]->n.ob[bhvIndex] = scroll->interpF32[i];
|
scroll->prevF32[i] = scroll->interpF32[i];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
u8 bhvIndex = MIN(bhv-SCROLL_UV_X, 1);
|
|
||||||
for (i = 0; i < vertcount; i++) {
|
for (i = 0; i < vertcount; i++) {
|
||||||
verts[i]->n.tc[bhvIndex] = scroll->interpS16[i];
|
scroll->prevS16[i] = scroll->interpS16[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scroll->needInterp = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ void patch_scroll_targets_before(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SHORT_RANGE 32767
|
#define SHORT_RANGE 0x7FFF
|
||||||
|
|
||||||
void patch_scroll_targets_interpolated(f32 delta) {
|
void patch_scroll_targets_interpolated(f32 delta) {
|
||||||
f32 antiDelta = 1.0f - delta;
|
f32 antiDelta = 1.0f - delta;
|
||||||
|
|
Loading…
Reference in a new issue