mojira.dev
MCPE-223200

Vibrant Visuals: surface_color is not being applied to the water block texture

Water renders in Minecraft with both a surface texture and a fog inside the block. The surface texture is culled, so you can only see it on the outer edges of a body of water where the water touches air. The surface texture is also partially transparent, so the appearance of water from the outside is a result of seeing both the surface texture and the fog behind it.

The texture that the game uses for the water surface is a grayscale image, either water_flow_grey.png or water_still_grey.png depending on whether the water has a current or not. The grayscale image becomes blue when the game applies a biome-specific color to it. The biome colors are defined in the vanilla resource pack's client_biome.json files, with the following component
"minecraft:water_appearance": {
"surface_color": "#14A2C5"
},

(The above is copied from bamboo_jungle.client_biome.json)

In vibrant visuals the surface_color is not being applied to the grayscale water texture at all. There are several noticeable effects in-game:

  • Oceans and rivers appear more transparent than they should be.

    [media]
  • Water, especially shallow water, is invisible next to certain blocks and from certain angles.

    [media]

    [media]
  • Water appears gray from other angles.

    [media]

    [media]

Steps to reproduce

  1. Set graphics to vibrant visuals.

  2. In an empty creative world, run /tp ~ 300 ~ and then /setblock ~ ~ ~ water

  3. Observe the water inside and out from various angles.

  4. Set graphics to fancy and again observe the water from the same angles.

Expected result
The outer texture of water is colored blue.

Observed result
The outer texture of water is colored gray or is invisible in vibrant visuals. It is blue in fancy graphics.

[media]


Note: [mediaInline] also provides several builds that can be used to compare the appearance of water in different environments.


In vivid visual water on snow is very hard to see if you look from above, on snow or against the light it is not visible at all

Linked issues

Attachments

Comments 1

Snow viewed through shallow water. There is a diagonal line of dry snow blocks across the middle, impossible to see.

[media]

Surface of deeper water. The bluish color is the water fog seen only from above the water. Surface is gray.

[media]

Same as above with black background.

[media]

Surface of shallow water.

[media]

How a waterfall on stone in a cave looks.

[media]

Boris Futerman

(Unassigned)

1438203

Confirmed

Multiple

1.21.110.20 Preview, 1.21.92 Hotfix

Retrieved