Wyn-Price / SecretRooms

8 stars 8 forks source link

[1.14.4] Deactivated one-way glass texture does not render slab-connected side. #15

Open fuzzyweapon opened 5 years ago

fuzzyweapon commented 5 years ago
app version
MC 1.14.4
Forge 28.1.61
SR 6.0.5

Steps

  1. Set down some secret glass (but do not right click a face with an empty hand, aka, don't activate camo)
  2. Place a slab against the side of the secret glass (vanilla slab is fine and placement can be top or bottom)
  3. Observe the glass texture for the side that the slab is placed on

Observed Results

The texture of the side of deactivated one-way glass doesn't render on the side to which the slab is connected.

Extra Notes

Screenshots

Activated

image

Deactivated

image

Wyn-Price commented 5 years ago

That's certainly an interesting bug. One way glass is a tricky one as there's so many different use cases and scenarios. I reckon it's being caused here: https://github.com/Wyn-Price/SecretRooms/blob/8ab64074918afab375a31c02e5c9b89b81d6c4ff/src/main/java/com/wynprice/secretrooms/server/blocks/OneWayGlass.java#L139-L148 , where the rendering shape doesn't get set correctly when there are no glass shapes present. Returning the empty voxel shape means that all culling should take place.

A few questions to help diagnose:

fuzzyweapon commented 5 years ago

Finding more (different) edge cases with this further testing XD, but I'll put those in separately after further testing.

Additional unasked for testing:

Wyn-Price commented 3 years ago

Does this still occur