reverse bit order to little endian

This commit is contained in:
DomNomNomVR 2025-02-24 21:33:13 +13:00
parent fa9fb27a98
commit bda3fd3b37

View File

@ -107,7 +107,8 @@ public class RT3script : MonoBehaviour
uint floatbits = FloatToIntBits(tr[1,1]);
for (int j = 0; j < 32; j++) {
//this logic does a bitwise check on the length value at bit j
if (((floatbits >> j) & 1)==1) {
// use little-endian (ends with least significant bit on the right)
if (((floatbits >> ((31)-j)) & 1)==1) {
encodedTransform[j] = Color.white;
}
else {