|
@@ -389,8 +389,8 @@ public class GltfUtils {
|
|
b = stream.readByte();
|
|
b = stream.readByte();
|
|
return Math.max(b / 127f, -1f);
|
|
return Math.max(b / 127f, -1f);
|
|
case UnsignedByte:
|
|
case UnsignedByte:
|
|
- b = stream.readByte();
|
|
|
|
- return b / 255f;
|
|
|
|
|
|
+ s = stream.readUnsignedByte();
|
|
|
|
+ return s / 255f;
|
|
case Short:
|
|
case Short:
|
|
s = stream.readShort();
|
|
s = stream.readShort();
|
|
return Math.max(s / 32767f, -1f);
|
|
return Math.max(s / 32767f, -1f);
|