Skip to content

Commit

Permalink
actual fix for CesiumGS#2872
Browse files Browse the repository at this point in the history
  • Loading branch information
hpinkos committed Jul 13, 2015
1 parent d3eb301 commit 2926c2f
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 2926c2f

Please sign in to comment.