Skip to content

Commit

Permalink
round
Browse files Browse the repository at this point in the history
  • Loading branch information
nokonoko1203 committed Oct 3, 2024
1 parent 7b987bf commit 14667f4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nusamai/src/sink/cesiumtiles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,6 @@ fn tile_writing_stage(
pixel_per_distance,
downsample_scale as f32,
);
println!(
"tile_zoom: {}, downsample_scale: {}, geometric_error: {}, pixel_per_distance: {}, factor: {}",
tile_zoom, downsample_scale, geom_error, pixel_per_distance, factor
);
let downsample_factor = DownsampleFactor::new(&factor);
let cropped_texture = PolygonMappedTexture::new(
&texture_uri,
Expand Down Expand Up @@ -735,5 +731,5 @@ fn apply_downsample_factor(
f as f32
}
};
(f * downsample_scale).clamp(0.0, 1.0)
((f * downsample_scale).clamp(0.0, 1.0) * 10.0).ceil() / 10.0_f32
}

0 comments on commit 14667f4

Please sign in to comment.