diff options
Diffstat (limited to 'tools/shader_editor')
| -rw-r--r-- | tools/shader_editor/index.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/shader_editor/index.html b/tools/shader_editor/index.html index 269a752..6a1f1a2 100644 --- a/tools/shader_editor/index.html +++ b/tools/shader_editor/index.html @@ -474,7 +474,11 @@ struct CommonUniforms { let glow = 0.02 / (abs(d) + 0.02); let col = bg + vec3<f32>(circle) * vec3<f32>(0.8, 0.4, 0.9) + glow * 0.1 * vec3<f32>(0.6, 0.3, 0.8); - return vec4<f32>(col * uniforms.audio_intensity, 1.0); + + // Sample base texture (unused but required for bind group layout) + let base = textureSample(txt, smplr, p.xy / uniforms.resolution); + + return vec4<f32>(col * uniforms.audio_intensity + base.rgb * 0.0, 1.0); }`; } |
