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/gpu.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/gpu.cc')
| -rw-r--r-- | src/gpu/gpu.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gpu/gpu.cc b/src/gpu/gpu.cc index 5537433..3e8981c 100644 --- a/src/gpu/gpu.cc +++ b/src/gpu/gpu.cc @@ -367,7 +367,6 @@ void gpu_init(PlatformState* platform_state) { g_config.usage = WGPUTextureUsage_RenderAttachment; g_config.width = platform_state->width; g_config.height = platform_state->height; - printf("WebGPU Init: %dx%d\n", g_config.width, g_config.height); g_config.presentMode = WGPUPresentMode_Fifo; g_config.alphaMode = WGPUCompositeAlphaMode_Opaque; wgpuSurfaceConfigure(g_surface, &g_config); |
