Skip to content

Commit

Permalink
Merge pull request #2883 from AnalyticalGraphicsInc/issue2872
Browse files Browse the repository at this point in the history
Fix for wall texture coordinates
  • Loading branch information
bagnell committed Jul 13, 2015
2 parents d85a963 + 2926c2f commit cea7820
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/WallGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ define([
length /= 3;
var i;
var s = 0;
var ds = 1/(length - wallPositions.length + 1);
for (i = 0; i < length; ++i) {
var i3 = i * 3;
var topPosition = Cartesian3.fromArray(topPositions, i3, scratchCartesian3Position1);
Expand Down Expand Up @@ -433,7 +434,7 @@ define([
if (Cartesian3.equalsEpsilon(nextPosition, groundPosition, CesiumMath.EPSILON6)) {
recomputeNormal = true;
} else {
s += 1/(wallPositions.length - 1);
s += ds;
if (vertexFormat.tangent) {
tangent = Cartesian3.normalize(Cartesian3.subtract(nextPosition, groundPosition, tangent), tangent);
}
Expand Down

0 comments on commit cea7820

Please sign in to comment.