@supersoniks/concorde 4.9.97-visual-stack.0 → 4.9.98-visual-stack.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-3d.bundle.js +201 -152
  3. package/concorde-3d.es.js +14621 -13823
  4. package/concorde-core.bundle.js +1 -1
  5. package/concorde-core.es.js +1 -1
  6. package/concorde-hugging-face-infer.bundle.js +1 -1
  7. package/concorde-hugging-face-infer.es.js +1 -1
  8. package/concorde-shader.bundle.js +31 -20
  9. package/concorde-shader.es.js +3236 -2865
  10. package/concorde-webgpu.bundle.js +43 -32
  11. package/concorde-webgpu.es.js +2977 -2618
  12. package/dist/concorde-3d.bundle.js +201 -152
  13. package/dist/concorde-3d.es.js +14621 -13823
  14. package/dist/concorde-core.bundle.js +1 -1
  15. package/dist/concorde-core.es.js +1 -1
  16. package/dist/concorde-hugging-face-infer.bundle.js +1 -1
  17. package/dist/concorde-hugging-face-infer.es.js +1 -1
  18. package/dist/concorde-shader.bundle.js +31 -20
  19. package/dist/concorde-shader.es.js +3236 -2865
  20. package/dist/concorde-webgpu.bundle.js +43 -32
  21. package/dist/concorde-webgpu.es.js +2977 -2618
  22. package/dist/js/core/components/functional/3d/3d.js +100 -2
  23. package/dist/js/core/components/functional/3d/3d.js.map +1 -1
  24. package/dist/js/core/components/functional/3d/constants.js +3 -0
  25. package/dist/js/core/components/functional/3d/constants.js.map +1 -1
  26. package/dist/js/core/components/functional/3d/ensure.js +6 -3
  27. package/dist/js/core/components/functional/3d/ensure.js.map +1 -1
  28. package/dist/js/core/components/functional/3d/form-params.js +2 -0
  29. package/dist/js/core/components/functional/3d/form-params.js.map +1 -1
  30. package/dist/js/core/components/functional/3d/frame-source.js +22 -0
  31. package/dist/js/core/components/functional/3d/frame-source.js.map +1 -0
  32. package/dist/js/core/components/functional/3d/life.js +2 -1
  33. package/dist/js/core/components/functional/3d/life.js.map +1 -1
  34. package/dist/js/core/components/functional/3d/out-publish.js +3 -2
  35. package/dist/js/core/components/functional/3d/out-publish.js.map +1 -1
  36. package/dist/js/core/components/functional/3d/playback.js +6 -1
  37. package/dist/js/core/components/functional/3d/playback.js.map +1 -1
  38. package/dist/js/core/components/functional/3d/post-bind.js +207 -0
  39. package/dist/js/core/components/functional/3d/post-bind.js.map +1 -0
  40. package/dist/js/core/components/functional/3d/post-channels.js +39 -0
  41. package/dist/js/core/components/functional/3d/post-channels.js.map +1 -0
  42. package/dist/js/core/components/functional/3d/post-fx.js +495 -0
  43. package/dist/js/core/components/functional/3d/post-fx.js.map +1 -0
  44. package/dist/js/core/components/functional/3d/props.js +142 -0
  45. package/dist/js/core/components/functional/3d/props.js.map +1 -1
  46. package/dist/js/core/components/functional/3d/reload.js +5 -0
  47. package/dist/js/core/components/functional/3d/reload.js.map +1 -1
  48. package/dist/js/core/components/functional/3d/runtime.js +80 -3
  49. package/dist/js/core/components/functional/3d/runtime.js.map +1 -1
  50. package/dist/js/core/components/functional/3d/scene-runtime.js +1 -1
  51. package/dist/js/core/components/functional/3d/scene-runtime.js.map +1 -1
  52. package/dist/js/core/components/functional/3d/tune.js +21 -0
  53. package/dist/js/core/components/functional/3d/tune.js.map +1 -1
  54. package/dist/js/core/components/functional/3d/updated.js +13 -1
  55. package/dist/js/core/components/functional/3d/updated.js.map +1 -1
  56. package/dist/js/core/components/functional/shader/gl-runtime.js +280 -31
  57. package/dist/js/core/components/functional/shader/gl-runtime.js.map +1 -1
  58. package/dist/js/core/components/functional/shader/shader.js +207 -61
  59. package/dist/js/core/components/functional/shader/shader.js.map +1 -1
  60. package/dist/js/core/components/functional/shader/shadertoy-prelude.js +39 -5
  61. package/dist/js/core/components/functional/shader/shadertoy-prelude.js.map +1 -1
  62. package/dist/js/core/components/functional/shader/types.js +58 -7
  63. package/dist/js/core/components/functional/shader/types.js.map +1 -1
  64. package/dist/js/core/components/functional/webgpu/gl-fallback.js +27 -6
  65. package/dist/js/core/components/functional/webgpu/gl-fallback.js.map +1 -1
  66. package/dist/js/core/components/functional/webgpu/gpu-runtime.js +115 -13
  67. package/dist/js/core/components/functional/webgpu/gpu-runtime.js.map +1 -1
  68. package/dist/js/core/components/functional/webgpu/helpers.js +8 -2
  69. package/dist/js/core/components/functional/webgpu/helpers.js.map +1 -1
  70. package/dist/js/core/components/functional/webgpu/webgpu.js +43 -1
  71. package/dist/js/core/components/functional/webgpu/webgpu.js.map +1 -1
  72. package/dist/js/core/utils/mediaRef.js +86 -0
  73. package/dist/js/core/utils/mediaRef.js.map +1 -1
  74. package/dist/types/core/components/functional/3d/3d.d.ts +31 -3
  75. package/dist/types/core/components/functional/3d/3d.d.ts.map +1 -1
  76. package/dist/types/core/components/functional/3d/constants.d.ts +1 -1
  77. package/dist/types/core/components/functional/3d/constants.d.ts.map +1 -1
  78. package/dist/types/core/components/functional/3d/ensure.d.ts +3 -0
  79. package/dist/types/core/components/functional/3d/ensure.d.ts.map +1 -1
  80. package/dist/types/core/components/functional/3d/form-params.d.ts.map +1 -1
  81. package/dist/types/core/components/functional/3d/frame-source.d.ts +23 -0
  82. package/dist/types/core/components/functional/3d/frame-source.d.ts.map +1 -0
  83. package/dist/types/core/components/functional/3d/life.d.ts +2 -0
  84. package/dist/types/core/components/functional/3d/life.d.ts.map +1 -1
  85. package/dist/types/core/components/functional/3d/out-publish.d.ts +1 -0
  86. package/dist/types/core/components/functional/3d/out-publish.d.ts.map +1 -1
  87. package/dist/types/core/components/functional/3d/playback.d.ts +9 -0
  88. package/dist/types/core/components/functional/3d/playback.d.ts.map +1 -1
  89. package/dist/types/core/components/functional/3d/post-bind.d.ts +52 -0
  90. package/dist/types/core/components/functional/3d/post-bind.d.ts.map +1 -0
  91. package/dist/types/core/components/functional/3d/post-channels.d.ts +40 -0
  92. package/dist/types/core/components/functional/3d/post-channels.d.ts.map +1 -0
  93. package/dist/types/core/components/functional/3d/post-fx.d.ts +73 -0
  94. package/dist/types/core/components/functional/3d/post-fx.d.ts.map +1 -0
  95. package/dist/types/core/components/functional/3d/props.d.ts +42 -0
  96. package/dist/types/core/components/functional/3d/props.d.ts.map +1 -1
  97. package/dist/types/core/components/functional/3d/reload.d.ts +3 -0
  98. package/dist/types/core/components/functional/3d/reload.d.ts.map +1 -1
  99. package/dist/types/core/components/functional/3d/runtime.d.ts +16 -1
  100. package/dist/types/core/components/functional/3d/runtime.d.ts.map +1 -1
  101. package/dist/types/core/components/functional/3d/scene-runtime.d.ts +1 -1
  102. package/dist/types/core/components/functional/3d/scene-runtime.d.ts.map +1 -1
  103. package/dist/types/core/components/functional/3d/tune.d.ts +5 -0
  104. package/dist/types/core/components/functional/3d/tune.d.ts.map +1 -1
  105. package/dist/types/core/components/functional/3d/types.d.ts +16 -0
  106. package/dist/types/core/components/functional/3d/types.d.ts.map +1 -1
  107. package/dist/types/core/components/functional/3d/updated.d.ts.map +1 -1
  108. package/dist/types/core/components/functional/shader/gl-runtime.d.ts +53 -2
  109. package/dist/types/core/components/functional/shader/gl-runtime.d.ts.map +1 -1
  110. package/dist/types/core/components/functional/shader/shader.d.ts +41 -9
  111. package/dist/types/core/components/functional/shader/shader.d.ts.map +1 -1
  112. package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts +16 -2
  113. package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts.map +1 -1
  114. package/dist/types/core/components/functional/shader/types.d.ts +35 -5
  115. package/dist/types/core/components/functional/shader/types.d.ts.map +1 -1
  116. package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts +4 -0
  117. package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts.map +1 -1
  118. package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts +14 -0
  119. package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts.map +1 -1
  120. package/dist/types/core/components/functional/webgpu/helpers.d.ts +1 -0
  121. package/dist/types/core/components/functional/webgpu/helpers.d.ts.map +1 -1
  122. package/dist/types/core/components/functional/webgpu/webgpu.d.ts +11 -1
  123. package/dist/types/core/components/functional/webgpu/webgpu.d.ts.map +1 -1
  124. package/dist/types/core/utils/mediaRef.d.ts +34 -0
  125. package/dist/types/core/utils/mediaRef.d.ts.map +1 -1
  126. package/package.json +49 -1
  127. package/src/core/components/functional/3d/3d.md +46 -3
  128. package/src/core/components/functional/3d/3d.spec.ts +42 -0
  129. package/src/core/components/functional/3d/3d.ts +112 -3
  130. package/src/core/components/functional/3d/constants.ts +3 -0
  131. package/src/core/components/functional/3d/ensure.ts +11 -3
  132. package/src/core/components/functional/3d/form-params.ts +2 -0
  133. package/src/core/components/functional/3d/frame-source.ts +30 -0
  134. package/src/core/components/functional/3d/life.ts +4 -1
  135. package/src/core/components/functional/3d/out-publish.ts +4 -3
  136. package/src/core/components/functional/3d/playback.ts +13 -1
  137. package/src/core/components/functional/3d/post-bind.ts +262 -0
  138. package/src/core/components/functional/3d/post-channels.spec.ts +36 -0
  139. package/src/core/components/functional/3d/post-channels.ts +69 -0
  140. package/src/core/components/functional/3d/post-fx.ts +594 -0
  141. package/src/core/components/functional/3d/props.ts +45 -0
  142. package/src/core/components/functional/3d/reload.ts +8 -0
  143. package/src/core/components/functional/3d/runtime.ts +93 -4
  144. package/src/core/components/functional/3d/scene-runtime.ts +3 -0
  145. package/src/core/components/functional/3d/tune.ts +21 -0
  146. package/src/core/components/functional/3d/types.ts +14 -0
  147. package/src/core/components/functional/3d/updated.ts +17 -1
  148. package/src/core/components/functional/shader/gl-runtime.ts +374 -36
  149. package/src/core/components/functional/shader/shader.md +36 -11
  150. package/src/core/components/functional/shader/shader.spec.ts +350 -3
  151. package/src/core/components/functional/shader/shader.ts +236 -59
  152. package/src/core/components/functional/shader/shadertoy-prelude.ts +49 -5
  153. package/src/core/components/functional/shader/types.ts +92 -13
  154. package/src/core/components/functional/webgpu/gl-fallback.ts +28 -4
  155. package/src/core/components/functional/webgpu/gpu-runtime.ts +154 -18
  156. package/src/core/components/functional/webgpu/helpers.ts +8 -2
  157. package/src/core/components/functional/webgpu/webgpu.md +13 -2
  158. package/src/core/components/functional/webgpu/webgpu.spec.ts +37 -0
  159. package/src/core/components/functional/webgpu/webgpu.ts +48 -1
  160. package/src/core/utils/mediaRef.spec.ts +61 -0
  161. package/src/core/utils/mediaRef.ts +108 -0
  162. package/src/docs/_misc/visual-stack.md +37 -3
  163. package/src/docs/components/docs-demo-sources.ts +42 -0
  164. package/src/docs/docs.ts +3 -0
  165. package/src/docs/example/docs-3d-post-depth-demo.ts +68 -0
  166. package/src/docs/example/docs-3d-shader-live-demo.ts +98 -0
  167. package/src/docs/example/docs-3d-webgpu-live-demo.ts +83 -0
  168. package/src/docs/example/docs-harris-webgpu-demo.ts +53 -55
  169. package/src/docs/search/docs-search.json +2583 -863
  170. package/src/tsconfig.json +36 -0
  171. package/src/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Démo pont live : sonic-3d → sonic-webgpu via channel0="#plateau-gpu"
