diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-02 14:05:31 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-02 14:05:31 +0100 |
| commit | 9048115d66cb5ad18e37aad7d48cb6a708b3c3d5 (patch) | |
| tree | 2dfa84ef0ada61328247b949e1d27c408004a12d /LOG.txt | |
| parent | a5409a168d08552c0fc0ad2cff8a9f32199272a1 (diff) | |
fix(3d): Resolve shader validation error and tune shadows
- Fixed 'redefinition of light_dir' shader validation error by centralizing the light definition at the top of fs_main.
- Further brightened the floor in 'test_3d_render' for better shadow contrast.
- Reduced shadow bias and made the light more vertical to ensure shadows are clearly visible on all surfaces.
Diffstat (limited to 'LOG.txt')
| -rw-r--r-- | LOG.txt | 46 |
1 files changed, 46 insertions, 0 deletions
@@ -0,0 +1,46 @@ + +thread '<unnamed>' (9163037) panicked at src/lib.rs:423:5: +wgpu uncaptured error: +Validation Error + +Caused by: + In wgpuDeviceCreateShaderModule + +Shader '' parsing error: redefinition of `light_dir` + ┌─ wgsl:141:9 + │ +141 │ let light_dir = normalize(vec3<f32>(1.0, 1.0, 1.0)); + │ ^^^^^^^^^ previous definition of `light_dir` + · +212 │ let light_dir = normalize(vec3<f32>(0.2, 1.0, 0.2)); // More vertical light for easier shadow debugging + │ ^^^^^^^^^ redefinition of `light_dir` + + + + +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + +thread '<unnamed>' (9163037) panicked at library/core/src/panicking.rs:230:5: +panic in a function that cannot unwind +stack backtrace: + 0: 0x1037d75e0 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h5b9122f5e70f5951 + 1: 0x1037f5194 - core::fmt::write::h6a8a2c9e4d999818 + 2: 0x1037d7854 - std::io::default_write_fmt::h89b6c507b2c6ffa7 + 3: 0x1037d6488 - std::panicking::default_hook::{{closure}}::h24b4617c01d6581d + 4: 0x1037d6370 - std::panicking::default_hook::h1955ee9a9845dfef + 5: 0x1037d6754 - std::panicking::panic_with_hook::h8aad6dd2389d8f59 + 6: 0x1037d6564 - std::panicking::panic_handler::{{closure}}::h3bd15449212d5b6e + 7: 0x1037d61e4 - std::sys::backtrace::__rust_end_short_backtrace::h3b25181b9f11fe05 + 8: 0x1037d5660 - __rustc[18f9140b322fd06e]::rust_begin_unwind + 9: 0x103821f6c - core::panicking::panic_nounwind_fmt::h7a4dae3ab8fc5259 + 10: 0x103821ed0 - core::panicking::panic_nounwind::h959d775d33fc4688 + 11: 0x103822070 - core::panicking::panic_cannot_unwind::hda7331a7075802a1 + 12: 0x1037fcfe0 - wgpu_native::default_uncaptured_error_handler::h5258404c53f3ccc3 + 13: 0x10346af0c - wgpu_native::ErrorSinkRaw::handle_error::h097d2dd0698a0260 + 14: 0x10346b590 - wgpu_native::handle_error::h00f841fd1f822b11 + 15: 0x1034848d0 - _wgpuDeviceCreateShaderModule + 16: 0x1028e8d5c - __ZN10Renderer3D15create_pipelineEv + 17: 0x1028e8b38 - __ZN10Renderer3D4initEP14WGPUDeviceImplP13WGPUQueueImpl17WGPUTextureFormat + 18: 0x1028e3a5c - _main +thread caused non-unwinding panic. aborting. +Running 3D Renderer Test... |
