Home Unity

Noob attempting to write a Basic Lambert shader

RoxyPox
polycounter lvl 6
Offline / Send Message
RoxyPox polycounter lvl 6
Hey!

I'm a just beginning to try my hand at shader writing for Unity. Prior to this I have had no training in coding or the like so this has been a steep learning curve for me. And surprise! I am already running into issues.

I am following this tutorial, which shows how to write a basic lambert shader from scratch.
Everything was going fine until I reached the point where he adds the tag

( "LightMode" = "ForwardBase" )

This apparently gets the surface to actually react to lights in the scene. He mentioned that adding this tag was only necessary in Unity 4. I am using Unity 3. However, I am still unable to get the light to react to the surface. Is there a different tag I need to write to get it to work? I've been having trouble finding any helpful resources, so I figured I'd ask here.

Here is my code:

85vRHpk.jpg?1

Any help would be appreciated!
Sign In or Register to comment.