diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-02 16:31:05 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-02 16:31:05 +0100 |
| commit | 74cab8d6b91168a4681f1c9c19a8e32052d59e7b (patch) | |
| tree | b68d1f1298d66b2c8189d5f61b3df817e47d0d11 /src/gpu/effect.cc | |
| parent | 396f0fceb6b7ff0838689a377408cf63539697c6 (diff) | |
fix(3d): Restore and enhance 3D shadows
- Elevated objects in test_3d_render to avoid shadow occlusion.
- Slanted light direction for more visible, elongated shadows.
- Sharpened shadows by increasing k constant to 32.
- Cleaned up debug printfs from previous turns.
- Maintained skip_idx logic for robust self-shadowing prevention.
Diffstat (limited to 'src/gpu/effect.cc')
| -rw-r--r-- | src/gpu/effect.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gpu/effect.cc b/src/gpu/effect.cc index f24fa96..0d4dde7 100644 --- a/src/gpu/effect.cc +++ b/src/gpu/effect.cc @@ -210,11 +210,6 @@ void MainSequence::resize(int width, int height) { void MainSequence::render_frame(float global_time, float beat, float peak, float aspect_ratio, WGPUSurface surface) { - static bool first_frame = true; - if (first_frame) { - printf("MainSequence First Frame: %dx%d\n", width_, height_); - first_frame = false; - } WGPUCommandEncoder encoder = wgpuDeviceCreateCommandEncoder(device, nullptr); std::vector<SequenceItem*> scene_effects; |