3
+ * (copyExternalImageToTexture chaque frameSeq, texture réutilisée).
4
+ */
5
+ import { css, html, LitElement } from "lit";
6
+ import { customElement } from "lit/decorators.js";
7
+ import { tailwind } from "../tailwind";
8
+ import "../../core/components/functional/3d/3d";
9
+ import "../../core/components/functional/webgpu/webgpu";
10
+ import { DEMO_3D_STYLES, HELMET_GLB } from "./docs-3d-shared";
11
+
12
+ /** Tint + vignette — prouve le sampling live du canvas 3D. */
13
+ const LIVE_WGSL = `
14
+ fn mainImage(uv: vec2f, fragCoord: vec2f) -> vec4f {
15
+ _ = fragCoord;
16
+ let c = iChannel0(uv).rgb;
17
+ let mid = uv - vec2f(0.5);
18
+ let vig = smoothstep(1.1, 0.35, length(mid));
19
+ let pulse = 0.92 + 0.08 * sin(u.time * 2.0);
20
+ let tint = vec3f(0.15, 0.85, 1.0);
21
+ let edge = length(c - iChannel0(uv + mid * 0.012).rgb);
22
+ var col = mix(c, c * tint * 1.15, clamp(edge * 4.0, 0.0, 0.55));
23
+ col *= vig * pulse;
24
+ return vec4f(col, 1.0);
25
+ }
26
+ `;
27
+
28
+ @customElement("docs-3d-webgpu-live-demo")
29
+ export class Docs3dWebgpuLiveDemo extends LitElement {
30
+ static styles = [
31
+ tailwind,
32
+ DEMO_3D_STYLES,
33
+ css`
34
+ .grid {
35
+ display: grid;
36
+ gap: 0.75rem;
37
+ grid-template-columns: 1fr;
38
+ }
39
+ @media (min-width: 720px) {
40
+ .grid {
41
+ grid-template-columns: 1fr 1fr;
42
+ }
43
+ }
44
+ sonic-3d,
45
+ sonic-webgpu {
46
+ width: 100%;
47
+ border-radius: 0.5rem;
48
+ overflow: hidden;
49
+ }
50
+ `,
51
+ ];
52
+
53
+ render() {
54
+ return html`
55
+ <div class="flex flex-col gap-2">
56
+ <div class="grid">
57
+ <sonic-3d
58
+ id="plateau-gpu"
59
+ src=${HELMET_GLB}
60
+ camera="orbit"
61
+ auto-rotate
62
+ play
63
+ min-distance="1"
64
+ max-distance="10"
65
+ aspect-ratio="16/10"
66
+ ></sonic-3d>
67
+ <sonic-webgpu
68
+ play
69
+ kernel="image"
70
+ channel0="#plateau-gpu"
71
+ .shader=${LIVE_WGSL}
72
+ aspect-ratio="16/10"
73
+ ></sonic-webgpu>
74
+ </div>
75
+ <p class="text-sm text-neutral-500">
76
+ Live bridge: <code>channel0="#plateau-gpu"</code> →
77
+ <code>copyExternalImageToTexture</code> (texture persistante, pas de
78
+ JPEG). Gauche = <code>sonic-3d</code>, droite = tint / edge WebGPU.
79
+ </p>
80
+ </div>
81
+ `;
82
+ }
83
+ }
@@ -17,6 +17,7 @@ const sample = (file: string) =>
17
17
  new URL(`/docs/shader-samples/${file}`, location.origin).href;
