June 2018
Intermediate to advanced
392 pages
8h 57m
English
For this recipe, we will write a mobile-friendly shader from scratch and discuss the elements that make it more mobile friendly:
Properties { _Diffuse ("Base (RGB) Specular Amount (A)", 2D) = "white" {} _SpecIntensity ("Specular Width", Range(0.01, 1)) = 0.5 _NormalMap ("Normal Map", 2D) = "bump"{}}
CGPROGRAM#pragma surface ...