diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-14 14:23:16 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-14 14:23:16 +0100 |
| commit | 1de4c9f9ae7028e0ac4371759dad52858a49a21e (patch) | |
| tree | 488a073344ebd9684b7455aa008a90c0470903db /src/gpu/effects/flash_effect.cc | |
| parent | 12f83d4615a38cb0b1ed8a3eb436c4acca170479 (diff) | |
Refactor: extract setup_standard_textures helper
Eliminates repetitive Renderer3D texture initialization across 3 test files.
Creates setup_standard_textures() helper that configures standard noise
(256x256, GPU procedural) and sky (512x256, Perlin) textures.
- New: src/3d/renderer_helpers.{h,cc}
- Refactor: test_3d_physics, test_3d_render, test_mesh use helper
- Build: Added renderer_helpers.cc to CMake 3D_SOURCES
- Result: -52 lines of boilerplate across 3 files
Production effects (Hybrid3DEffect, FlashCubeEffect) use asset-based
textures and retain custom initialization.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/gpu/effects/flash_effect.cc')
0 files changed, 0 insertions, 0 deletions
