Hi all,
I want to create a Sprite2D and it's image can make some effect like grayscale.
So I consider using CustomProceduralTexture to implement it.
My pseudo code is like below (the shader is just basic one not grayscale):
let sampleTexture = new BABYLON.Texture("img/sample.png", scene, true, false, BABYLON.Texture.NEAREST_SAMPLINGMODE);
BABYLON.Effect.ShadersStore["TestPixelShader"]
= "precision highp float;\n"
+ "varying vec2 vUV;\n"
+ "uniform sampler2D sampleT