From c5e66964c0463219019d0439ec20b79248637fa4 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 22 Mar 2026 19:15:55 +0100 Subject: feat(cnn_v3): GBufferEffect internal scene + GBufViewEffect debug wiring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GBufferEffect: - set_scene() now owns Scene/Camera internally; no external pointers needed - 20 randomly rotating cubes (xorshift32 seed, axis-angle animation) - 4 pumping spheres (radius = base_r * (1 + audio_intensity * 0.8)) - Camera at (0,2.5,6) looking at origin; aspect updated per-frame - GBufLightsUniforms: 2 directional lights (warm key + cool fill) - object_type written to ObjectData.params.x (ready for SDF shadow) - shadow/transp nodes cleared via zero-draw render passes (placeholder) - bilinear sampler cached via create_linear_sampler() / sampler_.get() - dead placeholder textures removed GBufViewEffect: - gbuf_view.wgsl: all channels now fully grayscale (removed color tint) - seq_compiler.py: GBufViewEffect added to CLASS_TO_HEADER - timeline.seq: cnn_v3_test uses GBufViewEffect -> sink for debug view Docs: HOWTO.md §1 updated with set_scene() description + §1b implementation plan for Pass 2 SDF shadow (shader spec, bind layout, C++ additions) handoff(Gemini): GBufferEffect has internal scene, 36/36 tests green. Next: implement Pass 2 shadow (gbuf_shadow.wgsl) per §1b plan in HOWTO.md. --- workspaces/main/timeline.seq | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'workspaces') diff --git a/workspaces/main/timeline.seq b/workspaces/main/timeline.seq index 557e73d..0e1ca74 100644 --- a/workspaces/main/timeline.seq +++ b/workspaces/main/timeline.seq @@ -13,10 +13,8 @@ SEQUENCE 8.00 0 "scene 2" SEQUENCE 12.00 0 "cnn_v3_test" NODE gbuf_feat0 gbuf_rgba32uint NODE gbuf_feat1 gbuf_rgba32uint - NODE cnn_v3_out gbuf_albedo EFFECT + GBufferEffect source -> gbuf_feat0 gbuf_feat1 0.00 8.00 - EFFECT + CNNv3Effect gbuf_feat0 gbuf_feat1 -> cnn_v3_out 0.00 8.00 - EFFECT + Passthrough cnn_v3_out -> sink 0.00 8.00 + EFFECT + GBufViewEffect gbuf_feat0 gbuf_feat1 -> sink 0.00 8.00 SEQUENCE 20.00 2 "hybrid_heptagon" # Heptagon -> Hybrid3D -> sink -- cgit v1.2.3