RefractionPostProcess Texture Sizing

Hi, I am using the RefractionPostProcess:

// BABYLON.RefractionPostProcess = function (name, refractionTextureUrl, color, depth, colorLevel, ratio, null, samplingMode, engine, reusable)

const postProcess = new BABYLON.RefractionPostProcess("Refraction", imageURL, new BABYLON.Color3(0.0, 0.0, 0.0), 0.5, 0.5, 1.0, camera);

I have a small texture which is being stretched to fill the screen. How to I set it to tile instead?

Hello unfortunately this is not supported by the refraction postprocess You may need to do it at the texture level

Thanks I have just tried the following but it is not tiling. Is this what you meant?

const postProcess = new BABYLON.RefractionPostProcess("Refraction", '', new BABYLON.Color3(0.0, 0.0, 0.0), 0.5, 0.5, 1.0, camera);
const refractionTexture = new BABYLON.Texture(imageURL, scene);
refractionTexture.uScale = 0.5;
refractionTexture.vScale = 0.5;
postProcess.refractionTexture = refractionTexture;

Actually I meant at the file level :slight_smile: Changing your picture to tile :frowning: