UV alpha transparency remap from KantanMapper

Hi, I’m not sure whether it’s a bug though but it looks like something in the transparency order doesn’t work correct with the UV output from KantanMapper.

Look at the pic below, obviously in the output of Kantan things looks correct and then if I try to use the UV map to remap the content (both directly from Kantan and through the UV Helper with Texture IDs), the object below isn’t displayed on the intersection with the object above. Can it be considered as a bug or the transparency just doesn’t work with the UVs that way or am I doing something wrong?

Thanks!

test-uv-alpha.toe (318.4 KB)

Just had a little dive.
I was able to get UV-Maps working by implementing the TDAlphaTest(alpha) function call in the material shader and enabling Discard Pixels with Alpha. @snaut Should be simple to implement no?

kantan_pixeldiscard.tox (279.0 KB)
Should work this way :slight_smile:

2 Likes

yup - good point. Will add that in.