summaryrefslogtreecommitdiff
path: root/workspaces/main/shaders/cnn/cnn_weights_generated.wgsl
diff options
context:
space:
mode:
Diffstat (limited to 'workspaces/main/shaders/cnn/cnn_weights_generated.wgsl')
-rw-r--r--workspaces/main/shaders/cnn/cnn_weights_generated.wgsl10
1 files changed, 8 insertions, 2 deletions
diff --git a/workspaces/main/shaders/cnn/cnn_weights_generated.wgsl b/workspaces/main/shaders/cnn/cnn_weights_generated.wgsl
index 98c17ff..e0a7dc4 100644
--- a/workspaces/main/shaders/cnn/cnn_weights_generated.wgsl
+++ b/workspaces/main/shaders/cnn/cnn_weights_generated.wgsl
@@ -2,8 +2,8 @@
// DO NOT EDIT MANUALLY - regenerate with scripts/train_cnn.py
// Placeholder identity-like weights for initial testing
-// Layer 0: 3x3 convolution
-const weights_layer0: array<mat4x4<f32>, 9> = array(
+// Layer 0: 3x3 convolution with coordinate awareness
+const rgba_weights_layer0: array<mat4x4<f32>, 9> = array(
mat4x4<f32>(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
mat4x4<f32>(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
mat4x4<f32>(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
@@ -14,4 +14,10 @@ const weights_layer0: array<mat4x4<f32>, 9> = array(
mat4x4<f32>(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0),
mat4x4<f32>(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
);
+
+const coord_weights_layer0 = mat2x4<f32>(
+ 0.0, 0.0, 0.0, 0.0,
+ 0.0, 0.0, 0.0, 0.0
+);
+
const bias_layer0 = vec4<f32>(0.0, 0.0, 0.0, 0.0);