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

Issue with semitransparent objects #239

Open 0xCatPKG opened 2 years ago

0xCatPKG commented 2 years ago

Shadows are cast over transparent surfaces of custom blocks. Affected addons: Connected Glass Addon Nature Spirit Addon Beta 4.0 (Custom leaves)

Expected Behavior

image

image

Current Behavior

image

image

0xCatPKG commented 2 years ago

Possible cause: "render_method": "blend" in block definition

"minecraft:material_instances": {
    "*": {
        "texture": "null",
        "render_method": "blend",
        "ambient_occlusion": false
    },
    "north": {
        "texture": "regular",
        "render_method": "blend",
        "ambient_occlusion": false
    }
}
jebbyk commented 2 years ago

@PacketCat Thank you for reporting this issue. It is not related to shadow mapping. It is more related to reflections. The same issue happens with rails. I think I will try to fix it in 0.14.2 release.