From 3108fb0065a51dfc3548836ea16b287e92cd8881 Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 3 Feb 2026 19:06:41 +0100 Subject: feat: side-quest - Perlin noise sky and ProcGenFunc error handling - Updated ProcGenFunc signature to return bool for error reporting. - Implemented gen_perlin (Fractional Brownian Motion) in procedural/generator.cc. - Added support for sky texture in Renderer3D and its shader. - Integrated Perlin noise sky texture in test_3d_render.cc. - Caught and handled memory/generation errors in AssetManager and TextureManager. - Assigned reference numbers to all remaining tasks in documentation. handoff(Gemini): Side-quest complete. ProcGenFunc now returns bool. Perlin noise added and used for sky in 3D test. Windows build remains stable. All tasks numbered. --- src/gpu/texture_manager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpu/texture_manager.h') diff --git a/src/gpu/texture_manager.h b/src/gpu/texture_manager.h index f49e827..23fdbe8 100644 --- a/src/gpu/texture_manager.h +++ b/src/gpu/texture_manager.h @@ -12,7 +12,7 @@ struct ProceduralTextureDef { int width; int height; - void (*gen_func)(uint8_t*, int, int, const float*, int); + bool (*gen_func)(uint8_t*, int, int, const float*, int); std::vector params; }; -- cgit v1.2.3