summaryrefslogtreecommitdiff
path: root/cnn_v3/src/gbuf_deferred_effect.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-23 00:43:20 +0100
committerskal <pascal.massimino@gmail.com>2026-03-23 00:43:20 +0100
commit13cf1438caa56b34529d4031ddf73d38286b70e5 (patch)
treeb8de1b0a597edcbfadcea5fca862be4b3d72a3db /cnn_v3/src/gbuf_deferred_effect.h
parent1470dd240f48652d1fe97957fe44a49b0e1ee9a6 (diff)
feat(cnn_v3): shadow→dif migration complete (ch18)
Replace raw shadow (ch18) with dif = max(0,dot(normal,KEY_LIGHT))*shadow across all layers. Channel count stays 20, weight shapes unchanged. - gbuf_pack.wgsl: t1.z = pack4x8unorm(mip2.g, mip2.b, dif, transp); t1.w = 0u - gbuf_deferred.wgsl: read dif from unpack4x8unorm(t1.z).z - gbuf_view.wgsl: revert to 4×5 grid, ch18=dif label, ch19=trns label - tools/shaders.js: FULL_PACK_SHADER adds oct_decode + computes dif - cnn_v3_utils.py: assemble_features() computes dif on-the-fly via oct_decode - docs: CNN_V3.md, HOWTO.md, HOW_TO_CNN.md, GBUF_DIF_MIGRATION.md updated handoff(Gemini): shadow→dif migration done, ready for first training pass
Diffstat (limited to 'cnn_v3/src/gbuf_deferred_effect.h')
0 files changed, 0 insertions, 0 deletions