summaryrefslogtreecommitdiff
path: root/src/3d/renderer.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-03 19:06:41 +0100
committerskal <pascal.massimino@gmail.com>2026-02-03 19:06:41 +0100
commit3108fb0065a51dfc3548836ea16b287e92cd8881 (patch)
treeb20d3ffd904b65596ce9dd2df15a527b91a6539f /src/3d/renderer.h
parentc3714939897af2541c655c03bcdd61108fff46ea (diff)
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.
Diffstat (limited to 'src/3d/renderer.h')
-rw-r--r--src/3d/renderer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/3d/renderer.h b/src/3d/renderer.h
index c6ca2a3..3caa329 100644
--- a/src/3d/renderer.h
+++ b/src/3d/renderer.h
@@ -57,6 +57,7 @@ class Renderer3D {
const Camera& camera, float time);
void set_noise_texture(WGPUTextureView noise_view);
+ void set_sky_texture(WGPUTextureView sky_view);
// Resize handler (if needed for internal buffers)
void resize(int width, int height);
@@ -76,6 +77,7 @@ class Renderer3D {
WGPUBuffer object_storage_buffer_ = nullptr;
WGPUTextureView noise_texture_view_ = nullptr;
+ WGPUTextureView sky_texture_view_ = nullptr;
WGPUSampler default_sampler_ = nullptr;
// Depth buffer management