Here's the sourcecode for all builtin Unity shaders (always at latest version): http://unity3d.com/download_unity/builtin_shaders.zip
Unity 1.6.2 shaders, if you still need them, are here: http://unity3d.com/download_unity/bu...ders-1.6.2.zip
The sourcecode is provided as a reference and for learning purposes. You don't need to put the shaders into your project; they're all builtin. If you do, be sure to modify shader name at start of the file, otherwise names will collide with the builtins.
Also checkout UnityCG.cginc and AutoLight.cginc in Unity.app/Contents/CGIncludes - the builtin shaders use some helper functions/macros/variables from there.
I seemingly did need to put these into my project, and I don't see any problems arising due to the names. Any reason for this? I guess I've been using Unity successfully in some kind of cripple state, but I have no idea what is going on.Originally Posted by Aras PranckeviciusYou don't need to put the shaders into your project; they're all builtin. If you do, be sure to modify shader name at start of the file, otherwise names will collide with the builtins.
No, you don't need to put them into your project. These are the sources if you want to develop your own shaders and want to take a look at how built-in ones are done.
Presumably your Unity installation is corrupt (or maybe you're out of disk space?). Try reinstalling Unity.
For any other neophytes that seem to have this problem, just get out of debug mode and pick your shader then. Thanks, Daniel!
http://unity3d.com/download_unity/builtin_shaders.zip is always the latest deployed version, we have an automatic process that uploads the release.
If I want to deliberately replace one of the builtin unity shaders with a slightly modified one, how would I do that ?
If I add it to my project with the same name... which one will be used ?
for example the vertex_lit shader that unity uses on the detail objects. like bushes and rocks.
@Aras: With the file replaced with the latest R3 release, where can I find the Unity 2.6.1 builtin shaders zip file?
got it: http://download.unity3d.com/download...ders-2.6.1.zip
Last edited by jcarpay; 10-01-2010 at 08:42 AM.
here is 3.2 versions sources :
Realtime architectural visualizations
I downloaded the file that contains the source code for the built-in shaders, but the (plain) "Specular Shader" isn't in there. I was hoping to see how it creates that beautiful, realistic glow which the other specular shaders in Unity don't seem to produce.
Welcome to the forum, HonoraryBob!
The code for the Specular shader (at the root of the menu) is actually included in the archive but the filename is a bit misleading - it's in the Normal-Glossy.shader file.
I'm wired to the world... that's how I... know... everything...