A GameCube/Wii emulator and debugger written in Rust.
undo depth fix, seems to regress twilight princess?
Laylebd7202de54a4
diff --git a/crates/backend-wgpu/src/shaders/efb_depth.wgsl b/crates/backend-wgpu/src/shaders/efb_depth.wgslindex 000648c..18c0f6b 100644--- a/crates/backend-wgpu/src/shaders/efb_depth.wgsl+++ b/crates/backend-wgpu/src/shaders/efb_depth.wgsl@@ -39,7 +39,7 @@ fn fs_writeback_z24(@builtin(position) position: vec4<f32>) -> @location(0) vec4let src_pixel = u.src_rect.xy + (position.xy / dst_size) * u.src_rect.zw;let coord = vec2<i32>(src_pixel);let depth = textureLoad(efb_depth, coord, 0);- let z24 = min(u32(depth * Z24_SCALE), 0xFFFFFFu);+ let z24 = u32(depth * Z24_SCALE);let r = f32((z24 >> 16u) & 0xFFu) / 255.0;let g = f32((z24 >> 8u) & 0xFFu) / 255.0;let b = f32( z24 & 0xFFu) / 255.0;