From 0793c20c1dd0c5f0c535f7da90337081939b2cfc Mon Sep 17 00:00:00 2001 From: skal Date: Fri, 13 Feb 2026 16:57:29 +0100 Subject: CNN v2: Change feature #6 from sin(10*x) to sin(20*y) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update positional encoding to use vertical coordinate at higher frequency. Changes: - train_cnn_v2.py: sin10_x → sin20_y (computed from uv_y) - cnn_v2_static.wgsl: sin10_x → sin20_y (computed from uv_y) - index.html: sin10_x → sin20_y (STATIC_SHADER) - CNN_V2.md: Update feature descriptions and examples - CNN_V2_BINARY_FORMAT.md: Update static features documentation Feature vector: [p0, p1, p2, p3, uv_x, uv_y, sin20_y, bias] Rationale: Higher frequency (20 vs 10) + vertical axis provides better spatial discrimination for position encoding. Co-Authored-By: Claude Sonnet 4.5 --- doc/CNN_V2_BINARY_FORMAT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/CNN_V2_BINARY_FORMAT.md') diff --git a/doc/CNN_V2_BINARY_FORMAT.md b/doc/CNN_V2_BINARY_FORMAT.md index 5239e4b..f718960 100644 --- a/doc/CNN_V2_BINARY_FORMAT.md +++ b/doc/CNN_V2_BINARY_FORMAT.md @@ -146,7 +146,7 @@ Not stored in .bin file (computed at runtime): 4. **p3** - Parametric feature 3 (depth or from mip level) 5. **UV_X** - Normalized x coordinate [0,1] 6. **UV_Y** - Normalized y coordinate [0,1] -7. **sin(10 × UV_X)** - Spatial frequency encoding +7. **sin(20 × UV_Y)** - Spatial frequency encoding (vertical, frequency=20) 8. **1.0** - Bias term **Mip Level Usage (p0-p3):** -- cgit v1.2.3