Transparent/Cutout/VertexLit source?

I downloaded the source for “all” the build-in shaders from here http://unity3d.com/support/resources/assets/built-in-shaders.html but not all the built-in shaders are there. I’m trying to find the source to this one so I can dynamically set its params.

1 Like

False. Use the search function of your OS; “AlphaTest-VertexLit.shader” contains that string.

This didn’t need its own thread. I didn’t give you that link because you should have posted here; I gave it to you because if you had looked there, you wouldn’t have needed to post at all.

In what world does AlphaTest = Transparent Cutout? I had already done search my file system. Of course I saw that shader, but why would I think that file name pointed to the shader in question? I also did a deep text, case insensitive search on the word “emissive” in case the file name was something strange (like it is). Considering one of the paramaters is “Emissive Color” I would think that term would end up somewhere in the code. Turns out, it doesn’t.

3 Likes

Nice… Instead of saying something like “oh I didn’t know that, thanks!”, you go “WHY IS THAT NAMED THAT WAY? I DIDN’T KNOW IT AND IT DEFINITELY IS NOT MY FAULT”.

http://www.opengl.org/wiki/Transparency_Sorting

The point wasn’t, why wasn’t it named the way I thought. The point was don’t blame me for not trying when I did. Especially when the search term was incredibly unobvious. I don’t post about things on forums until I’ve spent several hours trying to solve the problem myself 1st.

2 Likes

Just my two cents… I tried to find the source code for the Cutout shaders and couldn’t find it. So I googled it. THIS thread was the #3 search result. A link to that other thread didn’t even appear on the top page. So apparently it’s a good thing this page exists.

FYI when creating a custom shader I always try to make the .shader filename as close as possible to the full name of the shader in Unity. I can’t imagine what you would gain by naming the file something totally different and obscure that unity users have never been exposed to, and it’s simple and painless to change the name of the .shader file when you’re all done developing the shader. Guess there must be internal reasons for it.

Anyway, thanks homer_3. The thread you started was the first useful result I found.

1 Like

Thank you Homer_3 for making this thread. It helped me out too.

1 Like

Thanks Homer_3, this also resolved my issue.

1 Like

Thx Homer_3 :sunglasses:

So yeah. At present day that link goes to a diff dl page. Do any of the listed downloads have the shader code in question or is there a different link I should be clicking on.

https://unity3d.com/get-unity/download/archive