From 8bdc4754647c9c6691130fa91d51fee93c5fc88f Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 1 Feb 2026 10:51:15 +0100 Subject: feat: Implement 3D system and procedural texture manager - Extended mini_math.h with mat4 multiplication and affine transforms. - Implemented TextureManager for runtime procedural texture generation and GPU upload. - Added 3D system components: Camera, Object, Scene, and Renderer3D. - Created test_3d_render mini-demo for interactive 3D verification. - Fixed WebGPU validation errors regarding depthSlice and unimplemented WaitAny. --- src/gpu/gpu.cc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/gpu/gpu.cc') diff --git a/src/gpu/gpu.cc b/src/gpu/gpu.cc index a097efa..3cdf9aa 100644 --- a/src/gpu/gpu.cc +++ b/src/gpu/gpu.cc @@ -131,14 +131,6 @@ RenderPass gpu_create_render_pass(WGPUDevice device, WGPUTextureFormat format, color_target.blend = nullptr; // Add additive blending for particles - WGPUBlendState blend = {}; - blend.color.srcFactor = WGPUBlendFactor_SrcAlpha; - blend.color.dstFactor = WGPUBlendFactor_One; - blend.color.operation = WGPUBlendOperation_Add; - blend.alpha.srcFactor = WGPUBlendFactor_SrcAlpha; - blend.alpha.dstFactor = WGPUBlendFactor_One; - blend.alpha.operation = WGPUBlendOperation_Add; - color_target.blend = &blend; WGPUFragmentState fragment_state = {}; fragment_state.module = shader_module; -- cgit v1.2.3