outputEncoding, and water shader

When i set the outputEncoding to sRGBEncoding the ocean material looks dark
but when i remove it it looks normal

this is what it looks like now

is there anyway i can fix it with sRGBEncoding ?

Unfortunately, the class Water does only support the default (linear) output encoding.

If you configure sRGB as final color space, you also have to set the encoding of the internal water render target to sRGBEncoding and it’s required to include the encodings_fragment into the fragment shader.

Thank you for your response.