18
18
 
19
19
  const HARRIS_BUFFER_A = `
20
+ // Tenseur structure (Ix², Iy², IxIy) — nécessite buffer-format=rgba16f (IxIy signé).
20
21
  void mainImage(out vec4 fragColor, in vec2 fragCoord) {
21
22
  vec2 uv = fragCoord / iResolution.xy;
22
23
  vec2 px = 1.0 / iResolution.xy;
@@ -30,11 +31,12 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
30
31
  float br = dot(texture(iChannel0, uv + px * vec2( 1.0, -1.0)).rgb, vec3(0.299, 0.587, 0.114));
31
32
  float Ix = (tr + 2.0 * r + br) - (tl + 2.0 * l + bl);
32
33
  float Iy = (tl + 2.0 * t + tr) - (bl + 2.0 * b + br);
33
- fragColor = vec4(Ix * Ix, Iy * Iy, Ix * Iy, 1.0) * 4.0;
34
+ fragColor = vec4(Ix * Ix, Iy * Iy, Ix * Iy, 1.0);
34
35
  }
35
36
  `;
36
37
 
37
38
  const HARRIS_BUFFER_B = `
39
+ // Lissage gaussien 5×5 du tenseur (σ ≈ 1.26).
38
40
  void mainImage(out vec4 fragColor, in vec2 fragCoord) {
39
41
  vec2 uv = fragCoord / iResolution.xy;
40
42
  vec2 px = 1.0 / iResolution.xy;
@@ -51,58 +53,50 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
51
53
  }
52
54
  `;
