reverse bit order to little endian
This commit is contained in:
parent
fa9fb27a98
commit
bda3fd3b37
@ -107,7 +107,8 @@ public class RT3script : MonoBehaviour
|
|||||||
uint floatbits = FloatToIntBits(tr[1,1]);
|
uint floatbits = FloatToIntBits(tr[1,1]);
|
||||||
for (int j = 0; j < 32; j++) {
|
for (int j = 0; j < 32; j++) {
|
||||||
//this logic does a bitwise check on the length value at bit 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;
|
encodedTransform[j] = Color.white;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user