Hi im making a shader that makes objects invisible when in certain radius, so a see through shader. However i can't figure out how to make the object cast shadows. The objects must be cutout, think tree cronas and such. If i manually add pragmas alpha addshadow It casts shadows when fully transparent, it works for structures, roofs etc, however the trees then cast "square" shadows from leaves planes, instead of normal shadows. i tried forceshadows also.
I need a way for cutout to be transparent and still cast proper shadows, is this possible with AS?
What i need from it is to keep shadows when leaves are fully transparent, the problem is that no matter what transparency setting i use i can't achieve it. Basically i can achieve this with geometry, adding alpha addshadow to the shader pragma, this way i can hide walls, and keep shadows. I can't do this with transparent, no matter what i do.