jebbyk / OSBES-minecraft-bedrock-edition-shader

shaders for minecraft_pe that uses the latest functionality of OpenGLES 3.0
GNU General Public License v3.0
145 stars 50 forks source link

Shader shows puddles when fog applied. #238

Open 0xCatPKG opened 2 years ago

0xCatPKG commented 2 years ago

When fog from resource packs is applied, shader starts drawing puddles on the ground. That may be related to weather detection (Same issue also appears in nether #222) That leads to custom biomes from addons being unplayable.

Expected Behavior

When fog is applied, terrain should be normal.

Current Behavior

When fog is applied, puddles appear on the terrain

Steps to Reproduce

  1. Get resource pack with custom fog(s)
  2. Apply fog with /fog @a push <fog identifier> test

Examples:

Video example

fog.json:

{
  "format_version": "1.16.100",
  "minecraft:fog_settings": {
    "description": {
      "identifier": "nature:mangrove_swamp_fog"
    },
    "distance": {
      "air": {
        "fog_start": 8.0,
        "fog_end": 96.0,
        "fog_color": "#778776",
        "render_distance_type": "fixed"
      },
      "water": {
        "fog_start": 0.0,
        "fog_end": 15.0,
        "fog_color": "#4c6559",
        "render_distance_type": "fixed"
      },
      "weather": {
        "fog_start": 8.0,
        "fog_end": 96.0,
        "fog_color": "#5c615c",
        "render_distance_type": "fixed"
      }
    }
  }
}
jebbyk commented 2 years ago

@PacketCat Thank you for reporting this issue. It is related to weather detection. I'm not sure if it's possible to detect weather in different way not by using fog parameters. Probably unfixable bug. If anyone knows or have ideas how to fix this I would be really happy to discuss it with you :)