[solved]Fog of War Water

Hi, for my terrain I generate a texture which contains the fogcolor information for all positions on the map.

Is it possible to add this texture to the post processor/simple water?

The post processor water looks better but I cant add the water to a mesh and therefore I think you cannot detect the position for the fog texture?

I looked at the shader but id doesnt seem to be easy…



Edit: Okay, i managed to add the texture to the simple water. I hope the texCoord will also work for the post processor

Edit2: ah, vec2 pos = vec2(position.x/256+0.5,1-(position.z/256+0.5)); is the code for the post processor water (256=mapsize)