打开unity官方的shader UnityStandardCoreForwardSimple
双击报的那个错误就能定位过去 或者去这个路径下找找Editor\Data\CGIncludes\UnityStandardCoreForwardSimple.cginc
将这个文件第48行
也就是
half SpecularSetup_Reflectivity()
{
return SpecularStrength(_SpecColor.rgb);
}
的下面一行
加入以下代码
half RoughnessSetup_Reflectivity()
{
return SpecularStrength(_SpecColor.rgb);
}