53
55
 
54
- const HARRIS_IMAGE = `
55
- float harrisR(vec2 uv) {
56
+ const HARRIS_EXTRACT_MASK = `
57
+ // Réponse Harris + filtre de forme + max local STRICT 5×5 (départage par position).
58
+ float harrisAt(vec2 uv) {
56
59
  vec3 t = texture(iChannel0, uv).rgb;
57
60
  float k = max(uParam1, 0.001);
58
61
  float det = t.x * t.y - t.z * t.z;
59
62
  float trace = t.x + t.y;
60
- return det - k * trace * trace;
63
+ float R = det - k * trace * trace;
64
+ // Forme ≈ 4 det / trace² ∈ [0,1] : ~1 coin isotropique, ~0 bord.
65
+ float shape = (trace > 1e-5) ? clamp(4.0 * det / (trace * trace), 0.0, 1.0) : 0.0;
66
+ if (R < max(uParam0, 1e-6) || shape < 0.45) return 0.0;
67
+ return R;
61
68
  }
62
69
  void mainImage(out vec4 fragColor, in vec2 fragCoord) {
63
70
  vec2 uv = fragCoord / iResolution.xy;
64
71
  vec2 px = 1.0 / iResolution.xy;
65
- vec3 video = texture(iChannel1, uv).rgb;
66
- float R = harrisR(uv);
67
- float thr = max(uParam0, 0.0001);
68
- float overlay = clamp(uParam2, 0.0, 1.0);
69
- float Rmax = R;
70
- for (int j = -1; j <= 1; j++) {
71
- for (int i = -1; i <= 1; i++) {
72
- Rmax = max(Rmax, harrisR(uv + px * vec2(float(i), float(j))));
72
+ float R = harrisAt(uv);
73
+ float thr = max(uParam0, 1e-6);
74
+ float isMax = step(thr, R);
75
+ for (int j = -2; j <= 2; j++) {
76
+ for (int i = -2; i <= 2; i++) {
77
+ if (i == 0 && j == 0) continue;
78
+ float n = harrisAt(uv + px * vec2(float(i), float(j)));
79
+ bool before = j < 0 || (j == 0 && i < 0);
80
+ if (n > R || (before && abs(n - R) < 1e-8)) isMax = 0.0;
73
81
  }
74
82
  }
75
- float isCorner = step(thr, R) * step(Rmax - 1e-6, R);
76
- float heat = smoothstep(thr, thr * 3.0, max(R, 0.0));
77
- vec3 col = mix(video, video * vec3(1.15, 0.35, 1.05) + vec3(0.35, 0.05, 0.4) * heat, heat * overlay);
78
- col = mix(col, vec3(0.15, 1.0, 0.45), isCorner * overlay);
79
- fragColor = vec4(col, 1.0);
83
+ float Rp = max(R, 0.0);
84
+ float score = isMax * (Rp / (Rp + thr * 4.0));
85
+ fragColor = vec4(vec3(score), 1.0);
80
86
  }
81
87
  `;
82
88
 
83
- const HARRIS_EXTRACT_MASK = `
84
- float harrisR(vec2 uv) {
85
- vec3 t = texture(iChannel0, uv).rgb;
86
- float k = max(uParam1, 0.001);
87
- float det = t.x * t.y - t.z * t.z;
88
- float trace = t.x + t.y;
89
- return det - k * trace * trace;
90
- }
89
+ const HARRIS_IMAGE = `
91
90
  void mainImage(out vec4 fragColor, in vec2 fragCoord) {
92
91
  vec2 uv = fragCoord / iResolution.xy;
93
- vec2 px = 1.0 / iResolution.xy;
94
- float R = harrisR(uv);
95
- float thr = max(uParam0, 0.0001);
96
- float Rmax = R;
97
- for (int j = -1; j <= 1; j++) {
98
- for (int i = -1; i <= 1; i++) {
99
- Rmax = max(Rmax, harrisR(uv + px * vec2(float(i), float(j))));
100
- }
101
- }
102
- float isCorner = step(thr, R) * step(Rmax - 1e-6, R);
103
- float Rp = max(R, 0.0);
104
- float score = isCorner * (Rp / (Rp + thr * 3.0));
105
- fragColor = vec4(vec3(score), 1.0);
92
+ vec3 video = texture(iChannel1, uv).rgb;
93
+ float score = texture(iChannel0, uv).r;
94
+ float overlay = clamp(uParam2, 0.0, 1.0);
95
+ float heat = smoothstep(0.05, 0.55, score);
96
+ vec3 col = mix(video, video * vec3(1.12, 0.4, 1.05) + vec3(0.28, 0.04, 0.35) * heat, heat * overlay * 0.55);
97
+ // Points isolés (pas de traînées de bords).
98
+ col = mix(col, vec3(0.12, 1.0, 0.42), step(0.08, score) * overlay);
99
+ fragColor = vec4(col, 1.0);
106
100
  }
107
101
  `;
108
102
 
@@ -285,9 +279,9 @@ export class DocsHarrisWebgpuDemo extends LitElement {
285
279
  if (this.active) return;
286
280
  this.active = true;
287
281
  set(shaderKey, {
288
- param0: 0.08,
289
- param1: 0.1,
290
- param2: 0.85,
282
+ param0: 0.015,
283
+ param1: 0.05,
284
+ param2: 0.9,
291
285
  extractCount: 0,
292
286
  extractSeq: 0,
293
287
  extracts: [],
@@ -299,7 +293,7 @@ export class DocsHarrisWebgpuDemo extends LitElement {
299
293
  .map((it) => it.blobUrl || it.url)
300
294
  .filter((u): u is string => typeof u === "string" && u.length > 0)
301
295
  .slice(0, 4);
302
- this.patches = items.slice(0, 4);
296
+ this.patches = items.slice(0, 8);
303
297
  set(gpuKey, {
304
298
  param0: 0.55,
305
299
  param1: Math.max(1, urls.length),
@@ -331,7 +325,7 @@ export class DocsHarrisWebgpuDemo extends LitElement {
331
325
  .map((it) => it.blobUrl || it.url)
332
326
  .filter((u): u is string => typeof u === "string" && u.length > 0)
333
327
  .slice(0, 4);
334
- this.patches = items.slice(0, 4);
328
+ this.patches = items.slice(0, 8);
335
329
  set(gpuKey, {
336
330
  param0: 0.55,
337
331
  param1: Math.max(1, urls.length),
@@ -355,8 +349,8 @@ export class DocsHarrisWebgpuDemo extends LitElement {
355
349
  <span class="text-neutral-400">(mosaïque)</span>
356
350
  </div>
357
351
  <p class="m-0 text-sm text-neutral-600">
358
- Vidéo → coins Harris → crops → collage GPU (channels + diff entre
359
- patches). Une seule démo, deux bandes empilées.
352
+ Vidéo → Harris (<code>rgba16f</code>, NMS 5×5 + filtre forme) →
353
+ crops → collage GPU. Coins isolés, pas de traînées sur les bords.
360
354
  </p>
361
355
  <sonic-button type="primary" size="sm" @click=${this.start}
362
356
  >Try</sonic-button
@@ -388,8 +382,8 @@ export class DocsHarrisWebgpuDemo extends LitElement {
388
382
  type="range"
389
383
  name="param0"
390
384
  min="0.002"
391
- max="0.08"
392
- step="0.002"
385
+ max="0.06"
386
+ step="0.001"
393
387
  class="flex-1"
394
388
  ></sonic-input>
395
389
  </div>
@@ -399,7 +393,7 @@ export class DocsHarrisWebgpuDemo extends LitElement {
399
393
  type="range"
400
394
  name="param1"
401
395
  min="0.02"
402
- max="0.1"
396
+ max="0.12"
403
397
  step="0.005"
404
398
  class="flex-1"
405
399
  ></sonic-input>
@@ -409,19 +403,21 @@ export class DocsHarrisWebgpuDemo extends LitElement {
409
403
  <div class="stack">
410
404
  <div class="label-bar">
411
405
  <span
412
- ><code>sonic-shader</code> Harris + extract-bitmaps</span
406
+ ><code>sonic-shader</code> Harris
407
+ <code>rgba16f</code> + extract</span
413
408
  >
414
- <span class="text-neutral-400">coins → peaks</span>
409
+ <span class="text-neutral-400">coins isolés → peaks</span>
415
410
  </div>
416
411
  <sonic-shader
417
412
  play
413
+ buffer-format="rgba16f"
418
414
  .mouse=${false}
419
415
  extract
420
416
  extract-bitmaps
421
417
  extract-mask="buffer-c"
422
418
  extract-source="image"
423
- extract-threshold="0.12"
424
- extract-max="4"
419
+ extract-threshold="0.08"
420
+ extract-max="8"
425
421
  extract-patch="56"
426
422
  extract-interval="400"
427
423
  extract-data-provider=${shaderKey.path}
@@ -430,7 +426,7 @@ export class DocsHarrisWebgpuDemo extends LitElement {
430
426
  buffer-a-ch0=${video}
431
427
  buffer-b-ch0="buffer-a"
432
428
  buffer-c-ch0="buffer-b"
433
- image-ch0="buffer-b"
429
+ image-ch0="buffer-c"
434
430
  image-ch1=${video}
435
431
  .bufferA=${HARRIS_BUFFER_A}
436
432
  .bufferB=${HARRIS_BUFFER_B}
@@ -473,8 +469,10 @@ export class DocsHarrisWebgpuDemo extends LitElement {
473
469
  </div>
474
470
 
475
471
  <p class="m-0 text-xs text-neutral-500">
476
- Extract → DP → <code>channel0…3</code>. Le WGSL compare chaque case à
477
- son voisin (diff RGB) pour un effet correspondence léger.
472
+ <code>buffer-format="rgba16f"</code> conserve
473
+ <code>IxIy</code> signé ; NMS 5×5 + forme
474
+ <code>4·det/trace²</code> → points isolés. Extract → DP →
475
+ <code>channel0…3</code>.
478
476
  </p>
479
477
  </div>
480
478
  `;