fix greedy_quads benchmark
use building_blocks_core::prelude::*;
-use building_blocks_mesh::{greedy_quads::*, MaterialVoxel};
+use building_blocks_mesh::{greedy_quads::*, IsOpaque, MaterialVoxel};
use building_blocks_storage::{prelude::*, IsEmpty};
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
@@ -53,3 +53,9 @@ impl IsEmpty for CubeVoxel {
!self.0
}
}
+
+impl IsOpaque for CubeVoxel {
+ fn is_opaque(&self) -> bool {
+ true
+ }
+}
