diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-11 12:03:36 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-11 12:03:36 +0100 |
| commit | fa5a960a3dd6f8e3b5115bcad5150654baebb6a0 (patch) | |
| tree | 5caaf8a27e17ff2ef6a8ac9b1011c9f566d98107 /src/gpu/effects | |
| parent | f21d120b27e736eed42a5506ea1f3a879c150af5 (diff) | |
fix: Use actual resolution in RotatingCubeEffect
Hardcoded vec2(1280.0f, 720.0f) → u.resolution
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/gpu/effects')
| -rw-r--r-- | src/gpu/effects/rotating_cube_effect.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/effects/rotating_cube_effect.cc b/src/gpu/effects/rotating_cube_effect.cc index 79a540b..cd31100 100644 --- a/src/gpu/effects/rotating_cube_effect.cc +++ b/src/gpu/effects/rotating_cube_effect.cc @@ -207,7 +207,7 @@ void RotatingCubeEffect::render(WGPURenderPassEncoder pass, .inv_view_proj = view_proj.inverse(), .camera_pos_time = vec4(camera_pos.x, camera_pos.y, camera_pos.z, u.time), .params = vec4(1.0f, 0.0f, 0.0f, 0.0f), - .resolution = vec2(1280.0f, 720.0f), + .resolution = u.resolution, }; const ObjectData obj_data = { |
