I’m trying to make a shader, but I just can’t seem to find out how to do it all.
I’ve read pretty much all the documentation about shaderlab and Cg on http://unity3d.com/support/documentation/ , but I still don’t know how to do a lot of stuff.
I’ve some experience with writing shaders in HLSL, and I should be able to write the shader I want in HLSL (though it has been over a year since I wrote a shader so maybe not)
anyway,
I want to do multiple passes, and make the mesh expand in each pass (vertexposition += vertexnormalCstpasscount basically). I also want to use the alpha channel for alpha testing (but with a AlphaValue that’s relative to the passcount. e.g.: AlphaValue=0.1 in first pass, AlphaValue=0.2 in 2nd, …)
Any help would be appreciated, I don’t expect you to tell me exactly how to do all of this, but if you could point me in the direction of some shaders that do similar things, that would be already a big help
(don’t expect it matters in this case, but I’m using the free version)