Web Video Processing Made Easy

As a matter of fact, it is easy if you use Babylon.js!!!

const float screenSize = 512.;
vec2 tileUV = floor(gl_FragCoord.xy / gridSize) * gridSize / screenSize;
vec4 tileColor = texture2D(textureSampler, tileUV);
float tileLuminance = getLuminance(tileColor.rgb);
vec4 finalColor = palette[int(tileLuminance * 3. + lumaOffset)];
onGridline(gl_FragCoord.x, gridSize)
return mod(floor(distFrom), spacing) == 0.0;
gl_FragColor = gridLineColor;

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store