Ugly artifact with refractionTexture [from renderList]

Hi BJS community,

I am doing a water texture with refraction.
I meet an ugly artifact like you can see in the picture and in the PG.
https://playground.babylonjs.com/#IQXX4N#9

I have already set the refractionPlane and its depth, according to the water level
(I know there is waterMaterial existing but I would like to build water with PBR)
Thank you for helping !!

I have just fixed it, by setting negative depth of refraction and white refractionTexture clearColor

eau.material.refractionTexture.depth=-0.3
eau.material.refractionTexture.clearColor=new BABYLON.Color3(1,1,1)

3 Likes

thank you for liking
have a nice day !