Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Commit

Permalink
Negative light UV coordinates bug
Browse files Browse the repository at this point in the history
Increased light index and texture index capacity correcting negative UV coordinates bug
  • Loading branch information
Host32 committed Mar 8, 2016
1 parent 8af6b0a commit a64b22a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Loaders/Ground.js
Expand Up @@ -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(),
Expand Down Expand Up @@ -563,4 +563,4 @@ define( ['Utils/BinaryReader', 'Utils/gl-matrix'], function( BinaryReader, glMat
* Export
*/
return GND;
});
});

0 comments on commit a64b22a

Please sign in to comment.