Game Development Reference
In-Depth Information
9. Then, we go back to MonoDevelop again, go to the next line of the
MyShader.shader file, and start modifying the Properties section, as fol-
lows:
Properties {
_MainTex ("Diffuse (RGBA)", 2D) = "white" {}
_BumpMap ("Bumpmap", 2D) = "bump" {}
}
10. Then, we go to the SubShader section to modify and add the following high-
lighted code:
SubShader {
Tags { "RenderType"="Opaque" }
LOD 300
CGPROGRAM
#pragma surface surf Lambert
sampler2D _MainTex;
sampler2D _BumpMap;
Search WWH ::




Custom Search