You should provide more information as each solution has it’s own use case. Maybe you could post a screenshot so we can see what you want exactly.
Can’t you just create a similar 3D line, just as shadow?
I don’t have any texture on the lines, just a color (using the solid color with transparency shader from the wiki).
But regardless, The only effect I can get by adding another material is, making the line look like something is casting a shadow onto it and not like the line is the one casting the shadow.
Yeah, i meant to use a material on the object thats receiving the shadow. Maybe you can upload your project or a small part of it to see, what you are trying to achieve
In TOB, I just raycast down. But I only do that for any model currently rising or falling, otherwise it already knows what height it should be. Then just draw stuff.
@asd234w4r5
The objects below the lines are also moving and there are many lines in different shapes, making it impossible to do it the way you suggested.
@hippocoder
Huh?
I don’t know what TOB is, but the height of my lines above the other stuff is always the same, so no reason to raycast.
Let me clarify something.
This is “flat” 2D, so I don’t really need the “shadow” to be on the objects under the lines.
It can easily be above the objects (still under the lines obviously) and still look the same.
Right now I’m leaning towards option number 3, but still looking.