Movement.

This commit is contained in:
2025-03-02 13:27:29 -06:00
parent c8abdcb82e
commit 639da129f6
8 changed files with 152 additions and 11 deletions

View File

@ -5,4 +5,9 @@
uint packedGetU8(uint position, uint data) {
return (data >> (position * 8u)) & 0xFFu;
}
int packedGetI8(uint position, uint data) {
int shift = int(position * 8u);
return int(data << (24 - shift)) >> 24;
}