优化 blue map 渲染 减少重叠时的闪烁错误
All checks were successful
Java CI-CD with Maven / build (push) Successful in 25m48s
All checks were successful
Java CI-CD with Maven / build (push) Successful in 25m48s
This commit is contained in:
parent
18ba8272ef
commit
be6242463c
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>cn.lunadeer</groupId>
|
||||
<artifactId>Dominion</artifactId>
|
||||
<version>1.9.1-beta</version>
|
||||
<version>1.9.2-beta</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Dominion</name>
|
||||
|
@ -31,10 +31,10 @@ public class BlueMapConnect {
|
||||
for (Integer id : world_dominions.getValue()) {
|
||||
DominionDTO dominion = Cache.instance.getDominion(id);
|
||||
Collection<Vector2d> vectors = new ArrayList<>();
|
||||
vectors.add(new Vector2d(dominion.getX1(), dominion.getZ1()));
|
||||
vectors.add(new Vector2d(dominion.getX2(), dominion.getZ1()));
|
||||
vectors.add(new Vector2d(dominion.getX2(), dominion.getZ2()));
|
||||
vectors.add(new Vector2d(dominion.getX1(), dominion.getZ2()));
|
||||
vectors.add(new Vector2d(dominion.getX1() + 0.001, dominion.getZ1() + 0.001));
|
||||
vectors.add(new Vector2d(dominion.getX2() - 0.001, dominion.getZ1() + 0.001));
|
||||
vectors.add(new Vector2d(dominion.getX2() - 0.001, dominion.getZ2() - 0.001));
|
||||
vectors.add(new Vector2d(dominion.getX1() + 0.001, dominion.getZ2() - 0.001));
|
||||
Shape shape = new Shape(vectors);
|
||||
double x = vectors.iterator().next().getX();
|
||||
double z = vectors.iterator().next().getY();
|
||||
@ -49,7 +49,7 @@ public class BlueMapConnect {
|
||||
ExtrudeMarker marker = ExtrudeMarker.builder()
|
||||
.label(dominion.getName())
|
||||
.position(x, y, z)
|
||||
.shape(shape, dominion.getY1(), dominion.getY2())
|
||||
.shape(shape, dominion.getY1() + 0.001f, dominion.getY2() - 0.001f)
|
||||
.lineColor(line)
|
||||
.fillColor(fill)
|
||||
.build();
|
||||
|
Reference in New Issue
Block a user