Simply Lit

Author: Jessy

Description
This is a very basic shader. It just applies ambient and diffuse vertex lighting to your textured model.

You can use this as a springboard to learn to write your own more complex lit shaders; I've created chapter 8 of this series specifically to help you do that.

Usage
Drag a single texture onto the material's only variable slot. Adjust the "Ambient Light" to taste, in Unity's Render Settings, and apply any other real-time lights you like. Use Color to alter the way this model looks, after affecting overall scene lighting, if you need to, or just leave it as white otherwise.

As written, the shader allows overbrightening to 2x the value of the texture. This is done with the keyword Double. Change Double to Quad, if you want 4x overbrightening, or just delete the word if you don't want overbrightening at all. (Use only the range you need, as you can more precisely control the lighting with a smaller range.)

[[Media:Simply Lit.zip|Click here to download this shader.]]