From a64b22ab21825cf5f6f7765fe9ae738ef501dc8b Mon Sep 17 00:00:00 2001 From: Ivan Miranda Date: Mon, 7 Mar 2016 22:07:55 -0300 Subject: [PATCH] Negative light UV coordinates bug Increased light index and texture index capacity correcting negative UV coordinates bug --- src/Loaders/Ground.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Loaders/Ground.js b/src/Loaders/Ground.js index e69bc86..a9f726e 100644 --- a/src/Loaders/Ground.js +++ b/src/Loaders/Ground.js @@ -159,8 +159,8 @@ define( ['Utils/BinaryReader', 'Utils/gl-matrix'], function( BinaryReader, glMat tiles[i] = { u1: fp.readFloat(), u2: fp.readFloat(), u3: fp.readFloat(), u4: fp.readFloat(), v1: fp.readFloat(), v2: fp.readFloat(), v3: fp.readFloat(), v4: fp.readFloat(), - texture: fp.readShort(), - light: fp.readShort(), + texture: fp.readUShort(), + light: fp.readUShort(), color: [ fp.readUByte(), fp.readUByte(), @@ -563,4 +563,4 @@ define( ['Utils/BinaryReader', 'Utils/gl-matrix'], function( BinaryReader, glMat * Export */ return GND; -}); \ No newline at end of file +});