copycats-plus / copycats

All the copycats you've ever wanted, combined into a single mod!
Other
30 stars 8 forks source link

[Bug] Transparent/translucent gears with shaders #117

Open Dumpling00 opened 4 months ago

Dumpling00 commented 4 months ago

Describe the bug

https://github.com/user-attachments/assets/220a96a7-b171-403f-8a62-51c4adee835d

To Reproduce Steps to reproduce the behavior:

  1. Install latest version of copycats+
  2. Set down copycat cogwheels
  3. Use any material on em, or don't
  4. See transparency, usually in the direction of the sun.

Expected behavior To not see a change in translucency depending on view angle.

Screenshots See video

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

hlysine commented 4 months ago

Seems to be a z-order issue. What shader are you using, and does it also happen with base Create cogwheels?

Dumpling00 commented 4 months ago

Complementary Shaders! And no, the base Create cogwheels are opaque on all sides and at all angles.

hlysine commented 4 months ago

Switching the Flywheel render layer to cutout fixes the issue by not blending the copycat with the skybox. However, this introduces another issue where stacked translucent textures are invisible, which also happens in vanilla minecraft.

hlysine commented 4 months ago

Unfortunately the fix also breaks bracket rendering for translucent materials, and we'd rather support that than fixing shaders which don't work well with Flywheel anyway.