Aug/31
2009

Welcome to my second Unity tutorial. This time I'll be walking you through the basics of shaders.

Simply put, a shader is a set of instructions the graphics card processes in order to tweak the surface appearance of an object. In more detail, some of the variables it takes into account are your diffuse map, light position and colour. If that sounds intimidating, don't be alarmed. My goal is to make this as simple as I possibly can and, to that end, I will not be covering Unity's shader language ('Shaderlab') in this tutorial. Let's work our way up to there slowly whilst ensuring we maintain a solid foundation.

Pictures say more than words, so let's have a look at what shaders can do for your scene.

You can clearly see that although the geometry is very simple, through the use of shaders, we can give the scene an added sense of detail. You need to remember however that shaders do take their toll on the GPU and so you should use them sparingly, that is unless your scene is so well optimized it can handle the performance hit.

If you completed the previous tutorial, you'll have become familiar with lightmaps, which are also a type of shader. Thankfully, the script took care of adding the materials to all the objects for us. So while it was useful, we didn't learn as much as we could have.

Hopefully, by the end of this tutorial, you'll have gained the confidence to regularly use bump and cube maps.

With that having been said, let's move on to the next page for an explanation of bump and cube maps.

Pages: 1 · 2 · 3 · 4 · 5

6 comments »
Trackback address for this post

Trackback URL (right click and copy shortcut/link location)

6 comments
Comment from: Term Paper [Visitor] · http://www.flashpapers.com
it's great to see fresh, creative ideas that have never been done before.Awesome. It is amazing how some people come up with cool blogs.
02/17/10 @ 12:07
Comment from: San Diego short sale [Visitor] · http://www.theapprovalexperts.com
Interesting , how would I apply this?
03/05/10 @ 04:43
Comment from: Topsoil Wilmington De [Visitor] · http://www.landscapingwilmington.com/Topsoil.html
Thanks for an idea, you sparked at thought from a perspective I hadn't thought of yet. Now lets see if I can do something with it.
03/07/10 @ 00:57
Comment from: College Term Papers [Visitor] · http://www.ghostpapers.com
It is an interesting and mind opening blog,I really didn't know about that, but you not only be informed me but I also getting knowledge from your article,
03/08/10 @ 07:35
Comment from: runescape accounts [Visitor] · http://www.powergolding.com
i have checked it’s really great
03/10/10 @ 03:09
Comment from: runescape accounts [Visitor] · http://www.powergolding.com
Valuable information.
03/10/10 @ 04:52
Leave a comment

Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)