I observe a conflict between scene.fog, scene.imageProcessing and waterMaterial

See in this playground (https://www.babylonjs-playground.com/#1SLLOJ#616), if I set a contrast different from 1, the waterMaterial become visible behind the fog.

This is because the water material does not write content in linear mode. Only standard and PBR material can do it.

Pinging @julien-moreau to see if he wants to add it to his material :wink:

The relevant code is here:

Hello @julien-moreau, nice to meet you! I love the waterMaterial since I used it for the first time in https://wazana.io game. It really improves the quality of the game experience.

Do you think what @Deltakosh suggest is doable? :wink:

Hey @PichouPichou !
Sure it is doable, will update ASAP :slight_smile:

I’m finalizing a request feature on the editor to release ASAP. Then, will update the water material :slight_smile:
Will let you know once done!


Still in my TODO, will find some time really soon!!

Haha, thanks to keep us in touch @julien-moreau !