Thursday, February 25, 2010

Unity 3D Shader Examples:

Unity provides a language called "ShaderLab" which is similar to Nvidia's CgFX. You can use this to write custom shaders including vertex & fragment programs.
Read more about it in the Unity reference manual here: http://unity3d.com/support/documentation/Components/SL-Reference.html
A good way to start off is to have a look at the source code for Unity's built-in shaders, which you can download here: http://unity3d.com/download_unity/builtin_shaders.zip
Or check out the custom shaders that people have put up on the Unity Wiki, here: http://www.unifycommunity.com/wiki/index.php?title=Shaders

More Shader Coding Info:
http://forum.mentalimages.com/showthread.php?t=5266

Some More Info On GLSL Shader Development On Unity:
http://unity3d.com/support/documentation/Components/SL-Attenuation.html

No comments:

Post a Comment