lightmapping and hollow object

Hi,

I have fence with hollow parts between poles (see screenshot). I usually display it with a cull face off transparent shader.

When I bake the lightmap and use the shader “Legacy Shaders/Lightmapped/Diffuse”, here is what I get (see screenshot)

Is it possible to make Beast casts hollow shadows, taking into account hollow parts of the fence? In that case, what kind of shader should I use on my fence to make that happen?


You should just use a regular cutout and duplicate the plane (or open the standard unity cutout shader, add the line “Cull Off” under tags, as far as i remember and save it with a new name)

The fact that the fence is black on the 2nd screenshot is not the problem since I know the standard lightmap shader in Unity doesn’t handle transparency. I am more concern about how to make Beast generates hollow shadows on the plane.

I’m really wondering whether it can be possible to do that. Anyone knows the answer?

That’s what I meant… 'cus I mean it can do it with the tree leaves which uses cutout.

It works. Thanks!