Added the ability to render meshes in multiple passes with different

render states.  Cleaned up some formatting.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@25 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Andrzej Kapolka
2006-08-11 21:46:21 +00:00
parent 7f92496425
commit f87f335ca7
2 changed files with 74 additions and 7 deletions
@@ -164,13 +164,14 @@ public class AStarPathUtil
if (n.x == bx && n.y == by) {
// construct and return the acceptable path
return getNodePath(n);
} else if (partial) {
float pathdist = MathUtil.distance(n.x, n.y, bx, by);
if (pathdist < bestdist) {
bestdist = pathdist;
bestpath = n;
}
float pathdist = MathUtil.distance(n.x, n.y, bx, by);
if (pathdist < bestdist) {
bestdist = pathdist;
bestpath = n;
}
}
// consider each successor of the node
stepper.init(info, n);
@@ -185,8 +186,8 @@ public class AStarPathUtil
return getNodePath(bestpath);
}
// no path found
return null;
// no path found
return null;
}
/**