fix(render): draw block-contained 3D faces

This commit is contained in:
Hakan Seven committed 2026-08-19 23:34:10 +03:00
1 parent c8840e2706
commit 8601fd8e4b
7 files changed
+90 -60

No files matched your search

+1 -2
View File
@@ -646,7 +646,6 @@ impl BlockWireGpu {
device: &wgpu::Device,
wires: &[&WireModel],
depth_map: &rustc_hash::FxHashMap<u64, [f32; 2]>,
mesh_names: &rustc_hash::FxHashSet<&str>,
color_override: Option<[f32; 4]>,
const_bgl: &wgpu::BindGroupLayout,
) -> Vec<Self> {
@@ -662,7 +661,7 @@ impl BlockWireGpu {
if wire.points.len() < 2 {
continue;
}
let mesh_edge = mesh_names.contains(wire.name.as_str());
let mesh_edge = color_override.is_none() && wire.fill_is_3d;
let key = (instance.source_id, mesh_edge);
let slot = *slots.entry(key).or_insert_with(|| {
let slot = groups.len();