summaryrefslogtreecommitdiff
path: root/src/3d/renderer_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3d/renderer_helpers.h')
-rw-r--r--src/3d/renderer_helpers.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/3d/renderer_helpers.h b/src/3d/renderer_helpers.h
new file mode 100644
index 0000000..3d0167f
--- /dev/null
+++ b/src/3d/renderer_helpers.h
@@ -0,0 +1,14 @@
+// This file is part of the 64k demo project.
+// Helper functions for Renderer3D setup and common initialization patterns.
+
+#pragma once
+
+#include "3d/renderer.h"
+#include "gpu/texture_manager.h"
+
+// Sets up standard noise and sky textures for Renderer3D.
+// Creates GPU-procedural noise (256x256, seed 1234, freq 16) and
+// Perlin sky (512x256) textures in the TextureManager, then binds
+// them to the renderer.
+void setup_standard_textures(Renderer3D& renderer, TextureManager& tex_mgr,
+ WGPUDevice device, WGPUQueue queue);