leMaik / chunky

Photorealistic image renderer for Minecraft 1.2.1+
https://chunky.lemaik.de
GNU General Public License v3.0
39 stars 1 forks source link

Register a hit when the texture has an alpha a bit greater than 0 #21

Closed aTom3333 closed 4 years ago

aTom3333 commented 4 years ago

Fix the issue where blocks with semi transparent texture where completely invisible

leMaik commented 4 years ago

Changing this to use Ray.EPSILON makes some opaque blocks become opaque (picture by @aTom3333): image

Turns out Minecraft checks if alpha is > 0.5. It doesn't for transparent blocks (e.g. glass), though.

leMaik commented 4 years ago

Resolved this issue just as we discussed on Discord.