// Get the mask value fixed specularMask = tex2D(_SpecularMask, i.uv).r * _SpecularScale; // Compute specular term with the specular mask fixed3 specular = specular * specularMask;