summaryrefslogtreecommitdiff
path: root/src/gpu/gpu.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-01 10:51:15 +0100
committerskal <pascal.massimino@gmail.com>2026-02-01 10:51:15 +0100
commit8bdc4754647c9c6691130fa91d51fee93c5fc88f (patch)
tree2cfd7f72a21541c488ea48629eef47a6774fc2c4 /src/gpu/gpu.cc
parent7905abd9f7ad35231289e729b42e3ad57a943ff5 (diff)
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.
Diffstat (limited to 'src/gpu/gpu.cc')
-rw-r--r--src/gpu/gpu.cc8
1 files changed, 0 insertions, 8 deletions
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;