BABYLON.Effect.ShadersStore["flipImageFragmentShader"] = `
#ifdef GL_ES
precision highp float;
#endif
// Samplers
varying vec2 vUV;
uniform sampler2D textureSampler;
void main(void){
gl_FragColor = texture2D(textureSampler, vec2(1.0-vUV.x, vUV.y));
}
`;
var postProcess = new BABYLON.PostProcess("flip", "flipImage", [], null, 1, camera);
3 Likes