Skip to content

Commit

Permalink
Flip heightMap UVs
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Sep 29, 2015
1 parent 0d4357c commit 7111f93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/node/geometry/heightmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@
positions.push(-y + halfHeight);
positions.push(-z);

uvs.push(py / gridX);
uvs.push(1 - px / gridZ);
uvs.push( px / gridZ);
uvs.push(1-py / gridX);

}
}

Expand Down

0 comments on commit 7111f93

Please sign in to comment.