feat(image-pipeline): add webgl preview backend poc

This commit is contained in:
Matthias
2026-04-04 21:52:00 +02:00
parent b57062091a
commit 423eb76581
6 changed files with 536 additions and 7 deletions

View File

@@ -0,0 +1,12 @@
#version 100
precision mediump float;
varying vec2 vUv;
uniform sampler2D uSource;
uniform float uGamma;
void main() {
vec4 color = texture2D(uSource, vUv);
color.rgb = pow(max(color.rgb, vec3(0.0)), vec3(max(uGamma, 0.001)));
gl_FragColor = color;
}