In order to get this recipe started, we need to gather a few resources together. So, let's perform the following tasks:
- Create a new scene and fill it with a simple sphere object and single directional light.
- Create a new shader (OptimizedShader01) and material (OptimizedShader01Mat) and assign the shader to the material.
- We then need to assign the material we just created to our sphere object in our
new scene:
- Finally, modify the shader so that it uses a diffuse texture and normal map and includes your own custom Lighting function.
Properties { _MainTex ("Base (RGB)", 2D) = "white" {} _NormalMap ("Normal Map", 2D) = "bump" ...