浏览代码

Update keyword in upgraded script for decal

/main
Sebastien Lagarde 6 年前
当前提交
a9cdd84b
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 8
      com.unity.render-pipelines.high-definition/HDRP/Editor/Upgraders/UpgradeMenuItem.cs

8
com.unity.render-pipelines.high-definition/HDRP/Editor/Upgraders/UpgradeMenuItem.cs


float enableDecal = float.Parse(sub);
mat.SetFloat("_SupportDecals", enableDecal);
// Decal need to also update keywords _DISABLE_DECALS
HDEditorUtils.ResetMaterialKeywords(mat);
dirty = true;
}
}

}
static void UpdateMaterialFile_Decals_2(string path)
{

finally
{
EditorUtility.ClearProgressBar();
// No need to save in this case
// Save all dirty assets
}
}

UpdateMaterialToNewerVersion("(EmissiveColor_1)", 1.0f, UpdateMaterial_EmissiveColor_1, UpdateMaterialFile_EmissiveColor_1);
UpdateMaterialToNewerVersion("(Decals_2)", 2.0f, UpdateMaterial_Decals_2, UpdateMaterialFile_Decals_2);
// Caution: Version of latest script and default version in all HDRP shader must match
// Caution: Version of latest script and default version in all HDRP shader must match
}
}
}
正在加载...
取消
保存