Hi all,
I have a model of human leg and I want to create an opacity factor for muscles and bones, by playing with their’s alpha channel.
And currently I am using Transparent/VertexLit with Z shader…
The problem occours when I try to fade off muscle(which is kept in front of bones), it then create this issue, and as per my thinking it is the shader issue.
I’ve tried these shaders from the forums also, but no luck till now :
http://forum.unity3d.com/threads/102785-Z-Sorting-Alpha-shader
http://forum.unity3d.com/threads/93189-Two-sided-cutout-shader-for-U3-wanted
Please help me from this issue, I’m just kinda stuck here
Thanks in advance…
EDIT : uploaded a new file for more clarification
Also image desc : 1. when there is nothing applied(normal models, one above another), 2&3 when alpha channel is reduced(along with rotation).

I can't see your picture for some reason - can you try again? Do your muscle/bone etc models have separate meshes/renderers?
– whydoidoitHi, sorry for very late response, but I was preparing the rest of my build.... I've uploaded the png file again. As you can see above, the problem here is generated from shader only. Here my muscle's opacity is reduced but it affects the bone also, I can't see my bone clearly. And yes, my muscle/bones have seperate mesh renderers.
– superbsumitwell i know the opacity of a shader can make the entire model go see-through (even the parts where the alpha is completely white) if you have 1 shader on them both try making 1 shader for the bone with no opacity, and putting a completely different shader on the muscles and changing the opacity of that shader
– TimBorquezHi Tim, Actually I want something like two bars, one which controls the opacity of muscles and another of bones. And if muscles opacity would be 50% , i should see the bones clearly(and vise versa) So for achieving this, I've to add an opacity shader to bones also. Correct me if i m wrong here...? Also if there is another better way of doing this, please explain that too....... Also I've uploaded a new png for my problem.
– superbsumit