Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public RenderPoints2dTask(
@Override
protected void run(Shape2dConvertibleModel model, GenerationTile tile) {
ReadableHeightmap heightmap = tile.heightmap(heightmapSpec);
for (Positioned2d point : voxelizer.voxelize(model)) {
for (Positioned2d point : tile.limits().to2d().filterInside(voxelizer.voxelize(model))) {
WorldCoords2d pos = point.coords();
placeable.place(tile.voxels(), pos.x(), pos.y(), heightmap.get(pos));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public RenderPointsTask(

@Override
protected void run(Shape3dConvertibleModel model, GenerationTile tile) {
for (Positioned3d point : voxelizer.voxelize(model))
for (Positioned3d point : tile.limits().filterInside(voxelizer.voxelize(model)))
placeable.place(tile.voxels(), point.coords());
}
}
Loading